MPG working with joint but not with axis ???

More
4 years 2 months ago #249846 by cmorley
That allows you to jog In joint mode before homing.

You must home to jog as an axis.
The following user(s) said Thank You: JT

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

More
4 years 2 months ago #249847 by JPL
Tested again... same results...

- Home axis x with the "HOME AXIS" button
- Verified that 'x-is-homed' signal is TRUE  (using 'show hal configuration')
- Result: X axis does NOT move with the MPG
...

- Changed 'axis.x' to 'joint.0' in hal file  (4 places as shown in the uploaded file)
- Restart LinuxCnc
- Now I can jog with the MPG both before and after homing

image missing /media/kunena/emoticons/dizzy.png
 

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

More
4 years 2 months ago #249871 by rodw
Something sounds odd in your config.  I have been using a 6 axis mpg with axis counts for about 5 years.
But I always home the machine with home all before I use the MPG. 
In fact I don't even even think about moving anything until the machine is homed.
I think all axes likely need homing before your MPG is used..
The following user(s) said Thank You: JPL

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

More
4 years 2 months ago #249923 by cmorley
You can jog in joint or axis mode - they are just separate in 2.8 +
Choosing to allow jogging before homing is an integrator choice.

But jogging the joint after homing doesn't seem right. You usually have to set it back into joint mode IIRC.

Seems I'm missing something.

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

More
4 years 2 months ago #249925 by JPL
Mystery Solved!!!  image missing /media/kunena/emoticons/wink.png

The reason why the MPG was not working with 'axis.x' is simply because ALL the axis should be homed before that. Not just the single axis controlled by the MPG. I did not realized that on my (lathe) config since I had only one motor connected for the x axis and did not even tried to home the z axis because of that.

More specifically it appears that jogging axis is allowed only in teleop mode while jogging joints is only allowed in Joint-mode (aka Free mode)...

But this, for example, will allow jogging in both mode: (although not recommended)

setp    axis.x.jog-vel-mode 0
net x-jog-enable         =>  axis.x.jog-enable
net x-jog-count          =>  axis.x.jog-counts
net selected-jog-incr    =>  axis.x.jog-scale


net x-jog-enable         =>  joint.0.jog-enable
net x-jog-count          =>  joint.0.jog-counts
net selected-jog-incr    =>  joint.0.jog-scale

sets x-jog-enable    true
sets selected-jog-incr     1.00000

 

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

More
4 years 2 months ago #249926 by JPL

I think all axes likely need homing before your MPG is used..
 
Aka Rod was right image missing /media/kunena/emoticons/laughing.png
The following user(s) said Thank You: rodw

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

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