Skip to content

Instantly share code, notes, and snippets.

@breakfastpizza
Last active January 24, 2024 21:58
Show Gist options
  • Save breakfastpizza/bf28f114d62d4c3a4196f388f2dd3a0f to your computer and use it in GitHub Desktop.
Save breakfastpizza/bf28f114d62d4c3a4196f388f2dd3a0f to your computer and use it in GitHub Desktop.
Ender 3 v2 UBL Custom Start G-Code
; Ender 3 Custom Start G-Code
;Cura
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
;Prusaslicer
M140 S[first_layer_temperature] ; Set Heat Bed temperature
M190 S[first_layer_bed_temperature] ; Wait for Heat Bed temperature
M104 S160 ; start warming extruder to 160
G28 ; Home all axes
; Start UBL
G29 A ; Activate the UBL System.
G29 L0 ; Load UBL at slot 0
G29 J2 ; 4-point level
G29 F10.0 ; Fade to 10mm
G92 E0 ; Reset Extruder
; End UBL
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
;Cura
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
;Prusaslicer
M104 S[first_layer_temperature] ; Set Extruder temperature
M109 S[first_layer_temperature] ; Wait for Extruder temperature
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 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish
; End Custom Start GCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment