Home › G-codes › Mazak (EIA) › G81
G81 Drilling cycle, spot drill
Mazak (EIA) G-code · Mill
Feeds to Z and rapids out. Mazak calls it the spot drilling cycle. Use it for spot drills and shallow holes.
Format
G81 X Y Z R F [K]
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Hole bottom |
R | R plane |
F | Feed rate |
K | Repeat count |
How it works
Modal, canned cycle group. Cancel with G80.
Example program
T01 M06 (.500 SPOT DRILL)
G90 G54 G00 X1. Y1. S2500 M03 (FIRST HOLE)
G43 H01 Z1. M08 (LENGTH OFFSET)
G99 G81 Z-.15 R.1 F10. (SPOT)
…
G90 G54 G00 X1. Y1. S2500 M03 (FIRST HOLE)
G43 H01 Z1. M08 (LENGTH OFFSET)
G99 G81 Z-.15 R.1 F10. (SPOT)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- R is an absolute Z position in G90, not a distance.
- With G99 the tool returns to R between holes. Use G98 to clear clamps.
Related codes
G81 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Drilling cycle |
| Haas NGC | Drill canned cycle |
| 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 Mazak (EIA) 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 Mazak G-codes