---
title: M0, M1, M2, M30, M60 (Program Stopping and Ending)
slug: m0-m1-m2-m30-m60-program-stopping-and-ending
docTags: 
createdAt: 2023-04-17T12:18:19.000Z
---

To temporarily halt a running program, program `M0`. If a program is stopped by an `M0`, pressing the cycle start button will restart the program at the following line, so the program will continue.

To optionally halt a program when the stopM1 feature is enabled in the user interface, please use the `M1` command.

Command `M30` results in:

- The selected plane is set to CANON\_PLANE\_XY (like `G17`).
- Distance mode is set to MODE\_ABSOLUTE (like `G90`).
- The feed rate mode is set to UNITS\_PER\_MINUTE (like `G94`).
- Feed and speed overrides are set to ON (like `M48`).
- Cutter compensation is turned off (like `G40`).
- The spindle is stopped (like `M5`).
- The current motion mode is set to G\_1 (like `G1`).
- Coolants are turned off (like `M9`).
- The program is rewinded to the first line, ready for the next start.
- All 3D printer heating OFF.

Note that the coordinate systems are not reset when M30 is issued.

Program `M60` instead of `M30` if the spindle and coolants should remain on, which is useful with nesting.

###

