9 NC Programming Routines
9.6 Canned Cycle Programming
142
The use of the G89 code is shown in following example.
NC Code Example:
G0X1Y1Z.1; RAPID TO 1, 1, .1
G89G98Z-.5R0P5F2; BORE TO DEPTH OF -.5, PAUSE FOR 5 SECONDS, RAPID TO INITIAL POINT FROM
POINT R
G80; CANCEL CANNED CYCLE
M2; END PROGRAM
Code
Explanation
G89G98Z-.5R0P5F2;
BORE TO DEPTH OF -
.5, RAPID TO INITIAL
POINT FROM POINT R
G89
Boring cycle with dwell.
G98
Rapid move to initial tool position after canned
cycle complete.
Z-.5
Drill to depth of 0.5 inches
P5
Pause for five seconds at bottom of hole.
R0
Retract to Z0 after canned cycle complete.
F2
Feed rate of 2 inches per minute.
Example Motion
The tool path generated by the example code would be as below.