- Posts: 2203
- Thank you received: 0
Configuring axis gui "axis radio buttons"
I have working mpg's on three axis X,Y,Z and I would like them to change the position of the radio buttons in the gui depending on which mpg is turned. Is this possible.
This is a test system with two PP. Can anybody help with some sample code. Thanks.
Attachment not found
Attachment not found
Please Log in to join the conversation.
You can jog the individual axes independently absolutely regardless of the Axis radio buttons. Why do you want them to change?
Please Log in to join the conversation.
andypugh wrote: I don't think that you actually need this. (and you might not want it either).
You can jog the individual axes independently absolutely regardless of the Axis radio buttons. Why do you want them to change?
Thank you Andy. The reason is that sometimes I jog the x axis when the radio button is on the Z axis and then touch off without looking where the radio button is. So it would be nice if the radio buttons followed the mpg's. Perhaps I am being stupid:(
Please Log in to join the conversation.
Please Log in to join the conversation.
andypugh wrote: I don't think you are being stupid, I don't actually think that there is a way to make the axis radio buttons change except from the GUI.
Thanks again. I accept your wisdom and will give that a miss then. As the pmg's work fine
My next challenge then is to put two pots on my panel to change the feed rate and possibly spindle speed could this be done to reflect what the sliders show in AXIS?
Please Log in to join the conversation.
It's probably better not to use dire-value and to use little pot-shaped encoders for the overrides, they play together better with Axis.
This sort of thing:
If you have a switch it ought to be possible to set push=100% which might be useful.
Please Log in to join the conversation.
andypugh wrote: It works the other way. If you change halui.spindle-override.counts and halui.spindle-override.direct-value is true (which is what you need for pots) then the axis sliders move to agree. [/quote
Thanks. I have ordered the encoders. Would you mind pointing me in the direction of some example code . I will be using this with mesa 5i25/7i76 or could it also be done with a PP. as I have both.
Please Log in to join the conversation.
Clive s wrote:
andypugh wrote: It works the other way. If you change halui.spindle-override.counts and halui.spindle-override.direct-value is true (which is what you need for pots) then the axis sliders move to agree.
Thanks. I have ordered the encoders. Would you mind pointing me in the direction of some example code . I will be using this with mesa 5i25/7i76 or could it also be done with a PP. as I have both.
What are you using for your current MPGs and spindle encoders?
I imagine you are out of hardware encoder counters, but for a HMI encoder the 1000Hz servo rate is OK and you can use the software encoder. (you don't even notice the odd missed count)
Please Log in to join the conversation.
andypugh wrote:
Clive s wrote:
andypugh wrote: It works the other way. If you change halui.spindle-override.counts and halui.spindle-override.direct-value is true (which is what you need for pots) then the axis sliders move to agree.
Thanks. I have ordered the encoders. Would you mind pointing me in the direction of some example code . I will be using this with mesa 5i25/7i76 or could it also be done with a PP. as I have both.
What are you using for your current MPGs and spindle encoders?
I imagine you are out of hardware encoder counters, but for a HMI encoder the 1000Hz servo rate is OK and you can use the software encoder. (you don't even notice the odd missed count)
OK sorry I think I am confusing the issue. I have a working mill and small lathe using the 5i25/7i76 Using two different configs with the same control box. the lathe uses the TB3 pins encoder for threading (spindle has no speed control)
mill and lathe uses TB5 inputs 16,17,18,19 for two mpg's (jogging) No spindle speed control on either.
But I have a mock up test system on the bench using two PP to try and get proof of concept to get the sliders working.
My goal is get the PP system working before I play with the mill/lathe setup. I have a config that using the two PP. with two mpg's connected to jog. So is it possible to using this system with the encoder (pots) I have ordered. with inputs to the PP starting with feed override. using version 2.7.11
Please Log in to join the conversation.
If you run a base-thread then the p-port can count faster than you can twirl the knobs. If you use the mesa IO then the inputs can only be sampled at 1kHz, so if you twirl very fast you will lose counts. But you won't notice.
Please Log in to join the conversation.
