- Thank you received: 0
Custom Hal Code - Estop latch - Push Buttons - Lights
- thefabricator03
- Topic Author
- New Member
-
Just looking for a bit of help getting my custom hal code sorted.
First I want to latch two e-stops together, reading RodW thread on that subject I get this code,
The next thing I need to add is enables for Linuxcnc to my motor drives.
I got this from the motion manual,
Do I put this somewhere in my hal?
Next I need to set up two push buttons to toggle machine power on and off in Axis.
I have read that I need tie it to axis.N.amp-enable-out. How will that look? Should I somehow tie that to the enable code?
Then I need to set up fault detection,
Last I need to tie a red and green light to the state of machine power in Axis. Again do I tie that to the enable circuit?
Sorry for the long post. I have been trying to get my head around this for a while now with no luck.
Any help would be greatly appreciated.
Please Log in to join the conversation.
- thefabricator03
- Topic Author
- New Member
-
- Thank you received: 0
Could I get it moved to the HAL forum if possible.
Please Log in to join the conversation.
For drive enables, I energize relays when the machine is turned on and enable the drives with one relay dpdt.
The second relay you can use to lite a green lite that will follow machine-is-on.
To turn machine on with button use halui.machine.on like so:
I havent tested this, but it should work.
just my 2 cents.
/EDIT I just reread your thread. You are trying to latch two estop circuits. Mine is for one estop circuit. You could just put the two estop loops in serial and use just one loop.
Please Log in to join the conversation.
Its not always possible to physically wire all estops into one circuit.
eg. One of my estop buttons is on a wireless pendant....
How do you handle a plasma torch breakaway. Is that a pause condition or an estop condition? That ones a bit academic now as its never let go while using Plasmac!
Please Log in to join the conversation.
rodw wrote: I think what is not covered in the docs anywhere is that estop-latch lets you chain estop circuits together in HAL.
Its not always possible to physically wire all estops into one circuit.
eg. One of my estop buttons is on a wireless pendant....
How do you handle a plasma torch breakaway. Is that a pause condition or an estop condition? That ones a bit academic now as its never let go while using Plasmac!
I hear what your saying but, you have to wire them into the same board anyway at the same location. So my thoughts are why complicate things. I would never create two estop loops. Thats just me. Your wireless pendant, you need to put a receiver somewhere, so why not put it in the control and wire it in series with the one estop loop. I am not following why you would need two loops.
Please Log in to join the conversation.
Please Log in to join the conversation.
- thefabricator03
- Topic Author
- New Member
-
- Thank you received: 0
Really though the worst thing is that if the software froze and the machine kept going it should really end up at the hard stops for the axis. Then in theory the drives would fault or you would burn the motors out. That is unless someone is on the machine( Work place safety NO NO) when it is operating.
But really how idiot proof do you need to make things.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Someone on the cnczone.com forum had a signature saying:thefabricator03 wrote: But really how idiot proof do you need to make things.
Nothing is foolproof to a talented fool !
Please Log in to join the conversation.
My router has a external loop that I need to push a button and that loop I put in series with estop. Could use that for second estop latch. Hmmmmm ....
Please Log in to join the conversation.
