G97: Constant RPM
What G97 does
G97 cancels constant surface speed: S is read as revolutions per minute. Drilling, tapping and threading on a lathe all use G97 so the speed does not change mid-feature.
| Type | G-code |
|---|---|
| Machine | Mill and lathe |
| Group | Spindle speed mode |
| Modal | Yes: stays active until replaced by another code from the same group |
G97 example
G97 S800 M03 Spindle at a fixed 800 RPM.
| Word | What it means here |
|---|---|
G97 | Constant RPM |
S800 | spindle speed, or a speed limit or surface speed with some codes |
M03 | Spindle on, clockwise |
Codes people confuse with G97
| Code | What it does instead |
|---|---|
G96 | Constant surface speed. S is a cutting speed (m/min or ft/min); RPM changes with diameter. |
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 G97.
G96Constant surface speed
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: G97
-
What does
G97do? (Mill and lathe) -
Which code: S is a fixed spindle speed in RPM.(Mill and lathe)
-
What does
G96do? (Lathe)
Show the answers
- S is a fixed spindle speed in RPM.
- G97
- S is a cutting speed (m/min or ft/min); RPM changes with diameter.
Frequently asked questions
- What does G97 mean in CNC programming?
- Constant RPM. S is a fixed spindle speed in RPM.
- Is G97 modal?
- Yes. G97 belongs to the spindle speed mode group and stays active until another code from that group is programmed.
- What is the difference between G97 and G96?
- G97 (constant RPM): s is a fixed spindle speed in RPM. G96 (constant surface speed): s is a cutting speed (m/min or ft/min); RPM changes with diameter.
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.