How to set default jog rate?

More
30 Jun 2020 00:15 #173157 by Bats
The title pretty much sums it up. How would I go about changing Gmoccapy's jog rate slider position on startup from the current default of 6ipm to something a little more practical?

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.

More
30 Jun 2020 05:24 - 30 Jun 2020 05:34 #173175 by Aciera
Replied by Aciera on topic How to set default jog rate?

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.
Last edit: 30 Jun 2020 05:34 by Aciera.

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

More
30 Jun 2020 23:20 #173242 by andypugh
If in doubt, look in the code:
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.

More
01 Jul 2020 00:56 #173267 by Bats
Replied by Bats on topic How to set default jog rate?
Ok, the TRAJ version does it. Thanks, guys - for such a little thing, that was really driving me crazy.

(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.

More
11 Dec 2020 16:45 #191674 by HansU
Replied by HansU on topic How to set default jog rate?
I have a similar issue.

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.

More
11 Dec 2020 17:39 #191683 by newbynobi
Of course it does!
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.

More
11 Dec 2020 21:38 - 11 Dec 2020 21:41 #191689 by HansU
Replied by HansU on topic How to set default jog rate?

If you enable analog value, you must set also the analog value!
Have you done that?

I haven't enabled the analog value for the jog velocity
setp gmoccapy.jog.jog-velocity.analog-enable         0
because I want to set this on the screen.
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.
Last edit: 11 Dec 2020 21:41 by HansU.

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

More
13 Dec 2020 10:09 #191838 by newbynobi
Yes, and that is how it is supposed to work! This Pins are designed to be able to connect a physical potentiometer to control speeds. So if you not connected any signal to analog value, it will be zero!

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.

More
15 Dec 2020 19:13 #192066 by HansU
Replied by HansU on topic How to set default jog rate?
I want so set the
  • Feed Override,
  • Rapid Override and
  • Spindle Override
by an analog input.
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.

More
19 Dec 2020 15:28 #192458 by newbynobi
Ok, now I got it. Setting spindle analog enable should not take any influence to jog speed or any other sliders, than the spindle override.
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.

Moderators: newbynobiHansU
Time to create page: 0.182 seconds
Powered by Kunena Forum