Home › G-codes › Siemens 840D 828D › G97
G97 Cancel constant cutting speed
Siemens 840D 828D G-code · Lathe
Turns off G96. S is read as spindle rpm again. Used before threading and drilling on center.
Format
G97 S
Addresses
| Address | What it does |
|---|---|
S | Spindle speed in rpm |
How it works
Modal, G group 15 (feed type).
Example program
G96 S180 LIMS=3000 M3 ; CONSTANT SPEED TURNING
G1 X30 F0.15
G97 S600 ; FIXED 600 RPM
G0 X0 Z5 ; ON CENTER FOR DRILLING
G1 X30 F0.15
G97 S600 ; FIXED 600 RPM
G0 X0 Z5 ; ON CENTER FOR DRILLING
Example is in inch. Check offsets and clearances first.
Watch out for
- Write a new S with G97. Without it the spindle holds the last speed reached in G96.
- Use G97 before G33 and threading cycles so rpm does not change during the thread.
Related codes
G97 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Constant surface speed cancel |
| Haas NGC | Constant surface speed off |
| Mazak (EIA) | Constant RPM |
| Okuma OSP | Constant surface speed off |
| Mitsubishi M70 M80 | Constant surface speed off |
| 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 Siemens 840D 828D 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 Siemens 840D 828D G-codes