<p>Within OrcaSlicer click the &quot;pencil and pad&quot; to edit your printer preset (indicated by the blue arrow in the image), enable <strong>Advanced</strong> in the preset window (indicated by the green arrow), then click the <strong>Machine G-code</strong> tab at the top. Scroll down to the <strong>Layer Change G-code</strong> pane and enter this code after any code already present:</p>
<pre><code>{if (filament_type[0] == &quot;PLA&quot; and layer_num == 4)}M140 S0; Tool 0 is loaded with PLA, so turning off bed heat after 3 layers.{endif}
</code></pre>
<p>...and close the window to save.</p>
<p><a href="https://i.sstatic.net/9QC5r7AK.png" rel="nofollow noreferrer" title="Preset settings detail in the Orca slicer."><img src="https://i.sstatic.net/9QC5r7AK.png" alt="Preset settings detail in the Orca slicer." title="Preset settings detail in the Orca slicer." /></a></p>
<p>This G-code tests if the chosen filament is PLA, and if so it turns off the bed when the print job reaches layer 4 (and print continues, it does not wait for the bed to cool). I've tested on PrusaSlicer and OrcaSlicer.</p>

CC BY-SA 4.0
2024-07-06T14:09:38.497Z
2024-07-06T14:13:50.903Z
2024-07-06T14:13:50.903Z
Tuill
<p>I just bought my first printer QIDI Q1 Pro and it's great. The problem I face now is that when I print PLA, my printer just constantly gets jammed because PLA just melts down even before it comes to the nozzle so the printer can not pull down the PLA string. I realize that if the air temperature inside the printer goes over 42 °C for a long time, this starts to happen. May be because I live in a hot country and the daily temperature in my room is about 37-38 °C. Knowing so little about slicing settings, I installed a little fan outside the printer to cool down the temperature and now printing works well.</p>
<p>Searching a little bit, I know that PLA can be printed even without bed temperature and Orcaslicer has a setting that can change the bed temperature after the fist layer so I wonder if there is any way to set the bed temperature to turn off after three layers instead of just first layer to maintain adhesion better but still keep the air cool?</p>
<p>I am totally new so please explain and guide me a little more details if it goes to G-code or something too advanced.</p>

<pla><slicing><heated-bed><filament-jam><orca-slicer>
How can I change the bed temperature after 3-4 layers instead of first layer?
Phuong Le
# How can I change the bed temperature after 3-4 layers instead of first layer?

(Asked by: username_0 on 2024-07-06)

I just bought my first printer QIDI Q1 Pro and it's great. The problem I face now is that when I print PLA, my printer just constantly gets jammed because PLA just melts down even before it comes to the nozzle so the printer can not pull down the PLA string. I realize that if the air temperature inside the printer goes over 42 °C for a long time, this starts to happen. May be because I live in a hot country and the daily temperature in my room is about 37-38 °C. Knowing so little about slicing settings, I installed a little fan outside the printer to cool down the temperature and now printing works well.

Searching a little bit, I know that PLA can be printed even without bed temperature and Orcaslicer has a setting that can change the bed temperature after the fist layer so I wonder if there is any way to set the bed temperature to turn off after three layers instead of just first layer to maintain adhesion better but still keep the air cool?

I am totally new so please explain and guide me a little more details if it goes to G-code or something too advanced.

**Tags:** pla, slicing, heated-bed, filament-jam, orca-slicer


---

## 1 answers

### Answer by username_1 on 2024-07-06. Score: 2 | Accepted answer

Within OrcaSlicer click the "pencil and pad" to edit your printer preset (indicated by the blue arrow in the image), enable **Advanced** in the preset window (indicated by the green arrow), then click the **Machine G-code** tab at the top. Scroll down to the **Layer Change G-code** pane and enter this code after any code already present:

```
{if (filament_type[0] == "PLA" and layer_num == 4)}M140 S0; Tool 0 is loaded with PLA, so turning off bed heat after 3 layers.{endif}

```

...and close the window to save.

[![Preset settings detail in the Orca slicer.](https://i.sstatic.net/9QC5r7AK.png "Preset settings detail in the Orca slicer.")](https://i.sstatic.net/9QC5r7AK.png "Preset settings detail in the Orca slicer.")

This G-code tests if the chosen filament is PLA, and if so it turns off the bed when the print job reaches layer 4 (and print continues, it does not wait for the bed to cool). I've tested on PrusaSlicer and OrcaSlicer.


---

