<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>crealityk2 &amp;mdash; Technikecke</title>
    <link>https://blog.anghenfil.de/technikecke/tag:crealityk2</link>
    <description></description>
    <pubDate>Wed, 18 Nov 2026 19:01:01 +0000</pubDate>
    <item>
      <title>Creality K2: Pause &amp; Resume Print without loosing set hotend temperature</title>
      <link>https://blog.anghenfil.de/technikecke/creality-k2-pause-und-resume-print-without-loosing-set-hotend-temperature</link>
      <description>&lt;![CDATA[When trying to pause and resume a print, I experienced the issue that my Creality K2 only re-heated the hotend once on resume, but then &#34;lost&#34; the set hotend temperature and failed to print due to the too low temperature.&#xA;&#xA;I fixed this by modifying the pause and resume macros in the gcodemacro.cfg:&#xA;&#xA;[gcodemacro PAUSE]&#xA;description: Pause the actual running print&#xA;renameexisting: PAUSEBASE&#xA;variableextrude: 2.0&#xA;variablelasttemp: 0&#xA;gcode:&#xA;  {% if printer.pauseresume.ispaused|lower == &#39;false&#39; %}&#xA;    {% if printer.extruder.target   0 %}&#xA;      SETGCODEVARIABLE MACRO=PAUSE VARIABLE=lasttemp VALUE={printer.extruder.target|int}&#xA;    {% endif %}&#xA;    SETIDLETIMEOUT TIMEOUT=43200&#xA;    PAUSEBASE&#xA;    PAUSEEXTERNAL&#xA;  {% endif %}&#xA;&#xA;[...]&#xA;&#xA;[gcodemacro RESUMEEXTERNAL]&#xA;gcode:&#xA;  {% set resumetemp = printer[&#39;gcodemacro PRINTERPARAM&#39;].hotendtemp|int or printer[&#39;gcodemacro PAUSE&#39;].lasttemp|int %}&#xA;  {% if printer.pauseresume.resumeerr is none or printer.pauseresume.resumeerr|lower == &#39;false&#39; %}&#xA;  {% if resumetemp != 0 %}&#xA;    {% if resumetemp   printer.extruder.temperature %}&#xA;      M109 S{resumetemp}&#xA;    {% else %}&#xA;      M104 S{resumetemp}&#xA;    {% endif %}&#xA;  {% endif %}&#xA;  {% if printer[&#39;gcodemacro PRINTERPARAM&#39;].fan2speed   0 %}&#xA;    SETPIN PIN=fan2 VALUE={(printer[&#39;gcodemacro PRINTERPARAM&#39;].fan2speed  255 + 0.5)|int}&#xA;    {% set svalue = (printer[&#39;gcodemacro PRINTERPARAM&#39;].fan2speed  255 - printer[&#39;gcodemacro PRINTERPARAM&#39;].fan2min)  255 / (255 - printer[&#39;gcodemacro PRINTERPARAM&#39;].fan2min)|float %}&#xA;    # M106 P2 S{svalue}    &#xA;  {% endif %}&#xA;  {% if printer[&#39;gcodemacro PRINTERPARAM&#39;].fan0speed   0 %}&#xA;    SETPIN PIN=fan0 VALUE={(printer[&#39;gcodemacro PRINTERPARAM&#39;].fan0speed  255 + 0.5)|int}&#xA;    {% set svalue0 = (printer[&#39;gcodemacro PRINTERPARAM&#39;].fan0speed  255 - printer[&#39;gcodemacro PRINTERPARAM&#39;].fan0min)  255 / (255 - printer[&#39;gcodemacro PRINTERPARAM&#39;].fan0min)|float %}&#xA;    # M106 P2 S{svalue}    &#xA;  {% endif %}&#xA;  BOXGOTOEXTRUDEPOS&#xA;  {% set zresumemove = printer[&#39;gcodemacro PRINTERPARAM&#39;].zsafepause|int %}&#xA;  {% if zresumemove   2 %}&#xA;    {% set zresumemove = zresumemove - 2 %}&#xA;    G91&#xA;    #G1 Z-{zresumemove} F600&#xA;    M400&#xA;  {% endif %}&#xA;  {actionrespondinfo(&#34;zresumemove = %s&#34;% (zresumemove))}&#xA;  ##### read E from pause macro #####&#xA;  {% set E = printer[&#34;gcodemacro PAUSE&#34;].extrude|float + 80.0 %}&#xA;  {% set EVELOCITY = printer[&#39;filamentrack&#39;].remainmaterialvelocity * 0.8 %}&#xA;  {actionrespondinfo(&#34;velocity: %s&#34; % (EVELOCITY))}&#xA;  #### get VELOCITY parameter if specified ####&#xA;  {% if &#39;VELOCITY&#39; in params|upper %}&#xA;    {% set getparams = (&#39;VELOCITY=&#39; + params.VELOCITY) %}&#xA;  {%else %}&#xA;    {% set getparams = &#34;&#34; %}&#xA;  {% endif %}&#xA;  ##### end of definitions #####&#xA;  {% if printer.extruder.canextrude|lower == &#39;false&#39; %}&#xA;    {actionrespondinfo(&#34;Extruder not hot enough, SET M109 S%s&#34; % resumetemp)}&#xA;    M109 S{resumetemp}&#xA;  {% else %}&#xA;    M104 S{resumetemp}&#xA;  {% endif %}&#xA;  G91&#xA;  M106 S0 F1&#xA;  G1 E{E} F{EVELOCITY}&#xA;  G90&#xA;  M106 S127 F1&#xA;  G4 P3000&#xA;  BOXNOZZLECLEAN&#xA;  M106 P2 S{svalue} F1&#xA;  M106 P0 S{svalue0} F1&#xA;  SETLIMITS&#xA;  M400&#xA;  SETPIN PIN=extruderfan VALUE=1&#xA;  {% if resumetemp   0 %}&#xA;    M104 S{resumetemp}   ; Temperatur nach den BOX-Makros wiederherstellen&#xA;    SETGCODEVARIABLE MACRO=PRINTERPARAM VARIABLE=hotendtemp VALUE=0&#xA;  {% endif %}&#xA;  {% endif %}&#xA;&#xA;Now the set temperature is saved and re-applied, but also the idle timeout is extended from 5 minutes to 12 hours.&#xA;&#xA;#3DPrinting #3DPrinter #Creality #CrealityK2 #Orca #Klipper]]&gt;</description>
      <content:encoded><![CDATA[<p>When trying to pause and resume a print, I experienced the issue that my Creality K2 only re-heated the hotend once on resume, but then “lost” the set hotend temperature and failed to print due to the too low temperature.</p>

<p>I fixed this by modifying the pause and resume macros in the gcode_macro.cfg:</p>

<pre><code>[gcode_macro PAUSE]
description: Pause the actual running print
rename_existing: PAUSE_BASE
variable_extrude: 2.0
variable_last_temp: 0
gcode:
  {% if printer.pause_resume.is_paused|lower == &#39;false&#39; %}
    {% if printer.extruder.target &gt; 0 %}
      SET_GCODE_VARIABLE MACRO=PAUSE VARIABLE=last_temp VALUE={printer.extruder.target|int}
    {% endif %}
    SET_IDLE_TIMEOUT TIMEOUT=43200
    PAUSE_BASE
    PAUSE_EXTERNAL
  {% endif %}

[...]

[gcode_macro RESUME_EXTERNAL]
gcode:
  {% set resume_temp = printer[&#39;gcode_macro PRINTER_PARAM&#39;].hotend_temp|int or printer[&#39;gcode_macro PAUSE&#39;].last_temp|int %}
  {% if printer.pause_resume.resume_err is none or printer.pause_resume.resume_err|lower == &#39;false&#39; %}
  {% if resume_temp != 0 %}
    {% if resume_temp &gt; printer.extruder.temperature %}
      M109 S{resume_temp}
    {% else %}
      M104 S{resume_temp}
    {% endif %}
  {% endif %}
  {% if printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan2_speed &gt; 0 %}
    SET_PIN PIN=fan2 VALUE={(printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan2_speed * 255 + 0.5)|int}
    {% set s_value = (printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan2_speed * 255 - printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan2_min) * 255 / (255 - printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan2_min)|float %}
    # M106 P2 S{s_value}    
  {% endif %}
  {% if printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan0_speed &gt; 0 %}
    SET_PIN PIN=fan0 VALUE={(printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan0_speed * 255 + 0.5)|int}
    {% set s_value_0 = (printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan0_speed * 255 - printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan0_min) * 255 / (255 - printer[&#39;gcode_macro PRINTER_PARAM&#39;].fan0_min)|float %}
    # M106 P2 S{s_value}    
  {% endif %}
  BOX_GO_TO_EXTRUDE_POS
  {% set z_resume_move = printer[&#39;gcode_macro PRINTER_PARAM&#39;].z_safe_pause|int %}
  {% if z_resume_move &gt; 2 %}
    {% set z_resume_move = z_resume_move - 2 %}
    G91
    #G1 Z-{z_resume_move} F600
    M400
  {% endif %}
  {action_respond_info(&#34;z_resume_move = %s&#34;% (z_resume_move))}
  ##### read E from pause macro #####
  {% set E = printer[&#34;gcode_macro PAUSE&#34;].extrude|float + 80.0 %}
  {% set E_VELOCITY = printer[&#39;filament_rack&#39;].remain_material_velocity * 0.8 %}
  {action_respond_info(&#34;velocity: %s&#34; % (E_VELOCITY))}
  #### get VELOCITY parameter if specified ####
  {% if &#39;VELOCITY&#39; in params|upper %}
    {% set get_params = (&#39;VELOCITY=&#39; + params.VELOCITY) %}
  {%else %}
    {% set get_params = &#34;&#34; %}
  {% endif %}
  ##### end of definitions #####
  {% if printer.extruder.can_extrude|lower == &#39;false&#39; %}
    {action_respond_info(&#34;Extruder not hot enough, SET M109 S%s&#34; % resume_temp)}
    M109 S{resume_temp}
  {% else %}
    M104 S{resume_temp}
  {% endif %}
  G91
  M106 S0 F1
  G1 E{E} F{E_VELOCITY}
  G90
  M106 S127 F1
  G4 P3000
  BOX_NOZZLE_CLEAN
  M106 P2 S{s_value} F1
  M106 P0 S{s_value_0} F1
  SET_LIMITS
  M400
  SET_PIN PIN=extruder_fan VALUE=1
  {% if resume_temp &gt; 0 %}
    M104 S{resume_temp}   ; Temperatur nach den BOX-Makros wiederherstellen
    SET_GCODE_VARIABLE MACRO=PRINTER_PARAM VARIABLE=hotend_temp VALUE=0
  {% endif %}
  {% endif %}
</code></pre>

<p>Now the set temperature is saved and re-applied, but also the idle timeout is extended from 5 minutes to 12 hours.</p>

<p><a href="/technikecke/tag:3DPrinting" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">3DPrinting</span></a> <a href="/technikecke/tag:3DPrinter" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">3DPrinter</span></a> <a href="/technikecke/tag:Creality" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Creality</span></a> <a href="/technikecke/tag:CrealityK2" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">CrealityK2</span></a> <a href="/technikecke/tag:Orca" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Orca</span></a> <a href="/technikecke/tag:Klipper" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Klipper</span></a></p>
]]></content:encoded>
      <guid>https://blog.anghenfil.de/technikecke/creality-k2-pause-und-resume-print-without-loosing-set-hotend-temperature</guid>
      <pubDate>Fri, 06 Nov 2026 14:16:24 +0000</pubDate>
    </item>
  </channel>
</rss>