Hi All, Im trying to improve my filament change macro by capturing the Extruder Temp and then restoring that temp once the new filament has been loaded. To aid my understanding, I wrote a very basic test macro to see if it was possible.
However, it doesn’t work - any ideas as to what I’m missing / misunderstanding?
[gcode_macro TEST]
gcode:
M109 S200
{% set TARGET_TEMP = printer.extruder.target|int %} # store extruder temp setpoint
M109 S150 # change extruder temp
#----------
M109 S{TARGET_TEMP} # Return the extruder temp to previous printing temp
What exactly makes an error in your macro a Klipper “code related developer topic”?
Latest the “not intended for support or bug reporting” should have finally made it clear.
Listen, you come here seeking for support that is granted for free by knowledgeable people.
Out of sheer politeness and respect, it is expected that in this case you will also abide by the rules that have been established.
To interpret them as it suits you, maybe also with the idea to get faster support here, because you do not post in the boring “General” category, but importantly under “Developer”, certainly does not fulfill that.