---
tag: m0112
title: Emergency Stop
brief: Shut everything down and halt the machine.
author: thinkyhead

group: safety

codes: [ M112 ]

notes: '[`M112`](/docs/gcode/M112.html) is the fastest way to shut down the machine using a host, but it may need to wait for a space to open up in the command queue. Enable `EMERGENCY_PARSER` for an instantaneous [`M112`](/docs/gcode/M112.html) command.'

parameters:

examples:
  -
    pre: Shut down now!
    code: M112

---

Used for emergency stopping, [`M112`](/docs/gcode/M112.html) shuts down the machine, turns off all the steppers and heaters, and if possible, turns off the power supply. A reset is required to return to operational mode.
