3D printer G-code · Marlin and Klipper
M140: Set bed temperature (no wait) (Marlin & Klipper)
Set bed temperature (no wait) — Sets the bed target temperature and continues. S0 turns the bed off.
On this page
| Property | Value |
|---|---|
| Command | M140 |
| Function | Set bed temperature (no wait) |
| Firmware | Marlin and Klipper |
| Group | Temperature |
| Syntax | M140 S<°C> |
What does M140 do?
Sets the bed target temperature and continues. S0 turns the bed off.
Parameters
| Parameter | Meaning |
|---|---|
S | Target temperature in °C |
Example
M140 S60Tips from practice
- PLA 55–65 °C, PETG 70–85 °C, ABS/ASA 95–110 °C are common starting values.
- Always turn the bed off at the end with M140 S0.
The command works in Marlin and Klipper. Options can differ: Klipper accepts fewer parameters for some M-codes and ignores codes it does not know with an "Unknown command" error.
Related commands
More temperature commands
| Command | Function | Firmware |
|---|---|---|
M104 | Set hotend temperature (no wait) | Marlin and Klipper |
M109 | Set hotend temperature and wait | Marlin and Klipper |
M190 | Set bed temperature and wait | Marlin and Klipper |
M141 | Set chamber temperature | Marlin |
M303 | PID autotune | Marlin |
M301 | Set hotend PID values | Marlin |
M304 | Set bed PID values | Marlin |
PID_CALIBRATE | PID tuning (Klipper) | Klipper |
TEMPERATURE_WAIT | Wait for a temperature range | Klipper |
SET_HEATER_TEMPERATURE | Set a heater | Klipper |
Test it before you print
Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.
Open the simulatorFrequently asked questions
What does M140 do on a 3D printer?
M140 is set bed temperature (no wait). Sets the bed target temperature and continues. S0 turns the bed off.
Does M140 work in Klipper and Marlin?
Yes, both firmwares understand M140.
Was this page helpful?