PID Setting for drifting axis

More
21 Nov 2016 12:05 #83060 by Chre9
Replied by Chre9 on topic PID Setting for drifting axis
We just changed the output scale to -10 and everything works out perfectly. :woohoo:
Thanks for your help!!

We also added all the soft stop configuration without problems and a hand device that includes a turning wheel
and a switch to select the axis.
Now we also want to add a plus and a minus button to drive the axis, but don't know which output we have to connect to the signals of the buttons. Thanks in advance!

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

More
21 Nov 2016 13:19 #83071 by andypugh
Have a look in halui. I think that is where the jog-plus and jog-minus pins live.

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

More
25 Nov 2016 12:54 #83269 by Chre9
Replied by Chre9 on topic PID Setting for drifting axis
Alright, we figured out, that we can either use
net jog-x-pos halui.jog.0.plus <= hm2_5i20.0.gpio.054.in_not
net jog-x-neg halui.jog.0.minus <= hm2_5i20.0.gpio.056.in_not

or

net jog-selected-pos halui.jog.selected.plus <= hm2_5i20.0.gpio.054.in_not
net jog-selected-neg halui.jog.selected.minus <= hm2_5i20.0.gpio.056.in_not

to jog the axis. Is that right?
The signals can be set true, by pushing the buttons, but the machine doesn't do anything.
Do we have to enable halui in some way?

Thanks in advance!

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

More
25 Nov 2016 13:25 #83270 by andypugh
The choice of jog.selected or jog.N depends on whether yo have buttons per-axis or a selector.

Are you setting the halui.jog-speed pin? If that is zero you will jog at zero speed, which might be indistinguishable from not jogging at all. :-)
The following user(s) said Thank You: Chre9

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

More
27 Nov 2016 19:34 - 27 Nov 2016 19:34 #83382 by Chre9
Replied by Chre9 on topic PID Setting for drifting axis
Thanks, that makes sense :lol:

One last thing we would like to add is a button, that makes the selected axis drive faster, while pressed.
Is there a pin for this? Otherwise, what's the best way to action it?

Regards!
Last edit: 27 Nov 2016 19:34 by Chre9.

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

More
29 Nov 2016 12:52 #83426 by andypugh
Often you set the jog speed using a mux-component.
One example is here, in section 5:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant

The mux4 is set up to pass one of 4 possible speeds to the jog-speed input. In the case shown, for safety, one speed is zero.
That example uses the or2 component to get 3 speeds + 0 from the mux4 with 3 buttons. A simpler setup just uses the mux and the button inputs to give slow for one button, fast for the other, and very fast for both. I used this setup on a joypad on the two rear buttons and it worked very nicely.

linuxcnc.org/docs/2.7/html/man/man9/mux4.9.html
The following user(s) said Thank You: Chre9

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

More
01 Dec 2016 13:29 #83520 by Chre9
Replied by Chre9 on topic PID Setting for drifting axis
We used a mux2 function for either button pressed, or not pressed:

net speed_mode hm2_5i20.0.gpio.058.in_not => mux2.0.sel
setp mux2.0.in1 200
setp mux2.0.in0 20
net jog-speed halui.jog-speed <= mux2.0.out

Works perfectly, thank you! :)

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

Time to create page: 0.296 seconds
Powered by Kunena Forum