Signal from Axis-GUI indicating the selecte axis

More
5 years 10 months ago #191540 by mwinterm
Hello,

I try to connect a jog-wheel to my system. I get the counts. However I would need a signal from the AXIS-GUI indicating me which axis is selected. In my logic this shold be

halui.axis.x.select

in the case of the x-axis. However no matter which Axis is select in the AXIS-GUI this signal always remains false. I'm using LinuxCNC 2.8.1.
Any help greatly appreciated.....

Regards,

Marc

Please Log in to join the conversation.

More
5 years 10 months ago #191545 by Benb
Try feedback pin halui.axis.0.is-selected

Please Log in to join the conversation.

More
5 years 10 months ago #191562 by cmorley
This won't work.
Linuxcnc does not have an global idea of selected axis. Each GUI has it's own idea of selected axis.

For AXIS try this:
axisui.jog.x

linuxcnc.org/docs/2.8/html/gui/axis.html#_user_hal_pins

Please Log in to join the conversation.

More
5 years 10 months ago #191691 by mwinterm
Thanks for the input.

axisui.jog.x

provides me the desired signal. I could also successfully wire it like

net axis-select-x halui.axis.x.select axisui.jog.x

However if I put this in my HAL-file I get the error on startup

Pin 'axisui.jog.x' does not exist

Looks like the axis-pins are not yet available when the HAL file is run....

Regards,

Marc

Please Log in to join the conversation.

More
5 years 10 months ago #191701 by cmorley
Glad it worked for you.
The command needs to go in the postgui.hal file.

Chris

Please Log in to join the conversation.

More
5 years 10 months ago #191765 by mwinterm
Great thanks! Didn't get beyond the main HAL-file yet....
postgui.hal however sounds quite suggestive.... :-)

Thanks again!

Please Log in to join the conversation.

Time to create page: 0.201 seconds
Powered by Kunena Forum