G74

Machining center, LatheModal, group 09

Left-hand tapping cycle (reverse tapping)

On machining centers

G74 X_ Y_ Z_ R_ P_ F_ K_

Diagram: G74 motion (side view)

RapidCutting feedSwitch to CW at bottomInitial pointR pointHole bottom Z① Rapid to R point② Tap in with spindlereverse (left-hand thread)③ CW at hole bottom④ Feed out toR point⑤ Rapid to initial point
Taps in with spindle reverse, switches to forward at the hole bottom and feeds out (left-hand thread). Figure shows G98 (rapid from R point to initial point).

On lathes: End face grooving cycle / Z-direction deep hole peck drilling

The same number means something different on lathes (FANUC-type G-code system A). Group 00.

G74 R_ (retract amount);
G74 X(U)_ Z(W)_ P_ (X travel) Q_ (Z depth of cut) R_ F_

Diagram (lathe): G74 (lathe), peck drilling in Z

RapidCutting feedStart pointQRetracts by R every QZ (hole bottom)(motions drawnoffset vertically)
Without X, it drills a deep center hole in Z, feeding Q at a time and rapid-retracting by the R amount of the first block each time to break the chip. With X and P, it becomes a face grooving cycle.

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.

SourceMachineItemDetail
HaasLatheFormatG74 X(U)_ Z(W)_ I_ K_ D_ F_ (one-block format; peck retract is Setting 22)

Frequently asked questions about G74

What is G74 (Left-hand tapping cycle (reverse tapping)) used for and how is it formatted in a CNC program?
G74 commands "Left-hand tapping cycle (reverse tapping)" on Machining center, Lathe. The standard program format is "G74 X_ Y_ Z_ R_ P_ F_ K_". Cuts in with the spindle in reverse and switches to forward at the hole bottom to withdraw. For left-hand threads
Is G74 a modal code or a one-shot (non-modal) code?
G74 is a modal code (Group 09). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
Does G74 work differently on machining centers (mills) versus CNC lathes?
Yes. On a machining center G74 means "Left-hand tapping cycle (reverse tapping)", whereas on a CNC lathe (FANUC G-code System A) G74 means "End face grooving cycle / Z-direction deep hole peck drilling" (lathe format: "G74 R_ (retract amount); G74 X(U)_ Z(W)_ P_ (X travel) Q_ (Z depth of cut) R_ F_"). Never copy G74 between mill and lathe programs without checking which G-code system (A, B, or C) your lathe uses.
Are there differences in G74 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 G74. 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.

  1. 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
  2. Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
  3. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
  4. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
  5. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com