To set the G54 work offset on a FANUC control, touch the tool to the part, open OFS/SET → [WORK], move the cursor to G54, key in the axis and value, and press [MEASUR]. This page is for vertical machining centers (FANUC 0i-MF). The short path for one part in one vise comes first; the details are further down.
How do you set the G54 work offset on a FANUC? The short path
The part is clamped in the vise and the machine has been referenced. You will set X, Y and Z in that order.
Which offset do I write to? G54, G55…
- Press OFS/SET.
- Press the [WORK] soft key. The WORK COORDINATES screen opens.
- Move the cursor to the G54 (No. 01) rows. Use the page keys for G55, G56…
Write to whichever code your program calls. If the program uses G55, write to G55. If the screen will not accept input, turn the data protection key off.

| Screen area | What it shows |
|---|---|
| No. 00 – EXT | External offset. Shifts all G54–G59 zeros together. Normally left at 0. |
| No. 01 – G54 | The G54 work offset. X, Y and Z are entered one at a time. |
| Yellow box | The value under the cursor. Your entry goes here. |
| [NO.SRH] | Key in a number and press it to jump: 1 = G54, 2 = G55 … 6 = G59, 0 = EXT. |
| [MEASUR] | Calculates and writes the offset from the axis and value you key in. |
| [INPUT] / [+INPUT] | Writes the value as typed / adds it to the current value. |
How do you set X zero?
- Touch the reference tool or edge finder to the side face of the part in the X direction.
- Raise Z without moving X.
- Go to OFS/SET → [WORK].
- Move the cursor to the X row of G54.
- Press X and key in where the tool center is relative to zero. For zero on the left edge with a Ø10 mm edge finder: X-5.
- Press [MEASUR]. X zero is set.
How do you set Y zero?
- Touch the front face of the part in the Y direction.
- Raise Z without moving Y.
- Move the cursor to the Y row of G54.
- Key in Y-5. (zero on the front edge, Ø10 mm edge finder).
- Press [MEASUR].
Note: Two axes cannot be entered at once; do X first, then Y. [MEASUR] cannot be used while a program is running.
How do you set Z zero?
- Touch the reference tool to the top face of the part.
- Move the cursor to the Z row of G54.
- Key in Z0.
- Press [MEASUR]. Z zero is set.
Note: With this method the length offset of the reference tool must be 0. The other tools are entered as shown below.
How do you enter the length of the other tools?
- Touch the reference tool to the top face of the part.
- Press POS and display the screen with RELATIVE coordinates.
- Press [ORIGIN], key in Z, press [EXEC]. Relative Z becomes zero.
- Call the tool to be measured and touch it to the same face. Relative Z now shows the length difference.
- Press OFS/SET to display the tool offset screen.
- Move the cursor to the offset number of that tool.
- Press Z, then press [INP.C.]. The length difference is written.

| Screen area | What it shows |
|---|---|
| RELATIVE | A counter you can zero anywhere. Read the length difference here. |
| MACHINE | Position relative to machine zero. |
| [ORIGIN] | Key in an axis name and press [EXEC] to zero that axis. [ALL AXIS] zeros every axis. |
| [PRESET] | Key in an axis name and a value to set the counter to that value. |

| Screen area | What it shows |
|---|---|
| NO. | Offset number. Called with H and D in the program. |
| LENGTH – GEOM | Tool length. [INP.C.] writes the relative Z value here. |
| LENGTH – WEAR | Small wear correction for length. |
| RADIUS – GEOM / WEAR | Cutter radius and its wear correction. |
| [INP.C.] | Writes the relative position as the offset value. |
| [+INPUT] | Adds the keyed-in value to the current value. |
How do you check that the zero is right?
- Switch to MDI mode.
- Key in G54 G0 X0 Y0. Keep Z at a safe height.
- Run it at low rapid override in single block.
- The tool should stop above the zero corner of the part.
A note from the shop floor: On a brake disc job I had written the program for G54; the zero was at the centre of the part because the drawing dimensioned everything from the centre. The operator measured the work zero correctly but entered the values in the G55 line instead of the G54 line: the cursor had stayed on G55 and he believed he was writing to G54. Then he made a second mistake: the first tools in the program were the centre drill and the drills, with the tap last; but because the tap was the tool left in the spindle after setting, he started the first check with the tap instead of from the beginning. The tap hit the part at a wrong point where there was no hole, broke, and its tip lodged in the safety window of the machine. Had the check started with the centre drill, the error would most likely have shown up with far less damage. Had the window not held, the piece could have reached the operator.
The rule that comes out of this is simple: before entering a value, look at which line the cursor is on, and after entering it, read the coordinate system the program calls (G54 here) on the screen again. On the first part the check always starts with the first tool of the program and goes in order; never from whichever tool happens to be in the spindle, least of all a tap.
Details
Is the edge finder radius entered as plus or minus?
The value you key in for [MEASUR] is where the tool center sits relative to work zero. For a Ø10 mm edge finder:
| Edge touched | Key in |
|---|---|
| Left edge (approached in X+) | X-5. |
| Right edge (approached in X−) | X5. |
| Front edge (approached in Y+) | Y-5. |
| Back edge (approached in Y−) | Y5. |
When are G55–G59 used?
G54 is enough for a single part. If you mount a second vise, set the second part to G55 and a third to G56 with the same steps. If the option is fitted, the additional offsets G54.1 P1–P48 are on the following pages of the same screen.
How do you type or correct an offset by hand?
- On OFS/SET → [WORK], move the cursor to the value you want to change.
- Key in the value and press [INPUT]. The value is written as typed.
- For a small shift, key in the amount and press [+INPUT]. It is added to the current value.
Is anything different on a 15-inch display?
The steps are the same. The soft keys are split into two groups, horizontal along the bottom and vertical on the right; [WORK] is a vertical soft key, [MEASUR] and [INP.C.] are horizontal soft keys.
Is anything different on the 0i-MF Plus?
No. The FANUC 0i-F Plus operator’s manual gives the same sequence: OFS/SET, [WORK], cursor on the row, axis letter and measured value, [MEASUR]. When you type by hand, [INPUT] writes the value as it is and [+INPUT] adds it to the old value. Screen layout and soft-key positions can differ with the machine builder’s setup.
Frequently asked questions
Where is G54 on a FANUC control?
Press OFS/SET, then the [WORK] soft key. G54 appears as No. 01 on the WORK COORDINATES screen.
What is the difference between [MEASUR] and [INPUT]?
[MEASUR] works out the offset from the current tool position; you only key in the axis and value (for example X0 or X-5.). [INPUT] writes the number you typed with no calculation.
What is the EXT (00) row for?
It shifts every work offset by the same amount. Leave it alone when setting a part zero; any value in it moves all offsets by that much.
Safety notice and disclaimer
This page is training content prepared by Mentor CNC and follows the operating sequence in the FANUC Series 0i-MODEL F operator’s manuals. Key names and screen layout can differ by machine builder and control version; your machine’s own manual always takes priority. A wrong work or tool offset can cause a collision. Make the first run with a new zero in single block, at low feed and with a safe Z height. Mentor CNC accepts no liability for damage arising from the use of this information.
