Home › G-codes › Centroid CNC12 Acorn › G21
G21 Metric units
Centroid CNC12 Acorn G-code · Mill and lathe
Reads all following dimensions and feeds in millimeters. It does not change the native machine units.
Format
G21
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Modal, units group.
Example program
G21 ; METRIC
G90 G54 ; ABSOLUTE, WORK OFFSET 1
G0 X25. Y25. ; MOVE IN MM
G90 G54 ; ABSOLUTE, WORK OFFSET 1
G0 X25. Y25. ; MOVE IN MM
Example is in inch. Check offsets and clearances first.
Watch out for
- Mixing G20 and G21 in one job is the fastest way to crash. Pick one at the top.
Related codes
G21 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Metric input |
| Haas NGC | Metric programming check |
| Mazak (EIA) | Metric input |
| Okuma OSP | Metric input confirmation |
| Mitsubishi M70 M80 | Metric input |
| Brother Speedio | Metric input |
| LinuxCNC Tormach | Millimeter units |
| Mach3 Mach4 | Metric units |
| Hurco WinMax (NC) | Metric input (ISNC) |
| Fadal | Check for metric setting |
| Swiss (Citizen Star) | Metric input |
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 G21 in the app All Centroid CNC12 Acorn G-codes