Tool Wear offset

More
05 Aug 2015 09:49 #61157 by Shalotek
Tool Wear offset was created by Shalotek
i need to change the tool offset data thru g code while my program is running
currently this works i have wear var in the head of my program that i just add the number of parts i have ran and i have a preset var to adjust z down
however i would like to change the tool offset

#5 = -.1102 ([#5 z depth] )
#6 = .11 ([#6 z return])

o200 sub
G90 Y-[#7/2]
o210 IF [#3 LE 0]
G91 X-[#12] A[#13/2]
Z #5
G1 A -#13 Y#7
G0 Z #6
A[#13/2]
o210 ELSE


however i would like to change the tool offset
the g43.1 works but its not permanent
i need it to be a permanent change to the tool table
lets say i use a M300 for the example
#5 = -.0002 ([#5 z wear] )
#6 = .11 ([#6 z depth])

o200 sub
G90 Y-[#7/2]
o210 IF [#3 LE 0]
G91 X-[#12] A[#13/2]
M300 [H10 -#5] (CHANGE TOOL LENGTH OFFSET BY VALUE DEFINED IN #5)
Z -#6
G1 A -#13 Y#7
G0 Z #6
A[#13/2]
o210 ELSE

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

More
05 Aug 2015 19:09 #61165 by andypugh
Replied by andypugh on topic Tool Wear offset
G10 is the code you want. I can never remember which L-number you need for what though.

linuxcnc.org/docs/html/gcode/gcode.html#sec:G10-L1_

It looks like you want G10 L1 or G10 L10. Read both descriptions to decide :-)

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

Time to create page: 0.066 seconds
Powered by Kunena Forum