Skip to content

Instantly share code, notes, and snippets.

@dmundt
Last active September 8, 2021 00:14
Show Gist options
  • Save dmundt/a92b73e03141d886b6d30fbf055d05b2 to your computer and use it in GitHub Desktop.
Save dmundt/a92b73e03141d886b6d30fbf055d05b2 to your computer and use it in GitHub Desktop.
Cura G-Code
M104 S0 ;Extruder heater off
M140 S0 ;Heated bed heater off (if you have it)
G91 ;Relative positioning
G1 E-1 F300 ;Retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;Move Z up a bit and retract filament even more
G28 X0 Y0 ;Move X/Y to min endstops, so the head is out of the way
M84 ;Steppers off
G90 ;Absolute positioning
;Put printing message on LCD screen
M117 Stopped printing...
;End GCode {profile_string}
M280 P0 S160 ;BLTouch alarm release
G4 P100 ;Delay for BLTouch
G28 ;Home all axes
G29 ;Auto bed leveling
G28 X0 Y0 ;Home
G0 X0 Y0
G1 Z0 F200 ;Slowly touch bed
G4 P400 ;Wait for 400ms
G1 Z10 F90 ;Slowly move the platform up 10mm
G1 Z15.0 F{travel_speed} ;Move the platform up 15mm
;Prime the extruder
G92 E0
G1 F200 E3
G92 E0
;Put printing message on LCD screen
M117 Printing...
;End GCode {profile_string}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment