Skip to main content

Unstable Initial Printing Temperature with Excessive Wait Time

  • This macro can be directly placed in the configuration file.
  • Its purpose is to wait normally for the temperature to rise, but proceed to the next step immediately once the target temperature is reached.
printer.cfg
[gcode_macro M109]
rename_existing: M109.1
gcode:
{% set s = params.S|float %}
M104 {% for p in params %}{'%s%s' % (p, params[p])}{% endfor %} # Set hotend temp
{% if s != 0 %}
TEMPERATURE_WAIT SENSOR=extruder MINIMUM={s} MAXIMUM={s+1} # Wait for hotend temp (within 1 degree)
{% endif %}

[gcode_macro M190]
rename_existing: M190.1
gcode:
{% set s = params.S|float %}
M140 {% for p in params %}{'%s%s' % (p, params[p])}{% endfor %} # Set bed temp
{% if s != 0 %}
TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={s-2} MAXIMUM={s+5} # Wait for bed temp (within n degrees)
{% endif %}

Loading...