Skip to content

Instantly share code, notes, and snippets.

@markph0204
Last active March 18, 2023 02:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save markph0204/d2999b0b947b49bc0c0b5f2c73e2437c to your computer and use it in GitHub Desktop.
Save markph0204/d2999b0b947b49bc0c0b5f2c73e2437c to your computer and use it in GitHub Desktop.
Creality CR-10S Print Head Clean GCode
; Pefix G-Code for Creality CR-10 by www.DIY3DTech.com to clean nozzle
; Place as start G-Code in Slicer
; Use of this code is at your own risk (no warranties made or implied)
;
M117 Clean ; Indicate nozzle clean in progress on LCD
M109 S200 ; Uncomment to set your own temp [run warmer to clean out nozzle]
M107 ; Turn layer fan off
G21 ; Set to metric [change to G20 if you want Imperial]
G90 ; Force coordinates to be absolute relative to the origin
G28 ; Home X/Y/Z axis
G0 X1 Y0 Z0.15 F9000 ; Move in 1mm from edge and up [z] 0.15mm
G92 E0 ; Set extruder to [0] zero
G1 Y190 E100 F500 ; Extrude 100mm filiment along Y axis 190mm long to prime and clean the nozzle
G92 E0 ; Reset extruder to [0] zero end of cleaning run
G1 E-6 F500 ; Retract filiment by 3 mm to reduce string effect
G1 X3 Y290 Z15 F9000 ; Move over and rise to safe Z height
G1 X3 Y0 Z15 F9000 ; Move back to front of bed at safe Z height to shear strings
;
; Ensure extruder is not reset by other code or it will be 3mm short [see next line also]
;G1 E6 F500 ; Uncomment if you believe exruder will be reset
; Recommend turning off SKIRT in the slicer to avoid strings pulled into first layer
; Begin printing with sliced GCode after here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment