Halting G1 Command on Endstop Hit
-
On a different board the default behavior was to halt motor movement when an endstop was hit during a move. It seems to me that the Duet uses the S1 flag for homing. For example, in homex.g:
G1 S1 X-605 F6000
G1 X5 F1000
G1 S1 X-605 F1000
G1 X12 F1000When the endstop is hit in line 1, the Duet moves to the second line (+5 on X). After homing is completed I want to catch all endstop hits as errors and halt the movement.
Is there a way to do this on the Duet? I do not want to just proceed to the next gcommand in the queue.
-
You can use the M581 command to set a trigger on the endstops to cause an emergency stop when an endstop is triggered. See https://duet3d.dozuki.com/Wiki/GCode#Section_M581_Configure_external_trigger.
-
Thanks for your response. I will look into this more.