Real-Time 3D Graphics Simulation for Computer Numerical Control
| Milling | Turning | ||
| M00 | Program Stop | M00 | Program Stop |
| M01 | Optional Program Stop | M01 | Optional Program Stop |
| M02 | Program End | M02 | Program End |
| M03 | Spindle On Clockwise | M03 | Spindle On Clockwise |
| M04 | Spindle On Counterclockwise | M04 | Spindle On Counterclockwise |
| M05 | Spindle Stop | M05 | Spindle Stop |
| M06 | Tool Change | . | . |
| . | . | M07 | Coolant 1 On |
| M08 | Coolant On | M08 | Coolant 2 On |
| M09 | Coolant Off | M09 | Coolant Off |
| M10 | Clamps On | . | . |
| M11 | Clamps Off | . | . |
| M30 | End of Program, Reset to Start | M30 | End of Program, Reset to Start |
| M98 | Call subroutine command | M98 | Subprogram call |
| M99 | Return from subroutine command | M99 | Return from subprogram |