Skip to content

Instantly share code, notes, and snippets.

@markph0204
Last active March 18, 2023 02:56
Show Gist options
  • Select an option

  • Save markph0204/d2999b0b947b49bc0c0b5f2c73e2437c to your computer and use it in GitHub Desktop.

Select an option

Save markph0204/d2999b0b947b49bc0c0b5f2c73e2437c to your computer and use it in GitHub Desktop.

Revisions

  1. markph0204 revised this gist Aug 1, 2018. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -10,13 +10,13 @@ G90 ; Force coordinates to be absolute relative to t
    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 Y290 E100 F500 ; Extrude 100mm filiment along Y axis 290mm long to prime and clean the nozzle
    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-3 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
    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 E3 F500 ; Uncomment if you believe exruder will be reset
    ;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
  2. markph0204 revised this gist Aug 1, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@
    ; Use of this code is at your own risk (no warranties made or implied)
    ;
    M117 Clean ; Indicate nozzle clean in progress on LCD
    ;M109 S<your temp> ; 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]
    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
  3. markph0204 created this gist Aug 1, 2018.
    22 changes: 22 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    ; 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 S<your temp> ; 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 Y290 E100 F500 ; Extrude 100mm filiment along Y axis 290mm long to prime and clean the nozzle
    G92 E0 ; Reset extruder to [0] zero end of cleaning run
    G1 E-3 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 E3 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