Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Simple IF statements in gcode scripts

    Firmware wishlist
    1
    1
    560
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bot
      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.

      For example:

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

      *not actually a robot

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Unless otherwise noted, all forum content is licensed under CC-BY-SA