Set up Safety Triggers for Z Axis Motion
dieguito last edited by dieguito
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!
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?