Skip to content

Instantly share code, notes, and snippets.

@derekslenk
Last active January 22, 2024 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekslenk/4b910222af1c457b471f96c4c0cfb8fe to your computer and use it in GitHub Desktop.
Save derekslenk/4b910222af1c457b471f96c4c0cfb8fe to your computer and use it in GitHub Desktop.
Cura Custom Start G-Code Ender 3 / BLTouch / SKR Mini E3 v2
; Ender 3 Custom Start G-code
; Script based on an original created by tjjfvi (https://github.com/tjjfvi)
; An up-to-date version of the tjjfvi's original script can be found
; here: https://csi.t6.fyi/
; Note - This script will only work in Cura V4.2 and above!
; --- Global Settings
; layer_height = {layer_height}
; smooth_spiralized_contours = {smooth_spiralized_contours}
; magic_mesh_surface_mode = {magic_mesh_surface_mode}
; machine_extruder_count = {machine_extruder_count}
; --- Single Extruder Settings
; speed_z_hop = {speed_z_hop}
; retraction_amount = {retraction_amount}
; retraction_hop = {retraction_hop}
; retraction_hop_enabled = {retraction_hop_enabled}
; retraction_enable = {retraction_enable}
; retraction_speed = {retraction_speed}
; retraction_retract_speed = {retraction_retract_speed}
; retraction_prime_speed = {retraction_prime_speed}
; speed_travel = {speed_travel}
M190 S{material_bed_temperature_layer_0}
M104 S{material_print_temperature_layer_0} T0 ; start heating T0 to what is set in Cura
G92 E0 ; Reset Extruder
M420 S1 ; Enable bed leveling
M280 P0 S160 ; BLTouch alarm release
G4 P100 ; delay for BLTouch
G28 ; home
@BEDLEVELVISUALIZER
G29 ; auto bed leveling
M500 ; save bed leveing data to rom
;Wait until everything is hot
M190 S{material_bed_temperature_layer_0}
M109 S{material_print_temperature_layer_0} T0
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
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
@derekslenk
Copy link
Author

Still works as of Cura v5.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment