Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ender 3 Cura Star/End G-Code
;-----------------------------------------------------------
; Ender 3 Custom End G-Code - START HERE
;-----------------------------------------------------------
M400 ; Wait
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
;*************************
;**** Cleaning nozzle ****
;*************************
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
;**********************
;**** Ending print ****
;**********************
G1 X0 Y{machine_depth} F1000 ; Move Heat Bed to the front for easy print removal
M104 S0 ; Turn off extruder
M140 S0 ; Turn off bed
M107 ; Turn off Fan
M84 ; Disable stepper motors
;*************************
;**** Goodbye message ****
;*************************
M117 That's All Folks!
;-----------------------------------------------------------
; Ender 3 Custom End G-Code - END HERE
;-----------------------------------------------------------
;-----------------------------------------------------------
; Ender 3 Custom Start G-Code - START HERE
;-----------------------------------------------------------
;********************
;**** Init setup ****
;********************
M201 X500.00 Y500.00 Z100.00 E5000.00 ; set max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ; set max feedrate
M204 P500.00 R1000.00 T500.00 ; set print/retraction/travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ; set jerk
M220 S100 ; restart feedrate
M221 S100 ; restart flowrate
;*************************************
;**** Start nozzle/bed preheating ****
;*************************************
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
;*******************************************************
;**** Reset extruder, enable mesh and home all axes ****
;*******************************************************
G92 E0 ; Reset Extruder
G28 ; Home all axes
G29 A ; Ensures UBL is activated
G29 L1 ; Load mesh #1
G29 J ; Probe 3 points to tilt mesh
G28 ; Home all axes
;****************************************
;**** Wait for nozzle/bed preheating ****
;****************************************
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
;*************************************************************
;**** Draw a nozzle cleaning line on the left side of bed ****
;*************************************************************
G1 Z2.0 F3000 ; Move Z Axis up little
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
G1 Z2.0 F3000 ; Move Z Axis up little
G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish
;******************************************
;**** Reset extruder and print message ****
;******************************************
G92 E0 ; Reset Extruder
M117 By your command!
;-----------------------------------------------------------
; Ender 3 Custom Start G-Code - END HERE
;-----------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment