M-code reference

M04 M-Code: Spindle On Counter-Clockwise

Spindle On Counter-Clockwise — Starts the spindle counter-clockwise. It is used for left-hand taps, some lathe tools and back-boring.

By cnccode · Updated
PropertyValue
CodeM04
FunctionSpindle On Counter-Clockwise
Used onMills and lathes

What does M04 do?

Starts the spindle counter-clockwise. It is used for left-hand taps, some lathe tools and back-boring.

M04 example

Example
S300 M04
G74 X0 Y0 Z-15.0 R5.0 F375.

Tips

  • Running a right-hand tool in M04 rubs and burns it instantly.

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
M05Spindle Stop
M06Tool Change
M08Flood Coolant On
M09Coolant Off
M30Program End and Rewind
M98Subprogram Call
M99Subprogram Return / Loop

Frequently asked questions

What does M04 mean on a CNC machine?
M04 is Spindle On Counter-Clockwise. Starts the spindle counter-clockwise. It is used for left-hand taps, some lathe tools and back-boring.