3D printer G-code · Marlin
M141: Set chamber temperature (Marlin)
Set chamber temperature — Sets the heated chamber target on printers that have a chamber heater and the feature in Marlin. M191 waits for it. Chambers of 40–60 °C reduce warping in ABS, ASA, PC…
On this page
| Property | Value |
|---|---|
| Command | M141 |
| Function | Set chamber temperature |
| Firmware | Marlin |
| Group | Temperature |
| Syntax | M141 S<°C> |
What does M141 do?
Sets the heated chamber target on printers that have a chamber heater and the feature in Marlin. M191 waits for it. Chambers of 40–60 °C reduce warping in ABS, ASA, PC and nylon.
Parameters
| Parameter | Meaning |
|---|---|
S | Chamber target in °C |
Example
M141 S45
M191 S45 ; waitTips from practice
- Without a heater, preheat the closed enclosure with the bed at temperature for 10–20 minutes.
- Most electronics and stepper motors are not made for chambers above about 60 °C.
Marlin. Many Marlin commands only exist when the feature is enabled in the firmware build. If the printer answers "Unknown command", the feature is missing. Klipper does not understand most of these settings codes; it uses printer.cfg instead.
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 |
M140 | Set bed temperature (no wait) | Marlin and Klipper |
M190 | Set bed temperature and wait | Marlin and Klipper |
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 simulator