5.0 x 5.0 x 0.500 DP. Square Pocket
Main Program Subprogram
% %
O01001 O01002
T1 M06 (Tool #1 is a 0.500” diameter endmill) G01 Y2.5 (1)
G90 G54 G00 X0. Y1.5 (XY Start Point) X-2.5 (2)
S2000 M03 Y-2.5 (3)
G43 H01 Z0.1 M08 X2.5 (4)
G01 Z0.1 F10. Y2.5 (5)
G150 P1002 Z-0.5 Q0.25 R0.01 J0.3 K0.01 G41 D01 F10. X0. (6) (Close Pocket Loop)
G40 G01 X0. Y1.5 M99 (Return to Main Pro-
gram)
G00 Z1. M09 %
G53 G49 Y0. Z0.
M30
%
Absolute and Incremental examples of a subprogram called up by the
P#### command in the G150 line: