M109 wait until cooling


Is possible to add in M109 code function for wait until cooling? Wait until the temperature is max defined number or lower.
For example: after printing on 230°C i set 50°C in M109 code with defined prefix, firmware waiting until temperature decreaset to 50°C or lower. Then continue to next code.

I need this to automaticaly turn off printer trought atx power off after hotend is cooled to safe temperature. 

Thank You.



  • You should be able to add it to the slicer end g-code
  • But make sure it is higher then 

    MAX_ROOM_TEMPERATURE otherwise it will skip waiting.

  • Thank You very much, it works. My wrong, because i testing this with low temperature. I did not know about variable MAX_ROOM_TEMPERATURE.
Sign In or Register to comment.