G-code reference

G53: Machine coordinate move

G53 is machine coordinate move. Moves to a position in machine coordinates for this one line. It is non-modal, so it acts only on the line it is written on.

What G53 does

G53 reads the positions on its line in machine coordinates, ignoring work and tool offsets. It is non-modal and is often used to move safely to a known machine position, for example G53 Z0 to go to the top of Z travel.

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

G53 example

G53 G00 Z0.

Rapid to machine Z zero, the top of travel.

WordWhat it means here
G53Machine coordinate move
G00Rapid positioning
Z0.Z axis target or depth

Codes people confuse with G53

CodeWhat it does instead
G28 Return to reference position. Sends the named axes home, by way of an intermediate point.
G54 Work offset 1. Selects the first work coordinate system, where program zero is on the part.

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
  • G50 Maximum spindle speed (lathe)
  • G52 Local coordinate system
  • G65 Macro call
  • G92 Set coordinate system (shift)

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: G53

  1. What does G53 do? (Mill and lathe)

  2. Which code: Moves to a position in machine coordinates for this one line.(Mill and lathe)

  3. What does G28 do? (Mill and lathe)

Show the answers
  1. Moves to a position in machine coordinates for this one line.
  2. G53
  3. Sends the named axes home, by way of an intermediate point.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G53 mean in CNC programming?
Machine coordinate move. Moves to a position in machine coordinates for this one line.
Is G53 modal?
No. G53 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 G53 and G28?
G53 (machine coordinate move): moves to a position in machine coordinates for this one line. G28 (return to reference position): sends the named axes home, by way of an intermediate point.
What is the difference between G53 and G54?
G53 (machine coordinate move): moves to a position in machine coordinates for this one line. G54 (work offset 1): selects the first work coordinate system, where program zero is on the part.

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