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
HaasLatheFormatG71 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

Frequently asked questions about G71

What is G71 (OD/ID rough turning cycle (cuts along Z)) used for and how is it formatted in a CNC program?
G71 commands "OD/ID rough turning cycle (cuts along Z)" on Lathe. The standard program format is "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_". Two-block format. U in the first line is the depth of cut and U in the second line is the X finishing allowance; the same address has different meanings (distinguished by the presence of P/Q)
Is G71 a modal code or a one-shot (non-modal) code?
G71 is a one-shot (non-modal, Group 00) code. It acts only in the single block where it is written and does not carry over to the next block, so you must write G71 on every line where that action is required.
Does G71 work differently on machining centers (mills) versus CNC lathes?
G71 is primarily used on Lathe. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
Are there differences in G71 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G71. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.

Sources

The meaning of this code agrees in two or more sources from different publishers. 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