Mach3 m code list for cnc machinists.
These Mach3 m codes work for both mill and turn.

Mach3 M Codes
| M-code | Meaning |
|---|---|
| M0 | Program stop |
| M1 | Optional program stop |
| M3 | Program end |
| M3/4 | Rotate spindle clockwise/counterclckwise |
| M5 | Stop spindle rotation |
| M6 | Tool change (by two macros) |
| M7 | Mist coolant on |
| M8 | Flood coolant on |
| M9 | All coolant off |
| M30 | Program end and Rewind |
| M47 | Repeat program from first line |
| M48 | Enable speed and feed override |
| M49 | Disable speed and feed override |
| M98 | Call subroutine |
| M99 | Return from subroutine/repeat |