Master CNC
Blog · 6 min read · 26 Oct 2026

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.
Edge finder touching the left side of a part: tool centre 5 mm left of the edge, enter X-5 and MEASURE
The edge is half the tip diameter away from the spindle centre.

Finding X (left side)

  1. Put the edge finder in the spindle and run it at about 500 – 800 RPM (check the maker's limit).
  2. Push the tip off-centre a little with your finger so it wobbles.
  3. Jog the tip down beside the left face of the part, then move towards the face.
  4. 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.
  5. 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:

  1. Open OFFSET → WORK and move to G54.
  2. 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

  1. Touch the left side and note the machine X position (relative or machine page).
  2. Touch the right side and note X again.
  3. 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

  1. Wrong sign: X5 instead of X-5 shifts the part by 10 mm.
  2. Running the edge finder too fast: it never settles, and the kick is not clear.
  3. Touching a rough or burred edge.
  4. 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.

Try it in Master CNC

Calculators, process sheet to program, simulation, codes and lessons. Free to start, no sign-in, on phone and laptop.

Open the app