A Haas lathe has two single-line pecking cycles. G74 pecks along Z; it cuts face grooves and peck drills on the spindle centerline. G75 pecks along X; it cuts O.D. or I.D. grooves. Both make a short retract against the feed direction to break the chip, set by Setting 22. For the FANUC formats: G74 end-face peck drilling and G75 grooving cycle.
G74: face grooving and peck drilling
| Address | Meaning |
|---|---|
| Z | Final pecking depth (absolute) |
| W | Incremental depth instead of Z |
| K | Z increment between pecks |
| X | Diameter of the furthest peck cycle (absolute) |
| U | Incremental value instead of X |
| I | X increment between peck cycles, diameter |
| D | X clearance when returning to the start plane (optional) |
| F | Feed rate |

- With only Z and K, the tool pecks down at its current diameter. At X0, that is peck drilling.
- If X (or U) is added and X is not the current position, at least two peck cycles run: one at the current diameter and one at X. Adding I repeats the cycle at I intervals in between; if the distance does not divide evenly by I, the last interval is smaller.

The manual’s warning on D: D is rarely used and only when the outer wall of the groove does not exist. If both groove walls exist and D shifts the tool in X, the grooving tool will break.
Metric example: peck drilling with G74
%
O01004 (HAAS G74 PECK DRILLING - DIMENSIONS ARE EXAMPLES)
(G54 X0 SPINDLE CENTERLINE, Z0 FINISHED FACE)
(T4 = 10 MM DRILL, SETTING 9 = MM)
T404
G00 G18 G21 G40 G80 G99
G97 S1200 M03
G00 G54 X0. Z3.
M08
G74 Z-30. K5. F0.12
G00 Z5.
G00 G53 X0 M09
G53 Z0 M05
M30
%G74 Z-30. K5. F0.12 drills at X0 to 30 mm depth in 5 mm pecks. After each peck the drill backs off by the Setting 22 amount.
G75: O.D. and I.D. grooving
| Address | Meaning |
|---|---|
| X | Groove bottom diameter (absolute) |
| U | Incremental depth instead of X |
| I | X increment between pecks, radius |
| Z | Z position of the furthest groove (absolute) |
| W | Incremental value instead of Z |
| K | Z increment between grooves |
| D | Tool clearance when returning to the start plane (optional) |
| F | Feed rate |

- With only X and I, one groove is cut at the current Z.
- If Z (or W) is added and Z is not the current position, at least two grooves are cut; K adds evenly spaced grooves in between. If the distance does not divide evenly by K, the last interval is smaller.
- With K smaller than the insert width, the grooves overlap into one wide groove.
Metric example: wide groove with G75
%
O01005 (HAAS G75 OD GROOVE - DIMENSIONS ARE EXAMPLES)
(G54 X0 SPINDLE CENTERLINE, Z0 FINISHED FACE)
(T5 = 3 MM GROOVING INSERT, STOCK DIA 50 MM, SETTING 9 = MM)
T505
G00 G18 G21 G40 G80 G99
G50 S2000
G97 S800 M03
G00 G54 X52. Z2.
M08
G01 Z-20. F0.2
G75 X40. Z-30. I1. K2.5 F0.06
G00 X60.
G00 G53 X0 M09
G53 Z0 M05
M30
%| Block | Explanation |
|---|---|
| G01 Z-20. F0.2 | The insert moves to the first groove position above the stock diameter |
| G75 X40. Z-30. I1. K2.5 F0.06 | From Ø50 to Ø40 in 1 mm pecks; grooves from Z-20 to Z-30 at 2.5 mm spacing |
| G00 X60. | The insert leaves the diameter before returning home |
With a 3 mm insert, a 2.5 mm step overlaps the grooves; the Z positions depend on which edge of the insert was set as its Z zero. Add a separate finishing pass if you need finished groove walls.
Why is I different in G74 and G75?
The manual defines I as a diameter in G74 and as a radius in G75. Watch for this when copying I values between the two cycles.
Common mistakes
- Entering the cycle with tool nose compensation on: the manual requires G40 before G74 and G75: Haas lathe TNC.
- Using D when both groove walls exist: the insert breaks.
- K or I larger than the insert width: material is left between grooves.
- Treating G74 like G75 and entering I as a radius.
- Choosing a start point inside the material.
FAQ
Is it right to peck drill with Haas G74?
Yes. The manual describes G74 as the cycle for face grooving, peck drilling or turning. With the tool at X0, giving only Z and K is peck drilling.
Where is the chip-breaking retract set?
In Setting 22 for both cycles. Check the value on your machine’s Settings page.
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.
