CNC lathe · G-code
G74: end face grooving and peck drilling cycle
On a lathe, G74 pecks in Z: face grooves, peck drilling on centre, or turning in steps. Haas lists it as one-shot (group 00). Formats below from Haas and Fanuc, each from its maker. LinuxCNC has no such code.
On a Haas mill, G74 is the left-hand (reverse) tapping cycle.
Worked example
A face groove in 0.1" pecks, stepping out 0.2" a cycle. Written for this page in the Haas format.
G00 X1.35 Z0.1G74 X1.75 Z-0.5 I0.2 K0.1 F0.01G00 Z1.How each control writes it
Haas G74 X- Z- I- K- F- D-
One source: Haas Automation, the control's maker
- X
- X of the last peck cycle (diameter) (optional)
- Z
- Z of the full depth
- U
- Incremental X (optional)
- W
- Incremental Z depth (optional)
- I
- X step between peck cycles (diameter) (optional)
- K
- Z peck increment (optional)
- F
- Feedrate
- D
- Tool clearance before the return; rarely used: with walls on both sides of the groove it breaks the tool (optional)
- With an X other than the start, it pecks at least twice: at the start and at X; I sets the steps between.
- The peck retract is Setting 22.
Source: Haas Automation, lathe G74
Fanuc G74 R(e) ; G74 X(U)_ Z(W)_ P(Δi) Q(Δk) R(Δd) F_ ; (two blocks)
One source: FANUC, the control's maker
- R (first block)
- Return amount after each peck (optional)
- X(U), Z(W)
- End point
- P
- Step in X between pecks, no decimal point (optional)
- Q
- Depth of each peck in Z, no decimal point
- R (second block)
- Relief at the bottom (optional)
- F
- Feedrate
- FANUC 0i-TF (lathe), G code system A (U and W are incremental), from its operator’s manual. On another FANUC model or G code system, check that control’s manual.
Source: FANUC B-64604EN-1/01, Operator's Manual, 0i-TF (lathe), §4.2.5
Controls without it
- LinuxCNC: LinuxCNC has no face grooving cycle; its G74 is left-hand tapping with a floating holder. Source (archived Oct 29, 2026)
How the controls differ
- Only Haas takes D, I, K, U, W, X, Z.
- Only Fanuc takes P, Q, R (first block), R (second block), X(U), Z(W).
- A word two controls share can still mean different things: read each control's list above.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.