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)

📚Sources

The meaning shown agrees in at least two sources (agreement confirmed). 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