<p>You can do so by placing this at the top of the start code under machine settings (tested on 2.6.1).</p>

<pre><code>M104 S{material_print_temperature}
M190 S{material_bed_temperature}
</code></pre>

CC BY-SA 3.0
2017-07-25T03:46:37.663Z
2017-07-25T03:46:37.663Z
bgiv
<p>Cura is generating temperature commands in the wrong order.  I need to swap lines 6 and 7 below so that both the printhead and bed can begin to heat at the same time.</p>

<p>Is this code generation configurable in Cura?</p>

<pre><code>5 ;Generated with Cura_SteamEngine 2.5.0
6 M190 S60    ; set bed and block
7 M104 S215   ; set printhead, don't block
8 M109 S215   ; set printhead, block
</code></pre>

<ultimaker-cura><g-code>
How do I modify Cura's code generation?
Mark Harrison
# How do I modify Cura's code generation?

(Asked by: username_0 on 2017-07-25)

Cura is generating temperature commands in the wrong order.  I need to swap lines 6 and 7 below so that both the printhead and bed can begin to heat at the same time.
Is this code generation configurable in Cura?
5 ;Generated with Cura_SteamEngine 2.5.0
6 M190 S60    ; set bed and block
7 M104 S215   ; set printhead, don't block
8 M109 S215   ; set printhead, block

**Tags:** ultimaker-cura, g-code

---

## 1 answers

### Answer by username_1 on 2017-07-25. Score: 5 | Accepted answer

You can do so by placing this at the top of the start code under machine settings (tested on 2.6.1).
M104 S{material_print_temperature}
M190 S{material_bed_temperature}


---

