Setting a work offset on a VMC with an edge finder
G54 tells the machine where the part is. On a machining centre the classic way to find the part edges is a mechanical edge finder: a spinning tip that runs off-centre, then jumps sideways the moment it touches the edge. It is cheap, accurate to about 0.01 mm, and every operator should know it.
What you need
- A mechanical edge finder, for example with a Ø10 tip. Know its tip diameter exactly.
- The part clamped and the top cleaned.
- The handwheel (MPG), set to 0.01 mm per click for the last part of the approach.

Finding X (left side)
- Put the edge finder in the spindle and run it at about 500 – 800 RPM (check the maker's limit).
- Push the tip off-centre a little with your finger so it wobbles.
- Jog the tip down beside the left face of the part, then move towards the face.
- As it gets close, switch to 0.01 mm per click. The wobble gets smaller, the tip runs true, then suddenly kicks sideways. Stop at the kick.
- The spindle centre is now one tip radius (5 mm for a Ø10 tip) to the left of the edge.
Entering it in G54
If the left edge is X0 of the part, the spindle centre is at X-5 in part coordinates. On a Fanuc control:
- Open OFFSET → WORK and move to G54.
- Type
X-5.and press [MEASURE].
The control writes the machine position + 5 into G54 X. If you touched the right side instead, the spindle is to the right: type X5. (for a right-hand edge at X0). Do Y the same way on the front or back face.
Finding the centre of a block
- Touch the left side and note the machine X position (relative or machine page).
- Touch the right side and note X again.
- The centre is halfway: (X left + X right) ÷ 2. Move there and enter
X0[MEASURE].
The tip radius cancels out, so you do not need to know it exactly for a centre. For a round boss or a bore, use the same method in X and Y, or better, a touch probe.
Setting Z
Z depends on how your shop measures tools. Two common ways:
- Tool lengths measured from the spindle gauge line (tool setter or presetter): touch the part top with a known tool or a height setter and set G54 Z so the top of the part is Z0.
- G54 Z = 0, and each tool's H offset measured directly to the part top. Simple, but every tool must be re-measured for a new setup.
More in work offset vs tool offset.
Check before cutting
In MDI: G90 G54 G00 X0 Y0 with a centre drill or the edge finder above the part, and look. Then G43 H_ Z50. and check the height with a gauge block before going closer.
Common mistakes
- Wrong sign: X5 instead of X-5 shifts the part by 10 mm.
- Running the edge finder too fast: it never settles, and the kick is not clear.
- Touching a rough or burred edge.
- Pressing [INPUT] instead of [MEASURE], which writes the number straight into G54.
Key names differ by control (Okuma, Haas, Siemens). The idea is the same: the spindle centre is one tip radius from the edge.
Calculators, process sheet to program, simulation, codes and lessons. Free to start, no sign-in, on phone and laptop.
Open the app

