Home › G-codes › LinuxCNC Tormach › G97
G97 Spindle RPM mode
LinuxCNC Tormach G-code · Lathe
S is spindle RPM. Cancels constant surface speed. Use it for drilling, tapping and threading on a lathe.
Format
G97 [S] [$]
Addresses
| Address | What it does |
|---|---|
S | Spindle RPM |
$ | Spindle number |
How it works
Modal, spindle mode group. Usual default.
Example program
G20 G18 G7 G40 G80 G90 G94 (INCH, XZ PLANE, DIAMETER MODE)
T5 M6 G43 (CENTER DRILL)
G97 S1500 M3 (1500 RPM)
G0 X0 Z0.1
…
T5 M6 G43 (CENTER DRILL)
G97 S1500 M3 (1500 RPM)
G0 X0 Z0.1
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Switch to G97 before threading so the RPM does not change between passes.
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 |
| Siemens 840D 828D | Cancel constant cutting speed |
| Fagor 8055 8065 | Constant tool center feed (mill) |
| 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 LinuxCNC Tormach 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 LinuxCNC Tormach G-codes