9 NC Programming Routines
9.6 Canned Cycle Programming
141
NC Code Example:
G0X1Y1Z.1; RAPID TO 1, 1, .1
G86G98Z-.5R0P5F2; DRILL TO DEPTH OF -.5, SHUT OF SPINDLE, RAPID TO INITIAL POINT AFTER DWELL
OF FIVE SECONDS
G80; CANCEL CANNED CYCLE
M2; END PROGRAM
Code
Explanation
G86G98Z-.5R0P5F2; DRILL TO
DEPTH OF -.5, SHUT OF SPINDLE,
RAPID TO INITIAL POINT AFTER
DWELL OF FIVE SECONDS
G86
Straight drilling, stop spindle rotation before
retraction.
G98
Rapid move to initial tool position after canned
cycle complete.
Z-.5
Drill to depth of 0.5 inches
R0
Retract to Z0 after canned cycle complete.
P5
Dwell at the bottom of the hole for 5 seconds, to
allow spindle rotation to stop completely.
F2
Feed rate of 2 inches per minute.
9.6.7.
G89: Boring with Dwell
The G89 code is similar to the G85 code (see
9.6.7 G89: Boring with , pg. 141) except that it allows for a
dwell at the bottom of the hole.