<p>In CuraEngine's <a href="https://github.com/Ultimaker/CuraEngine/blob/0852f3cd5e909c9ebb459befb499292460da97d4/src/FffGcodeWriter.cpp#L2943-L3011" rel="nofollow noreferrer"><code>FffGcodeWriter::finalize</code></a> method, G-code to zero the bed and enclosure temperature is only written if the machine profile defines a heated bed/enclosure, so you could in theory avoid the cooldown by telling Cura your machine doesn't and putting the heatup commands in your custom start gcode instead of letting Cura emit them itself. However it unconditionally zeros all of the hotend temperatures, and does this after emitting your custom end G-code, so you can't even turn the hotend back on from there. The only way to undo Cura's insistence on turning it off is with some sort of postprocessing.</p>
<p>Update: There's actually a way to fix this purely at the configuration/profile level! Set <code>machine_nozzle_temp_enabled</code> (&quot;Enable Nozzle Temperature Control&quot;) to false (off) and Cura will not emit <em>any</em> M104/M109 temperature commands. You can then put whatever temperature commands you do or don't want in your start/end gcode.</p>

CC BY-SA 4.0
2020-11-20T15:04:14.467Z
The insistence on turning off the hotend is a fire safety thing.
Trish
CC BY-SA 4.0
2020-11-20T17:10:22.133Z
@Trish: Yes, but that can be handled better in the firmware or print server (preferably independenly in both, so if either one fails on its own the other works as a fallback) as an inactivity timeout rather than an immediate cooldown (which messes up immediate second print; even if you rapidly re-select "preheat" it's cooled down to 160 or so already).
R.. GitHub STOP HELPING ICE
CC BY-SA 4.0
2020-11-20T17:12:48.883Z
It's actually rather odd that Cura doesn't have an option to disable hotend temperature controls entirely, since presumably some people will use it with non-heated extruders for pastes that are viscous but flow at room temperature.
R.. GitHub STOP HELPING ICE
CC BY-SA 4.0
2022-05-21T18:38:38.690Z
And... it turns out it does! Updated answer with new info.
R.. GitHub STOP HELPING ICE
CC BY-SA 4.0
2020-11-19T01:53:43.627Z
2022-05-21T18:38:25.807Z
2022-05-21T18:38:25.807Z
R.. GitHub STOP HELPING ICE
<p>Is there a setting or G-code, to prevent Ultimaker Cura from setting the nozzle and build plate temperatures to 0? I have looked and have not found anything in the printer beginning/ending G-code, print settings, etc...</p>
<p><strong>Would this have something to do with it?</strong><br>
<a href="https://i.sstatic.net/YImhs.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YImhs.png" alt="end GCODE" /></a></p>

CC BY-SA 4.0
2020-11-19T01:36:47.597Z
Cura will skip emitting the heat-up gcode at the beginning if your custom start gcode contains variable expansions for temperature, but I don't know if there's anything comparable for end gcode. This is actually really annoying. You might need a postprocessing script to fix it.
R.. GitHub STOP HELPING ICE
CC BY-SA 4.0
2020-11-19T04:57:11.533Z
Playing with the settings, I can keep the build plate hot, but the hotend still gets reset.
dandavis
CC BY-SA 4.0
2020-11-20T15:03:23.667Z
It is a **fire hazard** to not turn off the hotend after the print.
Trish
<ultimaker-cura><nozzle><cooling><bed><temperature>
Cura: How to prevent my 3D printer from auto cooling after prints
X Builder
# Cura: How to prevent my 3D printer from auto cooling after prints

(Asked by: username_0 on 2020-11-18)

Is there a setting or G-code, to prevent Ultimaker Cura from setting the nozzle and build plate temperatures to 0? I have looked and have not found anything in the printer beginning/ending G-code, print settings, etc...

**Would this have something to do with it?**  
[![end GCODE](https://i.sstatic.net/YImhs.png)](https://i.sstatic.net/YImhs.png)

**Tags:** ultimaker-cura, nozzle, cooling, bed, temperature

> **Comments:**
> **username_1**: Cura will skip emitting the heat-up gcode at the beginning if your custom start gcode contains variable expansions for temperature, but I don't know if there's anything comparable for end gcode. This is actually really annoying. You might need a postprocessing script to fix it.  
> **username_2**: Playing with the settings, I can keep the build plate hot, but the hotend still gets reset.  
> **username_3**: It is a **fire hazard** to not turn off the hotend after the print.  

---

## 1 answers

### Answer by username_1 on 2020-11-19. Score: 1

In CuraEngine's [`FffGcodeWriter::finalize`](https://github.com/Ultimaker/CuraEngine/blob/0852f3cd5e909c9ebb459befb499292460da97d4/src/FffGcodeWriter.cpp#L2943-L3011) method, G-code to zero the bed and enclosure temperature is only written if the machine profile defines a heated bed/enclosure, so you could in theory avoid the cooldown by telling Cura your machine doesn't and putting the heatup commands in your custom start gcode instead of letting Cura emit them itself. However it unconditionally zeros all of the hotend temperatures, and does this after emitting your custom end G-code, so you can't even turn the hotend back on from there. The only way to undo Cura's insistence on turning it off is with some sort of postprocessing.

Update: There's actually a way to fix this purely at the configuration/profile level! Set `machine_nozzle_temp_enabled` ("Enable Nozzle Temperature Control") to false (off) and Cura will not emit *any* M104/M109 temperature commands. You can then put whatever temperature commands you do or don't want in your start/end gcode.

> **Comments:**
> **username_3**: The insistence on turning off the hotend is a fire safety thing.  
> **username_1**: @username_3: Yes, but that can be handled better in the firmware or print server (preferably independenly in both, so if either one fails on its own the other works as a fallback) as an inactivity timeout rather than an immediate cooldown (which messes up immediate second print; even if you rapidly re-select "preheat" it's cooled down to 160 or so already).  
> **username_1**: It's actually rather odd that Cura doesn't have an option to disable hotend temperature controls entirely, since presumably some people will use it with non-heated extruders for pastes that are viscous but flow at room temperature.  
> **username_1**: And... it turns out it does! Updated answer with new info.  

---

