PA values per nozzle: SET_NOZZLE, slicer check, no Spoolman write

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>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-06 19:49:25 +01:00
1 parent 1dcbc50bf6
commit b415cbebf4
7 files changed
+108 -133

No files matched your search

+3
View File
@@ -63,6 +63,9 @@ detection, `filament_error_sensitivity`), iHeater chamber heater.
line (`M26`) and resumes. Everything after the check belongs in
`_PRINT_START_FINISH`: a pause does not stop a running macro.
- Only one `[save_variables]`, in `macros/save_variables.cfg`.
- PA values are saved per nozzle and spool (`pa_value_0_4_spool_<id>`), the fitted
size in `pa_nozzle` (`SET_NOZZLE`). The slicer's `NOZZLE=` on `PRINT_WARMUP` must
match, or the print stops. A new size needs an entry in `_PA_CFG.nozzle_test`.
- `PRINT_END` and `CANCEL_PRINT` share `_PRINT_CLEANUP` (heaters including
`iHEATER_OFF`, fan, `M221 S100`, bdwidth off). Anything that must happen
at the end of every print goes there. `RESTORE_GCODE_STATE` restores the