I am trying to take the following program and machine it at multiple Origins.I would like to machine this at my original G54, then G55, G56, G57. However i dont want to loop this program at the end, i would like to have it move to the new Work origin before the tool changes. Any help with a sub-program would be great. And I dont want to copy and past this at with new work origins since my full program is over 10, 000 lines long.
Thanks in advance
%
O22221
(TEST)
(G56=X, Y0.@ CENTRE - Z0. TOP OF PART)
(G57=X, Y0.@ CENTRE - Z0. TOP OF PART)
(G58=X, Y0.@ CENTRE - Z0. TOP OF PART)
(G59=X, Y0.@ CENTRE - Z0. TOP OF PART)
G20
G00 G17 G40 G49 G80 G90
(1/4 SPOTDRILL 90 DEG)
T1 M06
G00 G90 G56 X0. Y2.88 S4400 M03
G43 H01 Z3. M08
G98 G81 Z-0.075 R0.1 F15.
X1.44 Y2.4942
X2.4942 Y1.44
G80
M05
G91 G28 Z0. M09
G28 Y0.
M01
(.302 DRILL - COBALT)
T3 M06
G00 G90 G56 X0. Y2.88 S2200 M03
G43 H03 Z3. M08
G98 G81 Z-0.33 R0.1 F10.
X1.44 Y2.4942
X2.4942 Y1.44
G80
G00 Z2.
M05
G91 G28 Z0. M09
G28 Y0.
M30
%