Operator`s manual

Advanced Haas Mill Programming Techniques Training Manual Page 52
Repeating Subprograms using L
If multiple depths of cuts need to be taken to create a feature, a subprogram can be developed using G91
which can be repeated multiple times using the L value.
M97 PXXX LXX will repeat subprogram NXXX LXX number of times.
The following example illustrates making a 13/16 diameter groove 1/16 wide .05 deep. If the material is
a tough like D-2 tool steel a prudent programmer may take five individual cuts .010 deep.
O01215 (SUB G91 WITH L)
G00 G53 Z0
T3 M06 (3/32 DRILL)
G90 G54 G00 X1.9062 Y-1.
M03 S3080
G43 Z1. H03 M08
Z.05
G01 Z0 F5.0
M97 P20 L5
G90 G00 Z.05
G0 X4.9062
G01 Z0 F5.0
M97 P20 L5
G90 G00 Z.05
Y-2.0
G01 Z0 F5.0
M97 P20 L5
G90 G00 Z.05
X1.9062
G01 Z0 F5.0
M97 P20 L5
G00 G53 Z0 G49
M30
N20 G91 G01 Z-.01 F.6
G03 I-.4062 F2.0
M99