Skip to content

G92 on a lathe: threading cycle with one pass per block

On a Fanuc or Haas lathe with G code system A, G92 is a simple threading cycle: each block makes one complete thread pass, with approach, cutting at constant pitch, retract and return to the start point. To cut a thread you write several G92 blocks in a row, each with a slightly smaller X, until you reach the root diameter. It has nothing to do with the milling G92, which shifts the coordinate origin: the meaning depends on whether the machine is a lathe or a mill and on which G code system it is set up with.

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
G92 X18. Z-25. F1.5

Syntax by control

Fanuc (lathe, G code system A)
G92 X28.0 Z-25.0 F2.0
X is the diameter of that pass, Z the end of the thread and F the pitch. Each following block only needs the new X. In G code system B the same cycle is called G78, and in system C, G21: check which system your lathe uses.
Fanuc (taper thread)
G92 X28.0 Z-25.0 R-1.5 F2.0
R is the radius difference between the start and the end of the thread, with its sign. It is what you use for taper threads such as NPT. Without R, the thread is straight.
Haas (lathe)
G92 X28.0 Z-25.0 F2.0
Same structure. On Haas the thread run-out chamfer is controlled with M23 and M24 and with the chamfer size and angle settings, not inside the G92 block.
Fanuc (multi-pass cycle)
G76 P... Q... R... / G76 X... Z... P... Q... F...
G76 is the multiple cycle: with a couple of blocks it calculates all the passes, the depth split and the angle of the cutting edge. It is what you use for normal threads; G92 is kept for cases where you want to control each pass by hand.
Haas (multi-pass cycle)
G76 X... Z... K... D... F... A... P...
It is the same multiple cycle, but Haas writes it in a single block, not two as on a Fanuc.
Siemens 840D / 828D
CYCLE97(...) / G33 Z... K...
Siemens threads with CYCLE97 and CYCLE99, or with G33 block by block. There is no threading G92; when you port a program you have to rebuild the operation.

Address letters used with it

LetterWhat it setsUnit
X (or U)Diameter that pass cuts to. A different X is written in each block, getting smaller on an external thread, until you reach the root diameter.mm on diameter (U if incremental)
Z (or W)End point of the thread on the axis. Leave enough lead-out for the tool to retract without eating into the end of the thread.mm
FThread pitch. It is the only F in the program that is not a feed: it is the millimeters the tool travels per revolution of the part, in other words the pitch.mm/rev = pitch
RRadius difference between the start and the end of the thread, with its sign, for taper threads. If it is not written, the thread comes out straight.mm on the radius
QThread start angle relative to the spindle reference pulse, for multi-start threads. Its format is usually thousandths of a degree with no decimal point: check the control manual.degrees, format depends on the control

Worked example

External M30 x 2 metric thread on a steel shaft, cut with a 60-degree full-profile insert. The total thread depth for a 60-degree metric thread is approximately 0.613 times the pitch, that is, 1.23 mm on the radius, which brings the theoretical root diameter to about 27.5 mm. X27.7 is the last pass of this example, and the rest is adjusted by checking with the gauge. The passes decrease in depth: a lot at the start, little at the end, so the chip cross-section stays more or less constant.

O0192 (ROSCA M30X2 CON G92)
( Program header. )
G21 G18 G40
( Millimeters, lathe XZ plane and no tool nose radius compensation. )
T0707 (PLAQUITA DE ROSCAR 60 GRADOS)
( Threading tool with its offset. )
G97 S800 M03
( Fixed rpm. G96 is never used for threading: constant surface speed would change the rpm and the pitch would come out wrong. )
G00 X34. Z5. M08
( Approach to a diameter larger than the thread and five millimeters ahead of the face, which is the acceleration distance before cutting starts. )
G92 X29.4 Z-25. F2.0
( First pass: goes down to Ø29.4, that is, 0.3 mm of depth on the radius. The cycle moves in, threads to Z-25, retracts in X and returns to the start point on its own. )
X28.9
( Second pass. Only the new X is needed: the Z and the pitch stay active from the previous block. )
X28.5
( Third pass, now with less depth than the one before. )
X28.2
( Fourth pass. )
X27.95
( Fifth pass. )
X27.8
( Sixth pass, closing in on the root. )
X27.7
( Seventh pass: 0.1 mm. )
X27.7
( Spring pass at the same diameter, removing no material, to leave the thread clean and correct for tool deflection. )
G00 X200. Z100. M09
( Retract to the tool change position and coolant off. )
M05
( Spindle stopped. )
M30
( End of program. The root dimension is checked with a thread gauge or with thread wires: the 27.7 is the last pass of this example, and whatever is left to the root is adjusted by checking with the gauge. )
Open the simulator to check the example

Practical keys to using G92 lathe in the workshop

How the passes are split

If every pass took the same amount off the radius, the chip cross-section would grow with each one, because the thread is a triangle: by the end the tool would be working with far more cutting area and it would break. That is why the split decreases, with a lot of depth in the first passes and very little in the last ones, finishing with one or two spring passes at the same diameter to correct for insert deflection. The number of passes for a normal metric thread is usually between five and eight for small pitches and reaches twelve or more for large pitches.

What the cycle does on its own and what it does not

G92 handles the awkward part: it moves in at rapid to the programmed X, threads in sync with the spindle to Z, retracts in X at the end and returns to the start point, all in one block. What it does not do is calculate the total depth, split the passes or decide the infeed angle of the cutting edge: you set that by writing the X values. Nor does it protect you from a short lead-out: if the final Z is right up against a shoulder and the tool has no room to retract, the last thread comes out chewed up. For ordinary threads, the G76 multiple cycle does all that calculation for you.

Do not confuse it with the milling G92

On a mill, G92 sets a coordinate origin: it declares that the current tool position is the coordinate you write. On a lathe with G code system A, the same number is this threading cycle. It is not a conflict in the language but two different G code lists for two different types of machine. And within lathes there is more than one list: in system B the threading cycle is called G78, in system C it is G21, and in both G92 goes back to meaning an origin shift. Before you write the block, check which system your control is set to.

Mistakes that cost you a part (or a tool)

  • Threading with G96 active: constant surface speed changes the rpm during the pass and the pitch comes out irregular or the thread gets ruined.
  • Splitting all the passes at the same depth: the chip cross-section grows as you go deeper into the thread and the insert ends up breaking on the last passes.
  • Starting the cycle right up against the part face: the machine needs an acceleration distance before it picks up the pitch, and without it the first threads come out badly formed.
  • Leaving too little lead-out at the end of the thread: the tool has no room to retract and either chews up the last thread or hits the shoulder.
  • Writing F as if it were a feed: in this cycle F is the thread pitch, so an F0.2 copied from a turning pass gives you a thread with a 0.2 mm pitch.
  • Porting the block to a machine with a different G code system and finding out that G92 shifts the origin there instead of threading.
  • Reaching the calculated root diameter and calling the thread good without checking it with a gauge: tool deflection and the actual cutting edge make the theoretical dimension just a starting point.

Frequently asked questions

Is G92 on a lathe the same as G92 on a mill?

No. On a mill, G92 sets a coordinate origin. On a lathe with G code system A, G92 is the simple threading cycle. It is the same number used for two different things on two types of machine, which is why you cannot move a block from one to the other.

What is the difference between G92 and G76 for threading?

G92 makes one pass per block and you decide each diameter. G76 is the multiple cycle: with two blocks on a Fanuc, or one on a Haas, it works out all the passes, the decreasing split and the infeed angle of the cutting edge on its own. G76 is what you use for normal threads; G92 is left for when you want to control the thread pass by pass.

What do I put in the cycle's F?

The thread pitch in millimeters: F2.0 for an M30x2, F1.5 for an M10x1.5. It is not a cutting feed. For threads given in threads per inch, you have to convert to pitch or use the format your control accepts.

How many passes do I need?

It depends on the pitch, the material and the insert. For a small-pitch metric thread, five to eight decreasing passes plus one or two spring passes are usually enough; on large pitches you easily go past twelve. The insert manufacturer's tables give the recommended split.

How do I cut a taper thread with G92?

By adding the R address, which is the radius difference between the start and the end of the thread, with its sign. That is how NPT-type pipe threads are programmed. Without R the cycle cuts a straight thread.

Related codes

G33/G33.1G96/G97M23/M24G74/G75G52/G92

Other codes in Lathe cycles

See the full list of G and M codes

Related apps