Skip to content

Instantly share code, notes, and snippets.

@jazzsequence
Last active December 27, 2022 10:45
Show Gist options
  • Save jazzsequence/36600abb8f0655a63724fbe046899deb to your computer and use it in GitHub Desktop.
Save jazzsequence/36600abb8f0655a63724fbe046899deb to your computer and use it in GitHub Desktop.
Start and End G-code for Ender 5 on Cura
; Ender 5 Custom End G-code
G4 ; Wait
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 F1800 E-3 ; Retract filament 3 mm to prevent oozing
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely
G90 ; Set coordinates to absolute
G1 X0 Y220 F1000 ; Move Heat Bed to the front for easy print removal
M106 S0 ; Turn off cooling fan
M104 S0 ; Turn off extruder
M140 S0 ; Turn off bed
M107 ; Turn off Fan
M84 ; Disable stepper motors
M117 That's All Folks!
; End of custom end GCode
; Ender 5 Custom Start G-code
M104 S200 ; Set Extruder temperature to 200.
M140 S70 ; Set Heat Bed temperature to 70
; 50 should be sufficient for the actual build but raising the temp can help builds stick to the base.
M190 S50 ; Wait for Heat Bed temperature.
M109 S200 ; Wait for Extruder temperature
G28 ; Home all axes
M117 ; Purge extruder
G92 E0 ; Reset Extruder
; Draw a line. This is for the test line, so it can be a little lower than we need.
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed.
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z1.5 F3000 ; Move Z Axis up to where it should be for the actual print.
M117 By your command!
; End of custom start GCode
@bojangles86
Copy link

Will this code work with the Ender 5 plus?
Also, I have the Creality Silent board + Added the Microswiss Direct Drive extruder. Do any of the settings need to be adjusted?

I actually use this on my ender 5 pro with microswiss DD and my ender 7.

And? How was going? I have also new ender 5 pro and i would like to try this code.

Works fine. No issues at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment