LinuxCNCrsh: rel_act_pos & abs_act_pos values?
07 Jul 2012 17:10 #21674
by billooms
Replied by billooms on topic Re:LinuxCNCrsh: rel_act_pos & abs_act_pos values?
Thanks for your attention to this matter.
Let me know when a fix is available. For now, I'm getting abs_act_pos and subtracting half of pos_offset. When a fix is available, I'll go back to using rel_act_pos.
Let me know when a fix is available. For now, I'm getting abs_act_pos and subtracting half of pos_offset. When a fix is available, I'll go back to using rel_act_pos.
Please Log in or Create an account to join the conversation.
07 Jul 2012 23:55 #21683
by andypugh
Replied by andypugh on topic Re:LinuxCNCrsh: rel_act_pos & abs_act_pos values?
The patch has been pushed. I am not sure how healthy the buildbot is at the moment, though.
If you have a locally-compiled version of LinuxCNC then it is a fairly simple set of changes:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...1804877436def51de56c
If you have a locally-compiled version of LinuxCNC then it is a fairly simple set of changes:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...1804877436def51de56c
Please Log in or Create an account to join the conversation.
08 Jul 2012 00:03 #21685
by billooms
Replied by billooms on topic Re:LinuxCNCrsh: rel_act_pos & abs_act_pos values?
I don't have a locally-compiled version of LinuxCNC. I was hoping that as some point I could just download a modified (compiled) version of linuxcncrsh. I'm not in any big rush -- it's not stopping me from working.
Please Log in or Create an account to join the conversation.
08 Jul 2012 00:08 - 08 Jul 2012 00:10 #21687
by andypugh
Replied by andypugh on topic Re:LinuxCNCrsh: rel_act_pos & abs_act_pos values?
billooms wrote:
You can try this one, but I think that the chances of it being correctly linked are rather slim.I was hoping that as some point I could just download a modified (compiled) version of linuxcncrsh.
Last edit: 08 Jul 2012 00:10 by andypugh.
Please Log in or Create an account to join the conversation.
08 Jul 2012 14:30 - 08 Jul 2012 14:32 #21691
by ArcEye
Replied by ArcEye on topic Re:LinuxCNCrsh: rel_act_pos & abs_act_pos values?
Hi Andy
However I named your diff linuxcncrsh.patch and ran patch -p1 < ./linuxcncrsh.patch from the root of the source tree and it patched and compiled fine
The resulting binary did work and below is the output from the same test I did previously
So it appears OK, the relative and machine positions are correct and the offset is correct at 10 not 20.
Well done
My binary attached below in case that works better on someone else's system
regards
The binary didn't work, "could not connect to emc" error for some reason.You can try this one, but I think that the chances of it being correctly linked are rather slim.
However I named your diff linuxcncrsh.patch and ran patch -p1 < ./linuxcncrsh.patch from the root of the source tree and it patched and compiled fine
The resulting binary did work and below is the output from the same test I did previously
hello EMC x x
Connected to x
HELLO ACK EMCNETSVR 1.1
set enable EMCTOO
set enable EMCTOO
set echo off
set echo off
set verbose off
set set_wait none
(Homed at G53 X0 Y0 Z0 then G54 touched off to G53 X10 Y10 Z10)
get abs_act_pos
ABS_ACT_POS 10.000000 10.000000 10.000000 0.000000 0.000000 0.000000
get rel_act_pos
REL_ACT_POS 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
get joint_pos
JOINT_POS 10.000000 10.000000 10.000000 0.000000 0.000000 0.000000
get pos_offset
POS_OFFSET 10.000000 10.000000 10.000000 0.000000 0.000000 0.000000
(# after executing G54 G0 X90 Y87 Z50)
get abs_act_pos
ABS_ACT_POS 100.000000 97.000000 60.000000 0.000000 0.000000 0.000000
get rel_act_pos
REL_ACT_POS 90.000000 87.000000 50.000000 0.000000 0.000000 0.000000
get joint_pos
JOINT_POS 100.000000 97.000000 60.000000 0.000000 0.000000 0.000000
get pos_offset
POS_OFFSET 10.000000 10.000000 10.000000 0.000000 0.000000 0.000000
quit
So it appears OK, the relative and machine positions are correct and the offset is correct at 10 not 20.
Well done
My binary attached below in case that works better on someone else's system
regards
Last edit: 08 Jul 2012 14:32 by ArcEye.
Please Log in or Create an account to join the conversation.
08 Jul 2012 15:07 #21694
by billooms
Replied by billooms on topic Re:LinuxCNCrsh: rel_act_pos & abs_act_pos values?
The binaries did not work for me either.
Perhaps later today I'll have the time to download the sources and do the patch.
Perhaps later today I'll have the time to download the sources and do the patch.
Please Log in or Create an account to join the conversation.
10 Jul 2012 20:32 #21760
by billooms
Replied by billooms on topic Re:LinuxCNCrsh: rel_act_pos & abs_act_pos values?
I have the sources downloaded and did the patch, and it now gives the expected results.
Thanks to all for your help!
Thanks to all for your help!
Please Log in or Create an account to join the conversation.
Time to create page: 0.073 seconds