Home › M-codes › LinuxCNC Tormach
LinuxCNC Tormach M-code list
34 M-codes. Pick a code for the format, the addresses, an example program and what to watch out for.
| Code | Meaning | Machine |
|---|---|---|
| M0 | Program pause | Mill and lathe |
| M1 | Optional pause | Mill and lathe |
| M2 | Program end | Mill and lathe |
| M3 | Spindle clockwise | Mill and lathe |
| M4 | Spindle counterclockwise | Mill and lathe |
| M5 | Spindle stop | Mill and lathe |
| M6 | Tool change | Mill and lathe |
| M7 | Mist coolant on | Mill and lathe |
| M8 | Flood coolant on | Mill and lathe |
| M9 | Coolant off | Mill and lathe |
| M19 | Spindle orient | Mill and lathe |
| M30 | Program end and pallet shuttle | Mill and lathe |
| M48 | Enable feed and speed overrides | Mill and lathe |
| M49 | Disable feed and speed overrides | Mill and lathe |
| M50 | Feed override control | Mill and lathe |
| M51 | Spindle override control | Mill and lathe |
| M52 | Adaptive feed control | Mill and lathe |
| M53 | Feed stop control | Mill and lathe |
| M60 | Pallet shuttle and pause | Mill and lathe |
| M61 | Set current tool number | Mill and lathe |
| M62 | Digital output on, synced with motion | Mill and lathe |
| M63 | Digital output off, synced with motion | Mill and lathe |
| M64 | Digital output on, immediate | Mill and lathe |
| M65 | Digital output off, immediate | Mill and lathe |
| M66 | Wait on input | Mill and lathe |
| M67 | Analog output, synced with motion | Mill and lathe |
| M68 | Analog output, immediate | Mill and lathe |
| M70 | Save modal state | Mill and lathe |
| M71 | Invalidate saved modal state | Mill and lathe |
| M72 | Restore modal state | Mill and lathe |
| M73 | Save and auto restore modal state | Mill and lathe |
| M98 | Fanuc style subprogram call | Mill and lathe |
| M99 | Fanuc style subprogram return | Mill and lathe |
| M100 | User M codes M100 to M199 | 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 LinuxCNC Tormach G-codes