PA test at Z5, purge speed per nozzle size

- _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>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-07 16:37:55 +01:00
1 parent cc533824e3
commit 319410c642
2 files changed
+14 -3

No files matched your search

+10 -2
View File
@@ -63,6 +63,10 @@
# if you experience excessive oozing. # if you experience excessive oozing.
# variable_purge_spd: 250 #300 # Speed, in mm/min, of the purge. # variable_purge_spd: 250 #300 # Speed, in mm/min, of the purge.
variable_purge_spd: 150 # Speed, in mm/min, of the purge. variable_purge_spd: 150 # Speed, in mm/min, of the purge.
# Purge speed (mm/min) per nozzle size, chosen by the save variable pa_nozzle
# (SET_NOZZLE). 150 mm/min is about 6 mm3/s, too much for a 0.2 nozzle.
# A size not listed uses purge_spd.
variable_purge_spd_nozzle: {"0.4": 150, "0.2": 75}
variable_purge_temp_min: 200 # Minimum nozzle purge temperature. variable_purge_temp_min: 200 # Minimum nozzle purge temperature.
variable_toolhead_x: 70 # From the nozzle to the left of your toolhead variable_toolhead_x: 70 # From the nozzle to the left of your toolhead
variable_toolhead_y: 50 # From the nozzle to the front of your toolhead variable_toolhead_y: 50 # From the nozzle to the front of your toolhead
@@ -278,6 +282,10 @@ variable_shaker_arm_z: 4
gcode: gcode:
# Purge speed for the fitted nozzle (purge_spd_nozzle above)
{% set nozzle = "%g" % printer.save_variables.variables["pa_nozzle"]|default(0.4)|float %}
{% set purge_rate = purge_spd_nozzle[nozzle]|float if nozzle in purge_spd_nozzle else purge_spd|float %}
# ====================================================================================== # ======================================================================================
# ==================== RECORD STATE (INCL. FANS, SPEEDS, ETC...) ======================= # ==================== RECORD STATE (INCL. FANS, SPEEDS, ETC...) =======================
# ====================================================================================== # ======================================================================================
@@ -444,8 +452,8 @@ gcode:
{% set pulses_per_retract = (purge_per_blob / retracts_per_blob / 5)|round(0, 'ceil')|int %} {% set pulses_per_retract = (purge_per_blob / retracts_per_blob / 5)|round(0, 'ceil')|int %}
{% set pulses_per_blob = (purge_per_blob / 5)|round(0, 'ceil')|int %} {% set pulses_per_blob = (purge_per_blob / 5)|round(0, 'ceil')|int %}
{% set purge_per_pulse = purge_per_blob / pulses_per_blob %} {% set purge_per_pulse = purge_per_blob / pulses_per_blob %}
{% set pulse_time_constant = purge_per_pulse * 0.95 / purge_spd / (purge_per_pulse * 0.95 / purge_spd + purge_per_pulse * 0.05 / 50) %} {% set pulse_time_constant = purge_per_pulse * 0.95 / purge_rate / (purge_per_pulse * 0.95 / purge_rate + purge_per_pulse * 0.05 / 50) %}
{% set pulse_duration = purge_per_pulse / purge_spd %} {% set pulse_duration = purge_per_pulse / purge_rate %}
# Repeat the process until purge_len is reached # Repeat the process until purge_len is reached
{% for blob in range(blobs) %} {% for blob in range(blobs) %}
+4 -1
View File
@@ -205,6 +205,9 @@ variable_nozzle_test: {"0.4": {"max_volumetric": 25, "pa_step": 0.002}, "0.2": {
# lane's material (any case) applies; the lowest of these and the nozzle's # lane's material (any case) applies; the lowest of these and the nozzle's
# flow wins. # flow wins.
variable_material_max_volumetric: {"tpu": 8, "tpe": 8, "flex": 8} variable_material_max_volumetric: {"tpu": 8, "tpe": 8, "flex": 8}
# Nozzle height (mm) for the test lines (PA_CALIBRATE keeps the current Z).
# At 5 they are extruded in the air, clear of the bed and plate.
variable_test_z: 5
variable_acc_wall: 5000 variable_acc_wall: 5000
variable_travel_speed: 300 variable_travel_speed: 300
variable_acc_to_decel_factor: 50 variable_acc_to_decel_factor: 50
@@ -476,7 +479,7 @@ gcode:
G4 P400 G4 P400
G1 X30 Y349 Z10 F3000 G1 X30 Y349 Z10 F3000
G4 P400 G4 P400
G1 Z0 F3000 G1 Z{cfg.test_z} F3000
G4 P400 G4 P400
PA_CALIBRATE NOZZLE_TEMP={nozzle_temp} MAX_VOLUMETRIC={vol.max} ACC_WALL={cfg.acc_wall} TRAVEL_SPEED={cfg.travel_speed} ACC_TO_DECEL_FACTOR={cfg.acc_to_decel_factor} PA_STEP={step.pa} PA_CALIBRATE NOZZLE_TEMP={nozzle_temp} MAX_VOLUMETRIC={vol.max} ACC_WALL={cfg.acc_wall} TRAVEL_SPEED={cfg.travel_speed} ACC_TO_DECEL_FACTOR={cfg.acc_to_decel_factor} PA_STEP={step.pa}