M05: Spindle stop
What M05 does
M05 stops the spindle. It is written before a tool change on many machines and at the end of the program.
| Type | M-code |
|---|---|
| Machine | Mill and lathe |
| Group | Spindle |
| Modal | Yes: stays active until replaced by another code from the same group |
M05 example
M05 Spindle off.
| Word | What it means here |
|---|---|
M05 | Spindle stop |
Codes people confuse with M05
| Code | What it does instead |
|---|---|
M03 | Spindle on, clockwise. Starts the spindle forward (clockwise) at speed S. |
M09 | Coolant off. Turns all coolant off. |
M00 | Program stop. Stops the program until the operator presses cycle start. |
Other codes in the spindle group
Only one code from a modal group is active at a time. Programming any of these replaces M05.
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: M05
-
What does
M05do? (Mill and lathe) -
Which code: Stops the spindle.(Mill and lathe)
-
What does
M03do? (Mill and lathe)
Show the answers
- Stops the spindle.
- M05
- Starts the spindle forward (clockwise) at speed S.
Frequently asked questions
- What does M05 mean in CNC programming?
- Spindle stop. Stops the spindle.
- Is M05 modal?
- Yes. M05 belongs to the spindle group and stays active until another code from that group is programmed.
- What is the difference between M05 and M03?
- M05 (spindle stop): stops the spindle. M03 (spindle on, clockwise): starts the spindle forward (clockwise) at speed S.
- What is the difference between M05 and M09?
- M05 (spindle stop): stops the spindle. M09 (coolant off): turns all coolant off.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.