Configure output pin that indicates printing status
-
Hi everyone,
On a duet 2, RRF 3.3 controling an original Z1+ workbee.
I am struggling configuring an emergency stop that is instantaneous AND offers a resume possibility, I am thinking of going for an external relay cutting power.
The relay would be controled by a arduino controling the spindle current consuption (that I already use with trigger).
I need to condition the relay opening to the printing status as the R parameter of M581.So is there a way to configure an output pin reporting that status?
Many thanks -
After researching I would do that;
M950 P2 C"exp.e3stop" ; output 2 uses e3stop pin
If state.status == "processing"
M42 P2 S1
else
M42 P2 S0
breakIn a macro or in the user config file.
-
I am struggling configuring an emergency stop that is instantaneous AND offers a resume possibility, I am thinking of going for an external relay cutting power.
Regarding the Resume capability, you already have a recent thread running. Have you updated RRF as @gloomyandy suggested?
Generally spoken, a true emergency stop means to physically cut mains power. Any software-driven approach can go wrong if controller and/or firmware malfunctions for some reason. Given that you have to switch power off, follow the path of M911: Configure auto save on loss of power.
If you don’t want to shut down the system completely, go with Pause/Resume - that’s exactly what it’s for. As this mechanism is software-driven, you can easily add a relay to switch off the spindle.
So you can have both an Emergency stop and a soft stop (aka Pause). But don’t mix them. By piling up additional hard- and software components to catch potential malfunctions, you introduce more potential points of failure - not exactly what you want in an emergency situation.