G97 Constant surface speed cancel / Constant RPM, surface speed off
Fanuc G-code · Mill, Lathe
On mills: Constant surface speed cancel
S is spindle speed in RPM. The normal mode on a mill.
Format
G97 S
Addresses
| Address | What it does |
|---|---|
S | Spindle speed in RPM |
How it works
Modal, group 13. Power on default.
Example program
G97 S2500 M03 (2500 RPM)
G01 Z-.1 F10. (CUT)
G00 Z1. (CLEAR)
G01 Z-.1 F10. (CUT)
G00 Z1. (CLEAR)
Example is in inch. Check offsets and clearances first.
Watch out for
- Give a new S with G97, or the last RPM from G96 stays.
- Mill programs rarely need to write G97 unless G96 was used.
On lathes: Constant RPM, surface speed off
S becomes spindle RPM. Use it for threading, drilling, tapping and center work.
Format
G97 S
Addresses
| Address | What it does |
|---|---|
S | Spindle speed in RPM |
How it works
Modal, group 02. Usually the power on default.
Example program
T0505 (.5 DRILL)
G97 S1200 M03 (1200 RPM)
G00 X0 Z.1 M08 (ON CENTER)
G97 S1200 M03 (1200 RPM)
G00 X0 Z.1 M08 (ON CENTER)
Example is in inch. Check offsets and clearances first.
Watch out for
- Always give S with G97, or the spindle keeps the RPM it had at the moment of change.
- Threading cycles need G97.
Related codes
G97 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Constant surface speed off |
| Mazak (EIA) | Constant RPM |
| Okuma OSP | Constant surface speed off |
| Mitsubishi M70 M80 | Constant surface speed off |
| Siemens 840D 828D | Cancel constant cutting speed |
| Fagor 8055 8065 | Constant tool center feed (mill) |
| LinuxCNC Tormach | Spindle RPM mode |
| Mach3 Mach4 | Constant RPM, Mach4 |
| Centroid CNC12 Acorn | Constant surface speed cancel |
| Hurco WinMax (NC) | Direct spindle RPM |
| Swiss (Citizen Star) | Constant RPM |
Every G-code for Fanuc in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G97 in the app All Fanuc G-codes