Advertisement
robathome

Klipper scripts

Jul 12th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. ## ---- STARTING SCRIPT ---- ##
  2.  
  3. G28 ; Home all axes
  4. G21 ; Set all units to millimeters
  5.  
  6. M83 ; Switch to relative extrusion coordinates
  7. G90 ; Switch to absolute motion coordinates
  8.  
  9. G1 Z5 F1500 ; Lift hotend
  10. G1 X40 Y15 F4000 ; Move to prime line start
  11. G1 Z0.32 F250 ; Lower hotend
  12. G1 X190 E35 F540 ; Slow prime
  13. G1 Z5 E-2 F1500 ; Retract & lift hotend
  14.  
  15. M82 ; Switch to absolute extruder coordinates
  16. G92 E0 ; Reset extruder position
  17. M83 ; Switch back to relative extruder coordinates
  18.  
  19. M220 S100 ; Reset speed multiplier
  20. M221 S100 ; Reset extrusion multiplier
  21.  
  22. ; Define firmware controls
  23. SET_RETRACTION RETRACT_LENGTH=1 RETRACT_SPEED=20 UNRETRACT_SPEED=40
  24. SET_VELOCITY_LIMIT MAX_ACCEL=3000 MAX_ACCEL_TO_DECEL=1000 SQUARE_CORNER_VELOCITY=4
  25. SET_PRESSURE_ADVANCE EXTRUDER=extruder ADVANCE=0.05 SMOOTH_TIME=0.01
  26.  
  27.  
  28.  
  29.  
  30. ## ---- ENDING SCRIPT ---- ##
  31.  
  32. M104 S0 ; Disable hotend heater
  33. M140 S0 ; Disable bed heater
  34.  
  35. G91 ; Switch to relative motion coordinates
  36.  
  37. M220 S100 ; Reset feedrate multiplier
  38. M221 S100 ; Reset extrusion multipler
  39.  
  40. G1 Z10 E-5 F1000 ; Lift hotend away from part
  41.  
  42. G90 ; Absolute motion coordinates
  43. G1 X235 Y235 F3000 ; Park hotend
  44. G1 Z250 F1500 ; Lower bed to Z_max
  45.  
  46. M84 ; Disable motors
  47. M106 S0 ; Disable layer cooling fan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement