G-code reference

G74: Left-hand tapping cycle (mill) or Face peck drilling / grooving (lathe)

G74 means two different things. On a mill, it is left-hand tapping cycle: taps a left-hand thread: spindle counterclockwise in, clockwise out. On a lathe (Fanuc G-code system A), it is face peck drilling / grooving: pecks along Z, used for drilling on centre or face grooving. Check which machine a program is written for before reading it.

G74 on a mill: Left-hand tapping cycle

G74 is the left-hand version of G84. The spindle runs counterclockwise going in and reverses to come out. It is rare compared with right-hand tapping.

TypeG-code
MachineMill
GroupCanned cycle
ModalYes: stays active until replaced by another code from the same group

G74 example (mill)

G74 X0. Y0. Z-12. R3. F1.

Left-hand tap to Z-12.

WordWhat it means here
G74Left-hand tapping cycle
X0.X axis target (on a lathe, the diameter)
Y0.Y axis target
Z-12.Z axis target or depth
R3.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
F1.feed rate (on threading codes, the lead)

Codes people confuse with G74 on a mill

CodeWhat it does instead
G84 Tapping cycle (right hand). Taps to depth, reverses the spindle and feeds out.
G74 (lathe) Face peck drilling / grooving (lathe). Pecks along Z, used for drilling on centre or face grooving.

Other codes in the canned cycle group

Only one code from a modal group is active at a time. Programming any of these replaces G74.

  • G73 High-speed peck drilling
  • G76 Fine boring cycle
  • G80 Canned cycle cancel
  • G81 Drilling cycle (spot drill)
  • G82 Drilling cycle with dwell
  • G83 Deep hole peck drilling
  • G84 Tapping cycle (right hand)
  • G85 Boring cycle (feed out)
  • G86 Boring cycle (spindle stop, rapid out)
  • G89 Boring cycle with dwell (feed out)

G74 on a lathe: Face peck drilling / grooving

On a lathe, G74 pecks in Z with retracts to break chips: drilling on the centre line, or face grooving. On a mill, G74 is left-hand tapping.

TypeG-code
MachineLathe (G-code system A)
GroupLathe cycle
ModalNo: acts only on its own line

G74 example (lathe)

G74 R1.
G74 Z-30. Q5000 F0.15

Peck to Z-30 in 5 mm steps.

WordWhat it means here
G74Face peck drilling / grooving (lathe)
R1.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
Z-30.Z axis target or depth
Q5000peck depth or another cycle setting
F0.15feed rate (on threading codes, the lead)

Codes people confuse with G74 on a lathe

CodeWhat it does instead
G74 (mill) Left-hand tapping cycle. Taps a left-hand thread: spindle counterclockwise in, clockwise out.
G75 Grooving cycle (X). Pecks along X to cut a groove on a diameter.

Other codes in the lathe cycle group

These also act only on their own line.

  • G70 Finishing cycle
  • G71 Rough turning cycle
  • G72 Rough facing cycle
  • G73 Pattern repeating cycle (lathe)
  • G75 Grooving cycle (X)
  • G76 Threading cycle (multi-pass)
  • G90 Outside/inside diameter cutting cycle (lathe)
  • G92 Thread cutting cycle (lathe)
  • G94 Facing cycle (lathe)

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G74

  1. What does G74 do? (Mill)

  2. What does G74 do? (Lathe)

  3. Which code: Taps a left-hand thread: spindle counterclockwise in, clockwise out.(Mill)

Show the answers
  1. Taps a left-hand thread: spindle counterclockwise in, clockwise out.
  2. Pecks along Z, used for drilling on centre or face grooving.
  3. G74

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G74 mean in CNC programming?
On a mill: Left-hand tapping cycle. Taps a left-hand thread: spindle counterclockwise in, clockwise out. On a lathe: Face peck drilling / grooving (lathe). Pecks along Z, used for drilling on centre or face grooving.
Is G74 modal?
Yes. G74 belongs to the canned cycle group and stays active until another code from that group is programmed.
What is the difference between G74 and G84?
G74 (left-hand tapping cycle): taps a left-hand thread: spindle counterclockwise in, clockwise out. G84 (tapping cycle (right hand)): taps to depth, reverses the spindle and feeds out.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint