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.
| Property | Value |
|---|---|
| Code | G74 |
| Function | Left-Hand Tapping (Mill) / Face Peck Drilling (Lathe) |
| Modal group | 09 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Mills and lathes |
| Syntax | Mill: 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
Mill: G74 X_ Y_ Z_ R_ F_| Address | Meaning |
|---|---|
F | Feed = RPM × pitch (G94) or pitch (G95) |
G74 example program
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.