Back to the Gcode Dictionary
M1: Sleep or Conditional stop
The effect of M1 depends on the state of the machine.
- The firmware finishes any moves left in its buffer.
- Either: if the axes are homed and if a print is being cancelled (M25), it executes the macro file cancel.g if present.
Or: if M1 is sent at any other time, sleep.g is run if present.
- All motors and heaters are are turned off.
G and M codes can still be sent, the first of which will wake it up again. See also M0, M112.
If Marlin is emulated in RepRapFirmware, this does the same as M25 if the code was read from a serial or Telnet connection, else the macro file sleep.g is run before all heaters and drives are turned off.