<p>According to the <a href="http://marlinfw.org/docs/gcode/M109.html" rel="nofollow noreferrer"><code>M109</code> G-code the documentation</a>, the printer will wait to reach temperature given with <code>S</code> only when heating. With <code>R</code>, the printer will wait also when cooling down.</p>

<p>So if the <a href="/a/5536">answer of mac</a> fails to work, try:</p>

<pre><code>M109 R60 ; wait for nozzle temp to drop to 60 °C
</code></pre>

CC BY-SA 4.0
2019-11-07T14:06:02.517Z
Welcome to 3DPrinting! Good catch!
0scar
CC BY-SA 4.0
2019-11-07T13:38:12.190Z
2019-11-07T14:05:28.997Z
2019-11-07T14:05:28.997Z
Jupp3
<p>[TL:DR] - <strong>If you can comfortably hold the nozzle with your fingers, you are good to go</strong></p>

<hr>

<p>In order to understand how long one should wait, it is important to understand <em>why</em> one has to wait.</p>

<p>All modern consumer-grade FDM printers have their printing head made of two assemblies: the <em>cold end</em>, where the extruder stepper motor is located and the filament must be in solid state, and the <em>hot end</em>, where the filament is actually melted and pushed through the nozzle.</p>

<p>Between the two there is a thin-walled length of pipe called <em>heat break</em>, whose purpose is to keep the two separate and make difficult for heat to reach the cold end by <em>conduction</em>.</p>

<p>However, the heat break is not "watertight", and heat also transmits via the convecting motion of air and IR radiation, so the cold end is actively cooled (most commonly with a fan).</p>

<p><strong>The reason you want to wait before switching off the printer is that you want to keep that fan spinning <em>until there is no chance for the heat to creep up and melt the filament</em> in the cold end</strong>.</p>

<p>If the filament were to melt in the cold end, the extruder would clog and you would probably need to disassemble it.</p>

<p><strong>In order to make sure the cooling happens, you have to make sure that your G-code tells the printer to stop heating the nozzle</strong>, after the print is done.</p>

<p>All slicers that I know of have a specific configuration setting called "end G-code" or something similar where you can manually insert the code you want to execute at the end of each print.  The part relevant to your question could look like this:</p>

<pre><code>M104 S0 ; turn off heating block
</code></pre>

<p>If you want to get fancy and your hardware has a beeper you may also try:</p>

<pre><code>M109 S60 ; wait for nozzle temp to drop to 60 °C
M300 S300 P1000 ; make a beep sound
</code></pre>

<p>Typically "end G-code" has other stuff too (move the head out of the way, switch off the heated bed, disable the idle hold of the steppers...)</p>

<p>Just make sure to move the nozzle away from the printer as your first action: you don't want the hot nozzle to linger idle above the print and ruin its top layer!</p>

CC BY-SA 3.0
2018-02-24T10:31:48.200Z
Wow @mac thanks a lot! Now I'm wondering if  that "M104 S0" code is a default setting or not. I finally printed my own design, but I knew nothing about these parameters.
1QuickQuestion
CC BY-SA 4.0
2019-11-11T22:21:31.270Z
@1QuickQuestion Somewhere there's likely a file with *.gcode extension. You can open this file in any text editor and look at the very bottom to see what codes where included.
Joel Coehoorn
CC BY-SA 4.0
2018-02-23T07:55:49.383Z
2019-11-07T14:13:07.777Z
2019-11-07T14:13:07.777Z
mac
<p>I just got my first 3D printer today, QIDI X-ONE[2], and so far so good with the setup and getting my 1<sup>st</sup> print. I wanted to power off the printer, but I don't see any instructions on how to properly power off the machine.</p>

<p>Does anyone know how long I should wait, or what the minimum temperature would be safe to power down the machine? </p>

<cooling><heat-management>
Proper way to power down a FDM printer
1QuickQuestion
# Proper way to power down a FDM printer

(Asked by: username_0 on 2018-02-23)

I just got my first 3D printer today, QIDI X-ONE[2], and so far so good with the setup and getting my 1st print. I wanted to power off the printer, but I don't see any instructions on how to properly power off the machine.

Does anyone know how long I should wait, or what the minimum temperature would be safe to power down the machine?

**Tags:** cooling, heat-management


---

## 2 answers

### Answer by username_3 on 2018-02-23. Score: 5 | Accepted answer

[TL:DR] - **If you can comfortably hold the nozzle with your fingers, you are good to go**

---

In order to understand how long one should wait, it is important to understand *why* one has to wait.

All modern consumer-grade FDM printers have their printing head made of two assemblies: the *cold end*, where the extruder stepper motor is located and the filament must be in solid state, and the *hot end*, where the filament is actually melted and pushed through the nozzle.

Between the two there is a thin-walled length of pipe called *heat break*, whose purpose is to keep the two separate and make difficult for heat to reach the cold end by *conduction*.

However, the heat break is not "watertight", and heat also transmits via the convecting motion of air and IR radiation, so the cold end is actively cooled (most commonly with a fan).

**The reason you want to wait before switching off the printer is that you want to keep that fan spinning *until there is no chance for the heat to creep up and melt the filament* in the cold end**.

If the filament were to melt in the cold end, the extruder would clog and you would probably need to disassemble it.

**In order to make sure the cooling happens, you have to make sure that your G-code tells the printer to stop heating the nozzle**, after the print is done.

All slicers that I know of have a specific configuration setting called "end G-code" or something similar where you can manually insert the code you want to execute at the end of each print. The part relevant to your question could look like this:

```
M104 S0 ; turn off heating block

```

If you want to get fancy and your hardware has a beeper you may also try:

```
M109 S60 ; wait for nozzle temp to drop to 60 °C
M300 S300 P1000 ; make a beep sound

```

Typically "end G-code" has other stuff too (move the head out of the way, switch off the heated bed, disable the idle hold of the steppers...)

Just make sure to move the nozzle away from the printer as your first action: you don't want the hot nozzle to linger idle above the print and ruin its top layer!

> **Comments:**
> **username_0**: Wow @username_3 thanks a lot! Now I'm wondering if  that "M104 S0" code is a default setting or not. I finally printed my own design, but I knew nothing about these parameters.  
> **username_4**: @username_0 Somewhere there's likely a file with *.gcode extension. You can open this file in any text editor and look at the very bottom to see what codes where included.  

---

### Answer by username_1 on 2019-11-07. Score: 5

According to the [`M109` G-code the documentation](http://marlinfw.org/docs/gcode/M109.html), the printer will wait to reach temperature given with `S` only when heating. With `R`, the printer will wait also when cooling down.

So if the [answer of mac](/a/5536) fails to work, try:

```
M109 R60 ; wait for nozzle temp to drop to 60 °C

```

> **Comments:**
> **username_2**: Welcome to 3DPrinting! Good catch!  

---

