Simple IF statements in gcode scripts



  • I have the need to clear some obstructions on the edge of the bed when changing tools (IDEX printer). I could always raise 5 mm upon tool change, but that creates the problem of losing 5mm of usable print space in the z axis. While not a huge problem, it would be nice to instead define a z-range to initiate the specific line of gcode.

    For example:

    IFZ<5
         G91
         G0Z5
         G90
    ENDIF
    (Rest of toolchange code)
    
    

Locked
 

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