Skip to content

Instantly share code, notes, and snippets.

@scientress
Last active April 3, 2019 13:29
Show Gist options
  • Save scientress/6a8f8f36f41b75e92b2a2bb5526fe21d to your computer and use it in GitHub Desktop.
Save scientress/6a8f8f36f41b75e92b2a2bb5526fe21d to your computer and use it in GitHub Desktop.
;Sliced at: [timestamp]
G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ; start with the fan off
M75 ; start print job timer
; let's start heating up
M140 S[bed_temperature] ; set bed temperature
M104 T0 S[temperature_0] ; set extruder temperature
G28 ; Home all axis
M420 S1 ; Enable Bed Leveling (deactivated after G28)
G0 Z10 F400 ; Raise
G0 X3 Y5 F9000 ; Go to front
; Wait for extruder and bed to reach temperature
M109 T0 S[temperature_0]
M190 S[bed_temperature]
M117 clearing nozzle
; print a 4cm line to clear nozzle
G0 X13 Y15 F9000
G92 E0 ; zero extruder
G1 Z0.2 F400
G1 X43 E10
G1 E-0.1
G1 X83 F9000
G92 E0
G1 Z5
M117 Printing..
G91 ; relative positioning
G1 E-1 F300 ; retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-1 F9000 ; move Z up a bit and retract filament even more
G1 Z+2 F9000 ; move up further
M104 S0 ; extruder heater off
M140 S0 ; heated bed heater off
M84 ; steppers off
G90 ; absolute positioning
M77 ; stop print job timer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment