G-code reference

G92: Set coordinate system (shift) (mill) or Thread cutting cycle (lathe)

G92 means two different things. On a mill, it is set coordinate system (shift): tells the control that the current position has the given coordinates. On a lathe (Fanuc G-code system A), it is thread cutting cycle: cuts one thread pass and returns, one line per pass. Check which machine a program is written for before reading it.

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.

TypeG-code
MachineMill
GroupNon-modal
ModalNo: acts only on its own line

G92 example (mill)

G92 X0. Y0.

Call where the tool is now X0 Y0.

WordWhat it means here
G92Set coordinate system (shift)
X0.X axis target (on a lathe, the diameter)
Y0.Y axis target

Codes people confuse with G92 on a mill

CodeWhat 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.

  • G04 Dwell
  • G09 Exact stop (one block)
  • G10 Programmable data input
  • G28 Return to reference position
  • G30 Return to second reference position
  • G52 Local coordinate system
  • G53 Machine coordinate move
  • G65 Macro call

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.

TypeG-code
MachineLathe (G-code system A)
GroupLathe cycle
ModalYes: 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.

WordWhat it means here
G92Thread cutting cycle (lathe)
X19.4X axis target (on a lathe, the diameter)
Z-20.Z axis target or depth
F1.5feed rate (on threading codes, the lead)
X19.0X axis target (on a lathe, the diameter)
X18.7X axis target (on a lathe, the diameter)

Codes people confuse with G92 on a lathe

CodeWhat 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.

  • G70 Finishing cycle
  • G71 Rough turning cycle
  • G72 Rough facing cycle
  • G73 Pattern repeating cycle (lathe)
  • G74 Face peck drilling / grooving (lathe)
  • G75 Grooving cycle (X)
  • G76 Threading cycle (multi-pass)
  • G90 Outside/inside diameter cutting cycle (lathe)
  • G94 Facing cycle (lathe)

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

  1. What does G92 do? (Lathe)

  2. What does G92 do? (Mill)

  3. Which code: Tells the control that the current position has the given coordinates.(Mill)

Show the answers
  1. Cuts one thread pass and returns, one line per pass.
  2. Tells the control that the current position has the given coordinates.
  3. G92

Drill this code with the rest of the core set

More practice hubs

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.

Free preview · no card Try G-Code Sprint