---
tag: m0145
title: Set Material Preset
brief: Set material presets in the LCD menu.
author: thinkyhead

requires: NEWPANEL
group: lcd

codes: [ M145 ]

notes:
  - Requires an LCD controller.
  - View the current settings with [`M503`](/docs/gcode/M503.html).
  - If `EEPROM_SETTINGS` is enabled, these settings are saved with [`M500`](/docs/gcode/M500.html), loaded with [`M501`](/docs/gcode/M501.html), and reset with [`M502`](/docs/gcode/M502.html).

parameters:
  -
    tag: S
    optional: true
    description: Material index
    values:
      -
        tag: index
        type: int
  -
    tag: H
    optional: true
    description: Hotend temperature
    values:
      -
        tag: temp
        type: int
  -
    tag: B
    optional: true
    description: Bed temperature
    values:
      -
        tag: temp
        type: int
  -
    tag: F
    optional: true
    description: Fan speed
    values:
      -
        tag: speed
        type: byte

examples:
  -
    pre: Set heatup presets for material 1
    code: M145 S0 H190 B70 F50

---

Set the preheating presets for materials in the LCD menu.
