Connecting external power-on button to Linux CNC

More
11 years 9 months ago #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)

Please Log in to join the conversation.

More
11 years 9 months ago #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 to join the conversation.

More
4 years 2 weeks ago #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 to join the conversation.

More
4 years 2 weeks ago #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
Code:
# --- 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.
 

Attachment not found

 

Please Log in to join the conversation.

More
4 years 2 weeks ago #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 to join the conversation.

More
4 years 2 weeks ago #254008 by phillc54
halui.machine.on and halui.machine.off work for AXIS.

Please Log in to join the conversation.

More
4 years 2 weeks ago #254013 by M4MazakUser
I tried to net a pin to halui.machine.on
It just created the entity halui. Machine. On.

Please Log in to join the conversation.

More
4 years 2 weeks ago #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.
Code:
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

Please Log in to join the conversation.

More
4 years 2 weeks ago #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 to join the conversation.

More
4 years 2 weeks ago #254327 by M4MazakUser
pretty sure this was left out of my .ini file.

HALUI = halui

Please Log in to join the conversation.

Time to create page: 0.078 seconds
Powered by Kunena Forum