1 or 2 dedicated 120VAC circuits for my CNC?
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
22 Mar 2023 22:33 #267328
by tommylight
Replied by tommylight on topic 1 or 2 dedicated 120VAC circuits for my CNC?
Use the Mist and/or Flood pins that already exist in LinuxCNC, just having those in hal will enable them and also show them in the Axis GUI.
Append the output pin to them, then in gcode adding M7 and/or M8 with M9 will happily turn on or off whatever is wired to those pins.
Something like
net coolant-flood hm2_pci-5i25.0.0.7i77.output-12
net coolant-mist hm2_pci-5i25.0.0.7i77.output-13
Edit the pins to suit your system/boards/wiring.
Append the output pin to them, then in gcode adding M7 and/or M8 with M9 will happily turn on or off whatever is wired to those pins.
Something like
net coolant-flood hm2_pci-5i25.0.0.7i77.output-12
net coolant-mist hm2_pci-5i25.0.0.7i77.output-13
Edit the pins to suit your system/boards/wiring.
Please Log in or Create an account to join the conversation.
22 Mar 2023 22:52 #267329
by Sray69
Replied by Sray69 on topic 1 or 2 dedicated 120VAC circuits for my CNC?
Thanks Tommy. This will get me headed in the right direction. What if I am using gmoccopy? Will I have to do something different?Use the Mist and/or Flood pins that already exist in LinuxCNC, just having those in hal will enable them and also show them in the Axis GUI.
Append the output pin to them, then in gcode adding M7 and/or M8 with M9 will happily turn on or off whatever is wired to those pins.
Something like
net coolant-flood hm2_pci-5i25.0.0.7i77.output-12
net coolant-mist hm2_pci-5i25.0.0.7i77.output-13
Edit the pins to suit your system/boards/wiring.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
22 Mar 2023 23:19 #267331
by tommylight
Replied by tommylight on topic 1 or 2 dedicated 120VAC circuits for my CNC?
The gcode should work, for sure if you add those line in hal, but not sure if you get the buttons on screen.
Please Log in or Create an account to join the conversation.
22 Mar 2023 23:31 #267333
by Sray69
Replied by Sray69 on topic 1 or 2 dedicated 120VAC circuits for my CNC?
OK so I added the following lines to my HAL file.
# external output signals
# --- ROUTER-ON ---
net coolant-mist => hm2_7i76e.0.7i76.0.0.output-15
# --- DUST-COLLECTOR-ON
net coolant-flood => hm2_7i76e.0.7i76.0.0.output-01
# ---coolant signals---
net coolant-mist <= iocontrol.0.coolant-mist
net coolant-flood <= iocontrol.0.coolant-flood
I am able to see them trigger ON in Halshow using M7 & M8. I can also trigger them OFF with M9. BUT when they are triggered ON there is no power to my circuits (Output pins 15 and 01). I must be missing something.
# external output signals
# --- ROUTER-ON ---
net coolant-mist => hm2_7i76e.0.7i76.0.0.output-15
# --- DUST-COLLECTOR-ON
net coolant-flood => hm2_7i76e.0.7i76.0.0.output-01
# ---coolant signals---
net coolant-mist <= iocontrol.0.coolant-mist
net coolant-flood <= iocontrol.0.coolant-flood
I am able to see them trigger ON in Halshow using M7 & M8. I can also trigger them OFF with M9. BUT when they are triggered ON there is no power to my circuits (Output pins 15 and 01). I must be missing something.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
23 Mar 2023 00:14 #267337
by tommylight
Replied by tommylight on topic 1 or 2 dedicated 120VAC circuits for my CNC?
Output
hm2_7i76e.0.7i76.0.0.output-01
is the second pin on the header, not the first
just to be sure
hm2_7i76e.0.7i76.0.0.output-01
is the second pin on the header, not the first
just to be sure
Please Log in or Create an account to join the conversation.
23 Mar 2023 02:36 #267342
by Sray69
Replied by Sray69 on topic 1 or 2 dedicated 120VAC circuits for my CNC?
Yes I have it correct. It is the second pin.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
23 Mar 2023 12:07 #267357
by tommylight
Replied by tommylight on topic 1 or 2 dedicated 120VAC circuits for my CNC?
Use a DVM to measure the voltage change on that pin, if you can.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
23 Mar 2023 12:09 #267358
by tommylight
Replied by tommylight on topic 1 or 2 dedicated 120VAC circuits for my CNC?
Also, watch the output pin in halshow if it is changing state.
Please Log in or Create an account to join the conversation.
23 Mar 2023 16:16 #267369
by Sray69
Replied by Sray69 on topic 1 or 2 dedicated 120VAC circuits for my CNC?
I checked the pins and both pins are triggering in Halshow. Both pins are providing 24VDC when triggered.
Once I reconnected the wires and tested again, the router circuit now works as expected, but the dust collector circuit gives me a "Smart serial card remote error = (27) Over Current" error. I have researched this and I think my problem is that there is no flyback diode on the dust collector relay. Does this sound correct? If yes, can you tell me what diode I need to get and exactly how it should be soldered in?
Thanks
Once I reconnected the wires and tested again, the router circuit now works as expected, but the dust collector circuit gives me a "Smart serial card remote error = (27) Over Current" error. I have researched this and I think my problem is that there is no flyback diode on the dust collector relay. Does this sound correct? If yes, can you tell me what diode I need to get and exactly how it should be soldered in?
Thanks
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
24 Mar 2023 00:53 #267388
by tommylight
Replied by tommylight on topic 1 or 2 dedicated 120VAC circuits for my CNC?
If you are getting over current warnings for Mesa outputs, the relay is way out of spec for current draw.
Having said that, any silicium diode will do, something like 1N4001 to 1N4007 will do just fine, wired in parallel to relay winding, just mind the polarity in regard to Mesa output.
I would use another smaller relay in between, or a transistor.
Having said that, any silicium diode will do, something like 1N4001 to 1N4007 will do just fine, wired in parallel to relay winding, just mind the polarity in regard to Mesa output.
I would use another smaller relay in between, or a transistor.
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.116 seconds