Skip to content

Instantly share code, notes, and snippets.

@gretel
Last active January 27, 2017 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gretel/b78fc580b805225f51ba96afcd2e7624 to your computer and use it in GitHub Desktop.
Save gretel/b78fc580b805225f51ba96afcd2e7624 to your computer and use it in GitHub Desktop.
gcode to clean the nozzle before starting to print. works super for a Multec M420 and should for many other single-extruders
;...
;https://gist.github.com/gretel/b78fc580b805225f51ba96afcd2e7624
M117 Cleaning ;display
G1 X0 Y0 Z10 F3000 ;move to cleaning position
T0 ;select tool
G92 E0 ;reset position
M300 S300 P50 ;beep
G1 Z0 F1200 ;lower nozzle
G4 S1 ;spread heat
M106 S64 ;fan on, slowly
G91 ;relative positioning
G1 E1 F100 ;extrude very slowly
G4 S1 ;spread heat
G1 X2 Y2 E2 F300 ;move diagonally and continue to extrude
G1 X40 Y5 E5 F300
M106 S255 ;fan on
G1 X80 Y5 Z10 E-1 F2000 ;prevent stringing
G90 ;absolute positioning
M107 ;fan off
M300 S300 P50 ;beep
;...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment