S sets the spindle speed in revolutions per minute. An optional $ selects which spindle the speed applies to; without it the command defaults to spindle.0. The spindle turns at that speed when M3 or M4 is in effect.
| Language | gcode |
|---|---|
| Code | S |
| Group | spindle |
| Syntax | Sx [$n] |
| Dialect | LinuxCNC |
| Name | Description |
|---|---|
| x | Spindle speed in revolutions per minute (RPM). |
| $n | Optional spindle number; without it the command defaults to spindle.0. |