Skip to content

Commit a682791

Browse files
committed
Cooldown method and load unload filament + extrude speed
Adjusted extruder panel speed Uploaded new cooldown method and load and unload method
1 parent 7170b48 commit a682791

2 files changed

Lines changed: 46 additions & 6 deletions

File tree

k1/scripts/guppy_cmd.cfg

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,10 @@ timeout: 600.0
8787
verbose: True
8888

8989

90-
#### k1 load and unload ###
9190
[gcode_macro _GUPPY_LOAD_MATERIAL]
9291
gcode:
9392
{% set extruder_temp = params.EXTRUDER_TEMP|default(240)|int %}
94-
{% set extrude_len = 100 %} # params.EXTRUDE_LEN|default(35)|int %}
93+
{% set extrude_len = params.EXTRUDE_LEN|default(100)|int %}
9594
{% set current_target = printer.extruder.target|int %}
9695
LOAD_MATERIAL_CLOSE_FAN2
9796
{% if current_target < extruder_temp %}
@@ -101,9 +100,10 @@ gcode:
101100
{% endif %}
102101
RESPOND TYPE=command MSG="Loading filament..."
103102
M83
104-
G1 E{extrude_len} F180
103+
G1 E20 F500
104+
G1 E{extrude_len} F200
105105
M400
106-
LOAD_MATERIAL_RESTORE_FAN2 # k1 stuff
106+
LOAD_MATERIAL_RESTORE_FAN2
107107

108108
[gcode_macro _GUPPY_QUIT_MATERIAL]
109109
gcode:
@@ -131,6 +131,46 @@ gcode:
131131
G1 E-5.0000 F495
132132
G1 E5.0000 F523
133133
G1 E-5.0000 F3000
134-
G1 E-15 F3000
134+
G1 E-30 F2000
135135
SET_E_MIN_CURRENT
136136
RESTORE_GCODE_STATE NAME=myMoveState
137+
138+
#N ew section for cooldown macro by Tamas Curawy 2026.01.30.
139+
[delayed_gcode GUPPY_WAIT_TEMP]
140+
# initial_duration: 2.
141+
gcode:
142+
{% set cur_temp = printer.extruder.temperature %}
143+
{% if cur_temp|int < 140 %}
144+
GUPPY_WAIT_TEMP_END
145+
{% else %}
146+
UPDATE_DELAYED_GCODE ID=GUPPY_WAIT_TEMP DURATION=2
147+
{% endif %}
148+
149+
[gcode_macro GUPPY_WAIT_TEMP_START]
150+
gcode:
151+
{action_respond_info("wait Guppy extruder cooldown start\n")}
152+
UPDATE_DELAYED_GCODE ID=GUPPY_WAIT_TEMP DURATION=1
153+
M106 P0 S140
154+
M106 P2 S180
155+
SET_PIN PIN=fan0 VALUE=140
156+
SET_PIN PIN=fan2 VALUE=180
157+
158+
[gcode_macro GUPPY_WAIT_TEMP_END]
159+
gcode:
160+
{action_respond_info("Wait to Guppy extruder cooldown end\n")}
161+
UPDATE_DELAYED_GCODE ID=GUPPY_WAIT_TEMP DURATION=0
162+
M106 P0 S0
163+
M106 P1 S0
164+
M106 P2 S0
165+
166+
# 2025-09-21 Tamas Curawy : new cooldown macro for extruder panel
167+
[gcode_macro _GUPPY_COOLDOWN]
168+
gcode:
169+
M104 S0
170+
M140 S0
171+
M83
172+
G1 E2.0 F2000
173+
G1 E-4.0 F100
174+
M84
175+
GUPPY_WAIT_TEMP_START
176+
# End of cooldown macro section

src/extruder_panel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ExtruderPanel::ExtruderPanel(KWebSocketClient &websocket_client,
3232
{"5", "10", "30", "50", "80", "100", "150", ""},
3333
1, 62, 15, &ExtruderPanel::_handle_callback, this)
3434
, speed_selector(panel_cont, "Extrude Speed (mm/s)",
35-
{"0.5", "1", "2", "5", "8", "10", "15", ""},
35+
{"1", "2", "5", "8", "10", "15", "20", ""},
3636
2, 62, 15, &ExtruderPanel::_handle_callback, this)
3737
, rightside_btns_cont(lv_obj_create(panel_cont))
3838
, leftside_btns_cont(lv_obj_create(panel_cont))

0 commit comments

Comments
 (0)