G-code reference
G96 G-Code: Constant Surface Speed (CSS)
Constant Surface Speed (CSS) — S is surface speed (m/min or ft/min) instead of RPM. The control raises RPM as the diameter shrinks, which keeps the cutting speed and finish consistent.
| Property | Value |
|---|---|
| Code | G96 |
| Function | Constant Surface Speed (CSS) |
| Modal group | 02 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Lathes |
| Syntax | G96 S_ |
What does G96 do?
S is surface speed (m/min or ft/min) instead of RPM. The control raises RPM as the diameter shrinks, which keeps the cutting speed and finish consistent.
G96 is modal: once programmed it remains in effect for the following blocks until another code from modal group 02 replaces it or the control is reset.
Syntax and parameters
G96 S_| Address | Meaning |
|---|---|
S | Surface speed |
G96 example program
G50 S2500
G96 S220 M03
G01 X0 F0.15 (face to centre)▶ Open this example in the G-code viewer
Tips and common mistakes
- Always clamp max RPM with G50 (or G92 on some controls) first.
- Use G97 for threading and drilling on centre.
Controller compatibility
G96 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.