Skip to content

Instantly share code, notes, and snippets.

@twinge
Created March 24, 2016 17:20
Show Gist options
  • Save twinge/e558a6300cdd8c852316 to your computer and use it in GitHub Desktop.
Save twinge/e558a6300cdd8c852316 to your computer and use it in GitHub Desktop.
G28 ; home all axes
G90 ;
; clean nozzle
M190 S[first_layer_bed_temperature] ; wait for bed temperature
M109 S[first_layer_temperature] ; wait for extruder temp
G1 X-28 F4800 ;
G1 Y0 F1000 ;
G1 Y-10 F1000 ;
G1 Y0 F1000 ;
G1 Y-12 F1000 ;
G1 X-20 F4800 ;
G1 X-28 F4800 ;
G1 X-20 F4800 ;
G1 Y0 F1000 ;
; clean nozzle
G1 X-28 F4800 ;
G1 Y0 F1000 ;
G1 Y-10 F1000 ;
G1 Y0 F1000 ;
G1 Y-12 F1000 ;
G1 X-15 F4800 ;
G1 X-28 F4800 ;
G1 X-15 F4800 ;
G1 X-28 F4800 ;
G1 X-15 F4800 ;
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
G1 Z150 F100;
M84 ; disable motors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment