Skip to content

Instantly share code, notes, and snippets.

@Qteb
Last active May 10, 2020 13:24
Show Gist options
  • Save Qteb/f27bdaa5d4f1ddd41005849fe0ec95bd to your computer and use it in GitHub Desktop.
Save Qteb/f27bdaa5d4f1ddd41005849fe0ec95bd to your computer and use it in GitHub Desktop.
; Start G-code
G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ;start with the fan off
M104 S[extruder0_temperature] T0 ; extrude heat wait
M140 S[bed0_temperature] T0 ; bed temperature heat wait
G92 E0 ; zero the extruded length
G28 ; home all
G1 F9000 X0 Y0 Z30 ; move to wait point
M109 S[extruder0_temperature] T0 ; extrude temp
M190 S[bed0_temperature] T0 ; bed temperature
G1 F50 E3 ; prime
G1 F9000 X35 Y5 Z0.2 ;
G92 E0 ;
G1 F225 X55 E3 ;
G92 E0 ;
G1 F2100 X75 E3 ;
G1 F500 X80 Z0 E-0.1 ;
G1 F500 X95 Z0.1 ;
G92 E0 ; zero the extruded length
G1 F9000 ; set max acceleration
M117 Printing... ; printing message
; End G-code
M104 S0 ; extruder heater off
M140 S0 ; heated bed heater off
M106 S0 ; fan off
G91 ; relative positioning
G1 Z+5 E-1 F300 ; retract the filament a bit
G28 X0 Y0 F9000 ; move X/Y to min endstops
G90 ; absolute positioning
G1 Z200 F5000 ; move table down
M84 ; steppers off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment