Example program · Lathe

Lathe Facing Program with CSS — G-Code Example

Faces a Ø60 bar in two passes with constant surface speed and an RPM clamp, facing past centre to avoid a pip.

By cnccode · Updated

Faces a Ø60 bar in two passes with constant surface speed and an RPM clamp, facing past centre to avoid a pip.

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

Program

G-code
O2002 (FACE D60)
G21 G18 G40 G99
T0101
G50 S3000
G96 S220 M03
G00 X64. Z1. M08
Z0.5
G01 X-1.6 F0.2
G00 Z2.
X64.
Z0
G01 X-1.6 F0.12
G00 Z2.
X100. Z100. M09
M30

▶ Simulate in the G-code viewer

How it works

  • X-1.6 = 2 × nose radius (R0.8) past centre removes the pip.
  • G50 S3000 caps RPM as the diameter approaches zero.

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