Home › G-codes › Hurco WinMax (NC) › G21
G21 Metric input (ISNC)
Hurco WinMax (NC) G-code · Mill
Tells an ISNC program that dimensions are in millimeters. Put it in its own block at the start.
Format
G21
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Modal, group 06. ISNC only. Cancel with G20.
Example program
%
G21 (METRIC, OWN BLOCK)
G90 G17 G40 G80 G54 (SAFE START)
T1 M06 (12 MM END MILL)
G21 (METRIC, OWN BLOCK)
G90 G17 G40 G80 G54 (SAFE START)
T1 M06 (12 MM END MILL)
Example is in inch. Check offsets and clearances first.
Watch out for
- Basic NC uses G71 for metric.
- Check every offset and feed after a units change.
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 |
| Mitsubishi M70 M80 | Metric input |
| Brother Speedio | Metric input |
| LinuxCNC Tormach | Millimeter units |
| Mach3 Mach4 | Metric units |
| Centroid CNC12 Acorn | Metric units |
| Fadal | Check for metric setting |
| Swiss (Citizen Star) | Metric input |
Every G-code for Hurco WinMax (NC) 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 Hurco WinMax G-codes