9 NC Programming Routines
9.6 Canned Cycle Programming
136
G86
Straight drilling with spindle stop
G89
Boring with dwell
The G80 command is used to cancel all of the canned cycles:
Info Table: Additional Canned Cycle Codes
Code
Explanation
Section
Page
G80
Canned cycle cancel
The following codes are used within canned cycle codes.
Info Table: Codes Used in Conjunction with Canned Cycles
Code
Explanation
G98
Rapid to initial position after canned cycle complete; this is the system default.
G99
Rapid to point R after canned cycle complete.
K
Specifies the number of repeats. The default is 1. When K=0, drilling data is stored.
P
Specifies the length of dwell time in seconds.
Q
Specifies the depth of cut. In peck drilling each peck uses the same Q value. The Q value is
always positive. If a negative value is specified it is converted to a positive value.
R
Used for specifying a starting reference point for peck drilling. The point can be at the
material surface or at another reference point.
9.6.1.
G80: Cancelling a Canned Cycle
Use the G80 code to cancel a canned cycle. This code cancels the currently running canned cycle and
resumes normal operation. All other milling data is canceled as well.
You can also cancel canned cycles by using a G00 or G01 code, as a G80 code is automatically performed
as part of G00 and G01.
9.6.2.
G81 & G83: Straight and Peck Drilling
The G81 code performs straight drilling operations. G83 is used for peck drilling.
The R code is used to specify a Z axis reference point for peck drilling. The point can be at the material
surface or at another reference point. By specifying an R value of zero, the tool will return to the initial
point after drilling to point Z.
The G98 code is the default for rapid movement to the initial point, or you could also use G99 to rapid to
point R. We placed both rapid return codes in the sample below to show how they should be placed in
the program.