G20 Check for inch setting
Fadal G-code · Mill
Checks that the control is set for inch. It does not change the units. G70 does the same.
Format
G20
How it works
Check only.
Example program
N1 G20 (CONFIRM INCH SETUP)
N2 G0 G40 G49 G80 G90 G17
N3 T1 M6 (1-2 END MILL)
N2 G0 G40 G49 G80 G90 G17
N3 T1 M6 (1-2 END MILL)
Example is in inch. Check offsets and clearances first.
Watch out for
- On a Fadal this code checks the units. It does not switch them. Units are set in the control setup parameters.
- If the program and the setup do not match, the control stops. Change the setup, not the program.
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) |
| Swiss (Citizen Star) | Inch input |
Every G-code for Fadal 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 Fadal G-codes