select jog axis
- TimP
- Offline
- Senior Member
Less
More
- Posts: 66
- Thank you received: 9
22 Dec 2023 07:32 - 22 Dec 2023 07:33 #288808
by TimP
select jog axis was created by TimP
How to select jog radio button on axis screen from hal? Or feed override?
I have tried to set those pins
axis.x.jog-enable
halui.axis.x.select
halui.joint.0.select
`halshow` showing that they are changed, but AXIS UI still doesn't reflect it.
For feed override
I have tried to set those pins
axis.x.jog-enable
halui.axis.x.select
halui.joint.0.select
`halshow` showing that they are changed, but AXIS UI still doesn't reflect it.
For feed override
setp halui.feed-override.direct-value 1
setp halui.feed-override.count-enable 1
setp halui.feed-override.counts 8
setp halui.feed-override.scale 0.1
if i do setp halui.feed-override.counts 8 in halshow then it changes on AXIS UI, but why it doesn't work from hal file?
Also i have tried to do this from post_gui.hal same result
POSTGUI_HALFILE = postgui.hal
What is proper order to load those?
Last edit: 22 Dec 2023 07:33 by TimP.
Please Log in or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
Less
More
- Posts: 789
- Thank you received: 230
22 Dec 2023 16:32 #288826
by cakeslob
Replied by cakeslob on topic select jog axis
You might need to connect them to axisui pins
Please Log in or Create an account to join the conversation.
- Aciera
- Away
- Administrator
Less
More
- Posts: 3959
- Thank you received: 1714
22 Dec 2023 18:08 #288830
by Aciera
Replied by Aciera on topic select jog axis
Maybe this thread could be of interest:
forum.linuxcnc.org/38-general-linuxcnc-q...lect?start=10#281577
forum.linuxcnc.org/38-general-linuxcnc-q...lect?start=10#281577
The following user(s) said Thank You: TimP
Please Log in or Create an account to join the conversation.
- TimP
- Offline
- Senior Member
Less
More
- Posts: 66
- Thank you received: 9
22 Dec 2023 21:21 #288847
by TimP
Replied by TimP on topic select jog axis
i have only limited amount of pins from axisui, and none of them seems to fit for this
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7760
- Thank you received: 2055
22 Dec 2023 22:36 #288851
by cmorley
Replied by cmorley on topic select jog axis
try setting the scale before the counts
Please Log in or Create an account to join the conversation.
- TimP
- Offline
- Senior Member
Less
More
- Posts: 66
- Thank you received: 9
23 Dec 2023 08:58 #288872
by TimP
Replied by TimP on topic select jog axis
thnx, well script from that thread does something with unchecking x radio button, so need to figure out how to check other axis.
Please Log in or Create an account to join the conversation.
- TimP
- Offline
- Senior Member
Less
More
- Posts: 66
- Thank you received: 9
23 Dec 2023 09:02 #288873
by TimP
Replied by TimP on topic select jog axis
setting scale before counts didn't help. In every thread that i have seen there always was mention about proper order of loading elements, so how i can be sure they are loaded in proper order?
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10747
- Thank you received: 3543
23 Dec 2023 10:02 #288877
by rodw
Replied by rodw on topic select jog axis
Here is an example that decodes a 6 axis selector on a pendant that outputs a 3 bit output (3 pins). It uses a mux 8 and a select 8)
It also controls feed over ride and rapid override
You have to do a couple of data type conversions to make it work so its a bit long winded.
It also controls feed over ride and rapid override
You have to do a couple of data type conversions to make it work so its a bit long winded.
loadrt mux8 count=1
loadrt select8 count=1
loadrt conv_float_s32 names=pen-conv-float
loadrt conv_s32_bit names=pen-conv-s32
addf mux8.0 servo-thread
addf select8.0 servo-thread
addf pen-conv-float servo-thread
addf pen-conv-s32 servo-thread
#Axis Select (0=off, 1=x, 2=z, 3=y, na, 5=6, 6=4, 7=5)
setp mux8.0.in0 0
setp mux8.0.in1 1
setp mux8.0.in2 2
setp mux8.0.in3 3
setp mux8.0.in4 4
setp mux8.0.in5 5
setp mux8.0.in6 6
setp mux8.0.in7 7
net mux8-sel0 <= hm2_7i76e.0.7i76.0.0.input-13
net mux8-sel1 <= hm2_7i76e.0.7i76.0.0.input-14
net mux8-sel2 <= hm2_7i76e.0.7i76.0.0.input-15
net mux8-sel0 => mux8.0.sel0
net mux8-sel1 => mux8.0.sel1
net mux8-sel2 => mux8.0.sel2
setp pen-conv-float.clamp 0
net mux-float <= mux8.0.out
net mux-float => pen-conv-float.in
net mux-s32 <= pen-conv-float.out
net mux-s32 => select8.0.sel
net axis-select-x <= select8.0.out1
net axis-select-y <= select8.0.out3
net axis-select-z <= select8.0.out2
net axis-select-a <= select8.0.out6
net axis-select-5 <= select8.0.out7
net axis-select-6 <= select8.0.out5
net axis-select-x => axis.x.jog-enable
net axis-select-x => halui.axis.x.select
net axis-select-y => axis.y.jog-enable
net axis-select-y => halui.axis.y.select
net axis-select-z => axis.z.jog-enable
net axis-select-z => halui.axis.z.select
net axis-select-a => axis.a.jog-enable
net axis-select-a => halui.axis.a.select
net axis-select-5 => halui.feed-override.count-enable
net axis-select-6 => halui.rapid-override.count-enable
Please Log in or Create an account to join the conversation.
- TimP
- Offline
- Senior Member
Less
More
- Posts: 66
- Thank you received: 9
23 Dec 2023 15:37 #288921
by TimP
Replied by TimP on topic select jog axis
and it is also change those radio buttons on AXISUI?
because i kinda use same approach and in the end i set `axis.x.jog-enable` and `halui.axis.x.select` and it works but AXISUI doesn't reflect it in radio buttons.
because i kinda use same approach and in the end i set `axis.x.jog-enable` and `halui.axis.x.select` and it works but AXISUI doesn't reflect it in radio buttons.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7760
- Thank you received: 2055
23 Dec 2023 17:33 #288932
by cmorley
Replied by cmorley on topic select jog axis
Confirmed the override problem.
Since AXIS is not in it's update loop yet when postgui is called, I'm going to guess it doesn't notice the change nor sync state late enough.
Linuxcnc it's self has no concept of 'selected' joint/axis - only the GUIs do - and each one does it differently.
linuxcnc does have MPG axis/joint enable but that is probably not exactly what you meant and is separate from any other jogging mechanism.
AXIS has no default way to select axes/joints externally.
When you select axes/jog with halui pins, it's halui that is directing the jogging not AXIS or linuxcnc
There are ways to add HAL pins to AXIS to select axes using an axisrc file, but that comes with it's own potential problems.
Since AXIS is not in it's update loop yet when postgui is called, I'm going to guess it doesn't notice the change nor sync state late enough.
Linuxcnc it's self has no concept of 'selected' joint/axis - only the GUIs do - and each one does it differently.
linuxcnc does have MPG axis/joint enable but that is probably not exactly what you meant and is separate from any other jogging mechanism.
AXIS has no default way to select axes/joints externally.
When you select axes/jog with halui pins, it's halui that is directing the jogging not AXIS or linuxcnc
There are ways to add HAL pins to AXIS to select axes using an axisrc file, but that comes with it's own potential problems.
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds