Home › G-codes › Siemens 840D 828D › G71
G71 Metric input for geometry
Siemens 840D 828D G-code · Mill and lathe
Positions and arc data are read in millimeters. Feed rates stay in the unit set by machine data. Use G710 when feed should also be metric.
Format
G71
How it works
Modal, G group 13 (dimension units).
Example program
G71 G90 G54 ; METRIC GEOMETRY
G0 X25 Y25 ; X AND Y IN MM
G1 Z-2 F150
G0 X25 Y25 ; X AND Y IN MM
G1 Z-2 F150
Example is in inch. Check offsets and clearances first.
Watch out for
- G71 does not convert F. On an inch machine F stays in inches. Use G710 for mm per min.
- Set the unit at the program start.
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 |
| Heidenhain TNC (ISO) | Millimeter units |
| 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 Siemens 840D 828D 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 Siemens 840D 828D G-codes