Signal from Axis-GUI indicating the selecte axis
09 Dec 2020 22:51 #191540
by mwinterm
Signal from Axis-GUI indicating the selecte axis was created 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
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 or Create an account to join the conversation.
10 Dec 2020 01:33 - 10 Dec 2020 01:34 #191545
by Benb
Replied by Benb on topic Signal from Axis-GUI indicating the selecte axis
Try feedback pin halui.axis.0.is-selected
Last edit: 10 Dec 2020 01:34 by Benb.
Please Log in or Create an account to join the conversation.
10 Dec 2020 04:53 #191562
by cmorley
Replied by cmorley on topic Signal from Axis-GUI indicating the selecte axis
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
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 or Create an account to join the conversation.
11 Dec 2020 22:32 #191691
by mwinterm
Replied by mwinterm on topic Signal from Axis-GUI indicating the selecte axis
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
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 or Create an account to join the conversation.
12 Dec 2020 01:21 #191701
by cmorley
Replied by cmorley on topic Signal from Axis-GUI indicating the selecte axis
Glad it worked for you.
The command needs to go in the postgui.hal file.
Chris
The command needs to go in the postgui.hal file.
Chris
Please Log in or Create an account to join the conversation.
12 Dec 2020 19:00 #191765
by mwinterm
Replied by mwinterm on topic Signal from Axis-GUI indicating the selecte axis
Great thanks! Didn't get beyond the main HAL-file yet....
postgui.hal however sounds quite suggestive....
Thanks again!
postgui.hal however sounds quite suggestive....
Thanks again!
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds