Auto-resume only on NOT FEEDING; purge check fails on pressure left after the purge

A CLOG DETECTED pause is usually a real blockage: on 2026-11-17 a nozzle
blocked right after a swap, the purge check passed (a blocked nozzle also
builds pressure) and the automatic resume only printed air until the next
CLOG pause. CLOG messages are still cleared after a resume, so a leftover
one cannot hide the next NOT FEEDING message.

The purge check now also fails when bd_pressure's delta is still above
pressure_max_delta (15) when the check stops: 16 good purges -3..+10, two
long purges into the blocked nozzle +19/+21 (the short ones did not show it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-17 11:16:50 +01:00
1 parent 385adb5283
commit 2629e70fad
4 files changed
+27 -8

No files matched your search

+13 -1
View File
@@ -9,6 +9,10 @@
# the nozzle pressure stayed above the threshold. Catches filament
# that never reached the melt zone. Skipped automatically on stock
# firmware or when bdpressure_check.py is not installed.
# A blocked nozzle builds pressure too, so that alone passes it. The
# pressure left when the check stops (delta, a few seconds after the
# purge, once the blob is dropped) catches some: it bleeds off slowly
# through a blocked nozzle (pressure_max_delta).
#
# Needs: bdwidth_status.py in ~/klipper/klippy/extras/
# bdpressure_check.py in ~/klipper/klippy/extras/ (optional)
@@ -46,6 +50,11 @@ variable_motion_check: False # False: skip the bdwidth motion check, pressure
variable_min_ratio: 0.4 # placeholder: sensed mm / extruded mm below this = not feeding
variable_min_extrude: 20 # skip the checks for purges shorter than this (mm)
variable_pressure_min_ms: 5000 # placeholder: longest continuous pressure needed (ms)
# Pressure still above the baseline when the check stops = nozzle (partly)
# blocked; 0 = off. Data 2026-11-12..17: 16 good purges -3..+10, the two long
# purges into a blocked nozzle (2026-11-17) +19 and +21; the two 40 mm purges
# into that nozzle gave -2 and -12, so it does not catch every blockage.
variable_pressure_max_delta: 15
# bdwidth is not reading after SET_BDWIDTH ... COMMAND=DISABLE and after
# every Klipper restart until an ENABLE (outside a print, often early in a
# print start). The check then switches it on and waits this long for the
@@ -188,10 +197,13 @@ gcode:
{% endif %}
{% if 'bdpressure_check' in printer and printer.bdpressure_check.available %}
{% set p = printer.bdpressure_check %}
{% set press = "pressure longest %d ms, total %d ms, peak %d" % (p.longest_ms, p.above_ms, p.peak) %}
{% set press = "pressure longest %d ms, total %d ms, peak %d, left %d" % (p.longest_ms, p.above_ms, p.peak, p.delta) %}
{% if p.longest_ms < cfg.pressure_min_ms %}
{% set _ = failed.append("no sustained nozzle pressure") %}
{% endif %}
{% if cfg.pressure_max_delta > 0 and p.delta > cfg.pressure_max_delta %}
{% set _ = failed.append("pressure stays high after the purge (%d > %d): nozzle blocked?" % (p.delta, cfg.pressure_max_delta)) %}
{% endif %}
{% elif 'bdpressure_check' in printer %}
{% if cfg.ignore_missing_sensor %}
{% set press = "pressure skipped: bd_pressure not answering (ignored, PURGE_CHECK_IGNORE_SENSOR)" %}