Skip to content

Instantly share code, notes, and snippets.

@randy3k
Last active November 26, 2025 19:23
Show Gist options
  • Select an option

  • Save randy3k/731036bc8ea90cb86dd4ba4a16d4514a to your computer and use it in GitHub Desktop.

Select an option

Save randy3k/731036bc8ea90cb86dd4ba4a16d4514a to your computer and use it in GitHub Desktop.
Ender 5 Pro Cura 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 X0 Y0 ;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
; M140 S{material_bed_temperature_layer_0} ; start preheating the bed
; M190 S{material_bed_temperature_layer_0} ; heat to Cura Bed setting
G28 ;Home
; G29 ;Auto Bed Leveling
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
M104 S{material_print_temperature_layer_0} ?T0 ; start preheating hotend
M109 S{material_print_temperature_layer_0} ?T0 ; heat to Cura Hotend
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 Z2.0 F3000 ;Move Z Axis up
@randy3k
Copy link
Author

randy3k commented Mar 24, 2025

Oh, sorry to hear that. I have moved from cura to prusa. And I actually copied the above code from somewhere on the Internet, not sure how to fix your issue. I don’t recall there were any issues for my 5 pro though.

@ItsSuperRob
Copy link

its for the pro not the plus, maybe why it crash

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