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

    Set up Safety Triggers for Z Axis Motion

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    2
    118
    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.
    • dieguitoundefined
      dieguito
      last edited by dieguito

      Hello,

      I have been trying to set up a macro on a Duet 2 WiFi running on RRF_3.1.1 so that, when a normally open switch and a normally closed switch are pressed, it allows for the Z axis to move and if either switch is released only during motion of the Z axis and not after the Z axis completes its desired motion, the macro sends an M112+M999 command and resets. When using M577, after the Z axis finalizes correct motion, the duet continues to wait for the switch to be triggered. Using M581 seems to run always and halts motion of the Z axis either the switch is pressed or not. Is there a way to get the behavior in the first sentence I wrote to work? Pausing motion when the switch is pressed and resumes once the switch is released also works, although I have not seen any command able to do this.

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        This may be doable using conditional gcode, but i'm not really a guru on that stuff yet. Have you looked through conditional gcode yet?

        Z-Bot CoreXY Build | Thingiverse Profile

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