From a8ec2ca003c2dea8ec51b03a830656fb8062b3ae Mon Sep 17 00:00:00 2001 From: voron-automated Date: Wed, 3 Sep 2025 20:00:01 +0300 Subject: [PATCH] Automatic backup: 2025-09-03_20:00:01 --- printer.cfg | 74 +++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 60 insertions(+), 14 deletions(-) diff --git a/printer.cfg b/printer.cfg index 4c6075f..9fb2109 100644 --- a/printer.cfg +++ b/printer.cfg @@ -419,7 +419,7 @@ fan_speed: 1.0 ##################################################################### [idle_timeout] -timeout: 1800 +timeout: 600 [safe_z_home] ## XY Location of the Z Endstop Switch @@ -575,6 +575,30 @@ gcode: RESTORE_GCODE_STATE NAME=STATE_G32 +# Faster quad gantry level +# cf. https://klipper.discourse.group/t/faster-quad-gantry-level-macro/19044 +[gcode_macro QUAD_GANTRY_LEVEL] +rename_existing: _QUAD_GANTRY_LEVEL +gcode: + # If QGL is not applied, first run a coarse calibration + {% if printer.quad_gantry_level.applied == False %} + _QUAD_GANTRY_LEVEL RETRY_TOLERANCE=1.0 + {% endif %} + # then perform fine QGL down to desired spec + # this has to be a separate macro call so the results of the above call will be visible! + _FINE_QUAD_GANTRY_LEVEL + +[gcode_macro _FINE_QUAD_GANTRY_LEVEL] +gcode: + {% if printer.quad_gantry_level.applied == True %} + # go for full quality at reduced probing height + _QUAD_GANTRY_LEVEL HORIZONTAL_MOVE_Z=1.0 # <- set your preferred probing height here! + {% else %} + # This should never happen, just perform the full calibration using the defaults + {action_respond_info("Fine QGL called without calling course QGL first!")} + _QUAD_GANTRY_LEVEL # default behavior, no speedup + {% endif %} + [gcode_macro PRINT_START] # Use PRINT_START for the slicer starting script - please customise for your slicer of choice gcode: @@ -588,11 +612,16 @@ gcode: ## Uncomment for Beacon Contact (1 of 4 for beacon contact) #SET_GCODE_OFFSET Z=0 # Set offset to 0 + M104 S{target_extruder} # Start heating hotend + M140 S{target_bed} # Start heating bed + # Home the printer, set absolute positioning and update the Stealthburner LEDs. STATUS_HOMING # Set LEDs to homing-mode G28 # Full home (XYZ) G90 # Absolute position + + ## Uncomment for bed mesh (1 of 2 for bed mesh) #BED_MESH_CLEAR # Clear old saved bed mesh (if any) @@ -620,9 +649,9 @@ gcode: #G4 P300000 # Wait 5 min for the bedtemp to stabilize #{% endif %} - # Heat hotend to 150c. This helps with getting a correct Z-home. - SET_DISPLAY_TEXT MSG="Hotend: 150c" # Display info on display - M109 S150 # Heat hotend to 150c + # # Heat hotend to 150c. This helps with getting a correct Z-home. + # SET_DISPLAY_TEXT MSG="Hotend: 150c" # Display info on display + # M109 S150 # Heat hotend to 150c ## Uncomment for Beacon contact (2 of 4 for beacon contact) #G28 Z METHOD=CONTACT CALIBRATE=1 # Calibrate z offset and beacon model @@ -633,12 +662,17 @@ gcode: #Z_TILT_ADJUST # Level the printer via Z_TILT_ADJUST #G28 Z # Home Z again after Z_TILT_ADJUST + STATUS_HEATING # Set LEDs to heating-mode + SET_DISPLAY_TEXT MSG="Waiting temps" + M109 S{target_extruder} # Finish heating hotend + M190 S{target_bed} # Finish heating bed + ## Uncomment for V2.4 (Quad gantry level AKA QGL) - SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" - M140 S{target_bed} SET_DISPLAY_TEXT MSG="Leveling" # Display info on display STATUS_LEVELING # Set LEDs to leveling-mode + G1 E-5 F2100 # retract filament QUAD_GANTRY_LEVEL # Level the printer via QGL + G1 E5 F2100 # restore filament G28 Z # Home Z again after QGL ## Uncomment for bed mesh (2 of 2 for bed mesh) @@ -649,12 +683,12 @@ gcode: ## Uncomment for Beacon Contact (3 of 4 for beacon contact) #G28 Z METHOD=CONTACT CALIBRATE=0 # Calibrate z offset only with hot nozzle - # Heat up the hotend up to target via data from slicer - SET_DISPLAY_TEXT MSG="Hotend: {target_extruder}c" # Display info on display - STATUS_HEATING # Set LEDs to heating-mode - G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed - M107 # Turn off partcooling fan - M109 S{target_extruder} # Heat the hotend to set temp + # # Heat up the hotend up to target via data from slicer + # SET_DISPLAY_TEXT MSG="Hotend: {target_extruder}c" # Display info on display + # STATUS_HEATING # Set LEDs to heating-mode + # G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed + # M107 # Turn off partcooling fan + # M109 S{target_extruder} # Heat the hotend to set temp ## Uncomment for Beacon Contact (4 of 4 for beacon contact) #SET_GCODE_OFFSET Z=0.06 # Add a little offset for hotend thermal expansion @@ -668,6 +702,16 @@ gcode: G1 X100 E20 F1000 # Primeline G90 # Absolute position +# cf. https://ellis3dp.com/Print-Tuning-Guide/articles/useful_macros/pause_resume_filament.html#cancel +[gcode_macro CANCEL_PRINT] +rename_existing: BASE_CANCEL_PRINT +gcode: + SET_IDLE_TIMEOUT TIMEOUT={printer.configfile.settings.idle_timeout.timeout} ; set timeout back to configured value + CLEAR_PAUSE + SDCARD_RESET_FILE + PRINT_END + BASE_CANCEL_PRINT + [gcode_macro PRINT_END] # Use PRINT_END for the slicer ending script - please customise for your slicer of choice @@ -677,8 +721,10 @@ gcode: G1 E-5 F1800 ; retract filament G91 ; relative positioning G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing - TURN_OFF_HEATERS - M107 ; turn off fan + SET_IDLE_TIMEOUT TIMEOUT={printer.configfile.settings.idle_timeout.timeout} ; set timeout back to configured value + ## Removing this in favour of idle_timeout + # TURN_OFF_HEATERS + # M107 ; turn off fan G1 Z2 F3000 ; move nozzle up 2mm G90 ; absolute positioning G0 X125 Y250 F3600 ; park nozzle at rear