From 77fd6615abed28c8f8627d57343e757ce8b0c3af Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sun, 17 Dec 2023 01:57:57 +0700 Subject: [PATCH] Update printer.cfg --- printer.cfg | 67 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/printer.cfg b/printer.cfg index 79996e8..744e91b 100644 --- a/printer.cfg +++ b/printer.cfg @@ -14,7 +14,7 @@ canbus_uuid: 0ab26b4c87c4 kinematics: corexy max_velocity: 500 max_accel: 20000 -max_z_velocity: 20 #Max 15 for 12V TMC Drivers, can increase for 24V +max_z_velocity: 20 max_z_accel: 350 square_corner_velocity: 5.0 @@ -186,10 +186,10 @@ min_temp: 10 max_temp: 270 max_power: 1.0 min_extrude_temp: 170 -#control = pid -#pid_kp = 26.213 -#pid_ki = 1.304 -#pid_kd = 131.721 +control = pid +pid_kp = 23.189 +pid_ki = 1.562 +pid_kd = 86.089 ## Try to keep pressure_advance below 1.0 #pressure_advance: 0.05 ## Default is 0.040, leave stock @@ -225,10 +225,10 @@ sensor_pin: PB1 max_power: 1 min_temp: 0 max_temp: 120 -#control: pid -#pid_kp: 58.437 -#pid_ki: 2.347 -#pid_kd: 363.769 +control = pid +pid_kp = 62.274 +pid_ki = 3.218 +pid_kd = 301.250 ##################################################################### # Probe @@ -354,7 +354,7 @@ points: 300,25 speed: 100 horizontal_move_z: 10 -retries: 5 +retries: 10 retry_tolerance: 0.01 max_adjust: 15 @@ -392,29 +392,42 @@ gcode: G28 QUAD_GANTRY_LEVEL G28 - G0 X175 Y175 Z30 F3600 + G0 X345 Y345 Z30 F3600 + +[gcode_macro PARK_NOZZLE_REAR] +gcode: + G0 X345 Y345 F3600 + [gcode_macro PRINT_START] -# Use PRINT_START for the slicer starting script - please customise for your slicer of choice gcode: - G32 ; home all axes - G1 Z20 F3000 ; move nozzle away from bed - + M140 S{ params.BED | float } ; set bed temperture + M109 S150 ; get nozzle to probing temperture + M190 S{ params.BED | float } ; wait for bed to reach temperture + G32 ; home all axes + G1 Z20 F3000 ; move nozzle away from bed + M109 S{ params.EXTRUDER | float } ; wait for nozzle to reach temperture + SET_LED LED="hotend_rgb" RED=1 GREEN=1 BLUE=1 SYNC=0 TRANSMIT=1 ; turn on hotend LED +[gcode_macro PRINT_PURGE_LINE] +gcode: + G0 X10Y10Z0.25 F10000 + G0 X200Y10Z0.25 E50 F1000 [gcode_macro PRINT_END] -# Use PRINT_END for the slicer ending script - please customise for your slicer of choice gcode: - M400 ; wait for buffer to clear - G92 E0 ; zero the extruder - G1 E-10.0 F3600 ; 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 - G1 Z2 F3000 ; move nozzle up 2mm - G90 ; absolute positioning - G0 X125 Y250 F3600 ; park nozzle at rear - BED_MESH_CLEAR + M400 ; wait for buffer to clear + G92 E0 ; zero the extruder + G1 E-10.0 F3600 ; retract filament + G91 ; relative positioning + G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing + TURN_OFF_HEATERS ; turn off heaters + M107 ; turn off fan + G1 Z2 F3000 ; move nozzle up 2mm + G90 ; absolute positioning + PARK_NOZZLE_REAR ; park nozzle + M84 ; disable motors + BED_MESH_CLEAR ; clear bed mesh + SET_LED LED="hotend_rgb" RED=1 GREEN=1 BLUE=1 SYNC=0 TRANSMIT=1 ; turn on hotend LED #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.