Skip to content

Instantly share code, notes, and snippets.

@SippieCup
Created July 18, 2022 15:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save SippieCup/e733d23ec4e070d52fec100e3a774e8f to your computer and use it in GitHub Desktop.
start/end gcodes for e5p with UBL
{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+2, max_print_height)} F600{endif} ; Move print bed down
G1 X350 Y350 F{travel_speed*60} ; present print
; {if max_layer_z < max_print_height-10}G1 Z{z_offset+max_print_height-10} F600{endif} ; Move print bed down further down
M140 S0 ; turn off heatbed
M104 S0 ; turn off temperature
M107 ; turn off fan
M84 X Y E ; disable motors
G90 ; use absolute coordinates
M83 ; extruder relative mode
M104 S120 ; set temporary nozzle temp to prevent oozing during homing and auto bed leveling
M140 S[first_layer_bed_temperature] ; set final bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp to stabilize
G28 ; home all axis
; UBL bed leveling
;G29 P1
;G29 P3
;G29 F10
;G29 A
;G29 L1
;M500
; Adjust mesh rather than rebuild
G29 L1
G29 J
G1 Z50 F240
G1 X2 Y10 F3000
M104 S[first_layer_temperature] ; set final nozzle temp
M109 S[first_layer_temperature] ; wait for nozzle temp to stabilize
G1 Z0.28 F240
G92 E0
G1 Y140 E10 F1500 ; prime the nozzle
G1 X2.3 F5000
G92 E0
G1 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