Thanks for the offer David,
But I’m too new to migrate away from Axis for the time being. Good to know there are options.
I’ve been testing Andy’s suggestion and have only been able to get the encoder to behave like an MPG. I tried a few different scenarios but in order to get the jog to move I had to include axis.N.enable which only moves when the encoder count changes. I linked the jog button to the axis.n.enable but it only made me haft to push and hold the jog button while turning the encoder for the jog to move. It moves like a typical MpG incrementing..its been a good exercise.
So it seems there’s two paths to jogging, one is through halui and the other is through the motion module. I have them both set-up but haven’t had the guts get a jog going using halui while turning the nob on the encoder that is sending discrete incremental pulses via motion module…don’t know what will happen.! Don’t want to break my new “Precious”
Changing the jog speed while jogging would be great, but a next best thing would be to have the jog speed value update to a newly selected value when the button is off so at the next press its jogging at the new speed.
This behavior seems like something that could be done in haui. This code works, But it’s a fixed at a rate. 60 in/min.
Code:
setp halui.jog-speed 60
net jog-x-pos <= halui.jog.0.plus <= hm2_5i25.0.7i77.0.0.input-20
Is there a way to have signal / variable in place of the 60? Something tied to a selector switch with a couple of choices that I could set would be good.
As usual thank you all.
-Doug