G-code reference
G92.1 G-Code: Cancel G92 Offset / Coordinate Preset
Cancel G92 Offset / Coordinate Preset — On GRBL and LinuxCNC, clears the G92 shift and resets it to zero. On Fanuc, G92.1 is the workpiece coordinate system preset: it restores the coordinate system…
| Property | Value |
|---|---|
| Code | G92.1 |
| Function | Cancel G92 Offset / Coordinate Preset |
| Modal group | 00 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Mills and lathes |
| Syntax | G92.1 |
What does G92.1 do?
On GRBL and LinuxCNC, clears the G92 shift and resets it to zero. On Fanuc, G92.1 is the workpiece coordinate system preset: it restores the coordinate system to the state before shifts such as G92 or manual handle interrupts.
G92.1 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
G92.1G92.1 example program
G92 X0 Y0 (temporary zero)
(…)
G92.1 (clear)▶ Open this example in the G-code viewer
Tips and common mistakes
- Leftover G92 shifts are a classic cause of parts machined in the wrong place.
Controller compatibility
G92.1 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.