Haas Lathe G71 and G70: How to Program the Roughing and Finishing Cycle

28 November 2026

Mentor CNC Editorial Team

G71 on a Haas lathe roughs out material in passes once you have written the finished profile of the part. G70 then finishes the same profile in a single pass. This page covers the format on the Haas Next Generation Control (NGC) lathe. For the general logic of G71 and the differences between controls: G71 rough turning cycle.

Short path: how do you write G71 and G70 on a Haas?

G71 P10 Q20 D1.5 U0.4 W0.1 F0.25   (roughing)
N10 ...                             (first block of the profile)
...
N20 ...                             (last block of the profile)
G70 P10 Q20                         (finishing)
  • On a Haas, G71 is a single block: the depth of cut is given with D on the same line. The G71 section of the manual describes this format, and all its examples use it.
  • P and Q are the block numbers where the profile starts and ends. The profile is written to the finished dimensions of the part.
  • G70 is called with the same P and Q and machines the profile once as a finishing pass.
  • G18 (Z-X plane) must be active.

What do the addresses on the G71 line mean?

Haas G71 stock removal cycle diagram
Haas G71 stock removal: [1] Setting 287 retract, [2] start position, [3] Z clearance plane, [4] finish allowance (U, W), [5] roughing allowance (I, K), [6] programmed path. (Image: Haas Automation lathe operator’s manual)
AddressMeaning
PBlock number (N) where the profile starts.
QBlock number (N) where the profile ends.
DDepth of cut for each roughing pass, as a positive radius. If it is not written, Setting 286 is used.
UFinish allowance in X, on diameter. Its sign sets which side is cut: positive for OD, negative for ID.
WFinish allowance in Z.
I (optional)Rough pass allowance in X, on radius.
K (optional)Rough pass allowance in Z.
FFeed rate for the roughing passes (mm/rev in G99).
S, T (optional)Spindle speed and tool for the roughing passes.

The signs of D, I, K, U and W select which of the four quadrants of the X-Z plane is cut. What you need in everyday work: U positive for OD, U negative for ID.

Haas G71 address signs in the four quadrants
G71 address signs: the signs of U, W, I and K in the four quadrants of the X-Z plane; S is the start position, P and Q the start and end of the profile. (Image: Haas Automation lathe operator’s manual)

How does the G70 finishing cycle work?

G70 P10 Q20 machines the profile between N10 and N20 once as a finishing pass. Any F, S and T values written inside the profile blocks are active in G70. So you write the finishing feed inside the profile; the F on the G71 line is for roughing.

After the Q block, the tool rapids (G00) back to the start position saved before G70. The program then continues from the block after G70, not from the block whose N number matches Q.

Type 1 or Type 2? How does the control decide?

Type 1Type 2
How it is selectedOnly X in the P block.Both X and Z in the P block.
ProfileDoes not change direction in X; the diameter only increases or only decreases.Can change direction in X; pockets can be cut.
PassesEach pass stops short of the profile and the tool retracts at 45°.After each pass the tool follows the profile and retracts parallel to X.
ResultA clean-up pass along the profile after roughing.Leaves no steps; usually a better finish.

In both types the Z axis cannot change direction in the profile. For Type 2 the Z position in the P block does not have to cause motion; you can use the start Z. In Type 2 the profile must not go beyond the start position in X (except for the Q block).

In Type 1, if the P block has G00, the Z return between passes is a rapid; with G01 it is at the G71 feed rate. If I and K are given, an extra rough-finish pass parallel to the profile follows the roughing passes.

Settings that affect G71

SettingWhat it does
286 Canned Cycle Cut DepthDepth of cut used in G71 and G72 when D is not written. The default is 0.100 in (2.54 mm).
287 Canned Cycle RetractionHow far the tool retracts from the material after a roughing pass in G71 and G72.

Sample program: OD roughing and finishing

Dimensions are for illustration. Stock is Ø40 mm; the face is assumed already turned to Z0 (at Mentor CNC the finished face is Z0). T1 is the roughing tool, T2 the finishing tool. Profile: from Ø16 with a 2×45° chamfer to Ø20, Ø20 to Z−15, a shoulder, a 1×45° chamfer to Ø30, Ø30 to Z−30.

%
O01001 (HAAS G71 G70 ORNEK - OLCULER ORNEKTIR)
(G54 X0 IS MILI EKSENI, Z0 BITMIS ALIN)
(T1 DIS CAP KABA, T2 DIS CAP FINIS)
T101
G00 G18 G21 G40 G80 G99
G50 S2000
G97 S800 M03
G00 G54 X42. Z2.
M08
G96 S180
G71 P10 Q20 D1.5 U0.4 W0.1 F0.25
N10 G00 X16.
G01 Z0. F0.1
X20. Z-2.
Z-15.
X28.
X30. Z-16.
Z-30.
N20 X42.
G97 S800
G00 G53 X0
G53 Z0
T202
G50 S2500
G97 S1000 M03
G00 G54 X42. Z2.
G96 S220
G70 P10 Q20
G97 S1000
G00 G53 X0 M09
G53 Z0 M05
M30
%
  • G00 G54 X42. Z2. — Start position (S). It must be outside the stock diameter and in front of the face; the tool returns here after G71.
  • G71 P10 Q20 D1.5 U0.4 W0.1 F0.25 — 1.5 mm passes on radius; 0.4 mm finish allowance on diameter and 0.1 mm in Z; roughing feed 0.25 mm/rev.
  • N10 G00 X16. — Only X in the P block, so the cycle runs as Type 1.
  • G01 Z0. F0.1 — The finishing feed is written inside the profile; G70 uses it.
  • N20 X42. — Last block of the profile; the tool leaves the part.
  • T202 … G70 P10 Q20 — The finishing tool machines the same profile once.

Before running the program on the machine, check it on screen with GRAPHICS and run the first part in SINGLE BLOCK with a low rapid override. For the keys: Haas lathe control pendant: what does each key do?

How do you write G71 for an ID?

The format is the same; the difference is the sign of U: write U as negative for an ID. The start position in X is inside the bore, smaller than the smallest diameter to be cut, and the profile is written from the large diameter towards the small one. The hole must already be drilled.

Common mistakes

  • Writing a Z in the P block without meaning to: the cycle runs as Type 2 and the passes behave differently than expected.
  • Leaving U positive on an ID: the finish allowance is left on the wrong side and the tool cuts into the finished size.
  • Not writing the finishing feed inside the profile: G70 does not run at the finishing feed you intended.
  • Forgetting that P is modal: if G04 P or M97 P is used inside the cycle, the same P value is applied to the cycle as well.
  • Using the Q block number in a subprogram inside PQ: Haas allows a subprogram inside PQ, but it must not contain a block with the N number given in Q.
  • Starting inside the stock diameter: the tool starts its first pass inside the material.

How does it differ from FANUC?

  • On a FANUC 0i lathe control, G71 is usually written as two blocks (depth of cut and retract on the first). The Haas G71 section describes the single-block format: depth of cut with D, retract with Setting 287.
  • A Haas allows a subprogram inside PQ; the manual notes that this feature is not compatible with FANUC controls.
  • Do not run a G71 program written for a FANUC control on a Haas without checking it; prove it out in graphics first.

Frequently asked questions

What happens if I leave out D on a Haas G71?

The value in Setting 286 is used as the depth of cut. If you do not know what it is set to on your machine, always write D.

What is the difference between G71 and G72?

G71 takes its passes along Z, reducing the diameter; it suits longer parts. G72 takes its passes along X, across the face; it suits short, large-diameter parts. Both are finished with G70.

Can I run G70 with a different tool?

Yes. Finish G71 with the roughing tool, change tools, return to the same start position and call G70 with the same P and Q. The sample above works this way.

Safety notice and disclaimer

The program on this page is a training example and its dimensions are for illustration. Before running it on your machine, check the tool and work offsets, prove it out in graphics and run the first part in single block with reduced feed and rapid override. The same code can behave differently on different controls and software versions; the Haas operator’s manual always takes priority. Mentor CNC cannot be held responsible for damage or injury arising from the use of this information.

Mentor CNC logo

MENTOR CNC
CNC knowledge from the shop floor

Mentor CNC turns hands-on shop-floor experience in CNC turning, CNC milling, CNC controls, cutting tools and engineering calculations into clear, practical technical content.

Our goal is to help operators, students, engineers and shop owners reach accurate information faster and make safer, more efficient decisions in production.