Hello Aceria (and others).
I’m wanting to have the same jog speed control that you achieved for the same reasons. I currently use small encoders for Feed Override and Rapid Override and this code:
Code:
#load manual override encoders
loadrt encoder num_chan=2
addf encoder.capture-position servo-thread
addf encoder.update-counters servo-thread
# connect feed-override encoder
setp encoder.0.x4-mode 1
net fo-chanA hm2_5i25.0.7i77.0.0.input-15 => encoder.0.phase-A
net fo-chanB hm2_5i25.0.7i77.0.0.input-17 => encoder.0.phase-B
net output encoder.0.counts => halui.feed-override.counts
setp halui.feed-override.count-enable 1
setp halui.feed-override.scale 0.02
# connect rapid-override encoder
setp encoder.1.x4-mode 1
net ro-chanA hm2_5i25.0.7i77.0.0.input-18 => encoder.1.phase-A
net ro-chanB hm2_5i25.0.7i77.0.0.input-19 => encoder.1.phase-B
net ro-output encoder.1.counts => halui.rapid-override.counts
setp halui.rapid-override.count-enable 1
setp halui.rapid-override.scale 0.05
I was hoping to do the same thing for Jog-Speed but I found as you did there are no similar halui pins to use for a Jog Override. It’s too bad because these little encoders are sweet, they have no rotation stops and you can set the scaling as fine as you wish. I was searching the forum to see if anyone has created halui pins for this application or what it would entail to create them when I found your post.
If you don’t mind could you share the relevant code that gave you this control.
I’m assuming you took advantage of the halui.jog.analog pin? Did you use something like a 10k pot?
Or, maybe there’s another way of using the encoder. I’m running 2.7.14 and still a relative noob. I bet Andy – Todd -Chris you guys have something slick that works for encoders. I’m glad you all are out there. I read through so many posts that you all are involved in I can almost hear voices now.
Thanks
Doug