CNC mill · G-code
G74: left-hand (reverse) tapping cycle
G74 taps a left-hand thread: the spindle runs in reverse going in and forward coming out. Like G84, the feed per revolution equals the pitch, so F = RPM × pitch in inches per minute. Haas lists it in modal group 09. Formats below from Haas, LinuxCNC, Mach4 and Fanuc, each from its maker.
On a Haas lathe, G74 is the end face grooving cycle.
Worked example
1/4-20 left-hand tap at 500 RPM: F = 500 × 0.05 = 25 in/min. Written for this page in the Haas format.
T5 M06 (1/4-20 LH tap)G00 G90 G54 X1. Y1.G43 H05 Z0.1 M08G74 Z-0.5 R0.2 F25. S500X2.G80 G00 Z1. M09 (cancel the cycle)M30A 1/4-20 LH tap at 500 RPM feeds F = 500 × 0.05 = 25 in/min in G94, or F0.05 per rev in G95.
How each control writes it
Haas G74 X- Y- Z- R- F- S- (the G84 words, spindle reversed)
One source: Haas Automation, the control's maker
- X
- X location of the hole (optional)
- Y
- Y location of the hole (optional)
- Z
- Z position at the bottom of the hole
- R
- R plane: the Z position above the part the cycle feeds from (optional)
- F
- Feedrate
- L
- Number of holes (repeats) in G91 incremental mode (optional)
- S
- Spindle speed (optional)
- Haas documents G74 with its G84 tapping cycle: the same words, for a left-hand tap.
Source: Haas Automation, mill G74
LinuxCNC G74 X- Y- Z- R- L- P- $- F-
One source: the LinuxCNC project, the control's maker
- X
- Hole X location (optional)
- Y
- Hole Y location (optional)
- Z
- Final depth
- R
- Retract (R) plane along Z
- L
- Repeat count, used in incremental mode (optional)
- P
- Dwell at the bottom, seconds (optional)
- $
- Spindle to use (optional)
- F
- Feed: spindle speed × pitch
- G74 is not synchronized: it is for a floating tap holder.
- At the bottom the spindle switches to clockwise, dwells P, and feeds out.
Source: LinuxCNC documentation, "G74 Left-hand Tapping Cycle with Dwell" (archived Oct 29, 2026)
Mach4 G74 X- Y- Z- R- L- F- (rigid: G84.3)
One source: Artsoft (Newfangled Solutions), the control's maker
- X
- Hole X position (optional)
- Y
- Hole Y position (optional)
- Z
- End point (bottom) of the hole
- R
- Retract plane; the rapid plane under G99 (optional)
- L
- Number of repetitions (optional)
- F
- Feed: RPM × pitch in G94, or the pitch in G95
- Start the spindle in reverse before calling G74.
- Rigid left-hand tapping is G84.3.
Source: Mach4 Mill Programming Guide v1.1 (Artsoft), "G74 Left Hand Tapping" (archived Jul 1, 2024)
Fanuc G74 X_ Y_ Z_ R_ P_ F_ K_ ;
One source: FANUC, the control's maker
- X
- Hole X position (optional)
- Y
- Hole Y position (optional)
- Z
- Bottom of the hole: a position in G90, the distance from the R point in G91
- R
- R point: a position in G90, the distance from the initial level in G91
- P
- Dwell at the bottom of the hole (optional)
- F
- Feedrate
- K
- Number of repeats, for equally spaced holes (give the first hole in G91) (optional)
- FANUC 0i-MF (machining centre), from its operator’s manual. On another FANUC model, check that control’s manual.
- Start the spindle counterclockwise with an M code before the cycle; it turns clockwise to back out.
- Feedrate override is ignored while it taps.
- G98 returns to the initial level after the hole, G99 to the R point.
Source: FANUC B-64604EN-2/01, Operator's Manual, 0i-MF (machining centre), §5.1.2
How the controls differ
- Only Haas takes S.
- Only LinuxCNC takes $.
- Only Fanuc takes K.
- 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.