Home › G-codes › Mach3 Mach4 › G71
G71 Metric units, Mach3
Mach3 Mach4 G-code · Mill
Mach3. Same as G21, program values in millimeters. G21 is preferred.
Format
G71
Addresses
| Address | What it does |
|---|---|
G71 | No address words |
How it works
Modal, units group.
Example program
G0 G71 G90 G54 G17 G40 G49 G80 (METRIC VIA G71)
T1 M6 (TOOL CHANGE)
G43 H1 Z25.0 (LENGTH OFFSET)
G0 X25.4 Y25.4 (METRIC POSITION)
T1 M6 (TOOL CHANGE)
G43 H1 Z25.0 (LENGTH OFFSET)
G0 X25.4 Y25.4 (METRIC POSITION)
Example is in inch. Check offsets and clearances first.
Watch out for
- A Fanuc lathe style G71 roughing line does not run a cycle here. It switches to metric and the moves become tiny.
Related codes
G71 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Stock removal in turning, rough cycle |
| Haas NGC | Bolt hole arc |
| Mazak (EIA) | OD and ID roughing cycle, Z direction |
| Okuma OSP | Return level for fixed cycles |
| Mitsubishi M70 M80 | Longitudinal rough cutting cycle |
| Siemens 840D 828D | Metric input for geometry |
| Heidenhain TNC (ISO) | Millimeter units |
| Fagor 8055 8065 | Millimeter programming |
| LinuxCNC Tormach | Lathe roughing cycle, along Z |
| Centroid CNC12 Acorn | Rough turning cycle |
| Hurco WinMax (NC) | Metric input (Basic NC) |
| Fadal | Check for metric setting, older code |
| Swiss (Citizen Star) | Rough turning cycle |
Every G-code for Mach3 Mach4 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 G71 in the app All Mach3 Mach4 G-codes