File indexing completed on 2024-05-12 04:02:08

0001 <!DOCTYPE html>
0002 <html><head>
0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0004 <title>klipper.gcode</title>
0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (Klipper G-Code) - Theme (Breeze Dark)"/>
0006 </head><body style="background-color:#232629;color:#cfcfc2"><pre>
0007 <span style="color:#27ae60">{%</span> <span style="font-weight:bold">set</span> target  <span style="color:#3f8058">=</span> params.BED_TEMP<span style="color:#3f8058">|</span><span style="color:#8e44ad">int</span> <span style="color:#27ae60">%}</span>
0008 <span style="color:#27ae60">{%</span> <span style="font-weight:bold">set</span> current <span style="color:#3f8058">=</span> printer.heater_bed.temperature <span style="color:#27ae60">%}</span>
0009 
0010 <span style="color:#27ae60">{%</span> <span style="color:#fdbc4b;font-weight:bold">if</span> current <span style="color:#3f8058">&lt;</span> target <span style="color:#3f8058">-</span> <span style="color:#f67400">20</span> <span style="color:#27ae60">%}</span>
0011 <span style="font-weight:bold">G4</span> <span style="color:#27aeae">P</span><span style="color:#27ae60">{</span> <span style="color:#f67400">5</span> <span style="color:#3f8058">*</span> <span style="color:#f67400">60</span> <span style="color:#3f8058">*</span> <span style="color:#f67400">1000</span> <span style="color:#27ae60">}</span>       <span style="color:#7a7c7d">#Milliseconds to dwell</span>
0012 <span style="color:#27ae60">{%</span> <span style="color:#fdbc4b;font-weight:bold">else</span> <span style="color:#27ae60">%}</span>
0013 <span style="font-weight:bold">G4</span> <span style="color:#27aeae">P</span><span style="color:#27ae60">{</span> <span style="color:#f67400">1</span> <span style="color:#3f8058">*</span> <span style="color:#f67400">60</span> <span style="color:#3f8058">*</span> <span style="color:#f67400">1000</span> <span style="color:#27ae60">}</span>
0014 <span style="color:#27ae60">{%</span> <span style="color:#fdbc4b;font-weight:bold">endif</span> <span style="color:#27ae60">%}</span>
0015 <span style="font-weight:bold">G92</span> <span style="color:#27aeae">E</span><span style="color:#f67400">0</span>               <span style="color:#7a7c7d"># Reset Extruder</span>
0016 <span style="font-weight:bold">G1</span> <span style="color:#27aeae">Z</span><span style="color:#f67400">2.0</span> <span style="color:#27aeae">F</span><span style="color:#f67400">3000</span>        <span style="color:#7a7c7d"># Move Z Axis to travel height</span>
0017 <span style="color:#0099ff;font-weight:bold">ACCEPT</span>
0018 <span style="color:#0099ff;font-weight:bold">SET_PIN</span> <span style="color:#27aeae">PIN</span><span style="color:#3f8058">=</span>my_led <span style="color:#27aeae">VALUE</span><span style="color:#3f8058">=</span><span style="color:#f67400">1</span>
0019 <span style="font-weight:bold">G4</span> <span style="color:#27aeae">P</span><span style="color:#f67400">2000</span>
0020 <span style="color:#0099ff;font-weight:bold">SET_PIN</span> <span style="color:#27aeae">PIN</span><span style="color:#3f8058">=</span>my_led <span style="color:#27aeae">VALUE</span><span style="color:#3f8058">=</span><span style="color:#f67400">0</span>
0021 </pre></body></html>