Back to Supported G-Codes

G92 - Set Position

DMC File Mode: Supported
Streaming Mode: Supported

Description

The G92 command redefines the current position coordinates without physically moving the machine. This is useful for setting a new coordinate system origin, zeroing axes at the current position, or establishing work coordinates for machining operations.

When G92 is executed, the machine controller updates its internal position registers to the specified values while keeping the physical position unchanged. This effectively shifts the coordinate system so that the current position becomes the new specified coordinates.

Syntax

G92 X<value> Y<value> Z<value>
G92 X<value>
G92 Z0

Parameters

ParameterDescriptionExample
XNew X coordinate valueX0 or X10.5
YNew Y coordinate valueY0 or Y-5.2
ZNew Z coordinate valueZ0 or Z25.0

Note: Only specify the axes you want to redefine. Unspecified axes retain their current coordinate values.

Examples

Zero all axes at current position

G92 X0 Y0 Z0

Sets the current position as the new origin (0,0,0) for all three axes.

Set Z-axis to specific height

G92 Z25.4

Defines the current Z position as 25.4 units (useful when touching off on a workpiece of known thickness).

Establish work coordinate system

; Move to desired work origin location
G0 X50 Y30
; Set this position as work coordinate origin
G92 X0 Y0
; Now all subsequent moves are relative to this new origin
G1 X10 Y10 F100

Negative coordinate setup

G92 X-10 Y-5 Z2.5

Sets the current position to (-10, -5, 2.5), effectively creating an offset coordinate system.