Back to the Gcode Dictionary
M3: Spindle On, Clockwise (CNC specific)/ Laser on (Laser specific)
Supported in RepRapFirmware version 1.20 and later when the printer mode is set to CNC mode (see M453) or laser mode (M452).
- Snnn Spindle RPM (CNC mode) or laser power (laser mode). In laser mode, the relationship between the S parameter and laser power depends on the R parameter that was specified in the M452 command.
- Pnnn Spindle slot (CNC mode only). Directly address a spindle slot.
- M3 S4000
The spindle is turned on with a speed of 4000 RPM.
See M4 for counterclockwise equivalent and M5 for stop
M3 in RepRapFirmware 3.3 and later
M3 can be called without any parameters and will start the spindle of the current tool turning clockwise at the spindle RPM of that tool.
Using the S parameter will additionally set the spindle RPM of the current tool.
It is an error if there is no tool active or the active tool does not have a spindle assigned and there is no P parameter provided to define which spindle this should be applied to.
See M950 for defining a spindle, and M563 for adding the spindle to a tool.