Skip to content

Instantly share code, notes, and snippets.

@tsohr
Last active September 18, 2019 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsohr/cebb35d86effedc559a50d51a1c0ad34 to your computer and use it in GitHub Desktop.
Save tsohr/cebb35d86effedc559a50d51a1c0ad34 to your computer and use it in GitHub Desktop.
; -- START GCODE --
G21 ;set units to millimetres
G90 ;set to absolute positioning
M106 S0 ;set fan speed to zero (turned off)
G28 X Y ;home all axis
M420 S1 ;turn on mesh bed levelling if enabled in firmware
G92 E0 ;zero the extruded length
G1 Z1 F1000 ;move up slightly
G1 X5 Y60.0 Z0 E9.0 F1000.0;intro line
G1 Y100.0 E21.5 F1000.0 ;continue line
G92 E0 ;zero the extruded length again
; -- end of START GCODE --
; -- END GCODE --
M104 S0 ;turn off nozzle heater
M140 S0 ;turn off bed heater
G91 ;set to relative positioning
G1 E-10 F300 ;retract the filament slightly
G90 ;set to absolute positioning
G28 X0 F600 ;move to the X-axis origin (Home)
G0 Y310 F600 ;bring the bed to the front for easy print removal
G1 Z0
M84 ;turn off stepper motors
; -- end of END GCODE --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment