Manually programming a subprogram

I'm copying and pasting from the Hass mill workbook and plugging in my numbers. I can't get the subprogram to work.
Dont understand if I need to use a M97/M98 in place of or injunction with G150

%
O10002 (PITA)
(ENTER DIA. OFFSET D01 AT 0.5)
(T1 1/2 DIA. 2 FLT END MILL)
(T2 1/2 DIA. 90 DEG. SPOT DRILL)
(T4 1/4 DIA. DRILL)
T1 M06 (OUTSIDE CONTOUR)
G90 G54 G00 X0.0 Y0.0 S2000 M03
G43 H01 Z0.1 M09
G01 Z-1.0 F50.0
G41 Y.0 D01 F16.0
(P2) X0.5 Y0.0
(P3) X0.0 Y0.5
(P4) X0.0 Y3.5
(P5) X0.5 Y4.0
(P6) X3.5 Y4.0
(P7) X4.0 Y3.5
(P8) X4.0 Y0.5
(P9) X3.5 Y0.0
(P10) X0.5 Y0.0
G40 X-1.0 Y0.0
G00 Z1.0
M05
M01
T2 M06 (SPOT DRILL)
G54 G00 X0.62 Y0.62 S1250 M03
G43 H02 Z1.0 M09
G82 G99 Z-0.125 P0.2 R0.1 F10.0
(P11) X0.62 Y0.62
(P12) X0.62 Y3.38
(P13) X3.38 Y3.38
(P14) X3.38 Y0.62
G80 G00 Z1.0 M05
M01
T4 M06 (PECK DRILL)
G54 G00 X-1.5 Y1.5 S1400 M03
G43 H04 Z1.0 M09
G83 G99 Z-1.075 Q0.1 R0.1 F12.0
(P11) X0.62 Y0.62
(P12) X0.62 Y3.38
(P13) X3.38 Y3.38
(P14) X3.38 Y0.62
G80 G00 Z1.0 M05
M01
T1 M06 (POCKET)
G54 G00 X2.0 Y2.0 S2100 M03
G43 H01 Z1.0 M09
G01 Z-0.4 F30.0
G150 P17654 G41 D0.5 I0.4 (or J0.4) K0.02 Z-0.5 Q0.1 R0.01 F16.5
G40 G01 X2.0 Y2.0
G00 Z0.1
G53 G49 Y0.0 Z0.0 M05
M30
O17654 (G150 POCKET GEOMETRY)
G01
(P15) X1.375 Y1.375
(P16) X1.375 Y2.625
(P17) X2.625 Y2.625
(P18) X2.625 Y1.375
(P15) X1.375 Y1.375
G80 G00 Z1.0
M99
(T1 M06 CIRCULAR POCKET)
%

Answer
 
Comments 0

1 Answer