Verstehe, du brauchst einen mechanismus der die Heizung ausschaltet weil sie im g-code nie deaktiviert wird um Zeit zu sparen.
Ich nehme an einschalten ist sehr wohl drin, nur vorgeheizt ist das sofort durch.
Ich würde das über einen timer lösen der eine funktion nach 60 Sekunden aufruft, den du am Druckende triggerst. Die funktion testet dann @if {{job. running==0}} und schaltet die Heizung aus. Nach 60 sekunden läuft der nächste Job schon und in dem Fall passiert einfach nichts.
@timedCall name timeoutMS function_name
Calls function_name after timeoutMS milliseconds. It does not repeat. The name can be used to stop the timer with @deletedTimedCall. If you need an interval, you need to call the function with @timedCall at the end of the function. In that case, make sure it is never started twice, or you end up with increasing number of calls until you have no time left for printing! Best is to always have some exit conditions in the called function like when you wait for a temperature to be reached, but disabling heater would stop loop as well.