<< Click to Display Table of Contents >> Navigation: Background Theory > Exporting Data > CNC > M Codes |
M00: Stop whatever program is currently operating — axes, coolant flooding or spindle.
M01: This command indicates an optional stop for the program.
M02: End of the currently running program.
M03: Begin to move the spindle clockwise.
M04: Start moving the spindle counterclockwise or in reverse.
M05: Stop moving the spindle.
M06: Load on a different tool. Typically, this command comes with the T value. For example, you may see “T1 M06.”
M08: Start flooding the system with coolant.
M09: Stop the coolant flow.
M00: Program Stop
The M00 command will terminate the current program, allowing you to switch equipment or run troubleshooting tasks.
M02: End of Program
The M02 command ends the program entirely. Ending your machine’s current program is the first step to beginning another.
M03: Spindle Start
The M03 command moves the spindle forward in a clockwise rotation. This command might seem similar to the function of the G02 command, but G codes move only the machine.
M04: Spindle Start
The M04 command moves the spindle in the reverse direction of the M03 command, taking it in a counterclockwise rotation. This is a necessary maneuver in many computer-aided manufacturing tasks.
M05: Spindle Stop
The M05 command stops the spindle so you can examine the current state of your work.
M06: Tool Change
The M06 command allows you to switch out your tools without damaging the equipment.