M-code reference

M13 M-Code: Spindle CW + Coolant On (builder specific)

Spindle CW + Coolant On (builder specific) — On many controls (some Fanuc builders, Mach3, some Haas configurations) M13 starts the spindle clockwise and turns coolant on in one command. It is not…

By cnccode · Updated
PropertyValue
CodeM13
FunctionSpindle CW + Coolant On (builder specific)
Used onMills and lathes

What does M13 do?

On many controls (some Fanuc builders, Mach3, some Haas configurations) M13 starts the spindle clockwise and turns coolant on in one command. It is not universal — check your M-code list.

M13 example

Example
S3000 M13

Tips

  • Use M03 + M08 when you need portable code.

M-codes vary between machine builders. Codes from M00 to M09, M30 and M98/M99 are nearly universal; most others are defined by the machine builder. Always check the M-code list in your machine manual.

Most-used M-codes

CodeFunction
M00Program Stop
M01Optional Stop
M03Spindle On Clockwise
M04Spindle On Counter-Clockwise
M05Spindle Stop
M06Tool Change
M08Flood Coolant On
M09Coolant Off
M30Program End and Rewind
M98Subprogram Call
M99Subprogram Return / Loop

Frequently asked questions

What does M13 mean on a CNC machine?
M13 is Spindle CW + Coolant On (builder specific). On many controls (some Fanuc builders, Mach3, some Haas configurations) M13 starts the spindle clockwise and turns coolant on in one command. It is not universal — check your M-code list.