Printed from Kezuriba (kezuriba.net/en/nc/g53/)
G53
Machining center, LatheOne-shot, group 00Machine coordinate system selection (positioning in machine coordinates)
Format and notes
G53 G00 Z_ (machine coordinates for that block only)
- In that block only, ignores work coordinates and tool offsets and moves in machine coordinates
- Cannot be used during cutter compensation (NIST)
- Used to bring the table forward after machining, raise Z to machine zero, etc. (Saitama University practical training example, Haas example)
Diagram: Machine zero and work zero (coordinate systems)
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.
“One source / reference” rows were confirmed in only one source. “CAM post output / reference” rows show what a CAM post processor outputs and could not be confirmed in the control maker’s own public documents.
| Source | Machine | Item | Detail |
|---|---|---|---|
| CAM post for Okuma (Autodesk) | Machining center | Code | On Okuma OSP, G53 is output as the cancellation of tool length offset (G56 H_)CAM post output / referenceIts meaning is completely different from FANUC-type G53 (positioning in the machine coordinate system) |
Frequently asked questions about G53
- What is G53 (Machine coordinate system selection (positioning in machine coordinates)) used for and how is it formatted in a CNC program?
- G53 commands "Machine coordinate system selection (positioning in machine coordinates)" on Machining center, Lathe. The standard program format is "G53 G00 Z_ (machine coordinates for that block only)". In that block only, ignores work coordinates and tool offsets and moves in machine coordinates
- Is G53 a modal code or a one-shot (non-modal) code?
- G53 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 G53 on every line where that action is required.
- Does G53 work differently on machining centers (mills) versus CNC lathes?
- G53 is primarily used on Machining center, Lathe. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
- Are there differences in G53 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 G53. 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
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe 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
- Saitama University, Faculty of Engineering, Department of Mechanical Engineering, practical training — Machining center program 2019 (training NC program O19-0101, with comments) jisshu.mech.saitama-u.ac.jp
- Autodesk — OKUMA milling post processor (okuma.cps, Fusion post library) cam.autodesk.com