Home › G-codes › Okuma OSP › G97
G97 Constant surface speed off
Okuma OSP G-code · Lathe
Cancels G96. S is spindle speed in RPM.
Format
G97 S
Addresses
| Address | What it does |
|---|---|
S | Spindle speed in RPM |
How it works
Modal. Cancel with G96.
Example program
O2000 (OKUMA LATHE SAMPLE)
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X0 Z.2 T090909 (DRILL)
N3 G97 S1200 M03 (1200 RPM)
…
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X0 Z.2 T090909 (DRILL)
N3 G97 S1200 M03 (1200 RPM)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- A G97 block must have an S word.
- Use G97 for threading, drilling and tapping on center.
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 |
| 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 Okuma OSP 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 Okuma OSP G-codes