thinkyhead

M412 - Filament Runout

2.0.0 control Get/set filament runout detection parameters FILAMENT_RUNOUT_SENSOR

Description

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.

Notes

Requires FILAMENT_RUNOUT_SENSOR.

Parameter D requires FILAMENT_RUNOUT_DISTANCE_MM.

Parameter H requires HOST_ACTION_COMMANDS.

Usage

M412 [D<linear>] [H<bool>] [R<bool>] [S<bool>]

Parameters

[D<linear>]

Set the filament runout distance.

    [H<bool>]

    Flag to enable or disable host handling of a filament runout.

      [R<bool>]

      Flag to reset the filament runout sensor. Not needed with S.

        [S<bool>]

        Flag to enable or disable Filament Runout Detection. If omitted, the current enabled state will be reported.

          Examples

          Enable (and reset) filament runout detection

          M412 S1

          Disable filament runout detection

          M412 S0

          Report filament runout state

          M412
          Filament runout ON

          Set filament runout distance

          M412 D35 ; requires FILAMENT_RUNOUT_DISTANCE_MM
          M412
          Filament runout ON
          Filament runout distance (mm): 35