Connecting external power-on button to Linux CNC
- machete
- Offline
- Senior Member
-
Less
More
- Posts: 64
- Thank you received: 0
24 Jan 2015 03:12 - 24 Jan 2015 03:14 #55299
by machete
Connecting external power-on button to Linux CNC was created by machete
In my machine (big Gildemeister lathe) i have green button wich is starting machine power (oil pumps, drives power etc) and red button (conected with E-stop) wich turns this power off.
Both buttons connected to different input pins on my 7i77 card.
Now i've configured E-stop (red button), so i can see condition of my external E-stop button in AxisGUI
But, which hal pin i need to connect with my green button to perform action like F2 does?
(At this moment, i must hit F2 first, to start linux-cnc, and after that push green button on my machine)
Both buttons connected to different input pins on my 7i77 card.
Now i've configured E-stop (red button), so i can see condition of my external E-stop button in AxisGUI
But, which hal pin i need to connect with my green button to perform action like F2 does?
(At this moment, i must hit F2 first, to start linux-cnc, and after that push green button on my machine)
Last edit: 24 Jan 2015 03:14 by machete.
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 758
24 Jan 2015 03:57 #55303
by ArcEye
halui.machine.on
www.linuxcnc.org/docs/html/gui/halui.html
regards
Replied by ArcEye on topic Connecting external power-on button to Linux CNC
But, which hal pin i need to connect with my green button to perform action like F2 does?
halui.machine.on
www.linuxcnc.org/docs/html/gui/halui.html
regards
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 6
12 Oct 2022 04:37 #253998
by M4MazakUser
Replied by M4MazakUser on topic Connecting external power-on button to Linux CNC
Ok, so now here in 2022, WHAT IS THE MACHINE POWER ON BUTTON CALLED!!
Lol, I a been looking and I can't find anything to link (net) my power on button to.
Lol, I a been looking and I can't find anything to link (net) my power on button to.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11230
- Thank you received: 3755
12 Oct 2022 05:00 #253999
by rodw
Replied by rodw on topic Connecting external power-on button to Linux CNC
There are many ways to do this.
Here is one of them.
forum.linuxcnc.org/47-hal-examples/25861-external-e-stop
But this assumes that the reset button is the orange button in axis.
Probably the correct way is to use a safety relay with a momentary estop reset button (green button) and trigger a relay that sends 24 volts to an input attached to iocontrol.0.emc-enable-in something like this
Here is my safety relay wiring.
Here is one of them.
forum.linuxcnc.org/47-hal-examples/25861-external-e-stop
But this assumes that the reset button is the orange button in axis.
Probably the correct way is to use a safety relay with a momentary estop reset button (green button) and trigger a relay that sends 24 volts to an input attached to iocontrol.0.emc-enable-in something like this
# --- ESTOP-EXT ---
net estop-ext <= hm2_7i76e.0.7i76.0.0.input-04
net estop-ext => iocontrol.0.emc-enable-in
Here is my safety relay wiring.
Attachments:
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 6
12 Oct 2022 07:28 #254004
by M4MazakUser
Replied by M4MazakUser on topic Connecting external power-on button to Linux CNC
I'm fine with E-stop, it all links and works well, I just want to connect a push button to turn on the button to the right of the e-stop button in axis. The f2 keyboard key links to it. But I can't see what its called. All the axis enables seem to be linked to it.
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
12 Oct 2022 09:00 #254008
by phillc54
Replied by phillc54 on topic Connecting external power-on button to Linux CNC
halui.machine.on and halui.machine.off work for AXIS.
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 6
12 Oct 2022 10:26 #254013
by M4MazakUser
Replied by M4MazakUser on topic Connecting external power-on button to Linux CNC
I tried to net a pin to halui.machine.on
It just created the entity halui. Machine. On.
It just created the entity halui. Machine. On.
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
13 Oct 2022 03:24 #254053
by phillc54
Replied by phillc54 on topic Connecting external power-on button to Linux CNC
Hmm, it works here, using a 7i96 I connected the pins as below and input 1 will turn the machine on and off.
net power-on hm2_7i96.0.gpio.001.in halui.machine.on
net power-off hm2_7i96.0.gpio.001.in_not halui.machine.off
The following user(s) said Thank You: Masiwood123
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 6
17 Oct 2022 10:55 #254326
by M4MazakUser
Replied by M4MazakUser on topic Connecting external power-on button to Linux CNC
im going to try a different hal config tomorrow, pretty sure my old one was missing something that set up the halui pins
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 6
17 Oct 2022 11:02 #254327
by M4MazakUser
Replied by M4MazakUser on topic Connecting external power-on button to Linux CNC
pretty sure this was left out of my .ini file.
HALUI = halui
HALUI = halui
Please Log in or Create an account to join the conversation.
Time to create page: 0.140 seconds