M70 and G64
29 Jun 2021 16:28 #213247
by rajewski
M70 and G64 was created by rajewski
I created a custom tool change macro that overrides M6 and in it I set G61 to ensure there won't be any collisions. I want the tool change to restore the path control mode once it is done so I used M70. According to the docs, it saves "path control mode (G61, G61.1, G64)"
I see that the mode is correctly switched from G61 back to G64 when the tool change happens. However, I don't think it is restoring the "P" value for G64. I set G64 P0.1 (mm) at the start of my gcode but I saw some huge curves (2+mm) after the tool change. It looks like it is just doing G64 with no P value.
Basically my same question was asked a few years back hereĀ forum.linuxcnc.org/40-subroutines-and-ng...re-path-control-mode
Is M70 supposed to restore the tolerance for G64? If not, is there a way to save/restore whatever it was? Do I need to edit my post processor to issue a G64 after each tool change?
I see that the mode is correctly switched from G61 back to G64 when the tool change happens. However, I don't think it is restoring the "P" value for G64. I set G64 P0.1 (mm) at the start of my gcode but I saw some huge curves (2+mm) after the tool change. It looks like it is just doing G64 with no P value.
Basically my same question was asked a few years back hereĀ forum.linuxcnc.org/40-subroutines-and-ng...re-path-control-mode
Is M70 supposed to restore the tolerance for G64? If not, is there a way to save/restore whatever it was? Do I need to edit my post processor to issue a G64 after each tool change?
Please Log in or Create an account to join the conversation.
29 Jun 2021 18:42 #213257
by andypugh
Replied by andypugh on topic M70 and G64
It looks like the P number should be saved and restored:
github.com/LinuxCNC/linuxcnc/blob/master...erp_convert.cc#L2836
Though the code is not there in 2.8:
github.com/LinuxCNC/linuxcnc/blob/2.8/sr...erp_convert.cc#L2706
So, it looks like the answer is "it works in master, but not in 2.8"
Are you able to use Master, or do you need a workaround for 2.8?
github.com/LinuxCNC/linuxcnc/blob/master...erp_convert.cc#L2836
Though the code is not there in 2.8:
github.com/LinuxCNC/linuxcnc/blob/2.8/sr...erp_convert.cc#L2706
So, it looks like the answer is "it works in master, but not in 2.8"
Are you able to use Master, or do you need a workaround for 2.8?
Please Log in or Create an account to join the conversation.
29 Jun 2021 20:31 #213264
by rajewski
Replied by rajewski on topic M70 and G64
Excellent to know this was fixed! I just upgraded to master and can confirm it is behaving as expected. I'll just have to live on the edge for now.
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds