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 positioning
G1 X0 Y0 ; Present print
M104 S0 ; Turn-off hotend
M140 S0 ; Turn-off bed
M106 S0 ; Turn-off fan
M84 X Y E ; Disable all steppers but Z
Last active
October 25, 2025 11:09
-
-
Save zanppa/a1d3f5cae3c7286ce14ea64a8b9413a8 to your computer and use it in GitHub Desktop.
My start and end G-codes for Creality Ender 3 Neo used with Ultimaker Cura slicer
; Ender 3 Neo Custom Start G-code
M140 S{material_bed_temperature_layer_0} ; Start heating the bed
M104 S{material_standby_temperature} ; Start heating nozzle to lower temp to prevent oozing
M105 ; Report temperatures
G4 S10 ; Wait a little to allow warmup
M105 ; Report temperatures
; Home & bed leveling sequence
G28 ; Home all axes
G29 ; Auto bed leveling
G1 Z20 F1000 ; Move extruder up a bit
G1 X10.1 Y20 F1000.0 ; Move to start position
; Finish heating up
M190 S{material_bed_temperature_layer_0} ; Wait until target bed temperature reached
M105 ; Report temperatures
M109 S{material_print_temperature_layer_0} ; Wait until nozzle reaches target temperature
M105 ; Report temperatures
; Prepare the nozzle
M82 ; Absolute extrusion mode
G92 E0 ; Reset extruder
G1 Z0.28 F5000.0 ; Move to start position
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ; Draw the first line
G1 X10.6 Y200.0 Z0.28 F5000.0 ; Move to side a little
G1 X10.6 Y20 Z0.28 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset extruder
G1 Z2.0 F3000 ; Move Z axis up little to prevent scratching of print bed
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. I never found a way to prevent the nozzle from touching the center of the bed with the original firmware. However, I converter my printer to use Klipper with a Raspberry PI computer, and with that I don't have the problem anymore (and got bunch of other usefull features as well)...