MPG working with joint but not with axis ???

More
15 Aug 2022 07:39 #249758 by JPL
This is portion of the HAL file (mostly) generated by PncConf:

# ---jogwheel signals to mesa encoder - x axis MPG---
net x-jog-count          <=  hm2_7i92.0.7i77.0.0.enc0.count

#  ---mpg signals---
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
sets x-jog-enable    true
sets selected-jog-incr     1.00000

This is NOT working, although axis.x.jog-counts is updated correctly.

Now, replacing axis.x with joint.0 as below make this work correctly:
#  ---mpg signals---
#setp  joint.0.jog-vel-mode 0
#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

Can someone explain why this work only with joint ???

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

More
15 Aug 2022 16:48 #249801 by cmorley
To confirm it won't jog axis _after_ homing?
The following user(s) said Thank You: JPL

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

More
15 Aug 2022 17:12 - 15 Aug 2022 17:20 #249805 by JPL
The original version generated by pncconf (with axis.x) is not working at all. Neither before or after homing.

The modified version with joint.0 is working both before and after homing.

(I can jog using the interface jog button with both versions ( with axis.x or joint.0))

Note that my config does not require homing before MDI/running. I'm really wondering since I'm using the downloadable 'official' ISO v2.8.2 (now updated to 2.8.3).
Last edit: 15 Aug 2022 17:20 by JPL.

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

More
15 Aug 2022 19:46 #249815 by cmorley
can you post all your config flles?
You can jog a joint before homing.
Jogging an axis requires homing.
There are no axis until a joint is homed.

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

More
15 Aug 2022 23:13 #249841 by JPL
See 'JPL_test03.hal' attached. This is working with the file with 'joint.0'as it is but have a look at the lines after  "---mpg signals". If I uncomment the original 6 lines generated by pncConf and comment the 6 lines right after that this will not work, which is puzzling me.

Also note that my version of pncConf is still generating the "setp hm2_7i92.0.stepgen.timer-number 1" line that I commented (lines 28 and 29). This is obviously wrong since I'm using 7i92 -> 7i77, thus no stepgen.

Thanks for having a look.

 
Attachments:

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

More
15 Aug 2022 23:19 #249843 by JPL

There are no axis until a joint is homed.


But what if it NO_FORCE_HOMING is set to 1 as I did ?

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

More
16 Aug 2022 00:46 #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
16 Aug 2022 01:07 #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


 

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

More
16 Aug 2022 10:01 #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
16 Aug 2022 22:28 #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.

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