how to jog axis in velocity mode

More
25 Nov 2009 07:46 #1189 by irkul
Background: I have the pendant with four pushbuttons X+, X-, Z+, Z-.
Pressing on any pushbuttons I want to move the appropriate axis in an appropriate direction with some velocity (simply let it be const=240mm/min).
I'm triing to do it so as was written in example. The difference is that I have no mpg and there is no need of mux4 and encoder components usage.
I have started with setting the Axis.0.jog-vel-mod=1 in the HAL configuration window, then i have set Axis.0.jog_scale=1, Axis.0.jog-counts=1 and ended with setting Axis.0.eneble=1. I'v expected that will move my X axis at least on indication, but there were no effects entirely.
What have I did wrong, may be i just misunderstood some thing?
Thanks, and forgive me my english.

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

More
25 Nov 2009 11:30 - 25 Nov 2009 11:31 #1192 by BigJohnT
For a simple button jog go to Machine/HAL Configuration and in the pins look to see that you have halui loaded.

You need to set the jog speed.

Then you need to connect your buttons to halui.jog.0.plus and minus for the X axis and 2 for the Z.

For example if you used the parallel port 10 as your jog x plus you might write in your postgui.hal file

setp halui.jog-speed 240
net jogXplus halui.jog.0.plus <= parport.0.pin-10-in
...

This is a good chapter to read on HAL

www.linuxcnc.org/docview/html//hal_basic_hal.html

John
Last edit: 25 Nov 2009 11:31 by BigJohnT.

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

More
25 Nov 2009 18:17 #1197 by irkul
Thanks, I will try it.

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

More
26 Nov 2009 16:52 #1207 by Andy123
This is a code I have with my pendant with MPG and Jog
I have independent axis selecton and only two jog buttons
(signals coming from USB interface)
....
net pend-jog-plus halui.jog.selected.plus <= input.0.btn-a
net pend-jog-minus halui.jog.selected.minus <= input.0.btn-b

setp halui.jog-speed 200

net mpg-x halui.joint.0.select <= input.0.btn-x
net mpg-y halui.joint.1.select <= input.0.btn-y
net mpg-z halui.joint.2.select <= input.0.btn-z
....

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

Time to create page: 0.122 seconds
Powered by Kunena Forum