G-code reference

G92 G-Code: Coordinate System Setting (Mill) / Threading Cycle (Lathe)

Coordinate System Setting (Mill) / Threading Cycle (Lathe) — Mill: sets the current position to the given values, shifting all work offsets. It is considered dangerous and is replaced by G54/G52. Lathe (system A)…

By cnccode · Updated
PropertyValue
CodeG92
FunctionCoordinate System Setting (Mill) / Threading Cycle (Lathe)
Modal group00/01
TypeOne-shot (non-modal) — active only in its own block
Used onMills and lathes
SyntaxMill: G92 X_ Y_ Z_ / Lathe: G92 X_ Z_ F_

What does G92 do?

Mill: sets the current position to the given values, shifting all work offsets. It is considered dangerous and is replaced by G54/G52. Lathe (system A): simple threading cycle, one pass per line.

G92 is a one-shot code: it only acts in the block where it is written, and the previously active modal codes take over again afterwards.

Syntax and parameters

Format
Mill: G92 X_ Y_ Z_  /  Lathe: G92 X_ Z_ F_
AddressMeaning
FLathe: thread lead

G92 example program

Example
(Lathe M12x1.75)
G00 X14.0 Z5.0
G92 X11.3 Z-20.0 F1.75
X10.8
X10.4
X10.1
X9.9
X9.853

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Mill G92 persists after a reset on some controls — clear with G92.1.
  • For lathe threads G76 is usually better.

Controller compatibility

G92 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 G92 modal?
No. G92 is a one-shot (group 00) code and only acts in the block where it appears.
What does G92 mean in CNC?
G92 means Coordinate System Setting (Mill) / Threading Cycle (Lathe). Mill: sets the current position to the given values, shifting all work offsets. It is considered dangerous and is replaced by G54/G52. Lathe (system A): simple threading cycle, one pass per line.
What is the difference between G92 and G52?
G92 is Coordinate System Setting (Mill) / Threading Cycle (Lathe), while G52 is Local Coordinate System. See the G52 page for its syntax and examples.
Can I use G92 on a lathe?
Yes, G92 is used on both mills and lathes, although some parameters differ between them.