Printed from Kezuriba (kezuriba.net/en/nc/g92/)
G92
Machining center, LatheOne-shot, group 00Coordinate system setting (assigns coordinate values to the current position)
On machining centers
G92 X_ Y_ Z_
- The axes do not move; the coordinate system is shifted so that the current position becomes the specified coordinates
- Mixing G92 into a workflow that uses G54–G59 shifts all coordinate systems and gets confusing. Also check how to cancel it, e.g. with G92.1
- On Siemens ISO, G92 S_ also sets the spindle speed limit
Diagram: Machine zero and work zero (coordinate systems)
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)
- Write many lines changing only X, cutting in a little at a time to finish the thread (straight infeed each pass)
- F is the lead. On many machines the feed override is disabled during threading
- System B uses G78 and system C uses G21 (Siemens ISO T). G92 in systems B/C is coordinate system setting
- G32 when you want to build only the feed for a single pass yourself, without a cycle (for a thread that changes into a taper partway, a worm, etc.)
Diagram (lathe): the 4 motions of G92 (lathe)
Full guide with examples: How to write lathe multiple repetitive cycles (G71, G70, G72, G73, G76)
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.
| Source | Machine | Item | Detail |
|---|---|---|---|
| Haas | Machining center | Meaning | Sets 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 |
| Haas | Lathe | Format | Taper 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.
- 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
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com