Home › G-codes › Mitsubishi M70 M80 › G20
G20 Inch input
Mitsubishi M70 M80 G-code · Mill
Sets inch units for program values. Put it at the start of the program before any moves.
Format
G20
How it works
Modal, group 06.
Example program
%
O1000 (INCH PROGRAM)
G20 G17 G40 G49 G80 G90 (INCH AND SAFE START)
O1000 (INCH PROGRAM)
G20 G17 G40 G49 G80 G90 (INCH AND SAFE START)
Example is in inch. Check offsets and clearances first.
Watch out for
- Put G20 alone or in the first safety block. Changing units mid program is a common crash cause.
- The power on unit is set by a parameter, so do not rely on the default.
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 |
| 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 Mitsubishi M70 M80 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 Mitsubishi M70 M80 G-codes