Control driver's power through linuxcnc

More
24 Nov 2019 12:32 - 24 Nov 2019 12:41 #151103 by rodw
Replied by rodw on topic Control driver's power through linuxcnc
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!
Last edit: 24 Nov 2019 12:41 by rodw.

Please Log in or Create an account to join the conversation.

More
24 Nov 2019 12:49 #151105 by Muz94
Replied by Muz94 on topic Control driver's power through linuxcnc
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 or Create an account to join the conversation.

More
24 Nov 2019 12:50 #151106 by Muz94
Replied by Muz94 on topic Control driver's power through linuxcnc

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 or Create an account to join the conversation.

More
24 Nov 2019 13:19 #151107 by rodw
Replied by rodw on topic Control driver's power through linuxcnc

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 :)

This browser does not support PDFs. Please download the PDF to view it: Download PDF

Attachments:
The following user(s) said Thank You: Muz94

Please Log in or Create an account to join the conversation.

More
24 Nov 2019 13:20 #151108 by rodw
Replied by rodw on topic Control driver's power through linuxcnc
Ooops, ignore where it says Plasma. This is a reference pinout for a milling machine

Please Log in or Create an account to join the conversation.

More
24 Nov 2019 13:33 - 24 Nov 2019 13:39 #151109 by Muz94
Replied by Muz94 on topic Control driver's power through linuxcnc
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.
Last edit: 24 Nov 2019 13:39 by Muz94.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
24 Nov 2019 13:44 #151111 by tommylight
Replied by tommylight on topic Control driver's power through linuxcnc

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 or Create an account to join the conversation.

More
25 Nov 2019 00:26 #151170 by rodw
Replied by rodw on topic Control driver's power through linuxcnc

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:
# --- E-STOP STEPPER DRIVE DISABLE ---
net estop-out hm2_7i76e.0.7i76.0.0.output-05

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum