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.
-
RRF 3.5.4 is now onboard.
I need a emergency stop linked to an over/lower consuption of curent, detected by my annex arduino that wil prevent blind moves when spindle stops if I'm not there.
I configured a trigger but the buffered moves are sometimes 2/3 seconds if many straight moves in a row.How would you suggest a 100% hardware approach?
I think I have no other choice but to consider the printing status otherwise I'll stop the mainboard when I change tool, or pause. -
@gratgrat27 said in Configure output pin that indicates printing status:
I configured a trigger but the buffered moves are sometimes 2/3 seconds if many straight moves in a row.
There is a special emergency stop trigger (trigger 0) that stops everything more or less immediately. Did you use that one?
-
@dc42
Yes I saw it but no restart point / resurrect file is issued. I sometime run 24h jobs for finishing...
Only the index/line would be sufficent after M112 use. -
@gratgrat27 the point of Emergency Stop is that it stops all motors and other devices immediately. Because of this, position is lost and there is no facility for restart.
There is a feature called Feed Hold planned for firmware 3.7 that may do what you want, i.e. perform a rapid but controlled stop, without loss of position.
Meanwhile you could improve on your current setup by enabling segmentation. See the
M667M669 command. This splits up long moves into shorter ones, which generally means that the time to process a pause command is greatly reduced. -
@gratgrat27 and segmentation is M669, not M667