Home › G-codes › Swiss (Citizen Star) › G20
G20 Inch input
Swiss (Citizen Star) G-code · Lathe
Sets inch units for all paths. Put it before any move.
Format
G20
Addresses
| Address | What it does |
|---|---|
None | No addresses |
How it works
Modal, unit group.
Example program
($1 MAIN PATH)
G20 G18 G99 (INCH, SAFE START)
G00 X.55 Z-.02 T0100 (TOOL 1)
G20 G18 G99 (INCH, SAFE START)
G00 X.55 Z-.02 T0100 (TOOL 1)
Example is in inch. Check offsets and clearances first.
Watch out for
- Both paths must use the same unit. Many Swiss machines set inch or metric by parameter instead.
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 |
| Centroid CNC12 Acorn | Inch units |
| Hurco WinMax (NC) | Inch input (ISNC) |
| Fadal | Check for inch setting |
Every G-code for Swiss (Citizen Star) 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 Swiss G-codes