external button jog speed
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
05 Mar 2019 20:52 #127819
by bevins
external button jog speed was created by bevins
I am trying to get external buttons in 2.8 pre to work like my VMC with 2.5 and it doesnt work. Must have changed along the way so I am trying different things now and cant seem to grasp.\
Something basic I am missing.
I try:
net jog-x-pos halui.axis.x.plus (mesa card input 7i84)
The axis moves but at 20ipm. My minimum jog speed is 50 and it shows up in axis that way but when I push the button the axis moves at 20 ipm. How can I change this behaviour without changing the jog in axis screen?
Something basic I am missing.
I try:
net jog-x-pos halui.axis.x.plus (mesa card input 7i84)
The axis moves but at 20ipm. My minimum jog speed is 50 and it shows up in axis that way but when I push the button the axis moves at 20 ipm. How can I change this behaviour without changing the jog in axis screen?
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
05 Mar 2019 20:59 #127822
by bevins
Replied by bevins on topic external button jog speed
setp halui.jog-speed 200 I guess I will try that.
Is halui.jog-speed is different than the jog speed slider in axis gui?
Is halui.jog-speed is different than the jog speed slider in axis gui?
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
05 Mar 2019 21:22 - 05 Mar 2019 22:29 #127828
by bevins
Replied by bevins on topic external button jog speed
halui.axis.jog-speed didnt work either.
halui.joint.jog-speed doesnt work either.
halui.joint.jog-speed doesnt work either.
Last edit: 05 Mar 2019 22:29 by bevins.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
06 Mar 2019 21:40 #127912
by bevins
Replied by bevins on topic external button jog speed
Any Clues?
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
06 Mar 2019 22:29 #127918
by bevins
Replied by bevins on topic external button jog speed
halui.max-velocity.value gets it value of 20 from where? hard code in the source?
That is what is given to halui.axis.jog-speed. linuxcnc starts up with 20. I cant seem to find a way to change it.
Is there an easy way?
That is what is given to halui.axis.jog-speed. linuxcnc starts up with 20. I cant seem to find a way to change it.
Is there an easy way?
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
Less
More
- Posts: 592
- Thank you received: 77
06 Mar 2019 22:43 #127921
by Leon82
Replied by Leon82 on topic external button jog speed
the display section of the ini?
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
07 Mar 2019 13:53 #127975
by bevins
Replied by bevins on topic external button jog speed
JT hepled me find the issue.
I had halui.max-velocity.value tied to jpg-speed in the xhc hal file for some reason.
I commented out that line and it works as expected. The external jog buttons works fine.
I had halui.max-velocity.value tied to jpg-speed in the xhc hal file for some reason.
I commented out that line and it works as expected. The external jog buttons works fine.
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
Less
More
- Posts: 1875
- Thank you received: 354
07 Mar 2019 16:04 - 07 Mar 2019 16:10 #127988
by pl7i92
Replied by pl7i92 on topic external button jog speed
Halui is always set in postgui_hal files
you can mux your speed together so more presses on the Button will give you up to 8Speeds
you can display this so you always see the Speed set in a pyvcp or glade view
you can mux your speed together so more presses on the Button will give you up to 8Speeds
you can display this so you always see the Speed set in a pyvcp or glade view
# jog Speed
loadrt mux8 count=2
addf mux8.0 servo-thread
addf mux8.1 servo-thread
#wheel speed per tick
setp mux8.0.in0 0
setp mux8.0.in1 0.1
setp mux8.0.in2 0.5
setp mux8.0.in3 0
setp mux8.0.in4 1
#speed for moving axes
setp mux8.1.in0 0 # this one must be 0 to prevent motion unless a button is pressed
setp mux8.1.in1 250
setp mux8.1.in2 1000
setp mux8.1.in3 0
setp mux8.1.in4 2500
# step logic
loadrt updown count=1
addf updown.0 servo-thread
setp updown.0.wrap true
setp updown.0.min 0
setp updown.0.max 6
net stepcount updown.0.countup <= xhc-hb04.button-step => xhc-hb04.stepsize-up
#reset step to zero
net updownreset updown.0.reset <= click_mode.single-click
#convert count s32 to float
loadrt conv_s32_float count=1
addf conv-s32-float.0 servo-thread
net conv-step conv-s32-float.0.in updown.0.count
#step signal compare
loadrt comp count=7
addf comp.0 servo-thread
addf comp.1 servo-thread
addf comp.2 servo-thread
addf comp.3 servo-thread
addf comp.4 servo-thread
addf comp.5 servo-thread
addf comp.6 servo-thread
setp comp.0.in0 0
setp comp.1.in0 1
setp comp.2.in0 2
setp comp.3.in0 3
setp comp.4.in0 4
setp comp.5.in0 5
setp comp.6.in0 6
loadrt or2 count=5
addf or2.0 servo-thread
addf or2.1 servo-thread
addf or2.2 servo-thread
addf or2.3 servo-thread
addf or2.4 servo-thread
net stepcounter-out conv-s32-float.0.out => comp.0.in1 comp.1.in1 comp.2.in1 comp.3.in1 comp.4.in1 comp.5.in1 comp.6.in1
#jog scale selector from step to mux
net scale-selectorA mux8.0.sel0 <= comp.1.equal => or2.0.in0
net scale-selectorB mux8.0.sel1 <= comp.2.equal => or2.0.in1
net scale-selectorC mux8.0.sel2 <= comp.3.equal => or2.1.in0
net led-wheel-sectorA or2.1.in1 <= or2.0.out
# postgui net pyvc-led-wheel or2.1.out => pyvcp.wheel_select
net jog-scale mux8.0.out => axis.0.jog-scale axis.1.jog-scale axis.2.jog-scale axis.3.jog-scale
net joy-speed-1 mux8.1.sel0 <= comp.4.equal => or2.2.in0
net joy-speed-2 mux8.1.sel1 <= comp.5.equal => or2.2.in1
net joy-speed-3 mux8.1.sel2 <= comp.6.equal => or2.3.in0
net led-button-sectorA or2.3.in1 <= or2.2.out
# postgui net pyvc-led-button or2.3.out => pyvcp.button_select
net joy-speed-final halui.jog-speed <= mux8.1.out
Last edit: 07 Mar 2019 16:10 by pl7i92. Reason: code
Please Log in or Create an account to join the conversation.
- lorisdag
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 2
20 Jun 2020 09:46 #172148
by lorisdag
Replied by lorisdag on topic external button jog speed
Salve ho anche io la necessità di fare un piccolo spostamento con l'asse y con un pulsante esterno ho provato in diversi modi ma non funziona
Please Log in or Create an account to join the conversation.
- lorisdag
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 2
20 Jun 2020 10:03 #172150
by lorisdag
Replied by lorisdag on topic external button jog speed
Ho usato questa configurazione
net halui.jog.1.plus <= parport.4.pin-09-in
net halui.jog.1.plus <= parport.4.pin-09-in
Please Log in or Create an account to join the conversation.
Time to create page: 0.122 seconds