Connecting external power-on button to Linux CNC

More
24 Jan 2015 03:12 - 24 Jan 2015 03:14 #55299 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)
Last edit: 24 Jan 2015 03:14 by machete.

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

More
24 Jan 2015 03:57 #55303 by ArcEye

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.

More
12 Oct 2022 04:37 #253998 by M4MazakUser
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.

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

More
12 Oct 2022 05:00 #253999 by rodw
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
# --- 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.
 

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

 
Attachments:

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

More
12 Oct 2022 07:28 #254004 by M4MazakUser
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.

More
12 Oct 2022 09:00 #254008 by phillc54
halui.machine.on and halui.machine.off work for AXIS.

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

More
12 Oct 2022 10:26 #254013 by M4MazakUser
I tried to net a pin to halui.machine.on
It just created the entity halui. Machine. On.

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

More
13 Oct 2022 03:24 #254053 by phillc54
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.

More
17 Oct 2022 10:55 #254326 by M4MazakUser
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.

More
17 Oct 2022 11:02 #254327 by M4MazakUser
pretty sure this was left out of my .ini file.

HALUI = halui

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

Time to create page: 0.088 seconds
Powered by Kunena Forum