Skip to content

Instantly share code, notes, and snippets.

@blazewicz
Last active June 25, 2023 16:16
Show Gist options
  • Save blazewicz/efe5773fc59a2561ae8629c8c1fddc2f to your computer and use it in GitHub Desktop.
Save blazewicz/efe5773fc59a2561ae8629c8c1fddc2f to your computer and use it in GitHub Desktop.
Cura Start/End G-Code for Ender 3 V2
M117 End G-code
G91 ; Relative positioning
G1 E{material_anti_ooze_retracted_position} F2700 ; Retract to prevent oozing
G0 Z0.2 F2400 ; Raise Z
G0 X5 Y5 F3000 ; Wipe out
G0 Z10 ; Raise Z more
G4 ; Wait for all movenet to stop
G90 ; Absolute positioning
G1 X0 Y{machine_depth} ; 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
M109 S$(temperature)s F1800
G91
G1 E%(distance)s F1800
G1 E100 F100
G1 E-3 F1800
G4
G90
G92 E0
M104 S0
M140 S0
M84 E
; Ender 3 V2 Custom Start G-code
M117 Start G-code ...
M204 P3000 T3000 ; set starting acceleration
M106 S0 ; Turn-off fan
;M140 S{material_bed_temperature_layer_0} ; Start heating bed
M104 S{material_standby_temperature} ; Pre-heat hotend below oozing temp
M190 S{material_bed_temperature_layer_0} ; Wait until bed gets to temp
G28 ; Home all axes
G29 A ; Activate UBL
G29 L0 ; Load mesh data
G29 J ; Start 3-point tramming
G29 F10.0 ; Fade to 10 mm
G90 ; Absolute Positioning
G0 X0 Y0 F5000.0 ; Move to origin
M109 S{material_print_temperature_layer_0} ; Wait until hotend gets to temp
M83 ; Relative Extrusion
G0 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 E15 F1500.0 ; Draw the first line
G0 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 E15 F1500.0 ; Draw the second line
G0 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G0 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish
G90 ; Absolute Positioning
G92 E0 ; Reset Extruder
M117 Printing ...
M109 S%(temperature)s
G91
G1 E10 F100
G1 E-$(distance)s F1800
G4
G90
G92 E0
M104 S0
M140 S0
M84 E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment