Example program · Lathe

Lathe Parting Off a Part — G-Code Example

Parts off a Ø40 part with a 3 mm parting blade, reducing feed near centre to avoid breaking the blade.

By cnccode · Updated

Parts off a Ø40 part with a 3 mm parting blade, reducing feed near centre to avoid breaking the blade.

ItemValue
MachineCNC lathe (Fanuc G-code system A)
UnitsMetric (G21)
Lines10

Program

G-code
O2007 (PART OFF D40)
G21 G18 G40 G99
T0707 (3 MM PARTING BLADE)
G97 S900 M03
G00 X42. Z-33. M08
G01 X6. F0.08
X-1. F0.04
G00 X42.
X100. Z100. M09
M30

▶ Simulate in the G-code viewer

How it works

  • Use G97: in G96 the RPM would rise to the clamp near centre.
  • Halve the feed for the last few millimetres.
  • Keep the blade stickout as short as possible.

Codes used in this program

Always check feeds, speeds, offsets and clearances for your own machine and tooling, and prove new programs with single block and reduced rapid.

More lathe programs