G71

LatheOne-shot, group 00

OD/ID rough turning cycle (cuts along Z)

⌨Format and notes

G71 U_ (depth of cut, radius value) R_ (retract amount);
G71 P_ Q_ U_ (X finishing allowance, diameter value) W_ (Z finishing allowance) F_ S_ T_

Diagram: How G71 (lathe) cuts

ZXΔdFinish allowance (orange dotted)Start pointFinish profile (P–Q)
Cuts with Z-direction passes by Δd each, down to the line that leaves the finish allowance on the finish profile (P–Q). At the end of each pass it backs off a little (e) at 45° and returns by rapid; a final pass follows the profile once. Finish with G70.

≠Differences between controls and machines

The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.

SourceMachineItemDetail
HaasMachining centerFormatG71 P_ Q_ D_ (depth of cut) U_ W_ I_ K_ F_ S_ T_ (one-block format)Haas uses a one-block format with D giving the depth of cut. If the P block has both X and Z, it is judged as Type 2
Siemens (ISO dialect)Machining centercodeIn Siemens native mode, G71 = metric input

📚Sources

The meaning shown agrees in at least two sources (agreement confirmed). Explanations are written in our own words.

  1. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
  2. Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
  3. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
  4. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com