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.

By cnccode · Updated
PropertyValue
CodeG96
FunctionConstant Surface Speed (CSS)
Modal group02
TypeModal — stays active until replaced by another code of the same group
Used onLathes
SyntaxG96 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

Format
G96 S_
AddressMeaning
SSurface speed

G96 example program

Example
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.

Frequently asked questions

Is G96 modal?
Yes. G96 belongs to modal group 02 and stays active until another code of that group is programmed.
What does G96 mean in CNC?
G96 means 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.
What is the difference between G96 and G97?
G96 is Constant Surface Speed (CSS), while G97 is Constant RPM (CSS Cancel). See the G97 page for its syntax and examples.
Can I use G96 on a mill?
Usually not with the same meaning: G96 is documented here for lathes. Check your control manual for the equivalent.