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…

By cnccode · Updated
On this page
  1. What does M141 do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More temperature commands
  7. Frequently asked questions
PropertyValue
CommandM141
FunctionSet chamber temperature
FirmwareMarlin
GroupTemperature
SyntaxM141 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

ParameterMeaning
SChamber target in °C

Example

G-code
M141 S45
M191 S45 ; wait

Tips 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.

More temperature commands

CommandFunctionFirmware
M104Set hotend temperature (no wait)Marlin and Klipper
M109Set hotend temperature and waitMarlin and Klipper
M140Set bed temperature (no wait)Marlin and Klipper
M190Set bed temperature and waitMarlin and Klipper
M303PID autotuneMarlin
M301Set hotend PID valuesMarlin
M304Set bed PID valuesMarlin
PID_CALIBRATEPID tuning (Klipper)Klipper
TEMPERATURE_WAITWait for a temperature rangeKlipper
SET_HEATER_TEMPERATURESet a heaterKlipper

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

Frequently asked questions

What does M141 do on a 3D printer?
M141 is 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 and nylon.
Does M141 work in Klipper and Marlin?
M141 is a Marlin command. Klipper uses its own commands and printer.cfg settings for this task.
Was this page helpful?