# LinuxCNC G97 RPM Mode

Instructions · `G97` · verification: source checked

G97 is a LinuxCNC G-code that selects spindle RPM mode. The S word gives the spindle speed, and the optional $ word selects which spindle is controlled. It is part of the G96/G97 spindle control mode pair.

## Specification

| Property | Value |
|---|---|
| Language | gcode |
| Code | G97 |
| Group | spindle control mode |
| Syntax | G97 S- <$-> (RPM Mode) |
| Dialect | LinuxCNC |

### Parameters

| Name | Description |
|---|---|
| S | spindle speed |
| $ | the spindle of which the speed will be varied, optional |

## Study notes

- G97 is the RPM-mode option in the G96/G97 spindle control mode pair.

## Sources

1. [G-Codes](https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g96-g97) (accessed 2026-10-26)

---

Source page: https://machineschema.com/instruction/gcode-g97  
JSON: https://machineschema.com/instruction/gcode-g97.json  
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cite Machine Schema and the original sources.
