Home › G-codes › LinuxCNC Tormach › G71
G71 Lathe roughing cycle, along Z
LinuxCNC Tormach G-code · Lathe
Roughs a profile stored in an O-word subroutine with cuts along Z. G71.1 skips pockets, G71.2 also cuts pockets.
Format
G71 Q [X] [Z] [D] [I] [R]
Addresses
| Address | What it does |
|---|---|
Q | Subroutine number of the profile |
X Z | Start position, default current position |
D | Stock left for finishing, default 0 |
I | Depth of each cut, default 1 |
R | Retract distance, default 0.5 |
How it works
Non modal.
Example program
G20 G18 G7 G40 G80 G90 G94 (INCH, XZ PLANE, DIAMETER MODE)
O100 SUB (PROFILE)
G1 X0.5 Z0
G1 Z-0.75
…
O100 SUB (PROFILE)
G1 X0.5 Z0
G1 Z-0.75
…
The full 10-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The profile is an O-word subroutine named by Q, such as O100 SUB to O100 ENDSUB.
- Z must change in one direction only through the profile.
- Always give I and R. The defaults of 1 and 0.5 are huge in inch work.
- The LinuxCNC manual warns these cycles are new and can be fragile. Simulate before cutting.
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 |
| 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 LinuxCNC Tormach 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 LinuxCNC Tormach G-codes