Optimise Klipper Start G-code and print faster thanks to TEMPERATURE_WAIT
created on
Wednesday, 28 February 2024
edited on
Monday, 29 December 2025
by
Stefan Trucker
This G-code replaces the standard heating cycle, which waits until the temperature has stabilised. Instead, as soon as the temperature has been reached, the next step is initiated.
M109 for the hot end
[gcode_macro M109]
rename_existing: M99109
gcode:
#Parameters
{% 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 %}
Code in Ablage kopierenM190 for the heating bed
[gcode_macro M190]
rename_existing: M99190
gcode:
#Parameters
{% 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} MAXIMUM={s+1} ; Wait for bed temp (within 1 degree)
{% endif %}
Code in Ablage kopierenSources
Werbung