- Posts: 79
- Thank you received: 0
Control driver's power through linuxcnc
At the moment i directly power all the systems (power supplies, drivers ecc) when i insert the plug in the wall outlet, but that of course is not acceptable, especially on a 3d printer where a fault in the heating elements must result in immediate cut of power to avoid setting the whole building on fire.
This said, i'm here to ask you: how can i link the "machine on" state of linuxcnc to a BOB output that i can use to control a relay / contactor?
Is this the correct approach? Should i instead generate an external "machine on" signal that would drive both the contactor and linuxcnc's "machine on" internel signal?
Thank you!
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22014
- Thank you received: 4
You can link that to any physical pin, even several of them at once.
In hal it is usually as
Xena or Yena or other ena signals.
Please Log in to join the conversation.
Can i use that signal to control a contactor? Am i sure that when the system starts that signal will be low so that the machine won't be powered before i want to?
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22014
- Thank you received: 4
In case of Mesa boards, they will not power any output until explicitly told to.
But if using a Mesa 5i25 or 6i25 or 7i92 without a daughterboard, they start at high level on all pins as they have pull up resistors.
Please Log in to join the conversation.
With this circuit i should have the machine to turn on by pressing a button that bootstraps the main contactor "loop".
Now i need to figure out how to integrate the software side (and the e-stop button) so that
1- Linuxcnc is aware of the machine-on state (i think i just need to connect the output of the top - right psu to the BOB, right?)
2- Linuxcnc is aware of the e-stop state
3- Linuxcnc can trigger the emergency stop via software
4- Linuxcnc can (at least) turn off machine power (i think it is not possible to have software control on the machine-on signal in that circuit).
Please Log in to join the conversation.
It won't let you power up( activate charge pump /enable untill you unlatch the estop
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22014
- Thank you received: 4
Linuxcnc can do both, and in any combination.
That diagram has a huge flaw, namely once turned on, you can not turn it of without unplugging the wall socket.
The ON button should be wired to the PC so in case something is wrong with it, the machine can not be powered. From the PC there should be an enable wired to drive enable inputs, and another e-stop signal wired to a relay that can switch the power on or off.
Please Log in to join the conversation.
NOte that in my case, I just drop mains power to the stepper drives so everything else is still enabled. I would drop power to the heating element and the drives.
Please Log in to join the conversation.
However i'm aware of that flow on that schematic, it's just a start point where i have to add all the other stuff i've written above.
Please Log in to join the conversation.
Can the software side trigger an e-stop and cut power with this setup?rodw wrote: Why not add an estop switch that switches mains power on and off? Thats how my machine is set up. A second contactor on the switch is connected to the logic circuit so an input is enabled when estop is turned on to tell Linuxcnc estop has been pressed.
NOte that in my case, I just drop mains power to the stepper drives so everything else is still enabled. I would drop power to the heating element and the drives.
My main concern is the case of the heater MOSFET locked in the close state, in that case the arduino that controls the temperature in my machine throws an alarm which causes the control to trigger the e-stop. That must cut the power
Please Log in to join the conversation.
