Advertisement
lordofcandy

Klipper Start-Stop Config

Jul 27th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. ######################################################################
  2. # Start Print and End Print
  3. ######################################################################
  4.  
  5. [gcode_macro START_PRINT]
  6. description: Print start operationsS
  7. gcode:
  8. {% set BED_TEMP = params.BED_TEMP|default(0)|float %}
  9. {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(0)|float %}
  10.  
  11. ; Set initial warmup temps
  12. M104 S160 ; set extruder no-ooze temp
  13. M140 S{BED_TEMP} ; bed temp
  14. M190 S{BED_TEMP} ; wait for bed
  15.  
  16. G21 ; Set to metric
  17. G90 ; Force coordinates to be absolute relative to the origin
  18. G28 ; Home
  19.  
  20. M104 S200 ; Get Nozzle Closer to Temp While Probing
  21.  
  22. ; On Demand Bed Mesh Calibration
  23. ; via https://github.com/Turge08/print_area_bed_mesh
  24. BED_MESH_CALIBRATE PRINT_MIN={params.PRINT_MIN} PRINT_MAX={params.PRINT_MAX}
  25.  
  26. ; Move for Prime -- Better for oozey
  27. G92 E0
  28. G0 X0 Y0 F4000
  29.  
  30. M104 S{EXTRUDER_TEMP} ; set final nozzle temp
  31. M190 S{BED_TEMP} ; wait for bed temp to stabilize
  32. M109 S{EXTRUDER_TEMP} ; wait for nozzle temp to stabilize
  33.  
  34. G92 E0 ;Set extruder to zero
  35.  
  36. G0 X1 Y25 Z0.24 F5000.0 ;Move to start position
  37. G1 X1 Y200 Z0.24 F1500.0 E15 ;Draw the first line
  38. G1 X7 Y200 Z0.24 F5000.0 ;Move to side a little
  39. G1 X7 Y50 Z0.26 F1500.0 E30 ;Draw the second line
  40.  
  41. G92 E0 ; Reset Extruder
  42.  
  43. G1 E-0.8 F500 ; Retract a little
  44. G1 X125 Y30 Z0.25 F9000 ; shear strings
  45.  
  46. [gcode_macro END_PRINT]
  47. description: Print finish operations
  48. gcode:
  49. ;Get Printer built volume dimensions
  50. {% set X_MAX = printer.toolhead.axis_maximum.x|default(300)|float %}
  51. {% set Y_MAX = printer.toolhead.axis_maximum.y|default(300)|float %}
  52.  
  53. TIMELAPSE_TAKE_FRAME
  54.  
  55. ;Fix-up extruder
  56. G91
  57. G1 E-2 F2700
  58. G1 E-1.5 Z0.2 F2400
  59. G1 X5 Y5 F6000
  60. G1 Z10
  61. G90
  62.  
  63. ;Present print
  64. G1 Z{printer.toolhead.position.z + 10} F600
  65. G1 X{X_MAX / 2} Y{Y_MAX} F6000
  66. M106 S0
  67. M104 S0
  68. M140 S0
  69.  
  70. ;Disable Steppers
  71. M84 X Y E
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement