Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Servo cleaning brush and tool change

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    3
    169
    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.
    • Proschi3Dundefined
      Proschi3D
      last edited by Proschi3D

      Hello, everyone,
      I plan to move a brass brush over a servo in my printer in my Idex printer to clean the nozzle.
      For reasons of space, I have to be at least Z+15 mm above the table.
      In the start Gcode it is no problem to program.
      But how can I do it, e.g. in a tool change, and say that if it is below Z+15, it first moves to Z+15, and if it is above it, it doesn't have to move?

      Love my Duet 3 Mini.
      https://www.instagram.com/proschi3d
      https://youtube.com/@proschi3d
      https://www.proschi3d.de

      1 Reply Last reply Reply Quote 0
      • achrnundefined
        achrn
        last edited by

        I'm not sure I understand the implications of the question, but if it's just a gcode (macro etc), you can use

        if move.axes[2].userPosition < 15
          G1 Z15
        

        Note that 'if' executes everything following it indented the same, so make sure the next line (ie the first thing after the 'if' that you always want to happen) is unindented again.

        Proschi3Dundefined 1 Reply Last reply Reply Quote 1
        • Proschi3Dundefined
          Proschi3D @achrn
          last edited by

          @achrn perfect thank you

          Love my Duet 3 Mini.
          https://www.instagram.com/proschi3d
          https://youtube.com/@proschi3d
          https://www.proschi3d.de

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