M104 - Set Hotend Temperature

thermal Set a new target hot end temperature.

Set a new target hot end temperature and continue without waiting. The firmware will continue to try to reach and hold the temperature in the background.

Use M109 to wait for the hot end to reach the target temperature.


M104 [B<temp>] [F<flag>] [S<temp>]

Argument Description

AUTOTEMP: The max auto-temperature.


AUTOTEMP: Autotemp flag. Omit to disable autotemp.


Target temperature.
AUTOTEMP: the min auto-temperature.


  • With PRINTJOB_TIMER_AUTOSTART this command will stop the print job timer if the temperature is set at or below half of EXTRUDE_MINTEMP.


Simple set target temperature

M104 S180

AUTOTEMP: Set autotemp range

M104 F S180 B190

AUTOTEMP: Disable autotemp