Printed from Kezuriba (kezuriba.net/en/nc/g71/)
G71
LatheOne-shot, group 00OD/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_
- 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)
- The sign of the finishing allowance U/W depends on the cutting quadrant (OD or ID, direction of Z)
- The profile is basically one where X is monotonic and never reverses direction (Type I). Profiles with recesses can use Type II, only on machines that support it
- After G71, write G70 with the same P/Q to finish
Diagram: How G71 (lathe) cuts
Full guide with examples: How to write lathe multiple repetitive cycles (G71, G70, G72, G73, G76)
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.
| Source | Machine | Item | Detail |
|---|---|---|---|
| Haas | Lathe | Format | G71 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 center | Code | In 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.
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
- 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