Skip to content

Instantly share code, notes, and snippets.

@scientress
Forked from ianchen06/end.gcode
Last active April 21, 2020 14:31
Show Gist options
  • Save scientress/78ae630cd4cc480970aeef059e185816 to your computer and use it in GitHub Desktop.
Save scientress/78ae630cd4cc480970aeef059e185816 to your computer and use it in GitHub Desktop.
Anet A8 start end gcode
;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 F9000 ; 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
;Sliced at: {day} {date} {time}
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G0 X0 Y5 Z5 F9000 ; Go to front
{IF_BED}M190 S{BED}
; Activate all used extruder
{IF_EXT0}M104 T0 S{TEMP0}
; Wait for all used extruders to reach temperature
{IF_EXT0}M109 T0 S{TEMP0}
G0 Z0.15 ; Drop to bed
G92 E0 ; zero the extruded length
G1 X40 E15 F500 ; Extrude 15mm of filament in a 4cm line
G92 E0 ; zero the extruded length
G1 E-0.5 F500 ; Retract a little
G1 X80 F4000 ; Quickly wipe away from the filament line
G1 Z0.3 ; Raise and begin printing.
M117 Printing..0
;Sliced at: {day} {date} {time}
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G0 X0 Y5 Z5 F9000 ; Go to front
G0 Z0.15 ; Drop to bed
G92 E0 ; zero the extruded length
G1 X40 E15 F500 ; Extrude 15mm of filament in a 4cm line
G92 E0 ; zero the extruded length
G1 E-0.5 F500 ; Retract a little
G1 X80 F4000 ; Quickly wipe away from the filament line
G1 Z0.3 ; Raise and begin printing.
M117 Printing..0
;Sliced at: [timestamp]
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G0 X0 Y5 Z5 F9000 ; Go to front
M190 S[bed_temperature]
; Activate all used extruder
M104 T0 S[temperature_0]
; Wait for all used extruders to reach temperature
M109 T0 S[temperature_0]
G0 Z0.15 ; Drop to bed
G92 E0 ; zero the extruded length
G1 X40 E15 F500 ; Extrude 15mm of filament in a 4cm line
G92 E0 ; zero the extruded length
G1 E-0.5 F500 ; Retract a little
G1 X80 F4000 ; Quickly wipe away from the filament line
G1 Z0.3 ; Raise and begin printing.
M117 Printing..0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment