set_material.cfg modified - 18/04/25 - 09:38:28

This commit is contained in:
pi committed 2025-04-18 09:38:32 +01:00
1 parent 951efd9b26
commit abd16d05b5
1 file changed
+21
@@ -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=<base_value> [FLOW=<actual_mm3/s>] [MAX_FLOW=<max_mm3/s>] [SMOOTH=<smoothing>]
#
# 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)