From abd16d05b5a7abbf652fb72b1c2a5a153358a0f9 Mon Sep 17 00:00:00 2001 From: pi Date: Fri, 18 Apr 2025 09:38:32 +0100 Subject: [PATCH] set_material.cfg modified - 18/04/25 - 09:38:28 --- printer_data/config/CUSTOM/set_material.cfg | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/printer_data/config/CUSTOM/set_material.cfg b/printer_data/config/CUSTOM/set_material.cfg index 0d53677..1e11df1 100644 --- a/printer_data/config/CUSTOM/set_material.cfg +++ b/printer_data/config/CUSTOM/set_material.cfg @@ -470,6 +470,27 @@ gcode: SET_PA PA=0.04 SMOOTH=0.045 {% endif %} +[gcode_macro SET_PA] +description: Set Pressure Advance with automatic nozzle and flow-based scaling +variable_pa: 0.04 + +# === OVERVIEW === +# Dynamically adjusts Pressure Advance (PA) based on: +# - Configured nozzle size (from printer.cfg) +# - Actual print flow vs max flow (defaults to 10/15 mm³/s) +# +# === HOW TO USE === +# SET_PA PA= [FLOW=] [MAX_FLOW=] [SMOOTH=] +# +# Example: +# SET_PA PA=0.05 +# SET_PA PA=0.05 FLOW=35 MAX_FLOW=70 +# +# === PARAMETERS === +# PA : Base PA for 100% flow (required) +# FLOW : Actual flow rate in mm³/s (default: 10) +# MAX_FLOW : Max hotend flow in mm³/s (default: 15) +# SMOOTH : Optional smoothing (default: 0.045)