Skip to content

Instantly share code, notes, and snippets.

@haydenmc
Created February 14, 2024 21:32
Show Gist options
  • Save haydenmc/7a4b65c6e45fc8964cc823fb321eac02 to your computer and use it in GitHub Desktop.
Save haydenmc/7a4b65c6e45fc8964cc823fb321eac02 to your computer and use it in GitHub Desktop.
My Ender 3 V2 Custom Start G-Code
G90 ; use absolute coordinates
M83 ; extruder relative mode
M104 S150 ; set temporary nozzle temp to prevent oozing during homing
M140 S{first_layer_bed_temperature[0]} ; set final bed temp
G4 S30 ; allow partial nozzle warmup
G28 ; home all axis
M190 S{first_layer_bed_temperature[0]} ; wait for bed temp to stabilize
; UBL Stuff
G29 L0 ; Load mesh
G29 J ; Quick 3-point level
G29 F 10.0 ; Set Fade Height for correction at 10.0 mm.
G29 A ; Activate the UBL System.
; Move back to position for oozing
G1 Z50 F240
G1 X2.0 Y10 F3000
M104 S{first_layer_temperature[0]} ; set final nozzle temp
M109 S{first_layer_temperature[0]} ; wait for nozzle temp to stabilize
G1 Z0.28 F240
G92 E0
G1 X2.0 Y140 E10 F1500 ; prime the nozzle
G1 X2.3 Y140 F5000
G1 X2.3 Y10 E10 F1200 ; prime the nozzle
G1 X3.0 Y10 F5000
G1 X3.0 Y140 E10 F1200 ; prime the nozzle
G1 X4.0 Y140 F5000
G1 X4.0 Y10 E10 F1200 ; prime the nozzle
G92 E0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment