Advertisement
rootiest

END_PRINT_saver.cfg

Jul 23rd, 2022
1,187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.67 KB | None | 0 0
  1.     [gcode_macro END_PRINT]
  2.     gcode:
  3.        # Turn off bed, extruder, and fan
  4.         M140 S0
  5.         M104 S0
  6.         M106 S0
  7.         # Move nozzle away from print while retracting
  8.         G91
  9.         G1 X-2 Y-2 E-3 F300
  10.         # Raise nozzle by 10mm
  11.         G1 Z10 F3000
  12.         G90
  13.         # Disable steppers
  14.         M84
  15.        
  16.         {% set NEEDS_SAVE = printer.configfile.save_config_pending %}
  17.         {% set SAVE_STUFF = printer.configfile.save_config_pending_items %}
  18.         {% if NEEDS_SAVE == True %}
  19.           M117 Saving the following: {SAVE_STUFF}
  20.           SAVE_CONFIG
  21.         {% else %}
  22.           M117 Nothing needs saving
  23.         {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement