G52

Machining center, LatheOne-shot, group 00

Local coordinate system setting

⌨Format and notes

G52 X_ Y_ Z_ (cancel with G52 X0 Y0 Z0)

Diagram: Machine zero and work zero (coordinate systems)

XYG54 offsetG54 originG55 originG52 localMachine zero (machine coord. 0)
G52 X_ Y_ creates a child coordinate system (local coordinate system) with a shifted origin inside the current work coordinate system (G54, etc.). Cancel with G52 X0 Y0.

≠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 centerMeaningGlobal shift added to all work coordinate systemsHaas mills change behavior with a setting (Setting 33: FANUC/HAAS) and label it group 00 or 12. Returns to 0 on M30, reset, etc.

📚Sources

The meaning shown agrees in at least two sources (agreement confirmed). 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. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
  3. Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
  4. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
  5. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com