Skip to content

Instantly share code, notes, and snippets.

@mgarratt
Last active January 4, 2021 10:34
Show Gist options
  • Save mgarratt/6004a44e53ec38f33888bcfaa122911e to your computer and use it in GitHub Desktop.
Save mgarratt/6004a44e53ec38f33888bcfaa122911e to your computer and use it in GitHub Desktop.
Cura Ender-5 Start/End G-code
;Begin Custom End G-code
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
G1 X220 Y220 ;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
M117 Print Complete!
;End Custom End G-code
;Begin Custom Start G-code
M117 Home & level
G28 ;Home
G29 ;Auto-level
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
M140 S{material_bed_temperature} ;Start heating bed
M104 S150 ;Get the extruder warm while the bed heats
M190 S{material_bed_temperature} ;Wait for bed to reach temp before proceeding
M104 S{material_print_temperature} ;Fully heat extruder
M109 S{material_print_temperature} ;Wait for extruder to reach temp before proceeding
M117 Nozzle clean
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 E-1 F500 ;Retract 1 mm
G1 X80 F9000 ;Sweep right to cut any strings
G1 Z2.0 F3000 ;Move Z Axis up
G92 E0 ;Reset Extruder
;End Custom Start G-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment