variable_hotend_heat_soak_time as slicer variable?

Would it be possible to have variable_hotend_heat_soak_time change depending (for instance) a variable in the slicer? As I often print quite some stuff, consecutively, it happens a lot that i have the hotend heater on (as a result of a filament change) or that I just finished one print and want to redo or start another and as such would like to have a lower variable_hotend_heat_soak_time.
Solution:
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE=100
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE=100
Jump to solution
9 Replies
Solution
Helge Keck
Helge Keck•3w ago
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE=100
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE=100
Helge Keck
Helge Keck•3w ago
in the slicer you would need place it in front of the START_PRINT command alternativly you can exeute it in the mainsail console before a new print
Arthur_C
Arthur_COP•3w ago
Is it that easy,.... Thanks Helge, I was overthinking it,... That seems best... make a little macro with a button on the dashboard... Cool stuff!
Helge Keck
Helge Keck•3w ago
the value you enters stays active until the next klipper restart
Arthur_C
Arthur_COP•3w ago
(For future reference) I have added this to my printer.cfg:
[gcode_macro HOTEND_HEATSOAK_60]
gcode:
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE=60

[gcode_macro HOTEND_HEATSOAK_240]
gcode:
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE=240
[gcode_macro HOTEND_HEATSOAK_60]
gcode:
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE=60

[gcode_macro HOTEND_HEATSOAK_240]
gcode:
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE=240
and then added these as buttons on my dashboard
Helge Keck
Helge Keck•3w ago
try this
[gcode_macro HOTEND_HEATSOAK]
gcode:
{% set temp = params.TEMP|int %}
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE={temp}
[gcode_macro HOTEND_HEATSOAK]
gcode:
{% set temp = params.TEMP|int %}
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=hotend_heat_soak_time VALUE={temp}
Arthur_C
Arthur_COP•3w ago
As for the second one, you mean,... to revert back to default as set in printer cfg?
Helge Keck
Helge Keck•3w ago
no, it lets you enter the temp on the mainsail ui
Arthur_C
Arthur_COP•3w ago
Ah,.... better still 🙂
Want results from more Discord servers?
Add your server