Home › G-codes › Mazak (EIA) › G20
G20 Inch input
Mazak (EIA) G-code · Mill and lathe
Sets the program units to inch. All positions, offsets used and feed rates are read in inches.
Format
G20
Addresses
| Address | What it does |
|---|---|
G20 | No addresses |
How it works
Modal, group 06.
Example program
O1000 (INCH PROGRAM)
G20 (INCH)
G17 G40 G49 G80 G90 (SAFETY LINE)
G20 (INCH)
G17 G40 G49 G80 G90 (SAFETY LINE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Put it in its own block or the safety line at the very start, before any move or offset call.
- Changing units does not convert stored offsets. Keep one unit system per machine if you can.
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 |
| 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 |
| Centroid CNC12 Acorn | Inch units |
| Hurco WinMax (NC) | Inch input (ISNC) |
| Fadal | Check for inch setting |
| Swiss (Citizen Star) | Inch input |
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 G20 in the app All Mazak G-codes