G-code reference
G32 G-Code: Thread Cutting (Single Pass, Lathe)
Thread Cutting (Single Pass, Lathe) — Fanuc lathe single-pass threading synchronised to the spindle encoder. Each pass must be programmed separately, so it is mostly used for special threads; G92…
| Property | Value |
|---|---|
| Code | G32 |
| Function | Thread Cutting (Single Pass, Lathe) |
| Modal group | 01 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Lathes |
| Syntax | G32 Z_ F_ (F = lead) |
What does G32 do?
Fanuc lathe single-pass threading synchronised to the spindle encoder. Each pass must be programmed separately, so it is mostly used for special threads; G92 or G76 are easier for standard threads.
G32 is modal: once programmed it remains in effect for the following blocks until another code from modal group 01 replaces it or the control is reset.
Syntax and parameters
G32 Z_ F_ (F = lead)| Address | Meaning |
|---|---|
X Z (U W) | Thread end point |
F | Thread lead (pitch × starts) |
G32 example program
G00 X9.4 Z3.0
G32 Z-20.0 F1.5
G00 X12.0
Z3.0▶ Open this example in the G-code viewer
Tips and common mistakes
- Feed hold does not stop mid-thread — the move completes.
- Start far enough before the part (2–4 × lead) for acceleration.
- On mills G33 is the equivalent.
Controller compatibility
G32 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.
Related codes
- G92 — Coordinate System Setting (Mill) / Threading Cycle (Lathe)
- G76 — Threading Cycle (Lathe) / Fine Boring (Mill)