---
tag: m0140
title: Set Bed Temperature
brief: Set a new target bed temperature.
author: thinkyhead

group: thermal

codes: [ M140 ]
related: [ M190 ]

notes: Use [`M190`](/docs/gcode/M190.html) to set the bed temperature and pause until the target is reached.

parameters:

- tag: I
  since: 2.0.6
  optional: true
  description: Material preset index. Overrides `S`.
  values:
  - tag: index
    type: int

- tag: S
  optional: true
  description: Target temperature
  values:
  - tag: temp
    type: float

examples:
- pre: Set target temperature, no waiting
  code: M140 S80

---

Set a new target temperature for the heated bed and continue without waiting. The firmware manages heating in the background.
