Prevent Multiple Retracts and Unretracts



  • Is it possible, or does it already do this? To have the firmware ignore multiple G10 commands without a G11 and vice-versa ignore multiple G11's without a G10?

    Retract Example:
    G10 check for flag, if flag is high, ignore G10 command, otherwise set a flag to 1 and retract.
    G11 reset flag and unretract.

    this might get complicated with multiple tools.. ?

    I am noticing back to back G10's in my GCode



  • The firmware already ignores multiples G10 and multiple G11...



  • @eddiie said in Prevent Multiple Retracts and Unretracts:

    Is it possible, or does it already do this? To have the firmware ignore multiple G10 commands without a G11 and vice-versa ignore multiple G11's without a G10?

    Retract Example:
    G10 check for flag, if flag is high, ignore G10 command, otherwise set a flag to 1 and retract.
    G11 reset flag and unretract.

    this might get complicated with multiple tools.. ?

    I am noticing back to back G10's in my GCode

    Yes, the firmware will never do multiple retracts or un-retracts. So if your gcode file contains multiple G10 commands, only the first will be acted on. Subsequent G10 commands will be ignored until a G11 command is sent. Likewise only the first G11 unretract will be acted on and any others will be ignored until a G10 command is sent.

    Edit sorry @fma - looks like we were typing at the same time.

    Edit 2. This behaviour also applies if you try and send multiple G10 or G11 commands via the console.



  • That is great news! Thanks guys.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.