M28 not working in RRF3



  • I am trying to build a workaround for calling M32 from within gcode files, so I thought I could override a macro file through M28 to start the next gcode file. (Related topic here)

    Whatever I am trying, I can't get M28 to even create a file, neither in the gcode directory nor in the macro directory.

    M28 "loggingfile.gcode"
    Error: Can't open file loggingfile.gcode for writing

    M28 0:/GCODES/DIR_TESTING/LOGGINGFILE.G
    Error: Operation failed (Reason: Command SimpleCode has reported an error:
    [ArgumentException] Code is too long)

    M28 "0:/GCODES/DIR_TESTING/LOGGINGFILE.G"
    Error: Can't open file 0:/GCODES/DIR_TESTING/LOGGINGFILE.G for writing.

    M28 "0:/macros/m_one"
    Error: Can't open file 0:/macros/m_one for writing.

    M28 "0:/macros/mone.g"
    Error: Can't open file 0:/macros/mone.g for writing.

    Anyone knows if this is my mistake or a bug?


  • administrators

    @too said in M28 not working in RRF3:

    M28 0:/GCODES/DIR_TESTING/LOGGINGFILE.G
    Error: Operation failed (Reason: Command SimpleCode has reported an error:
    [ArgumentException] Code is too long)

    From that I presume you are running on Duet 3 using an attached RPi or other single board computer; in which case it is a DSF issue, not a RRF issue. We'll look into it.



  • @dc42 Yes, I am running the Duet3 with a Raspberry Pi 4 attached.
    In case that influences anything - I am accessing the files on the virtual SD through a remote computer, so I changed the permissions for the folders to rwx-rwx-rwx



  • Hey @dc42, any updates on this? I also have issues with M28 on a similar setup.


Log in to reply