- G0 / G1 : Linear Move
- G2 / G3 : Controlled Arc Move
- G4 : Dwell
- G20 : Inch Units
- G21 : Millimeter Units
- G28 : Auto Home
- G30 : Single Z-Probe
- G38.2 / G38.3 : Probe target
- G53 : Move in Machine Coordinates
- G54 / G55 / G56 / G57 / G58 / G59 / G59.1 / G59.2 / G59.3 : Workspace Coordinate System
- G90 : Absolute Positioning
- G91 : Relative Positioning
- G92 : Set Position
- G1029 : Bed Leveling (Automatic)
- M3 : Spindle CW / Laser On
- M4 : Spindle CCW / Laser On
- M5 : Spindle / Laser Off
- M17 : Enable Steppers
- M18 / M84 : Disable steppers
- M25 : Pause HMI print
- M31 : Print time
- M43 : Debug Pins
- M76 : Pause Print Job
- M81 : Power Off
- M82 : E Absolute
- M83 : E Relative
- M85 : Inactivity Shutdown
- M92 : Set Axis Steps-per-unit
- M104 : Set Hotend Temperature
- M106 : Set Fan Speed
- M107 : Fan Off
- M109 : Wait for Hotend Temperature
- M111 : Debug Level
- M112 : Emergency Stop
- M114 : Get Current Position
- M115 : Firmware Info
- M117 : Set LCD Message
- M118 : Serial print
- M119 : Endstop States
- M120 : Enable Endstops
- M121 : Disable Endstops
- M140 : Set Bed Temperature
- M155 : Temperature Auto-Report
- M190 : Wait for Bed Temperature
- M200 : Set Filament Diameter
- M201 : Set Print Max Acceleration
- M203 : Set Max Feedrate
- M204 : Set Starting Acceleration
- M205 : Set Advanced Settings
- M206 : Set Home Offsets
- M211 : Software Endstops
- M220 : Set Feedrate Percentage
- M301 : Set Hotend PID
- M302 : Cold Extrude
- M400 : Finish Moves
- M401 : Deploy Probe
- M402 : Stow Probe
- M410 : Quickstop
- M412 : Filament Runout
- M413 : Power-loss Recovery
- M420 : Bed Leveling State
- M421 : Set Mesh Value
- M425 : Backlash compensation
- M428 : Home Offsets Here
- M500 : Save Settings
- M501 : Restore Settings
- M502 : Factory Reset
- M503 : Report Settings
- M504 : Validate EEPROM contents
- M540 : Endstops Abort SD
- M600 : Filament Change
- M851 : Z Probe Offset
- M900 : Linear Advance Factor
- M928 : Start SD Logging
- M1005 : Firmware Information
- M1006 : Tool header information
- M1007 : homed state, coordinate system used, and origin offset
- M1010 : Enclosure control
- M1011 : Air purifier control
- M1012 : Check if the emergency stop module is online
- M1029 : Remap 8-pin port function
- M1999 : Reboot the machine
- M2000 : SM2 system information inquiry
- M2001 : Peripheral power control
M413 - Power-loss Recovery
Description
Enable or disable the Power-loss Recovery feature. When this feature is enabled, the state of the current print job (SD card only) will be saved to a file on the SD card. If the machine crashes or a power outage occurs, the firmware will present an option to Resume the interrupted print job. In Marlin 2.0 the POWER_LOSS_RECOVERY
option must be enabled.
This feature operates without a power-loss detection circuit by writing to the recovery file periodically (e.g., once per layer), or if a POWER_LOSS_PIN
is configured then it will write the recovery info only when a power-loss is detected. The latter option is preferred, since constant writing to the SD card can shorten its life, and the print will be resumed where it was interrupted rather than repeating the last layer. (Future implementations may allow use of the EEPROM or the on-board SD card.)
Notes
Requires POWER_LOSS_RECOVERY
and an LCD controller.
Parameters
M413
[S<bool>]
[S<bool>]
|
Flag to enable or disable Power-loss Recovery. If omitted, the current enabled state will be reported. |
Examples
Enable power-loss recovery
Disable power-loss recovery
Report power-loss recovery state