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…

By cnccode · Updated
PropertyValue
CodeG32
FunctionThread Cutting (Single Pass, Lathe)
Modal group01
TypeModal — stays active until replaced by another code of the same group
Used onLathes
SyntaxG32 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

Format
G32 Z_ F_ (F = lead)
AddressMeaning
X Z (U W)Thread end point
FThread lead (pitch × starts)

G32 example program

Example
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.

Frequently asked questions

Is G32 modal?
Yes. G32 belongs to modal group 01 and stays active until another code of that group is programmed.
What does G32 mean in CNC?
G32 means 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 or G76 are easier for standard threads.
What is the difference between G32 and G92?
G32 is Thread Cutting (Single Pass, Lathe), while G92 is Coordinate System Setting (Mill) / Threading Cycle (Lathe). See the G92 page for its syntax and examples.
Can I use G32 on a mill?
Usually not with the same meaning: G32 is documented here for lathes. Check your control manual for the equivalent.