System information
SECTION FIVE - MISCELLANEOUS FUNCTIONS (M CODES)
Pocket Clear (M97)
M97 can be used for clearing pockets as well as clearing away material from islands. It can also
be used for finish passes on irregular pockets or islands. This command takes two parameters:
the number of passes to make and the cut width of each pass. The command must be within a
while-wend loop. The cut width is added or subtracted to the cutter radius and moves toward or
away from the part. Cutter comp must be on to use the pocket clear feature. If a compensated arc
intersection error for the modified tool radius occurs, a compensated line is substituted from the
arc start point to the arc end point.
Example:
G0 Z.1 Rapid to .1 above 0
D1 Load tool radius #1
P1=-.1 First Z depth
WHILE P1>-.3 Last Z depth =-.3
G41 G65 X1 Y2 Non-move cutter comp lead in
X1 Y1 Start point
G1 F10 Z[P1] Z down
X2
G3 R.5 XC2.5 YC1 X2.5 Y .5
G1 X5
Y3
X1
Y1
G65 X2 Y0 No-move cutter comp off
G40 Cutter comp off
P163=5 Make 5 passes
P164=.1 Pass width =.1
M97 Clear the Pocket
P1=P1-.1 Next Z depth
G0 Z.1 Rapid above part
WEND End while loop
316










