G92: Set coordinate system (shift) (mill) or Thread cutting cycle (lathe)
G92 on a mill: Set coordinate system (shift)
On a mill, G92 declares the current tool position to be the given coordinates, shifting program zero. The shift stays until it is cancelled or the machine is reset, and it stacks on top of G54, which surprises people. Work offsets (G54 to G59) have replaced it in most shops.
| Type | G-code |
|---|---|
| Machine | Mill |
| Group | Non-modal |
| Modal | No: acts only on its own line |
G92 example (mill)
G92 X0. Y0. Call where the tool is now X0 Y0.
| Word | What it means here |
|---|---|
G92 | Set coordinate system (shift) |
X0. | X axis target (on a lathe, the diameter) |
Y0. | Y axis target |
Codes people confuse with G92 on a mill
| Code | What it does instead |
|---|---|
G54 | Work offset 1. Selects the first work coordinate system, where program zero is on the part. |
G52 | Local coordinate system. Shifts the zero point temporarily inside the active work offset. |
G92 (lathe) | Thread cutting cycle (lathe). Cuts one thread pass and returns, one line per pass. |
Where controls differ
- Lathes (system A): G92 is a threading cycle there, and coordinate setting is done with G50.
Other codes in the non-modal group
These also act only on their own line.
G92 on a lathe: Thread cutting cycle
On a lathe, G92 is a simple threading cycle: each line cuts one full pass (in, along the thread, out, back). Further passes are written as X values on the following lines. It gives full control of every pass, while G76 works the passes out itself.
| Type | G-code |
|---|---|
| Machine | Lathe (G-code system A) |
| Group | Lathe cycle |
| Modal | Yes: stays active until replaced by another code from the same group |
G92 example (lathe)
G92 X19.4 Z-20. F1.5
X19.0
X18.7 Three thread passes, each slightly deeper.
| Word | What it means here |
|---|---|
G92 | Thread cutting cycle (lathe) |
X19.4 | X axis target (on a lathe, the diameter) |
Z-20. | Z axis target or depth |
F1.5 | feed rate (on threading codes, the lead) |
X19.0 | X axis target (on a lathe, the diameter) |
X18.7 | X axis target (on a lathe, the diameter) |
Codes people confuse with G92 on a lathe
| Code | What it does instead |
|---|---|
G76 | Threading cycle (multi-pass). Cuts a complete thread in many passes from one or two lines. |
G32 | Thread cutting (single pass). Cuts one thread pass, synchronising feed with the spindle. |
G92 (mill) | Set coordinate system (shift). Tells the control that the current position has the given coordinates. |
Other codes in the lathe cycle group
Only one code from a modal group is active at a time. Programming any of these replaces G92.
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: G92
-
What does
G92do? (Lathe) -
What does
G92do? (Mill) -
Which code: Tells the control that the current position has the given coordinates.(Mill)
Show the answers
- Cuts one thread pass and returns, one line per pass.
- Tells the control that the current position has the given coordinates.
- G92
Frequently asked questions
- What does G92 mean in CNC programming?
- On a mill: Set coordinate system (shift). Tells the control that the current position has the given coordinates. On a lathe: Thread cutting cycle (lathe). Cuts one thread pass and returns, one line per pass.
- Is G92 modal?
- No. G92 acts only on the line where it is written; the next line goes back to whatever modal codes were already active.
- What is the difference between G92 and G54?
- G92 (set coordinate system (shift)): tells the control that the current position has the given coordinates. G54 (work offset 1): selects the first work coordinate system, where program zero is on the part.
- What is the difference between G92 and G52?
- G92 (set coordinate system (shift)): tells the control that the current position has the given coordinates. G52 (local coordinate system): shifts the zero point temporarily inside the active work offset.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.