9 NC Programming Routines
9.6 Canned Cycle Programming
137
A typical use of the G81 and G83 codes is shown in the following example.
NC Code Example:
G0X1Y1Z1;RAPID TO INITIAL POINT (1,1,1)
G98G81Z-.1R.1F2;CENTER DRILL TO DEPTH OF Z-.1 FROM Z.1 FEED 2, RAPID TO
INITIAL POINTG99G83Z-.5R0Q.1F3;PECK DRILL TO Z-.5 FROM Z0 EACH PECK .1, RAPID
TO POINT R0
G80;CANCEL CANNED CYCLE
M2;END PROGRAM
Code
Explanation
G0X1Y1Z1;RAPID
TO 1,1,1
Rapid motion to X1 Y1 Z1.
G98G81Z-
.1R.1F2;CENTER
DRILL TO DEPTH
OF Z-.1 FROM Z.1
FEED 2, RAPID TO
INITIAL POINT
G81Z.-
.1R.1
Straight drill to Z-.1 (from Z.1)
G98
Rapid back to Z1 after drilling
F2
Feed rate = 2 inches/min
G99G83Z-
.5R0Q.1F3;PECK
DRILL TO Z-.5
FROM Z0 EACH
PECK .1, RAPID TO
POINT R
G83Z-
.5
Peck drill to Z-.5 (from Z0)
G99
R0
Retract to Z0 after completing canned cycle
Q.1
Drill a maximum of 0.1 inch per peck.
F3
Feed rate = 3 inches/min
G80
Cancel canned cycle.
M2
End program.