10
« on: April 19, 2022, 02:39:35 PM »
I think this will do what you want to do.
Yo know the offset of your first tool and you know the X offset from your first tool to every other tool in the block.
Parameter #5221 is G54X, #5222i is G54Y and 5223 is G54Z. #5241 is G55X, #5261 is G56X, #5281 is G57X and I think you should be able to see the pattern here.
So - to set several work offsets in X you worls do this -
%
(this assumes G54 it the first tool on the block)
(an this assumes that you only need to adjust the X value for the tools in the block )
(G54 will be set using whatever method you normally use to set a fixture offset)
(to set G55X for tool 2)
#5241=[#5221 + .875] (G55 is +.875 from G54)
#5242=#5222 (so the Y is correct)
#5343=#5223 (unless the Z locations change)
#5261=[#5221 +2.1] (G56 is +2.1 from G54)
#5262=#5222 (so the Y is correct)
#5363=#5223 (unless the Z locations change)
This also works for normal mill work.
G54
M98P1
G55
M98P1
G56
M98P1
(Do a tool change)
G54
M98P2
and so forth
Write this into the header of the programs that use this tool block and just set G54.