Skip to content

Instantly share code, notes, and snippets.

@deivuh
Created February 7, 2021 21:25
Show Gist options
  • Save deivuh/23669f35dfc4319942c368c7efe6ace2 to your computer and use it in GitHub Desktop.
Save deivuh/23669f35dfc4319942c368c7efe6ace2 to your computer and use it in GitHub Desktop.
Cleans extruder before printing
G90 ; set to absolute positioning
M82 ; set extruder to absolute mode
G28 ; home all axes
; The lines below are to prep the nozzle before a print begins
G1 Z0.2 F1200 ; raise nozzle 0.2mm
G92 E0 ; reset extrusion distance
G1 Y10 ; move Y-Axis (bed) 10mm to prep for purge
G1 X100 E12 F600 ; move X-carriage 100mm while purging 12mm of filament
G92 E0 ; reset extrusion distance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment