Home › M-codes › Siemens 840D 828D
Siemens 840D 828D M-code list
14 M-codes. Pick a code for the format, the addresses, an example program and what to watch out for.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
| Code | Meaning | Machine |
|---|---|---|
| M0 | Program stop | Mill and lathe |
| M1 | Optional stop | Mill and lathe |
| M2 | End of main program | Mill and lathe |
| M3 | Spindle on clockwise | Mill and lathe |
| M4 | Spindle on counterclockwise | Mill and lathe |
| M5 | Spindle stop | Mill and lathe |
| M6 | Tool change | Mill and lathe |
| M8 | Coolant on | Mill and lathe |
| M9 | Coolant off | Mill and lathe |
| M17 | End of subprogram | Mill and lathe |
| M19 | Spindle positioning | Mill and lathe |
| M30 | End of program | Mill and lathe |
| M41 | Gear stage selection M40 to M45 | Mill and lathe |
| M70 | Spindle to axis mode | Mill and lathe |
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 Siemens 840D 828D G-codes