confusion with emergency stop and a Z homing failsafe
-
I have the following in my config:-
;Endstops
M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop
M574 Y1 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop
M574 U1 S1 P"e0stop" ; configure active-high endstop for low end on U via pin ustop
M574 V1 S1 P"e1stop" ; configure active-high endstop for low end on V via pin vstop
M574 Z1 S1 P"zstop" ; configure Z-probe endstop for low end on Z
M574 E2 S1 P"Emgstop" ; configure Emergency stop buttonM581 P"zstop" T2 R0 ; Set Z stop as fail safe for Z zeroing and run /sys/trigger2.g
M581 P"Emgstop" T3 R0 ; Set Emergency stop and run/sys/trigger3.gThe failsafe and Emgstop do not work, reading the GCode dictionary I got completely lost as to how these 2 lines should be configured.
Could some bright person please provide the correct solution. -
@appjaws you should configure the inputs using M950 not M574
-
@jay_s_uk
Would that be inputs or outputs?
M950 P6 C"zfailsafe"
M581 P6 T2 R0
M950 P7 C"emgstop"
M581 P7 T3 R0Error: Unknown pin name 'zfailsafe'
Error: Unknown pin name 'emgstop'
I don't think that's right, still confused, could you provide an example so that trigger2 runs please -
@appjaws you'd use the same pin names such as "zstop"
-
@jay_s_uk
M574 Z1 S1 P"zstop" ; configure Z-probe endstop for low end on Z
M574 E2 S1 P"emgstop" ; configure Emergency stop buttonM950 P6 C"zstop"
M581 P6 T2 R0
M950 P7 C"emgstop"
M581 P7 T3 R0The z stop worked but the emgstop has an error
Error: Unknown pin name 'emgstop'nearly there
-
@appjaws where are you plugging the "emgstop" into?
-
@jay_s_uk
Thanks Jay,
I thought it was connected to E2 but I will need to take covers off and physically check.Sorry for the delay.
The emergency stop button is connected to the duex5 expansion board, connected to E2 Stop
just noticed the error Pin 'zstop' is not free
-
@appjaws
this is what I have at the moment
M950 P6 C"zstop"
M581 P6 T2 R0 ; Set Z stop as fail safe for Z zeroing and run /sys/trigger2.g
M950 P7 C"e2stop"
M581 P7 T3 R0 ; Set Emergency stop and run/sys/trigger3.gError: Pin 'zstop' is not free
Error: Unknown pin name 'e2stop' -
@appjaws zstop won't be free if you have the M574 line calling it earlier.
What board are you running this on? a duet 2 by itself doesn't have an e2stop -
@appjaws It's M950 with J parameter to create inputs/triggers, not P, which is for outputs. So should be:
M950 J6 C"zstop" M581 P6 T2 R0 ; Set Z stop as fail safe for Z zeroing and run /sys/trigger2.g M950 J7 C"e2stop" M581 P7 T3 R0 ; Set Emergency stop and run/sys/trigger3.g
Make sure zstop and e2stop are not defined anywhere else.
Ian
-
@droftarts
Thanks for the info, I am running a duet2 plus duex5. -
@droftarts
Thank you, all working properly now that I realized that the emergency stop pin should have been duex.e2stop