G-code reference
G53 G-Code: Machine Coordinate System (One Block)
Machine Coordinate System (One Block) — Moves to positions in the machine coordinate system for one block, ignoring work and tool offsets. G53 Z0 is a common and safe way to retract to Z home.
| Property | Value |
|---|---|
| Code | G53 |
| Function | Machine Coordinate System (One Block) |
| Modal group | 00 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Mills and lathes |
| Syntax | G53 G00 Z_ |
What does G53 do?
Moves to positions in the machine coordinate system for one block, ignoring work and tool offsets. G53 Z0 is a common and safe way to retract to Z home.
G53 is a one-shot code: it only acts in the block where it is written, and the previously active modal codes take over again afterwards.
Syntax and parameters
G53 G00 Z_| Address | Meaning |
|---|---|
X Y Z | Machine coordinates |
G53 example program
G53 G00 Z0 (retract to machine Z home)
G53 X-400.0 Y0 (park table)▶ Open this example in the G-code viewer
Tips and common mistakes
- Requires G90 on most controls.
- Values are machine coordinates — negative on most mills.
Controller compatibility
G53 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.