How to set default jog rate?
- Bats
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 7
I'd tried DEFAULT_LINEAR_VELOCITY, but apparently Gmoccapy doesn't use that.
I tried looking in the Gmoccapy docs and found this bit:
If the button shows the rabbit-icon, the scale is from min to max machine velocity.
...which makes sense, but doesn't help with defining the default.
Any advice?
-Bats
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3947
- Thank you received: 1705
I'd tried DEFAULT_LINEAR_VELOCITY, but apparently Gmoccapy doesn't use that.
Thats strange because it works for me in master. I change DEFAULT_LINEAR_VELOCITY in the [TRAJ] section of the INI and my preset position of the Jogging velocity slider changes.
[edit]
Just noticed that the documentation here: linuxcnc.org/docs/html/gui/gmoccapy.html#gmoccapy:traj-section
seems to put the DEFAULT_LINEAR_VELOCITY in the [DISPLAY] section of the INI and that does not work for me. So maybe that has changed.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23563
- Thank you received: 4859
github.com/LinuxCNC/linuxcnc/blob/master...y/getiniinfo.py#L225
It seems that Gnoccapy looks in [TRAJ]
This is not the same as other GUIs such as Axis:
github.com/LinuxCNC/linuxcnc/blob/master...cripts/axis.py#L3343
Which looks in [DISPLAY] first then [TRAJ]
Please Log in or Create an account to join the conversation.
- Bats
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 7
(and it's reassuring to know that I wasn't the only one confused by the docs. for once.)
-Bats
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
- Posts: 633
- Thank you received: 182
When one if the following parameters is set to 1 gmoccapy will initialize the default jog speed with zero.
setp gmoccapy.feed.feed-override.analog-enable 1
setp gmoccapy.spindle.spindle-override.analog-enable 1
setp gmoccapy.rapid.rapid-override.analog-enable 1
Does your configuration shows the same behaviour?
Of course that is not enabled:
setp gmoccapy.jog.jog-velocity.analog-enable 0
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
- Posts: 2075
- Thank you received: 406
That is how it is supposed to work!!!!!
If you enable analog value, you must set also the analog value!
Have you done that?
Norbert
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
- Posts: 633
- Thank you received: 182
I haven't enabled the analog value for the jog velocityIf you enable analog value, you must set also the analog value!
Have you done that?
setp gmoccapy.jog.jog-velocity.analog-enable 0
And that works, only the initial value is zero.
The fact is: Enabling of any analog signal leads to an initial zero of the jog speed.
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
- Posts: 2075
- Thank you received: 406
What are you triing to do?
The sliders can be used without connecting analog-value-enable
Norbert
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
- Posts: 633
- Thank you received: 182
- Feed Override,
- Rapid Override and
- Spindle Override
But the Jog Velocity I want to set by the GUI buttons.
In general this works, but after setting e.g. gmoccapy.spindle.spindle-override.analog-enable to 1 the Jog speed jumps to zero.
You can simply test this:
1. Run gmoccapy without any analog enabled.
2. Make sure you have a Jog speed > 0
3. Set gmoccapy.spindle.spindle-override.analog-enable to 1 with Halshow
You will see that the Jog speed display jumps to zero. It seems that the Jog speed slider is beeing resetted when the GUI is redrawn (because setting analog enabled removes the plus ans minus buttons)
I think that is not really intended. Or is it?
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
- Posts: 2075
- Thank you received: 406
I will test this on the next days, if it do react here also the way you discribed, it is a bug.
I will come back to this.
Norbert
Please Log in or Create an account to join the conversation.