Skip to content

Instantly share code, notes, and snippets.

@aeksco
Last active March 18, 2018 21:24
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 aeksco/f6dcbf24163148a892a48d622d2cfe93 to your computer and use it in GitHub Desktop.
Save aeksco/f6dcbf24163148a892a48d622d2cfe93 to your computer and use it in GitHub Desktop.
Printrbot Start / End GCODE

This is the start and end GCODE I use with my modified Printrbot Simple Metal. The Purge Line GCODE in the start.gcode file may be useful elsewhere.

;End GCode
;M104 S0 ;extruder heater off
;M140 S0 ;heated bed heater off (if you have it)
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-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
;{profile_string}
;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}
;Print time: {print_time}
;Filament used: {filament_amount}m {filament_weight}g
;Filament cost: {filament_cost}
;M190 S{print_bed_temperature} ;Uncomment to add your own bed temperature line
;M109 S{print_temperature} ;Uncomment to add your own temperature line
G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ; start with the fan off
G28 X0 Y0 ; XY Home
G28 Z0 ; Z Home
G1 Z5 ; Raise Z 5mm
G1 X150 Y0 F1500 ; Move to 150,150 (fast)
G1 Z0.5 F{travel_speed} ; Lower Z head
G92 E0 ; zero the extruded length
G1 X0 F800 E25 ; Print purge line
G92 E0 ; zero the extruded length (again)
G1 F{travel_speed} ; sets default travel speed
;Put printing message on LCD screen
M117 Printing...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment