Printed from Kezuriba (kezuriba.net/en/nc/g74/)
G74
Machining center, LatheModal, group 09Left-hand tapping cycle (reverse tapping)
On machining centers
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
- Feed is pitch × spindle speed (feed per minute). With feed per revolution, put the pitch directly in F
- How to switch to rigid tapping differs by machine (M29, etc.; see the M29 entry)
Diagram: G74 motion (side view)
Full guide with examples: Canned cycles: how each one moves, how to choose, G98 vs G99
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_
- If X is omitted, it can be used as a Z-direction peck drilling (deep hole drilling) cycle at the center
- P (travel in X) and Q (depth of cut in Z) are generally written, as with P and Q of G76, as integers in the least input increment without a decimal point (usually 0.001 mm) (e.g. Q2000 is 2 mm). How a decimal point is handled differs by machine, so check the machine's manual
Diagram (lathe): G74 (lathe), peck drilling in Z
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.
| Source | Machine | Item | Detail |
|---|---|---|---|
| Haas | Lathe | Format | G74 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.
- 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
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com