G54: Work offset 1
What G54 does
G54 tells the control where program zero is on the part, using the values stored on the work offset page. It is the default on most machines. G55 to G59 select five more stored zeros, so several parts or fixtures can be set up at once.
| Type | G-code |
|---|---|
| Machine | Mill and lathe |
| Group | Work offset |
| Modal | Yes: stays active until replaced by another code from the same group |
G54 example
G54 G00 X0. Y0. Move to program zero of work offset G54.
| Word | What it means here |
|---|---|
G54 | Work offset 1 |
G00 | Rapid positioning |
X0. | X axis target (on a lathe, the diameter) |
Y0. | Y axis target |
Codes people confuse with G54
| Code | What it does instead |
|---|---|
G92 | Set coordinate system (shift). Tells the control that the current position has the given coordinates. |
G53 | Machine coordinate move. Moves to a position in machine coordinates for this one line. |
G55 | Work offset 2. Selects work coordinate system 2. |
Other codes in the work offset group
Only one code from a modal group is active at a time. Programming any of these replaces G54.
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: G54
-
What does
G54do? (Mill and lathe) -
Which code: Selects the first work coordinate system, where program zero is on the part.(Mill and lathe)
-
What does
G92do? (Mill)
Show the answers
- Selects the first work coordinate system, where program zero is on the part.
- G54
- Tells the control that the current position has the given coordinates.
Frequently asked questions
- What does G54 mean in CNC programming?
- Work offset 1. Selects the first work coordinate system, where program zero is on the part.
- Is G54 modal?
- Yes. G54 belongs to the work offset group and stays active until another code from that group is programmed.
- What is the difference between G54 and G92?
- G54 (work offset 1): selects the first work coordinate system, where program zero is on the part. G92 (set coordinate system (shift)): tells the control that the current position has the given coordinates.
- What is the difference between G54 and G53?
- G54 (work offset 1): selects the first work coordinate system, where program zero is on the part. G53 (machine coordinate move): moves to a position in machine coordinates for this one line.
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.