7i76e: MPG and Analog inputs with pncconf?

More
7 years 9 months ago #124025 by rodw
We don't change jog speed with linuxcnc. We change the jog scale which sets how far you move per MPG click. eg. 1mm, 0.1mm, 0.01mm. Therefore, we need to set specific values with a switch or some other discrete input.

I didn't create the system I described. I just followed the example in the docs. linuxcnc.org/docs/html/examples/mpg.html

Personally, I think the potentiometer is a poor choice and suggest you replace it with a binary coded switch (or a multi pole rotary switch but it will use more inputs).

If you do persist with your potentiometer, I would have a look at the lincurve component, it should let you to map to an appropriate scale value as the voltage exceeds a specific voltage threshold but I have not used it.

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

More
7 years 9 months ago #124030 by Mike_Eitel
Hi
You have an example in the config i've send you in file mpg.hal.
Mike

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

More
7 years 9 months ago #124031 by trilobyte
Rod: i'd like to change the value of this slider in axis:

image missing http://www.trilobyte.ch/temp/axis.png

i would like to move this slider with the potentiometer. the step with of the mpgs is another thing.

sorry if I have written unclear

Peter

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

More
7 years 9 months ago #124036 by trilobyte
i'd like adjust the speed of continous jogging not jog with a given step with.
is this possible with a potentiometer via analog in?

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

More
7 years 9 months ago #124045 by rodw
There are .ini file variables used by the axis gui under the [DISPLAY] section to set the jog parameters. Your modified GUI needs to work with these or use an alternative method from .ini file variables to configure the GUI.

DEFAULT_LINEAR_VELOCITY sets the default jog speed.

For hardware, have a look at the halui component as it has a number of pins dealing with jogging which I understand are designed for hardware control.

However, if you have the MPG dials, I found you don't use continuous jogging as you'll just use the MPG with a scale of 1mm.

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

More
7 years 9 months ago #124046 by rodw
This pin might do what you want
halui.jogāˆ’speed

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

Moderators: cmorley
Time to create page: 1.193 seconds
Powered by Kunena Forum