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)…
| Property | Value |
|---|---|
| Code | G92 |
| Function | Coordinate System Setting (Mill) / Threading Cycle (Lathe) |
| Modal group | 00/01 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Mills and lathes |
| Syntax | Mill: 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
Mill: G92 X_ Y_ Z_ / Lathe: G92 X_ Z_ F_| Address | Meaning |
|---|---|
F | Lathe: thread lead |
G92 example program
(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.