Simple IF statements in gcode scripts
bot last edited by
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.
IFZ<5 G91 G0Z5 G90 ENDIF (Rest of toolchange code)