Home › G-codes › Mach3 Mach4 › G97
G97 Constant RPM, Mach4
Mach3 Mach4 G-code · Mill
Mach4. S is spindle RPM. The normal mode on a mill.
Format
G97 S
Addresses
| Address | What it does |
|---|---|
S | Spindle speed in RPM |
How it works
Modal, spindle mode group.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
G97 S5000 M3 (5000 RPM)
G43 H1 Z1.0 (LENGTH OFFSET)
T1 M6 (TOOL CHANGE)
G97 S5000 M3 (5000 RPM)
G43 H1 Z1.0 (LENGTH OFFSET)
Example is in inch. Check offsets and clearances first.
Watch out for
- Use G97 for threading moves and tapping.
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) |
| LinuxCNC Tormach | Spindle RPM mode |
| Centroid CNC12 Acorn | Constant surface speed cancel |
| Hurco WinMax (NC) | Direct spindle RPM |
| Swiss (Citizen Star) | Constant RPM |
Every G-code for Mach3 Mach4 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 Mach3 Mach4 G-codes