spindle — Spindle controlSpindle
Start the spindle at an rpm (and direction), or set defaults; CSS via `spindle css`.
spindle <rpm> [cw|ccw] [wait|nowait] · spindle css <v> [limit <rpm>] [cw|ccw]Equivalents: Fanuc S + M3/M4/M5, G96/G97 · Siemens S + M3/M4/M5, CSS
| Parameter | Type | Default | |
|---|---|---|---|
rpm | rpm | — | spindle speed |
dir | cw|ccw | cw | rotation sense (M3/M4) |
wait | wait|nowait | wait | wait for at-speed before cutting |
css surface | m/min | — | constant-surface-speed target (the `css` form) |
css limit | rpm | 6000 | rpm cap for CSS as the radius → 0 |
Starts/holds the spindle. **`wait`** holds motion until at-speed (the safe default). **`spindle css <v>`** is constant surface speed (G96): the controller varies the rpm with the tool's radial distance so the cutting speed stays constant (`ω = v/r`, capped by `limit`) — for facing / mill-turn. `spindle <rpm>` returns to direct-rpm (G97).
spindle 12000 cw waitspindle css 200 limit 3000 cw