thinkyhead

M412 - Filament Runout

2.0.0 control Set/report filament runout detection parameters FILAMENT_RUNOUT_SENSOR

Description

Set/report 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 post-runout extrusion length 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.

Usage

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

Parameters

[D<linear>]
FILAMENT_RUNOUT_DISTANCE_MM

For a filament sensor located in front of the extruder gears, set the distance from the runout sensor to the extruder gears. This length of filament will continue to extrude after a runout has been detected.

    [H<bool>]
    HOST_ACTION_COMMANDS

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

      [L<linear>]
      2.1.3
      FILAMENT_SWITCH_AND_MOTION

      Set the motion sensor runout length. If the sensor accumulates this amount of missing motion it triggers a runout right away and does not continue to extrude FILAMENT_RUNOUT_DISTANCE_MM.

        [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
            > M412
            Filament runout ON ; Distance 35mm

            Requires FILAMENT_RUNOUT_DISTANCE_MM