G92

Machining center, LatheOne-shot, group 00

Coordinate system setting (assigns coordinate values to the current position)

On machining centers

G92 X_ Y_ Z_

Diagram: Machine zero and work zero (coordinate systems)

XYG54 offsetG54 originG55 originG52 localMachine zero (machine coord. 0)Current tool positionOrigin set by G92X_ Y_
G92 X_ Y_ doesn't move the axes; it redefines the origin so the current tool position takes the specified coordinate values. Mixing it with G54–G59 makes offsets hard to follow.

On lathes: Thread cutting cycle (single canned cycle, G-code system A)

The same number means something different on lathes (FANUC-type G-code system A). Group 01.

G92 X(U)_ Z(W)_ F_ (lead) (R_ for taper thread)

Diagram (lathe): the 4 motions of G92 (lathe)

RapidCutting feedEnds with an angled pull-out①② Thread (F = lead)③④ZXStart point① Rapid to X② Cut thread (F = lead)③ Rapid out④ Rapid to start
4 motions: ① infeed ② cut thread ③ retract ④ return. F is the lead, not the pitch. Repeat blocks changing only X to cut the thread deeper step by step.

Differences between controls and machines

The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.

SourceMachineItemDetail
HaasMachining centerMeaningSets the shift amount for all work coordinate systems (G54–G59, G110–G129)On Haas, the shift amount is shown below the work offset screen and is cleared by power-up and zero return
HaasLatheFormatTaper is I_, and Q is the start angleHaas switches the chamfer at the end of the thread with Setting 95/96 and M23/M24

Frequently asked questions about G92

What is G92 (Coordinate system setting (assigns coordinate values to the current position)) used for and how is it formatted in a CNC program?
G92 commands "Coordinate system setting (assigns coordinate values to the current position)" on Machining center, Lathe. The standard program format is "G92 X_ Y_ Z_". The axes do not move; the coordinate system is shifted so that the current position becomes the specified coordinates
Is G92 a modal code or a one-shot (non-modal) code?
G92 is a one-shot (non-modal, Group 00) code. It acts only in the single block where it is written and does not carry over to the next block, so you must write G92 on every line where that action is required.
Does G92 work differently on machining centers (mills) versus CNC lathes?
Yes. On a machining center G92 means "Coordinate system setting (assigns coordinate values to the current position)", whereas on a CNC lathe (FANUC G-code System A) G92 means "Thread cutting cycle (single canned cycle, G-code system A)" (lathe format: "G92 X(U)_ Z(W)_ F_ (lead) (R_ for taper thread)"). Never copy G92 between mill and lathe programs without checking which G-code system (A, B, or C) your lathe uses.
Are there differences in G92 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G92. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.

Sources

The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.

  1. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
  2. Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
  3. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
  4. National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
  5. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
  6. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com