3D printer G-code · Marlin and Klipper
M109: Set hotend temperature and wait (Marlin & Klipper)
Set hotend temperature and wait — Sets the hotend target and waits until it is reached. With S Marlin waits only when heating up; with R it also waits while cooling down.
On this page
| Property | Value |
|---|---|
| Command | M109 |
| Function | Set hotend temperature and wait |
| Firmware | Marlin and Klipper |
| Group | Temperature |
| Syntax | M109 S<°C> or M109 R<°C> |
What does M109 do?
Sets the hotend target and waits until it is reached. With S Marlin waits only when heating up; with R it also waits while cooling down.
Parameters
| Parameter | Meaning |
|---|---|
S | Target, waits only for heating |
R | Target, waits for heating and cooling (Marlin) |
T | Extruder |
Example
M109 S215 ; wait for 215 °CTips from practice
- In Klipper TEMPERATURE_WAIT can wait for a range, which is faster than an exact value.
- Waiting can take minutes on a large nozzle heater; the 3D printer simulator does not count this time.
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 |
M140 | Set bed temperature (no 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 M109 do on a 3D printer?
M109 is set hotend temperature and wait. Sets the hotend target and waits until it is reached. With S Marlin waits only when heating up; with R it also waits while cooling down.
Does M109 work in Klipper and Marlin?
Yes, both firmwares understand M109.
Was this page helpful?