PETG and PETG-CF are too viscous for the 25 mm3/s test flow of the 0.4
nozzle; 12 matches their slicer flow limit. First run at 12 (spool 35,
PETG-CF, 250C) gave PA 0.058.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At the configured 8 the buffer faults after 30 mm in one state; during the
test lines it needs far more to reach its other sensor, so every lane1
calibration on 2026-11-07 paused with AFC NOT FEEDING. With detection off
the buffer switched after ~80 s and the test finished.
_PA_CFG.test_error_sensitivity (2) is set before PA_CALIBRATE and the
[AFC_buffer] config value is restored after it through
_FIRST_LAYER_FAULT_DETECTION ON=0 (lowered=True), which _PRINT_CLEANUP also
calls when the test stops with an error. Nothing changes when detection is
off in the config.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- _PA_CFG.test_z (default 5): LANE_CALIBRATE_PA lowers the nozzle to this
height instead of Z0 before PA_CALIBRATE, so the test lines are extruded
in the air.
- BLOBIFIER: purge_spd_nozzle {"0.4": 150, "0.2": 75} mm/min, picked by
the pa_nozzle save variable (SET_NOZZLE); other sizes use purge_spd.
150 mm/min is about 6 mm3/s, too much for a 0.2 nozzle.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A PA value only holds for the nozzle it was measured with, so values are
saved per nozzle and spool (pa_value_0_4_spool_<id>). SET_NOZZLE sets the
fitted size; a different NOZZLE= from the slicer on PRINT_WARMUP stops the
print before anything heats. The existing values are copied to 0.4 once at
the first start; the old variables stay in the file, unread.
Each nozzle has its own test flow and PA range (0.2: 5 mm3/s, 0-0.196,
starting estimates, about 9 min a lane). The test primes at the test flow
instead of 120 mm3/s.
Remove the Spoolman write: it went to localhost and never arrived, and
nothing read the values back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PA_CALIBRATE takes PA_STEP (default 0.002, 0-0.098 over 50 lines).
_PA_CFG.material_pa_step uses 0.004 (0-0.196) for tpu/tpe/flex; soft TPU
measured 0.094, close to the old end. The "no result" rejection uses the
end of the range actually tested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_PA_CFG.material_max_volumetric lowers MAX_VOLUMETRIC for materials that
cannot extrude 25 mm3/s (tpu, tpe, flex: 8). The calibration line shows
the flow used.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- LANE_CALIBRATE_PA: when a calibration will run, assign the lane's spool
again (SET_SPOOL_ID) so AFC reads the Spoolman temperature now; AFC
only reads it at spool assignment and Klipper start (TPU calibrated at
210C after Spoolman was set to 230C). The calibration moved to
_LANE_CALIBRATE_PA_RUN, rendered after the refresh.
- bdp_guard: an emergency stop during PA_CALIBRATE leaves the sensor in
PA mode (FIRMWARE_RESTART does not reset it). When arming, read the
mode register and switch the sensor back to probe mode with a fresh
baseline before watching it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PRINT_WARMUP: bed heats during the warmup, the nozzle only waits while it
is above 170C (Beacon contact limit 180C), one HOME to get over the bed,
then M190 and HEAT_SOAK. No more filament load and 220->150C cycle there.
PRINT_START (on the soaked bed): one QGL, one contact Z calibration, mesh,
heat over the bucket, load the initial tool, PA for all lanes, load the
initial tool again if a calibration changed lanes, G28 X Y reference.
Loading after the contact keeps ooze off the nozzle for the calibration.
PA: calibrate each lane at its own filament temperature (was the
temperature from before CHANGE_TOOL), and apply the loaded lane's PA
after PA_CALIBRATE_ALL_LANES (the last cached lane's PA won before).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
action_raise_error aborts while the macro renders, so an M117 in the same
macro never ran and errors such as the RESUME lane check only reached the
console. messages.cfg adds _ERROR (M117, then raise in a separate macro)
and _WARN (RESPOND TYPE=error + M117); all errors and warnings use them.
PAUSE shows AFC's error as the pause reason; RESUME, CANCEL_PRINT and
PRINT_WARMUP clear the display.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lanes whose AFC prep and load sensors do not both see filament are
skipped with a message, as are names that are not AFC lanes. The
"complete" message is now a RESPOND, so it appears after the
calibrations instead of before them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bdpressure.py leaves the extruder at the last PA_CALIBRATE test value
(0.098) when it finds no result, and _PA_AFTER_CALIBRATE saved that as
the calibrated PA (lane1 after an AFC pause, lane5 after the sensor went
silent). A run is now rejected, with nothing cached or written to
Spoolman, when the PA is still at the end of the scan, the printer
paused during the test, or bd_pressure gave too few or too few different
readings. The previous valid PA (or fallback_pa) is applied instead.
bdpressure_check reports pa_points and pa_distinct from the bdpressure
module's last PA_CALIBRATE data for this.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Split the macro files into folders by topic (print, heating, afc,
pressure_advance, spoolman, leds, sensors); klipper-macros.cfg is the
one file printer.cfg includes. Macros moved unchanged; the effective
config is identical apart from the paths of the PA shell scripts.
- Add the modified Blobifier (Turtleblobifier for AFC) and define
[save_variables] once in save_variables.cfg instead of in both
blobifier.cfg and the PA macros (same file, bd_pa_variables.cfg).
- PRINT_WARMUP: heat to the loaded lane's temperature before the first
tool change. AFC skips heating when the loaded lane's tool number is
not in the print file's temperature list, and the unload then failed
below min_extrude_temp.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>