Home › G-codes › Centroid CNC12 Acorn › G81
G81 Drilling cycle
Centroid CNC12 Acorn G-code · Mill
Feeds to Z and rapids out. Basic drill and spot drill cycle. Parameter 81 can turn it into an air drill cycle that runs an M code instead of moving Z.
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. Cancel with G80.
Example program
G20 G17 G40 G49 G80 G90 ; INCH, SAFE START
T1 M6 ; LOAD TOOL 1, Z GOES HOME FIRST
G54 G0 X0 Y0 ; WORK OFFSET 1
S2500 M3
…
T1 M6 ; LOAD TOOL 1, Z GOES HOME FIRST
G54 G0 X0 Y0 ; WORK OFFSET 1
S2500 M3
…
The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- If parameter 81 is not -1, G81 runs that M code, often M39, and does not move Z. Set G10 P81 R-1 to get normal drilling back.
- In G91, Z is measured from R and R from the start height.
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 |
| 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 |
| Hurco WinMax (NC) | Drill or spot drill cycle |
| Fadal | Drill, spot drill |
Every G-code for Centroid CNC12 Acorn 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 Centroid CNC12 Acorn G-codes