G52 and G92: local and temporary coordinates
G54 to G59 are the normal way to tell the machine where the part is. Sometimes you need a quick extra shift on top of it: the second part in a fixture, or a feature dimensioned from its own centre. G52 does that. G92 does something that looks similar but is far more dangerous.
G52: local coordinate system
G90 G54 G52 X100. Y0. (new zero 100 mm right of G54 zero) ... (program the part as usual) G52 X0 Y0 (cancel: back to plain G54)
G52 adds a shift to the active work offset. All absolute coordinates are now measured from the shifted zero. It stays active until cancelled with G52 X0 Y0 (and Z0 if you shifted Z); on many controls M30 or reset also cancel it, depending on a parameter.

Example: four parts in a row
G90 G54 M98 P2000 (part 1 at G54 zero) G52 X100. M98 P2000 (part 2) G52 X200. M98 P2000 (part 3) G52 X300. M98 P2000 (part 4) G52 X0 M30
O2000 is the program for one part, written from its own zero. Only one work offset needs setting, as long as the fixture positions are accurate. The alternative is G54 – G57, one per part, which lets you correct each part separately.
G92: set the current position
G92 X0 Y0 on a mill means "the spot where the tool is now is X0 Y0". It does not move; it shifts the whole coordinate system so the current position gets those values. If the tool was not exactly where you thought, every move after it is off. The shift can also stay after the program ends, depending on the control. That is why most shops use G54 – G59 and avoid G92 on mills.
On Fanuc lathes with G code system A, G50 X_ Z_ does the same job as G92 (and G50 S_ is the spindle limit). Older lathe programs set the zero with G50; modern programs use work offsets and geometry offsets instead.
Common mistakes
- Forgetting to cancel G52: the next program runs shifted.
- Restarting in the middle of a G52 section without the G52 line.
- Using G92 from a position that is not exact.
- Confusing G50 X Z (coordinate setting) with G50 S (spindle limit) on a lathe.
For setting offsets from a program, G10 is usually safer than G92: see G10.
Calculators, process sheet to program, simulation, codes and lessons. Free to start, no sign-in, on phone and laptop.
Open the app

