G-code reference

G96: Constant surface speed

G96 is constant surface speed. S is a cutting speed (m/min or ft/min); RPM changes with diameter. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G96 does

Under G96 the control keeps the cutting speed at the tool constant by raising RPM as the diameter shrinks. It gives a steady finish when facing and turning tapers. Because RPM climbs toward the centre, it is always paired with a G50 S limit.

TypeG-code
MachineLathe (G-code system A)
GroupSpindle speed mode
ModalYes: stays active until replaced by another code from the same group

G96 example

G50 S2000
G96 S180 M03

180 m/min surface speed, never above 2000 RPM.

WordWhat it means here
G50Maximum spindle speed (lathe)
S2000spindle speed, or a speed limit or surface speed with some codes
G96Constant surface speed
S180spindle speed, or a speed limit or surface speed with some codes
M03Spindle on, clockwise

Codes people confuse with G96

CodeWhat it does instead
G97 Constant RPM. S is a fixed spindle speed in RPM.
G50 Maximum spindle speed (lathe). With S, caps the spindle RPM during constant surface speed.

Other codes in the spindle speed mode group

Only one code from a modal group is active at a time. Programming any of these replaces G96.

  • G97 Constant RPM

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G96

  1. What does G96 do? (Lathe)

  2. Which code: S is a cutting speed (m/min or ft/min); RPM changes with diameter.(Lathe)

  3. What does G97 do? (Mill and lathe)

Show the answers
  1. S is a cutting speed (m/min or ft/min); RPM changes with diameter.
  2. G96
  3. S is a fixed spindle speed in RPM.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G96 mean in CNC programming?
Constant surface speed. S is a cutting speed (m/min or ft/min); RPM changes with diameter.
Is G96 modal?
Yes. G96 belongs to the spindle speed mode group and stays active until another code from that group is programmed.
What is the difference between G96 and G97?
G96 (constant surface speed): s is a cutting speed (m/min or ft/min); RPM changes with diameter. G97 (constant RPM): s is a fixed spindle speed in RPM.
What is the difference between G96 and G50?
G96 (constant surface speed): s is a cutting speed (m/min or ft/min); RPM changes with diameter. G50 (maximum spindle speed (lathe)): with S, caps the spindle RPM during constant surface speed.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint