flexi-bot/docs/marlin/_gcode/M412.md
2023-09-05 20:38:49 +02:00

1.8 KiB

tag title brief author requires since group codes notes parameters examples
m0412 Filament Runout Get/set filament runout detection parameters thinkyhead FILAMENT_RUNOUT_SENSOR 2.0.0 control
M412
Requires `FILAMENT_RUNOUT_SENSOR`.
Parameter `D` requires `FILAMENT_RUNOUT_DISTANCE_MM`.
Parameter `H` requires `HOST_ACTION_COMMANDS`.
tag optional description values
D true Set the filament runout distance.
type tag
float linear
tag optional description values
H true Flag to enable or disable host handling of a filament runout.
type
bool
tag optional description values
S true Flag to enable or disable Filament Runout Detection. If omitted, the current enabled state will be reported.
type
bool
tag optional description values
R true Flag to reset the filament runout sensor. Not needed with `S`.
type
bool
pre code
Enable (and reset) filament runout detection M412 S1
pre code
Disable filament runout detection M412 S0
pre code
Report filament runout state M412 Filament runout ON
pre code
Set filament runout distance M412 D35 ; requires FILAMENT_RUNOUT_DISTANCE_MM M412 Filament runout ON Filament runout distance (mm): 35

Get or set filament runout status and distance. Omit all parameters to get a report of the current stats. Enable or disable filament runout detection with S and set distance with D. When filament sensors are enabled, Marlin will respond to a filament runout by running the configured G-code (usually M600 Filament Change). When filament runout detection is disabled, Marlin will take no action for filament runout.