G71: Rough turning cycle
What G71 does
G71 removes material in passes parallel to the Z axis, down to the profile written between P and Q, leaving U and W allowances for G70. It is the standard roughing cycle for outside and inside diameters. On Fanuc it is usually written on two lines.
| Type | G-code |
|---|---|
| Machine | Lathe (G-code system A) |
| Group | Lathe cycle |
| Modal | No: acts only on its own line |
G71 example
G71 U2. R0.5
G71 P100 Q200 U0.4 W0.1 F0.25 2 mm depth per pass, 0.5 retract, finish stock 0.4 on X and 0.1 on Z.
| Word | What it means here |
|---|---|
G71 | Rough turning cycle |
U2. | incremental X on a lathe, or an X finishing allowance inside a cycle |
R0.5 | arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting |
P100 | a parameter: dwell time, program number, sequence number or cycle setting, depending on the code |
Q200 | peck depth or another cycle setting |
U0.4 | incremental X on a lathe, or an X finishing allowance inside a cycle |
W0.1 | incremental Z on a lathe, or a Z finishing allowance inside a cycle |
F0.25 | feed rate (on threading codes, the lead) |
Codes people confuse with G71
| Code | What it does instead |
|---|---|
G72 | Rough facing cycle. Like G71, but the passes run along X, for faces. |
G70 | Finishing cycle. Runs the finish pass along a profile already defined for G71, G72 or G73. |
Other codes in the lathe cycle group
These also act only on their own line.
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: G71
-
What does
G71do? (Lathe) -
Which code: Roughs a profile along Z in repeated passes, leaving finishing stock.(Lathe)
-
What does
G72do? (Lathe)
Show the answers
- Roughs a profile along Z in repeated passes, leaving finishing stock.
- G71
- Like G71, but the passes run along X, for faces.
Frequently asked questions
- What does G71 mean in CNC programming?
- Rough turning cycle. Roughs a profile along Z in repeated passes, leaving finishing stock.
- Is G71 modal?
- No. G71 acts only on the line where it is written; the next line goes back to whatever modal codes were already active.
- What is the difference between G71 and G72?
- G71 (rough turning cycle): roughs a profile along Z in repeated passes, leaving finishing stock. G72 (rough facing cycle): like G71, but the passes run along X, for faces.
- What is the difference between G71 and G70?
- G71 (rough turning cycle): roughs a profile along Z in repeated passes, leaving finishing stock. G70 (finishing cycle): runs the finish pass along a profile already defined for G71, G72 or G73.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.