Home › G-codes › Centroid CNC12 Acorn › G20
G20 Inch units
Centroid CNC12 Acorn G-code · Mill and lathe
Reads all following dimensions and feeds in inches. It does not change the native machine units set in the control setup.
Format
G20
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Modal, units group.
Example program
G20 ; INCH
G90 G54 ; ABSOLUTE, WORK OFFSET 1
G0 X1. Y1. ; MOVE IN INCHES
G90 G54 ; ABSOLUTE, WORK OFFSET 1
G0 X1. Y1. ; MOVE IN INCHES
Example is in inch. Check offsets and clearances first.
Watch out for
- Put G20 at the top of every program. Do not switch units in the middle of a job.
- Tool offsets stay in the native machine units from the setup menu.
Related codes
G20 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Inch input |
| Haas NGC | Inch programming check |
| Mazak (EIA) | Inch input |
| Okuma OSP | Inch input confirmation |
| Mitsubishi M70 M80 | Inch input |
| Brother Speedio | Inch input |
| Fagor 8055 8065 | Lower work zone limits (8055) |
| LinuxCNC Tormach | Inch units |
| Mach3 Mach4 | Inch units |
| Hurco WinMax (NC) | Inch input (ISNC) |
| Fadal | Check for inch setting |
| Swiss (Citizen Star) | Inch 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 G20 in the app All Centroid CNC12 Acorn G-codes