motmod unlock_joints_mask not working
24 Apr 2021 11:47 #206945
by mwinterm
motmod unlock_joints_mask not working was created by mwinterm
Hello,
I have a machine which can lock the z-axis (joint2). To get the corresponding hal-pins I added to the motmod line
(00100000 = 0x20)
LinuxCNC starts as normally, no error but I still do not have the unlock and the is-unlocked pin available for joint 2.
I'm using LinuxCNC 2.8.1
Any help welcomed...
Best regards,
Marc
I have a machine which can lock the z-axis (joint2). To get the corresponding hal-pins I added to the motmod line
unlock_joints_mask=0x20
(00100000 = 0x20)
LinuxCNC starts as normally, no error but I still do not have the unlock and the is-unlocked pin available for joint 2.
I'm using LinuxCNC 2.8.1
Any help welcomed...
Best regards,
Marc
Please Log in or Create an account to join the conversation.
24 Apr 2021 12:03 #206946
by mwinterm
Replied by mwinterm on topic motmod unlock_joints_mask not working
I could somehow solve the problem by setting
But have no idea why this has to be 4. Does not correspond to the LSB Hex format required in the docu. This could rather make sense as decimal in RSB as 00000100 = 4.
Any comments?
Regards,
Marc
unlock_joints_mask=4
But have no idea why this has to be 4. Does not correspond to the LSB Hex format required in the docu. This could rather make sense as decimal in RSB as 00000100 = 4.
Any comments?
Regards,
Marc
Please Log in or Create an account to join the conversation.
24 Apr 2021 15:35 #206954
by PCW
Replied by PCW on topic motmod unlock_joints_mask not working
Masks are binary so 4 = 0100b -= joint 2
That is, the binary bit number is the joint
0x20 would be 0010000b = joint 5
That is, the binary bit number is the joint
0x20 would be 0010000b = joint 5
Please Log in or Create an account to join the conversation.
25 Apr 2021 21:36 #207044
by mwinterm
Replied by mwinterm on topic motmod unlock_joints_mask not working
Thanks, was my mistake....
I interpreted LSB = Left Side Bit instead of Least Significant Bit.
Regards,
Marc
I interpreted LSB = Left Side Bit instead of Least Significant Bit.
Regards,
Marc
Please Log in or Create an account to join the conversation.
29 Apr 2021 11:17 #207359
by andypugh
Replied by andypugh on topic motmod unlock_joints_mask not working
Does it actually work for you? I think that locking joints are currently limited to G0 moves only.
Please Log in or Create an account to join the conversation.
29 Apr 2021 15:11 #207381
by mwinterm
Replied by mwinterm on topic motmod unlock_joints_mask not working
Yes, that might be. Did not test it yet on the machine....
Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
03 Dec 2021 07:02 #228260
by HalaszAttila
Replied by HalaszAttila on topic motmod unlock_joints_mask not working
I tested it with 2.8.2 version, the joint.N.unlock -> joint.N.is-unlocked pins are works just during homing. After the axis homed the brake locks (unlock pins goes to 0).
But neither G0 and G1 move does`t set the unlock pin to 1 before moving (is-unlocked pin = 0). The axis starts moving with locked brakes.
The axis jogging and MPG jogging is inhibited, like in preveous version (get alarm message).
But neither G0 and G1 move does`t set the unlock pin to 1 before moving (is-unlocked pin = 0). The axis starts moving with locked brakes.
The axis jogging and MPG jogging is inhibited, like in preveous version (get alarm message).
Please Log in or Create an account to join the conversation.
10 Jan 2022 00:03 #231270
by andypugh
Replied by andypugh on topic motmod unlock_joints_mask not working
I have just tested and I think that I am seeing the expected behaviour.
Though quite possibly the behaviour is not what is expected.
locking joints only works for rotary joints and joints associated with the axes A, B and C.
And even then, only with G0.
Which joints are and axes are you trying to use locking_indexer with?
I do think that the restrictions on locking_indexer are a bit arbitrary, I can see that the function would be useful for some other (rare) cases.
One case would be for running the machines that have one motor and a system of clutches. Though for thode to work it would need to be extended to G1. I am not sure that it would ever make sense to allow it with G2 or G3.
Though quite possibly the behaviour is not what is expected.
locking joints only works for rotary joints and joints associated with the axes A, B and C.
And even then, only with G0.
Which joints are and axes are you trying to use locking_indexer with?
I do think that the restrictions on locking_indexer are a bit arbitrary, I can see that the function would be useful for some other (rare) cases.
One case would be for running the machines that have one motor and a system of clutches. Though for thode to work it would need to be extended to G1. I am not sure that it would ever make sense to allow it with G2 or G3.
Please Log in or Create an account to join the conversation.
Time to create page: 0.158 seconds