Emergency Stop - M999 behaviour
resam last edited by
what is the intended behaviour of issuing a M999, or pushing the "STOP" button on PanelDue while a G28 is running?
I seem to have noticed that it continues driving the steppers and only pushing the reset-button on the DuetWifi will stop them (tested on DuetWifi + 1.19.2)
Ideally I'm looking for a way to invoke a "hard reset" that really stops everything (immanent nozzle crash etc.)
Will an emergency stop via external button/microswitch (M112 via https://duet3d.com/wiki/Connecting_an_Emergency_Stop_button)) do what I'm looking for?
deckingman last edited by
M581 is what you are looking for. I have an external emergency stop button connected to E0 which works as you describe. I also have switches on all the axes maxima wired in series and connected to E1. The M581 lines in my config.g look like this:
M581 E0 S1 T0 C0 ; E0 is emergency stop button, S1 = rising edge, T0 is emergency stop like M112, C0 means any time
M581 E1 S1 T0 C0 ; E1 is axes limits
You can invoke other actions by using a different "T" value - see here https://duet3d.com/wiki/G-code#M581:_Configure_external_trigger
Currently, M999 or Emergency Stop from PanelDue is not immediate in the case that you have sent a command from PanelDue that has not completed.