pause - resume

I've been trying to get my head around the pause and resume macros within ratos. I noticed they don't either reduce the hotend temp or turn it off during a pause. I often have a roll runout during the night and it could sit for hours. I've tried putting: M109 S{params.EXTRUDER_TEMP|default(printer.extruder.target, true) } In the resume but I can't get it back to the gcode file extruder temp. Bringing the temp down in the pause was obviously the easy part. Is there anywhere with more information on the params and the part in brackets id like to learn more of code in detail.
7 Replies
miklschmidt
miklschmidt13mo ago
There are no parameters to the RESUME macro. Only thing i can think of to achieve this is save the old extruder temp in a macro variable in PAUSE before reducing the temp. That would be something like:
SET_GCODE_VARIABLE MACRO="PAUSE" VARIABLE="pause_temp" VALUE={printer.extruder.target}
SET_GCODE_VARIABLE MACRO="PAUSE" VARIABLE="pause_temp" VALUE={printer.extruder.target}
Then in resume you would do something like:
M109 S{printer["gcode_macro PAUSE"].pause_temp}
M109 S{printer["gcode_macro PAUSE"].pause_temp}
Andrew46
Andrew46OP13mo ago
Perfect this is something I was trying to do but couldn't seem to save the temp to a variable.
miklschmidt
miklschmidt13mo ago
i believe you need to define the variable in the macro definition:
[gcode_macro PAUSE]
variable_pause_temp: 0
gcode:
; macro goes here
[gcode_macro PAUSE]
variable_pause_temp: 0
gcode:
; macro goes here
Andrew46
Andrew46OP13mo ago
Just found this in the Klipper Command templates
Andrew46
Andrew46OP13mo ago
No description
Andrew46
Andrew46OP13mo ago
Literally what you told me 🤦‍♂️ Thanks for the help!! gonna sive threw this doc of templates
miklschmidt
miklschmidt13mo ago
Yeah that looks familiar 😂 np, have fun 🙂
Want results from more Discord servers?
Add your server