- Posts: 12160
- Thank you received: 0
Educate me about estop chains and latches
I think you guys have helped me establish something I've been aware of for quite a while and that is the current external e-stop switch I am using is not the right type as it is not wired in as a normally closed input on the low voltage signalling side. This means I can't put additional switches in series with it. If I replace it, I can add the pendant relay in series to generate an e-stop but it won't drop power to the stepper motors.
However, I think all of you with the exception of Bevins are describing a simple e-stop chain. If you look at the estop_latch docs
linuxcnc.org/docs/html/man/man9/estop_latch.9.html
It says
I don't want to use Classic Ladder but I would like to see a hal example of a "more complex system" as I am sure that LCNC is more flexible and can tie different estop conditions together in software.
Please Log in to join the conversation.
tommylight wrote: What if a mosfet or IGBT shorts and the machine has no load? It will break something and burn the motor to a crisp and risk killing someone in the proces.
That is why servo systems have e-stop shuting down complete power to moving parts. E-stop is an emergency device and should be treated as such.
What if the e-stop button malfunctions and doesn't open the circuit?
I don't think your argument holds water.
Please Log in to join the conversation.
Please Log in to join the conversation.
rodw wrote: Getting back to the original topic. I sat down with the docs and a blank sheet of paper. From what I sketched out, I think it will be easy enough to chain multiple instances of estop_latch together from ok-out to ok-in and introduce multiple e-stop events on the fault-in pins. I just have not had the time since to actually try this out in hal. A fault-in on any link in the chain will cause an e-stop on the last link which could also trigger a drive disable signal to my steppers. I'd need to introduce a relay so 24v could switch a 5 volt signal for the stepper drives.
Here is how I do mine. Most external hardware for the estop circuit. I do tell Lcnc the e-stop is pressed so it can do its thing.
But you can go in and out with in-outs though.
There are nice e-stop safety relays designed specifically for this re: Siemens, you can get some off ebay for cheap. They have
multiple ins and outs.
# === estop signals ===
#***********************
loadrt estop_latch
addf estop-latch.0 servo-thread
net estop-loopout iocontrol.0.emc-enable-in <= estop-latch.0.ok-out
net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in
net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset
net remote-estop estop-latch.0.fault-in <= hm2_5i25.0.7i77.0.0.input-07-not
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
That can not happen, not closing the circuit can happen. Open one and check it.bevins wrote:
What if the e-stop button malfunctions and doesn't open the circuit?
So my argument is still swimming happily !
Please Log in to join the conversation.
tommylight wrote:
That can not happen, not closing the circuit can happen. Open one and check it.bevins wrote:
What if the e-stop button malfunctions and doesn't open the circuit?
So my argument is still swimming happily !
Its leaking!
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
Please Log in to join the conversation.
First, we need to do the usual stuff
And then hook the first one up to Linuxcnc iocontrol stuff.
So now we can simply chain each ok_out to the next ok_in to create a chain
and you need to make sure there is a reset signal for each latch. This bit was not obvious from my reading of the documents.
and we need to get the last estop in the chain tell LinuxCNC we have an estop
and then connect your various inputs to estop_latch.n.fault_in
And finally save the estop state to trigger lights and relays.
In my case I have a red warning light and a stepper disable relay that will switch 5 volts to the stepper drive enable inputs.
So putting it all together this is what I got
I think I'll extend my warning light system to flash the red light at various frequencies so you know visually which signal caused the estop.
Well look at that, I educated myself!
Please Log in to join the conversation.
In the classical E-stop you're not bothered about motors free-wheeling to a stop, because everything just went to hell in a hand basket anyway.
Maybe we should rename the other case as R-stop (rapid stop) for situations that may be recoverable if we stop right now, but keep track of where we are.
Just a random thought,
Roger
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
A central power disconnect is a completely different affair unrelated to E-stop..
Please Log in to join the conversation.
