System information
SECTION FOUR - PREPARATORY FUNCTIONS (G CODES)
Z to clearance (G31)
The G31 function will retract Z to the clearance position. This position defaults to the last
clearance position but may be changed by editing parameter 140 or set in canned cycles with the
"R" parameter.
Z to tool change (G32)
The G32 function will retract Z to the tool change position. This position is set by the machine
tool builder but may be changed by editing the tool change coordinate parameter.
Facing cycle (G33)
The G33 autoroutine is used to face a rectangular surface. It always starts in the upper right-hand
corner of the rectangle and moves back and forth along the long side of the rectangle and steps
over on the short side of the pocket. Successive depths will raise the tool up .1" above the current
depth and rapid to the top right corner for the next depth.
Facing Cycle Program
N1 G20 G90 (inch/absolute)
N2 S1000 M3 D1 G43 H1 (spindle CW1000 RPM, calls tool #1's offsets)
N3 G0 X1 Y2 (rapid to the center of the pocket)
N4 F20 (X-Y feedrate)
N5 P151=1 (X dimension)
N6 P152=3 (Y dimension)
N7 P155=.1 (cut width)
N8 G33 G99 G41 R.1 Z-.5 V-.3 Q.1 FS
*1 *2 *3 *4 *5 *6 *7 *8
*1 Execute facing cycle
*2 Returns to Z clearance
*3 Cutter compensation on (G41 or G42 will do the same thing)
*4 Clearance plane
*5 Final Z depth
*6 First Z depth (If no V is specified the 1
st
Z depth is the clearance plane
minus the Z increment)
*7 Z increment
*8 Z feedrate
Rectangular pocket clear (G34)
The G34 autoroutine is used to clear a rectangular pocket by starting in the center and working
its way out to the finish dimensions. The operation of the autoroutine is identical to the circular
routines except that a rectangle with radiused corners is cut. The rectangular routines have the
addition of parameters P151 (X pocket dimension) and P152 (Y pocket dimension). Parameters
P150, P153, P154, and P155 retain the same meaning as in the circular routines. The X and Y
dimensions are the overall pocket dimensions, and if the corner radius is set to 0 the corners will
be cut at the tool radius.
225










