I have an emergency stop switch I wanted to wire into my printer and was looking for some advice. The switch has 4 contacts numbered 1-4. The switch is a push on/push off switch. When it is in the ON position, pins 1-2 have continuity. When in the E-stop position, 3-4 have continuity. I want to have it so when I press it, the printer executes M112 and stops. When I release the switch, I want it to reset the Duet board. I have a Duet 3 Mini 5+.
I know that if I wire pin 1 to Gnd and 2 to my io(x).in pin, I can use the following in my config.g to trigger M112 properly
M950 J0 C"io4.in"
M581 T0 P1 S1 R0
What I haven't figured out is how I can reset the board when I release the e-stop switch. I had thought that I could potentially wire 3&4 to Gnd and the Reset pin on the LCD Ext2 connector which should hold the processor in reset, but I'm not sure if that would work right as I don't think it would even have a chance to execute the M112 stop first. I would use the e-stop to simply disconnect the 24v supply, but the e-stop switch I have is only rated for 5A so I can't run all the current through it.
Hopefully this makes some sense. I'm dealing with nonstop migraines lately so it's hard to focus.