M4 starts the selected spindle counterclockwise at the speed set by the S word. If the optional $n spindle selector is omitted, the command acts on spindle 0; $n selects a specific spindle and $-1 operates on all active spindles. If the spindle speed is zero, the spindle does not start turning until the speed or override is raised.
| Language | gcode |
|---|---|
| Code | M4 |
| Group | Spindle Control |
| Syntax | M4 [$n] |
| Dialect | LinuxCNC |
| Name | Description |
|---|---|
| $n | Selected spindle; if omitted the command defaults to spindle 0, and $-1 operates on all active spindles. |