G81 Drilling cycle
Fanuc G-code · Mill
Feeds to Z and rapids out. The basic cycle for spot drilling and short holes.
Format
G81 X Y Z R F [K]
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Hole bottom |
R | R plane where feed starts |
F | Feed rate |
K | Number of repeats |
How it works
Modal, group 09. Cancel with G80 or any group 01 code.
Example program
T1 M06 (1-2 SPOT DRILL)
G90 G54 G00 X1. Y1. S2500 M03 (FIRST HOLE)
G43 H01 Z1. M08 (CLEARANCE)
G99 G81 Z-.12 R.1 F10. (SPOT DRILL)
…
G90 G54 G00 X1. Y1. S2500 M03 (FIRST HOLE)
G43 H01 Z1. M08 (CLEARANCE)
G99 G81 Z-.12 R.1 F10. (SPOT DRILL)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Use G98 to come back to the start height between holes when clamps are in the way.
- K0 stores the cycle data without drilling a hole at the current position.
Related codes
G81 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Drill canned 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 Fanuc 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 Fanuc G-codes