G96 – Turn on Constant Surface Speed (CSS)

G96 turns on Constant Surface Speed (CSS) on lathes. The controller adjusts spindle speed so the surface speed at the cutting point stays constant as the tool moves towards or away from the spindle centre.

Syntax
G96 D__ S__
Machine
Lathe
Turn off with
G97

1. Parameters

WordMeaning
DMaximum spindle RPM allowed in CSS mode as the tool nears the centre.
SSurface speed – metres per minute (metric) or feet per minute (imperial).

2. Example

N10 G21
N20 G0 X50
N30 G96 D12000 S200
N40 M3
N50 G1 X1 F80
CodeResult
G21Sets units to millimetres.
G0 X50Positions the tool at X50.
G96 D12000 S200Turns on CSS at 200 m/min, with spindle speed capped at 12,000 RPM.
M3Starts the spindle.
G1 X1 F80Feeds X towards the centre at 80 mm/min. Spindle speed rises continuously to hold 200 m/min, reaches the 12,000 RPM cap at about X5.2, then stays at 12,000 RPM until X1.
INFORMATION
Units are inches or millimetres, depending on the machine setup and whether G20 or G21 is active.

3. Notes

CAUTION
CSS spindle speed does not work with G95 feed per revolution. Used incorrectly together, G96 and G95 can give unexpected results. See G95.
INFORMATION
If a program uses CSS and Auto Spindle is enabled on the F1-Setup screen, Feed Hold does not stop the spindle. Stop and restart the spindle manually.