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.
Faces a Ø60 bar in two passes with constant surface speed and an RPM clamp, facing past centre to avoid a pip.
| Item | Value |
|---|---|
| Machine | CNC lathe (Fanuc G-code system A) |
| Units | Metric (G21) |
| Lines | 15 |
Program
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
- G96 — Constant Surface Speed (CSS)
- G50 — Max Spindle Speed Clamp (Lathe) / Scaling Cancel (Mill)
- G99 — R-Plane Return (Mill) / Feed per Revolution (Lathe)
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
- Lathe OD Roughing and Finishing (G71 / G70)
- Lathe Threading M20 × 2.5 with G76
- Lathe OD Grooving with G75
- Peck Drilling on a Lathe (G74)
- Lathe Internal Boring (G71 for ID)
- Lathe Parting Off a Part
- Lathe Taper Turning Program
- Lathe Threading with G92 (M12 × 1.75)
- Lathe OD Turning Box Cycle (G90)
- Lathe Facing Box Cycle (G94)
- Lathe Stock Removal in Facing (G72)