<p>The <code>M145</code> G-code command sets the values for the materials for use by the LCD menu solely to preheat the bed and/or hotend and part fan cooling percentage. There is no code to lookup the values and execute to heat up material 1 (<code>S0</code>).</p>

CC BY-SA 4.0
2020-08-24T21:05:41.800Z
2020-08-24T21:05:41.800Z
0scar
<p>Is there a G-code command for calling up the material preset?</p>
<p>I know PLA is set with <code>M145 S0 H190 B40 F255</code>: how do I activate <code>S0</code>, but not from the LCD menu?</p>

<marlin><g-code>
G-code for activating material preset in Marlin
runloganrun
# G-code for activating material preset in Marlin

(Asked by: username_0 on 2020-08-24)

Is there a G-code command for calling up the material preset?

I know PLA is set with `M145 S0 H190 B40 F255`: how do I activate `S0`, but not from the LCD menu?

**Tags:** marlin, g-code


---

## 1 answers

### Answer by username_1 on 2020-08-24. Score: 3

The `M145` G-code command sets the values for the materials for use by the LCD menu solely to preheat the bed and/or hotend and part fan cooling percentage. There is no code to lookup the values and execute to heat up material 1 (`S0`).


---

