- Posts: 16
- Thank you received: 0
connect a signal to the AXIS power button?
I want to use the "machine power" button on the AXIS toolbar to control an output pin on the parallel port (which in turn controls an AC relay.) I cannot fine the name of any AXIS pin or signal that is associated with the "machine power" button. There is a status ("enabled".) There is a little text string in the status bar. There is an ijnternal state (c.state) on the python code. but there does not appear to ba a signal that I can attach to an output pin.
Am I missing something? I know that I can create a separate button using pyVCP, but that's sort of dumb considering that you must click the "machine power" button anyway.
Note that this is separate from spindle_enable. I have one of those, too, and it is successfully controllin an output pin, because it has a signal. The "machine on" controls master AC power to the DC supply that drives the stepper drivers, and also AC power to the spindle speed controller. The spindle speec controller then take a spindle_enable and a spindle_PWM.
Please Log in to join the conversation.
halui.machine.is-on
if not then look for a pin called:
axis.0.amp-enable-out
This is the amp enable for the X axis it will only be true when out of Estop and the machine is on.
There will probably be a signal connected to it already so use that signal
Please Log in to join the conversation.
John
Please Log in to join the conversation.
I must say that "amp-enable-out" is not exactly the name I would have chosen, but perhaps there is some history here. I am new to the CNC world.
Please Log in to join the conversation.
It just so happens that it also follows the machine power (which makes sense of course)
When EMC was first made it was made for servos ad servos usually have enable signals.
So that is why it is called what it is called.
Please Log in to join the conversation.
- Nondepietjes
- Offline
- Senior Member
-
- Posts: 55
- Thank you received: 0
I have a small question about this topic.
Can somebody tell me how to connect a pin to the machine enable button on axis.
How do i subscribe this in the .hal file?
Thanks in advance
Please Log in to join the conversation.
Please Log in to join the conversation.
cmorley wrote: If Your INI file loads HALUI then the pin is :
halui.machine.is-on
if not then look for a pin called:
axis.0.amp-enable-out
This is the amp enable for the X axis it will only be true when out of Estop and the machine is on.
There will probably be a signal connected to it already so use that signal
Hi cmorley, do you a reference in the documentation ? I did not find anything so far.
Please Log in to join the conversation.
linuxcnc.org/docs/2.7/html/man/man1/halui.1.htmlJC10 wrote: Hi cmorley, do you a reference in the documentation ? I did not find anything so far.
linuxcnc.org/docs/2.7/html/man/man9/motion.9.html
Please Log in to join the conversation.
