G-code reference

G74 G-Code: Left-Hand Tapping (Mill) / Face Peck Drilling (Lathe)

Left-Hand Tapping (Mill) / Face Peck Drilling (Lathe) — Mill: tapping cycle for left-hand threads. The spindle runs CCW in, then reverses. Lathe: peck drilling/grooving along Z.

By cnccode · Updated
PropertyValue
CodeG74
FunctionLeft-Hand Tapping (Mill) / Face Peck Drilling (Lathe)
Modal group09
TypeOne-shot (non-modal) — active only in its own block
Used onMills and lathes
SyntaxMill: G74 X_ Y_ Z_ R_ F_

What does G74 do?

Mill: tapping cycle for left-hand threads. The spindle runs CCW in, then reverses. Lathe: peck drilling/grooving along Z.

G74 is a one-shot code: it only acts in the block where it is written, and the previously active modal codes take over again afterwards.

Syntax and parameters

Format
Mill: G74 X_ Y_ Z_ R_ F_
AddressMeaning
FFeed = RPM × pitch (G94) or pitch (G95)

G74 example program

Example
M04 S300
G74 X0 Y0 Z-15.0 R5.0 F375. (M10x1.25 LH)
G80

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Start the spindle in M04 before G74.
  • Lathe G74 Q is peck depth in microns.

Controller compatibility

G74 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.

Frequently asked questions

Is G74 modal?
No. G74 is a one-shot (group 00) code and only acts in the block where it appears.
What does G74 mean in CNC?
G74 means Left-Hand Tapping (Mill) / Face Peck Drilling (Lathe). Mill: tapping cycle for left-hand threads. The spindle runs CCW in, then reverses. Lathe: peck drilling/grooving along Z.
What is the difference between G74 and G84?
G74 is Left-Hand Tapping (Mill) / Face Peck Drilling (Lathe), while G84 is Tapping Cycle (Right-Hand). See the G84 page for its syntax and examples.
Can I use G74 on a lathe?
Yes, G74 is used on both mills and lathes, although some parameters differ between them.