How to Write an OD Groove Program in Fanuc
An OD groove looks like the simplest operation on a lathe: one narrow slot on the outside of a shaft. The program is not always simple. You need to decide where the tool point is, how many plunges cover the width, how much material to leave for the finish pass, and how the edges and bottom corners are cut. This guide explains how an OD groove program is built on a Fanuc-style lathe, with a complete example.
The five numbers every OD groove needs
- D: raw material diameter (the shaft size before grooving).
- A: groove diameter, the diameter at the bottom of the groove.
- B: distance from the face (Z0) to the groove wall nearest the face.
- W: groove width.
- Insert width: the width of your grooving insert.
Our example uses D = 10, A = 6, B = 10 and W = 5 with a 1.5 mm insert. The groove therefore starts 10 mm from the face, is 5 mm wide, and is 2 mm deep on each side, because (D − A) ÷ 2 = 2.
Tool point: the detail that causes most mistakes
Every Z value in the program refers to one corner of the insert, the tool point. In this cycle the tool point is the left corner of the insert, which is the side away from Z0, towards the chuck. When the insert touches the wall nearest the face, the tool point is one insert width further from the face than the wall itself. That is why the first plunge positions in the example are not simply Z-10 and Z-15. If your offset is set on the other corner, every position will be shifted by the insert width, so check which corner your tool offset uses before you run the program.
Step 1: rough plunges
A groove wider than the insert cannot be cut with one plunge. The program makes several plunges side by side, and each plunge overlaps the one before. The distance between plunges should stay below the insert width. Machinest limits it to 90% of the insert width, so no ridge of material is left between two plunges.
In our example the groove is 5 mm and the insert is 1.5 mm, so the program uses five plunges. Each plunge feeds down to the groove diameter plus a small finish allowance (X6.200 instead of X6.000), pauses briefly with a dwell (G04), and retracts clear of the shaft before moving to the next Z position.
Three settings control how a plunge behaves:
- Peck depth: how far the insert feeds in before it backs out. A deeper groove or a sticky material may need pecking so chips break and clear.
- Retract: how far the insert backs out between pecks.
- Dwell: a short pause at the bottom so the insert cleans up the groove floor.
Step 2: finish pass
After the rough plunges, the insert makes one continuous finish pass. In our example it goes down the wall nearest the face (cutting the chamfer), cuts the bottom radius, travels along the groove bottom, cuts the second bottom radius, and comes up the far wall with its own chamfer. A single continuous pass gives a clean surface and consistent edges, and it takes care of the 0.1 mm allowance left on the bottom and the walls.
Plunge only or Plunge + Turn?
Plunge only cuts the groove with plunges alone. It suits plain grooves, such as for O-rings and circlips, where the bottom corners can be square. It cannot make a bottom radius, because the corners are left for a finish pass.
Plunge + Turn adds the finish pass described above. Use it when the drawing asks for chamfers or radii on the groove, or when you want a better surface on the walls and bottom.
If the groove is exactly as wide as the insert, a single plunge is enough and the cycle uses it automatically.
Complete example program
This is the program for D = 10, A = 6, B = 10, W = 5, a 1.5 mm insert, chamfer 0.5 on both top edges, bottom radius 0.5 on both sides, finish allowance 0.1, S2000 and feed 0.05 mm/rev. The program number, tool number and offsets are just example values.
% O1234; (OD GROOVE - TURNING); (D=10.000 A=6.000 B=10.000 W=5.000 INSERT=1.500); (PLUNGE + TURN - TOOL POINT = LEFT CORNER); G21 G99 G40; G28 U0 W0; T0303; G90 G54; G97 S2000 M03; G00 X14.000 Z5.000; (ROUGH PLUNGES); (PLUNGE 1 OF 5); G00 Z-13.250; G00 X11.000; G01 X6.200 F0.050; G04 X0.5; G00 X11.000; (PLUNGE 2 OF 5); G00 Z-11.600; G00 X11.000; G01 X6.200 F0.050; G04 X0.5; G00 X11.000; ... (plunges 3, 4 and 5 follow the same pattern at Z-12.425, Z-14.075 and Z-14.900) (FINISH PASS - RIGHT WALL, DOWN, GROOVE DIA, LEFT WALL); G00 Z-11.000; G01 X10.000 F0.050; G01 X9.000 Z-11.500; G01 X7.000; G02 X6.000 Z-12.000 R0.500; G01 Z-14.500; G02 X7.000 Z-15.000 R0.500; G01 X9.000; G01 X10.000 Z-15.500; G00 X14.000; G00 Z5.000; G28 U0 W0; M05; M30; %
Always prove out a new program with a dry run or a single-block pass, at reduced feed, before cutting a real part. Check the tool point and the offsets first.
Common mistakes
- Measuring B to the wrong wall. B is the distance from the face to the wall nearest the face.
- Forgetting which corner is the tool point and loading the offset for the other corner.
- Using a plunge step wider than the insert, which leaves a ridge in the groove.
- Asking for a bottom radius with “Plunge only”. The radius needs the finish pass.
- Leaving too much finish allowance, which makes the finish pass cut too much material.
Generate it in a minute
You can write this program by hand, but each new groove needs the same calculations again. In Machinest you enter D, A, B, W, the edge type, your insert and the cutting data, and press Generate. The output is the full program, with the rough plunges and the finish pass, ready to copy or download as a .nc file.
