Control driver's power through linuxcnc

More
6 years 11 months ago #151103 by rodw
I had a bit of a look at the halui pins and I did not see one that leapt out at me but you could achieve it with estop-latch.
Its not well documented but it is designed to build an estop chain in software.

As my machine grew, I added more estops so moved them all to estop-latches chained together. One of them was for a plasma torch breakaway which triggered an e-stop so that is functionally equivalent to what you want. You can trigger a relay from one of the e-stop outputs. Here is a complex example from my config. You can see I turn a few things on and off with the estop-out signal.(relays and warning lights)

Warning: Spoiler!

Please Log in to join the conversation.

More
6 years 11 months ago #151105 by Muz94
However, just to be clear, i'm going to switch to a 7i96 sooner than later, so i would not focus on the charge pump, i'd rather prepare a good schematic and then implement the whole estop circuit when i'll install the mesa board.

Please Log in to join the conversation.

More
6 years 11 months ago #151106 by Muz94

rodw wrote: I had a bit of a look at the halui pins and I did not see one that leapt out at me but you could achieve it with estop-latch.
Its not well documented but it is designed to build an estop chain in software.

As my machine grew, I added more estops so moved them all to estop-latches chained together. One of them was for a plasma torch breakaway which triggered an e-stop so that is functionally equivalent to what you want. You can trigger a relay from one of the e-stop outputs. Here is a complex example from my config. You can see I turn a few things on and off with the estop-out signal.(relays and warning lights)

Warning: Spoiler!


Thank you, i'll look into this!

Please Log in to join the conversation.

More
6 years 11 months ago #151107 by rodw

Muz94 wrote: However, just to be clear, i'm going to switch to a 7i96 sooner than later, so i would not focus on the charge pump, i'd rather prepare a good schematic and then implement the whole estop circuit when i'll install the mesa board.


Here is a start. A bit of a work in progress really. You might need to implement shared home/limit switches or add a daughter baord if you want more inputs. BUt there is one left tfor your heating circuit :)

Attachment not found

Please Log in to join the conversation.

More
6 years 11 months ago #151108 by rodw
Ooops, ignore where it says Plasma. This is a reference pinout for a milling machine

Please Log in to join the conversation.

More
6 years 11 months ago #151109 by Muz94
I already have that implemented in my hal file, at the moment i have all the switches connected in series, and they work both as limit and home switches, using only 1 input.
However at the moment the heating is all managed by an arduino with a hand made "shield", it's connected to the pc throug serial (via usb) and it communicates with linucnc by a userspace hal component (a simple python script that manages the communication with the arduino and checks for alarms that should trigger the e-stop).
Even the e-stop latch works (i can trigger the e-stop if i call M104 and the thermistor is not connected or if i detect a temperature out of a "safe range"), but for now the e-stop just stops the program, if something really goes wrong i still can't cut the power.

Please Log in to join the conversation.

More
6 years 11 months ago #151111 by tommylight

Muz94 wrote: However at the moment the heating is all managed by an arduino with a hand made "shield", it's connected to the pc throug serial (via usb) and it communicates with linucnc by a userspace hal component (a simple python script that manages the communication with the arduino and checks for alarms that should trigger the e-stop).
Even the e-stop latch works (i can trigger the e-stop if i call M104 and the thermistor is not connected or if i detect a temperature out of a "safe range"), but for now the e-stop just stops the program, if something really goes wrong i still can't cut the power.

in that case all you need is to wire that e-stop signal to a physical pin on the parallel port, in hal.

Please Log in to join the conversation.

More
6 years 11 months ago #151170 by rodw

Muz94 wrote: but for now the e-stop just stops the program, if something really goes wrong i still can't cut the power.


Well you can, you just use a mains power relay and control it exactly like I did here:
Code:
# --- E-STOP STEPPER DRIVE DISABLE --- net estop-out hm2_7i76e.0.7i76.0.0.output-05

Please Log in to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum