Skip to content

Instantly share code, notes, and snippets.

@breakfastpizza
Created September 1, 2021 20:29
Show Gist options
  • Save breakfastpizza/2cf18c326851686321f2d502c9308236 to your computer and use it in GitHub Desktop.
Save breakfastpizza/2cf18c326851686321f2d502c9308236 to your computer and use it in GitHub Desktop.
Ender 3 v2 Custom End G-Code
; Ender 3 Custom End G-code
M400 ; Wait for current moves to finish
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F2400 E-3 ; Retract filament 3mm at 40mm/s to prevent stringing
G0 F5000 Z20 ; Move Z Axis up 20mm to allow filament ooze freely
G90 ; Set coordinates to absolute
G1 X0 Y{machine_depth} F5000 ; Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
M140 S0 ;Turn-off bed
M84 X Y E ;Disable all steppers but Z
; End of custom end GCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment