Skip to content

G32: point-to-point threading synchronized with the spindle

G32 moves the tool along the axis in sync with spindle rotation, so that for every turn of the part the carriage advances exactly one thread pitch. It is threading in its most basic form: one pass per block, with no cycle to split up the depths or work out the retract. That makes it more work than G76 and also more flexible, because you decide every pass. On lathes it is used mainly for special threads, for taper threads, for chasing an existing thread and when the multi-pass cycle does not give you the depth split you want.

For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Lathe cycles
Machine
Turning, Mill-turn
Risk
High
Example
G32 Z-20 F1.5

Syntax by control

Fanuc (lathe)
G32 Z-30. F1.5
F is the thread pitch, not a feed per minute or per revolution: in G32 the F changes meaning. Each G32 block makes one pass, and the approach, the pass and the retract have to be programmed separately.
Fanuc (taper thread)
G32 X40. Z-30. F1.5
Writing X and Z together gives you a taper thread. In that case the pitch F is measured, depending on the control, along the axis with the longer travel; check the manual before threading a taper.
Haas (lathe)
G32 Z-30. F1.5
Same syntax as Fanuc. Haas also accepts a K for multi-start threads on some models; confirm in your machine manual whether your control takes it.
Siemens 840D / 828D
G33 Z-30 K1.5
On Siemens, constant-pitch threading is G33, and the pitch goes in K for a longitudinal thread or in I for a face thread. G32 does not exist with that meaning, so a program cannot be copied over as is.
Fanuc (cycles that replace it)
G92 (simple cycle) / G76 (multi-pass cycle)
G92 repeats one complete pass per block with an automatic retract, and G76 calculates all the passes of the thread. G32 is the base both are built on, and it is kept for what they cannot handle.

Address letters used with it

LetterWhat it setsUnit
ZEnd point of the pass on longitudinal threads. It has to include the lead-out: stopping right at the end of the thread leaves no margin for the retract.mm / in
XDiameter of the pass. On taper threads it is written together with Z; on straight threads it is only used to position before the threading block.mm / in, on diameter
FThread pitch in millimeters per revolution. In a G32 block, F is not the usual cutting feed: it is the pitch, and feed override has no effect on it.mm/rev
QStart angle shift on controls that support it, for multi-start threads. Its availability and resolution depend on the control.degrees
S with G97Fixed rpm. Threading requires G97: with constant surface speed the rpm would change during the pass and the pitch would come out wrong.rpm

Worked example

M30 x 1.5 metric thread, 25 mm long, on a steel shaft, cut by hand with G32 in five passes of decreasing depth plus one spring pass. The total thread depth for that pitch is around 0.92 mm on the radius, so the final diameter ends up at about 28.16 mm. Each pass needs its approach, its G32 block and its retract.

O0406 (ROSCA M30X1.5 CON G32)
( Program header. )
G21 G18 G40 G99
( Millimeters, lathe XZ plane and feed per revolution. )
T0707
( External threading tool with its offset. )
G97 S700 M03
( Fixed rpm, mandatory for threading. With G96 the pitch would come out variable. )
G00 X32. Z5. M08
( Approach outside the diameter with a lead-in stroke: the 5 mm ahead of the part are what the carriage needs to synchronize. )
G00 X29.6
( First pass: goes in 0.4 mm in diameter from the nominal 30, that is, 0.2 mm on the radius. )
G32 Z-27. F1.5
( Threading pass to Z-27, two millimeters past the end of the thread to give it a lead-out. F1.5 is the pitch, not the feed. )
G00 X32.
( Retract in X, with the carriage already past the thread. )
G00 Z5.
( Returns to the start point for the next pass. )
G00 X29.0
( Second pass: 0.3 mm more depth on the radius. )
G32 Z-27. F1.5
( Second threading pass, same pitch and same end point. )
G00 X32.
( Retract. )
G00 Z5.
( Back to the start. )
G00 X28.6
( Third pass, less depth each time so the cutting load stays similar. )
G32 Z-27. F1.5
( Third pass. )
G00 X32. / G00 Z5. / G00 X28.3
( Retract, return and start of the fourth pass. )
G32 Z-27. F1.5
( Fourth pass. )
G00 X32. / G00 Z5. / G00 X28.16
( Retract, return and fifth pass, now at the final thread diameter. )
G32 Z-27. F1.5
( Final pass. )
G00 X32. / G00 Z5.
( Retract and return. )
G00 X28.16
( Back to the final diameter, with no added depth, for the spring pass. )
G32 Z-27. F1.5
( Spring pass with no added depth, which cleans up the thread and makes up for tool deflection. )
G00 X32.
( Retract in X, with the carriage already past the thread. )
G00 X200. Z100. M09 M05
( Retract to the tool change position, coolant off and spindle stopped. )
M30
( End of program. )
Open the simulator to check the example

Practical keys to using G32 in the workshop

Lead-in, lead-out and why you cannot cut them short

The carriage needs a stroke to accelerate up to the exact pitch before it reaches the thread, and another one to slow down at the end. As a rule, the lead-in is three to five times the pitch ahead of the part and the lead-out is two or three millimeters past the end of the thread, or a thread relief if the thread runs up to a shoulder. Trimming those margins shows up right away: the first threads come out with a short pitch and the last one gets chewed up. If there is no room for the lead-out, the fix is not to bring the end point closer, it is to cut a relief groove first with the grooving tool.

You decide how the passes are split

G32 splits nothing: each block is one pass and you set the depth. The rule of thumb in the shop is deeper first passes and lighter last passes, so the chip cross-section stays similar and the cutting edge does not suffer at the end. For a normal metric thread, five or six passes plus a spring pass with no added depth is a reasonable split. That last pass is not a whim: the tool deflects, and without it the thread ends up a few hundredths shallower than calculated.

Why the spindle has to run at a fixed rpm

Synchronization relies on the spindle encoder: for every revolution, the carriage advances one pitch. If you turn on constant surface speed, the rpm changes as the diameter varies, and although the control tries to keep up, the pitch degrades on taper threads and during acceleration. That is why threading is always programmed with G97 and a fixed rpm, and why feed override has no effect on a G32 block. Spindle override, on the other hand, can have an effect on some controls, so during threading it stays at one hundred percent and nobody touches it.

Mistakes that cost you a part (or a tool)

  • Reading F as a feed instead of the pitch: in a G32 block F is the thread pitch, and a wrong number ruins the part on the first pass.
  • Threading with G96 active: the rpm changes during the pass and the pitch comes out irregular.
  • Not leaving enough lead-in: the first threads come out with a short pitch because the carriage was still accelerating.
  • Ending the pass right at the end of the thread, with no lead-out or relief: the tool ends up jammed against the shoulder.
  • Changing the rpm between passes: the tool loses sync with the thread already cut and you end up with two overlapping threads.
  • Splitting all the passes at the same depth: the last one overloads the cutting edge because the chip is wider.
  • Leaving out the final pass with no added depth: tool deflection leaves the thread oversize.

Frequently asked questions

What is the difference between G32, G92 and G76?

G32 makes one pass per block and you program the approach and the retract. G92 is a simple cycle that makes the complete pass, including the return to the start point, with one block per pass. G76 is the multi-pass cycle: you give it the thread and it calculates all the passes and how they are split.

Can I cut a taper thread with G32?

Yes, by writing X and Z in the same block. What you have to confirm in the manual is which axis your control measures the pitch F along, because the rule is not the same on all of them and on a taper the error builds up along the thread.

Why doesn't feed override work during threading?

Because the move is synchronized with the spindle: if the control let you change the feed, the pitch would change with it. For the same reason, it is best to leave spindle override at one hundred percent while threading.

How many passes does a thread need?

It depends on the pitch, the material and the insert. A fine-pitch metric thread gets by with four or five; a coarse pitch in steel takes six to eight at decreasing depth. The best reference is the insert manufacturer's table, which gives the number of passes and the split.

Can G32 be used to chase a thread that is already cut?

Yes, and it is one of its classic uses, as long as you manage to get back into the same thread. That takes starting at the same spindle angular position, which some controls allow with the Q shift and others handle by keeping the part clamped the whole time.

Related codes

Other codes in Lathe cycles

See the full list of G and M codes

Related apps