Mach3 Mach4 M-code list
22 M-codes. Pick a code for the format, the addresses, an example program and what to watch out for.
| Code | Meaning | Machine |
|---|---|---|
| M0 | Program stop | Mill |
| M1 | Optional stop | Mill |
| M2 | Program end | Mill |
| M3 | Spindle on clockwise | Mill |
| M4 | Spindle on counterclockwise | Mill |
| M5 | Spindle stop | Mill |
| M6 | Tool change | Mill |
| M7 | Mist coolant on | Mill |
| M8 | Flood coolant on | Mill |
| M9 | Coolant off | Mill |
| M19 | Spindle orient | Mill |
| M30 | Program end and rewind | Mill |
| M47 | Repeat from first line, Mach3 | Mill |
| M48 | Overrides on | Mill |
| M49 | Overrides off | Mill |
| M62 | Output on with motion, Mach4 | Mill |
| M63 | Output off with motion, Mach4 | Mill |
| M64 | Output on now, Mach4 | Mill |
| M65 | Output off now, Mach4 | Mill |
| M98 | Subprogram call | Mill |
| M99 | Subprogram return | Mill |
| M100 | User macro M codes | Mill |
Take the list to the machine. The app searches every code by number or shop word and decodes a whole program line by line.
Open the M-code list Mach3 Mach4 G-codes