Change jog speed while jogging?

More
7 years 1 week ago #148398 by fixer
changing the value of halui.jog−speed while joging works in 2.7. I have it connected to the same potentiometer as feed and rapid override.

Please Log in or Create an account to join the conversation.

More
7 years 1 week ago #148400 by Aciera
Thanks fixer for that information. That sounds like the exact setup im trying to achieve!
Would you consider sharing the relevant Hal sections?

Please Log in or Create an account to join the conversation.

More
7 years 1 week ago #148524 by Aciera
OK, so I,ve got this working to the point where I can jog the axis by pressing an external switch and dynamically change the jog-speed by turning a potmeter. I do this by using the Potmeter value and feeding it to halui.jog-speed.
Unfortunately now the keyboard cursor-keys do not work for jogging anymore. Does anybody know how to connect the keyboard-cursor-keys in HAL (gmoccapy)?
Thanks

Please Log in or Create an account to join the conversation.

More
7 years 1 week ago #148655 by andypugh
You can't connect keyboard jogging to HAL.

Keyboard jogging is handled by the GUI (And is an abomination). Best not to use it at all, really.

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #170894 by Doug Crews
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

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #170908 by Aciera
Doug,
I use potentiometers and gmoccapy. As far as I remember there are also pins for encoder feed overrides in gmoccapy. I can't help you much with axis gui.
So if you are interested in the gmoccapy approach let me know and I will upload my config.

Please Log in or Create an account to join the conversation.

Time to create page: 0.231 seconds
Powered by Kunena Forum