Skip to main content

Klipper Configuration

Filament Runout Sensor Configuration

[filament_switch_sensor mdm_switch_sensor]
switch_pin: ^PG12 # Replace with the pin you are using, connected to the filament runout detection pin.
pause_on_runout: True
# When set to "True", the printer will pause immediately upon detecting a runout.
# Note: If pause_on_runout is False and no runout_gcode is defined,
# runout detection will be disabled.
# Default is True.

runout_gcode:
PAUSE
M118 Filament Runout
# insert_gcode:
event_delay: 1.0
# Minimum delay time (in seconds) between events.
# Events triggered within this time frame will be ignored by default.
# Default is 3 seconds.

pause_delay: 0.5
# Delay time (in seconds) between the pause command and the execution of runout_gcode.
# In the case of OctoPrint, increasing this delay may improve pause reliability.
# If OctoPrint exhibits strange pause behavior, consider increasing this delay.
# Default is 0.5 seconds.

Filament Clog Detection Configuration

[filament_motion_sensor mdm_motion_sensor]
switch_pin: PD6 # Replace with the pin you are using, connected to the filament clog detection pin.
detection_length: 3.5 # Minimum distance to trigger a state change on the switch_pin.
extruder: extruder
# The extruder associated with this sensor.
# This parameter must be provided.

# pause_on_runout:
runout_gcode:
PAUSE
M118 Filament Clog
# insert_gcode:
event_delay: 3.0
pause_delay: 1.0

Loading...