G-code reference

G71: Rough turning cycle

G71 is rough turning cycle. Roughs a profile along Z in repeated passes, leaving finishing stock. It is non-modal, so it acts only on the line it is written on.

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.

TypeG-code
MachineLathe (G-code system A)
GroupLathe cycle
ModalNo: 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.

WordWhat it means here
G71Rough turning cycle
U2.incremental X on a lathe, or an X finishing allowance inside a cycle
R0.5arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
P100a parameter: dwell time, program number, sequence number or cycle setting, depending on the code
Q200peck depth or another cycle setting
U0.4incremental X on a lathe, or an X finishing allowance inside a cycle
W0.1incremental Z on a lathe, or a Z finishing allowance inside a cycle
F0.25feed rate (on threading codes, the lead)

Codes people confuse with G71

CodeWhat 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.

  • G70 Finishing cycle
  • G72 Rough facing cycle
  • G73 Pattern repeating cycle (lathe)
  • G74 Face peck drilling / grooving (lathe)
  • G75 Grooving cycle (X)
  • G76 Threading cycle (multi-pass)
  • G90 Outside/inside diameter cutting cycle (lathe)
  • G92 Thread cutting cycle (lathe)
  • G94 Facing cycle (lathe)

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

  1. What does G71 do? (Lathe)

  2. Which code: Roughs a profile along Z in repeated passes, leaving finishing stock.(Lathe)

  3. What does G72 do? (Lathe)

Show the answers
  1. Roughs a profile along Z in repeated passes, leaving finishing stock.
  2. G71
  3. Like G71, but the passes run along X, for faces.

Drill this code with the rest of the core set

More practice hubs

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.

Free preview · no card Try G-Code Sprint