CNC lathe · G-code
G92: threading cycle
G92 cuts one threading pass to X and Z and returns; each X on the lines after it is another pass. Haas lists it in modal group 01. Formats below from Haas and Fanuc, each from its maker. LinuxCNC has no such code.
On a Haas mill, G92 sets a work coordinate shift.
Worked example
A 12 TPI thread in passes, from Haas’s example. Written for this page in the Haas format.
G00 X1.1 Z0.2G92 X0.980 Z-1. F0.0833 (12 TPI, first pass)X0.965 (second pass)X0.955 (third pass)G00 X1.5For 12 TPI the lead is 1 ÷ 12 = 0.0833", so F0.0833.
How each control writes it
Haas G92 X- Z- I- Q- F-
One source: Haas Automation, the control's maker
- X
- X of this pass (diameter)
- Z
- Z of the thread end
- U
- Incremental X (diameter) (optional)
- W
- Incremental Z (optional)
- I
- Taper (pipe threads): X distance and direction, radius (optional)
- Q
- Thread start angle (optional)
- F
- Thread lead: 1 ÷ TPI inch, the pitch metric
- It chamfers the end of the thread automatically, one thread at 45° by default (Settings 95 and 96); M23 and M24 turn the chamfer on and off.
- More passes: give each pass’s X on its own line.
Source: Haas Automation, lathe G92
Fanuc G92 X(U)_ Z(W)_ F_ Q_ ; taper: G92 X(U)_ Z(W)_ R_ F_ Q_ ;
One source: FANUC, the control's maker
- X, Z
- End point of the threading pass
- U, W
- Or the distance to it, incremental (optional)
- R
- Taper amount (taper form) (optional)
- F
- Lead of the thread
- Q
- Shift of the threading start angle, in 0.001° steps (optional)
- FANUC 0i-TF (lathe), G code system A (U and W are incremental), from its operator’s manual. On another FANUC model or G code system, check that control’s manual.
- The taper is R here, where Haas gives it with I.
Source: FANUC B-64604EN-1/01, Operator's Manual, 0i-TF (lathe), §4.1.2
Controls without it
- LinuxCNC: LinuxCNC has no single-pass threading cycle; its G92 is a coordinate offset. Thread with G76, or G33 for single moves. Source (archived Oct 29, 2026)
How the controls differ
- Only Haas takes I.
- Only Fanuc takes R.
- A word two controls share can still mean different things: read each control's list above.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.