Home › G-codes › Heidenhain TNC (ISO) › G71
G71 Millimeter units
Heidenhain TNC (ISO) G-code · Mill
Sets millimeter units for the whole program. It is written in the program begin and end lines. Klartext: BEGIN PGM name MM.
Format
%NAME G71 *
Addresses
| Address | What it does |
|---|---|
%NAME | Program name |
How it works
Set once at program start.
Example program
%LINEAR G71 *
N10 G30 G17 X+0 Y+0 Z-20 *
N20 G31 G90 X+100 Y+100 Z+0 *
N99999999 %LINEAR G71 *
N10 G30 G17 X+0 Y+0 Z-20 *
N20 G31 G90 X+100 Y+100 Z+0 *
N99999999 %LINEAR G71 *
Example is in inch. Check offsets and clearances first.
Watch out for
- Begin and end lines must carry the same unit code.
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 |
| Fagor 8055 8065 | Millimeter programming |
| LinuxCNC Tormach | Lathe roughing cycle, along Z |
| Mach3 Mach4 | Metric units, Mach3 |
| 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 Heidenhain TNC (ISO) 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 Heidenhain TNC G-codes