Home › G-codes › Haas NGC › G81
G81 Drill canned cycle
Haas NGC G-code · Mill, Lathe
On mills: Drill canned cycle
Feeds to the hole bottom and rapids out. Use it for spot drilling, shallow holes and center drilling.
Format
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Hole bottom |
R | R plane where feed starts |
F | Feed rate |
L | Number of holes for repeats in G91 |
How it works
Modal, canned cycle group 09. Cancel with G80.
Example program
G90 G54 G00 X1. Y1. S2000 M03 (FIRST HOLE)
G43 H03 Z1. M08 (APPROACH)
G81 G99 Z-.1 R.1 F8. (SPOT DRILL)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Every X Y position after this line drills a hole until G80.
- Z in G91 is incremental from the R plane.
On lathes: Drill canned cycle
Feeds to the hole bottom and rapids out. Used on center with the main spindle, or off center with a live tool and C axis.
Format
Addresses
| Address | What it does |
|---|---|
Z | Hole bottom |
R | R plane where feed starts |
F | Feed rate |
X | X position, diameter |
Y | Y position, Y axis lathes |
C | C axis position for live tool holes |
L | Number of repeats |
How it works
Modal, group 09. Cancel with G80.
Example program
G99 G97 S1000 M03 (FEED PER REV, FIXED RPM)
G00 G54 X0 Z.25 M08 (CENTERLINE)
G81 Z-.75 R.1 F.005 (DRILL .75 DEEP)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- On center with the main spindle turning, X is 0. Off center holes need a live tool with C or Y.
- Cancel with G80 before moving to the next tool.
Related codes
G80 · G82 · G83 · G98 · G99 · G241
G81 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Drilling cycle |
| Mazak (EIA) | Drilling cycle, spot drill |
| Okuma OSP | Drill or spot cycle |
| Mitsubishi M70 M80 | Drilling cycle |
| Brother Speedio | Drilling cycle |
| Fagor 8055 8065 | Drilling canned cycle |
| LinuxCNC Tormach | Drill cycle |
| Mach3 Mach4 | Drill cycle |
| Centroid CNC12 Acorn | Drilling cycle |
| Hurco WinMax (NC) | Drill or spot drill cycle |
| Fadal | Drill, spot drill |
Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G81 in the app All Haas NGC G-codes