M30 is a LinuxCNC G-code program-end command that also exchanges pallet shuttles. It ends the program, and pressing Cycle Start ("R" in the Axis GUI) restarts the program at the beginning of the file. M30 also returns the machine to a defined set of modal states, such as MDI mode, default origin offsets, XY plane, absolute distance mode and stopped spindle.
| Language | gcode |
|---|---|
| Code | M30 |
| Group | Program End |
| Dialect | LinuxCNC |