From e9cc36cab56b383c138724708c86cec976bacd7c Mon Sep 17 00:00:00 2001 From: C0co <6054234+Phil1988@users.noreply.github.com> Date: Thu, 10 Apr 2025 18:05:42 +0200 Subject: [PATCH 1/6] Update better-load-unload.cfg Wait for Hotend Temperature --- better-load-unload.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/better-load-unload.cfg b/better-load-unload.cfg index bdda5e1..5be12b8 100644 --- a/better-load-unload.cfg +++ b/better-load-unload.cfg @@ -8,7 +8,7 @@ description: Unload filament gcode: {% set hotendtemp = params.S|default(250)|int %} {% set accel = printer.toolhead.max_accel|int %} - M104 S{hotendtemp} + M109 S{hotendtemp} {% if "y" not in printer.toolhead.homed_axes %} G28 Y {% endif %} From fdd1608fa40b32aaebd5a930097a560cbc090ab8 Mon Sep 17 00:00:00 2001 From: C0co <6054234+Phil1988@users.noreply.github.com> Date: Thu, 10 Apr 2025 18:16:27 +0200 Subject: [PATCH 2/6] Update better-load-unload.cfg Wait for temp --- better-load-unload.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/better-load-unload.cfg b/better-load-unload.cfg index 5be12b8..b9bbcbc 100644 --- a/better-load-unload.cfg +++ b/better-load-unload.cfg @@ -67,7 +67,7 @@ gcode: {% set current_state = params.F|default(1)|int %} {% set accel = printer.toolhead.max_accel|int %} M204 S10000 - M104 S{hotendtemp} + M109 S{hotendtemp} {% if "y" not in printer.toolhead.homed_axes %} G28 Y From 34c0205361fefc35c8c084bc53ae6448042f2d60 Mon Sep 17 00:00:00 2001 From: C0co <6054234+Phil1988@users.noreply.github.com> Date: Sun, 4 May 2025 16:16:46 +0200 Subject: [PATCH 3/6] improved for speeding up --- better-load-unload.cfg | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/better-load-unload.cfg b/better-load-unload.cfg index b9bbcbc..47deda9 100644 --- a/better-load-unload.cfg +++ b/better-load-unload.cfg @@ -6,9 +6,11 @@ [gcode_macro M603] description: Unload filament gcode: - {% set hotendtemp = params.S|default(250)|int %} + {% set hotendtemp = params.S|default(220)|int %} {% set accel = printer.toolhead.max_accel|int %} - M109 S{hotendtemp} + + M104 S{hotendtemp} + {% if "y" not in printer.toolhead.homed_axes %} G28 Y {% endif %} @@ -17,6 +19,8 @@ gcode: {% endif %} M204 S10000 + TEMPERATURE_WAIT SENSOR=extruder MINIMUM={hotendtemp-50} + G1 Y150 F9000 G1 X305 F9000 G1 Y20 F9000 @@ -34,7 +38,6 @@ gcode: M106 S0 M109 S{hotendtemp} - M118 Heat up complete G92 E0 G1 E5 F50 @@ -45,8 +48,7 @@ gcode: M106 S255 M104 S{hotendtemp-100} - G4 P5000 - + TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={hotendtemp-50} G1 Y318 F9000 G1 Y322 F600 @@ -58,7 +60,7 @@ gcode: M106 S0 M400 M204 S{accel} - M118 Unload finish + M118 Unload finished [gcode_macro M604] description: Load filament @@ -66,8 +68,8 @@ gcode: {% set hotendtemp = params.S|default(250)|int %} {% set current_state = params.F|default(1)|int %} {% set accel = printer.toolhead.max_accel|int %} - M204 S10000 - M109 S{hotendtemp} + + M104 S{hotendtemp} {% if "y" not in printer.toolhead.homed_axes %} G28 Y @@ -76,6 +78,9 @@ gcode: G28 X {% endif %} + M204 S10000 + TEMPERATURE_WAIT SENSOR=extruder MINIMUM={hotendtemp-50} + {% if current_state == 1 %} {% if (printer.gcode_move.position.y) > 300 %} G91 @@ -89,7 +94,6 @@ gcode: G1 Y324 F600 {% endif %} M109 S{hotendtemp} - M118 Heat up complete G1 X95 F600 G1 Y324 F600 @@ -102,8 +106,8 @@ gcode: G4 P300 M106 S255 - M104 S{hotendtemp-100} - G4 P5000 + M104 S{hotendtemp-100} + TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={hotendtemp-50} G1 Y318 F9000 G1 Y322 F600 @@ -113,7 +117,6 @@ gcode: G1 Y324 F600 M106 S0 - M400 M204 S{accel} - M118 Load finish + M118 Load finished From 0022b20b7c7776d8948e97c5eb5a64e48b3a327a Mon Sep 17 00:00:00 2001 From: C0co <6054234+Phil1988@users.noreply.github.com> Date: Sun, 4 May 2025 16:28:50 +0200 Subject: [PATCH 4/6] Update better-load-unload.cfg --- better-load-unload.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/better-load-unload.cfg b/better-load-unload.cfg index 47deda9..357a6d0 100644 --- a/better-load-unload.cfg +++ b/better-load-unload.cfg @@ -19,7 +19,6 @@ gcode: {% endif %} M204 S10000 - TEMPERATURE_WAIT SENSOR=extruder MINIMUM={hotendtemp-50} G1 Y150 F9000 G1 X305 F9000 @@ -30,6 +29,8 @@ gcode: G1 Y5 F3000 G4 P500 G1 Y20 F9000 + + TEMPERATURE_WAIT SENSOR=extruder MINIMUM={hotendtemp-50} G1 X56 F12000 G1 Y310 F12000 From 3ca26c3f701d3404a8bae91540ca3aefa1a3e621 Mon Sep 17 00:00:00 2001 From: C0co <6054234+Phil1988@users.noreply.github.com> Date: Sun, 4 May 2025 16:41:37 +0200 Subject: [PATCH 5/6] Update better-load-unload.cfg --- better-load-unload.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/better-load-unload.cfg b/better-load-unload.cfg index 357a6d0..53017d1 100644 --- a/better-load-unload.cfg +++ b/better-load-unload.cfg @@ -6,11 +6,12 @@ [gcode_macro M603] description: Unload filament gcode: - {% set hotendtemp = params.S|default(220)|int %} + {% set hotendtemp = params.S|default(250)|int %} + {% set current_state = params.F|default(1)|int %} {% set accel = printer.toolhead.max_accel|int %} - M104 S{hotendtemp} - + M104 S{hotendtemp} + {% if "y" not in printer.toolhead.homed_axes %} G28 Y {% endif %} From 00ae20b5d04d98d5d8a744756ac0b326e738dc48 Mon Sep 17 00:00:00 2001 From: C0co <6054234+Phil1988@users.noreply.github.com> Date: Sun, 4 May 2025 16:56:25 +0200 Subject: [PATCH 6/6] Update better-load-unload.cfg --- better-load-unload.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/better-load-unload.cfg b/better-load-unload.cfg index 53017d1..2e9c499 100644 --- a/better-load-unload.cfg +++ b/better-load-unload.cfg @@ -11,6 +11,7 @@ gcode: {% set accel = printer.toolhead.max_accel|int %} M104 S{hotendtemp} + M106 S0 {% if "y" not in printer.toolhead.homed_axes %} G28 Y @@ -38,7 +39,6 @@ gcode: G1 Y324 F600 G1 X95 F600 - M106 S0 M109 S{hotendtemp} G92 E0 @@ -72,6 +72,7 @@ gcode: {% set accel = printer.toolhead.max_accel|int %} M104 S{hotendtemp} + M106 S0 {% if "y" not in printer.toolhead.homed_axes %} G28 Y