Home › G-codes › Mitsubishi M70 M80 › G21
G21 Metric input
Mitsubishi M70 M80 G-code · Mill
Sets millimeter units for program values.
Format
G21
How it works
Modal, group 06.
Example program
O1001 (METRIC PROGRAM)
G21 G17 G40 G49 G80 G90 (METRIC AND SAFE START)
G54 G00 X0. Y0. (TO START)
G21 G17 G40 G49 G80 G90 (METRIC AND SAFE START)
G54 G00 X0. Y0. (TO START)
Example is in inch. Check offsets and clearances first.
Watch out for
- Offsets and feed values are read in the new unit. Check offsets were entered in the same unit.
Related codes
G21 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Metric input |
| Haas NGC | Metric programming check |
| Mazak (EIA) | Metric input |
| Okuma OSP | Metric input confirmation |
| Brother Speedio | Metric input |
| LinuxCNC Tormach | Millimeter units |
| Mach3 Mach4 | Metric units |
| Centroid CNC12 Acorn | Metric units |
| Hurco WinMax (NC) | Metric input (ISNC) |
| Fadal | Check for metric setting |
| Swiss (Citizen Star) | Metric 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 G21 in the app All Mitsubishi M70 M80 G-codes