Skip to content

Instantly share code, notes, and snippets.

@ahmet-cetinkaya
Last active March 11, 2024 13:24
Show Gist options
  • Save ahmet-cetinkaya/4fea5998f3fe1a1958d5587479959313 to your computer and use it in GitHub Desktop.
Save ahmet-cetinkaya/4fea5998f3fe1a1958d5587479959313 to your computer and use it in GitHub Desktop.
Ender 3 Pro BL-Touch Custom Start and End G-Code
; Ender 3 Custom End G-Code v1.2 ; https://gist.github.com/ahmet-cetinkaya/4fea5998f3fe1a1958d5587479959313
G4 ; Wait
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
M140 S0 ; Turn-off bed
G91 ; Set relative positioning
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely
G1 X5 Y5 F3000 ; Wipe out
G1 F1800 E-50 ; Retract filament 50 mm to prevent oozing and deformation
G90 ; Absolute positioning
G1 X0 Y{machine_depth} ; Present print
M106 S0 ; Turn-off fan
M104 S0 ; Turn-off hot-end
M84 X Y E ; Disable all steppers but Z
; End of custom start GCode
; Ender 3 Custom Start G-code v1.5 ; https://gist.github.com/ahmet-cetinkaya/4fea5998f3fe1a1958d5587479959313
M117 Heating bed...
M140 S{material_bed_temperature_layer_0} ; Set bed temperature.
M190 S{material_bed_temperature_layer_0} ; Wait for the bed to reach target temperature.
M117 Soft heating hot-end...
M104 S160 ; Set to 160° hot-end temperature.
G28 ; Auto home all axes.
M117 Leveling bed...
G29 ; Auto bed-level (BL-Touch)
G92 E0 ; Reset Extruder
M117 Heating hot-end...
M104 S{material_print_temperature_layer_0} ; Set hot-end temperature
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
; G1 X0.1 Y40 F5000.0 ; If you are using duct on nozzle and clips on bed, uncomment this line and comment above line
M109 S{material_print_temperature_layer_0} ; Wait for hot-end temperature
M117 Purging...
G1 F1800 E50; Extrude filament 50 mm to reset position
G1 X5 Y5 F3000 ; Wipe out
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
; G1 X0.1 Y40 F3000 ; If you are using duct on nozzle and clips on bed, uncomment this line and comment above line
G1 X0.1 Y200.0 Z0.3 F1500.0 E65 ; Draw the first line
G1 X3 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X3 Y20 Z0.3 F1500.0 E80 ; Draw the second line
; G1 X3 Y40 Z0.3 F1500.0 E80 ; If you are using duct on nozzle and clips on bed, uncomment this line and comment above line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z axis up little to prevent scratching of heat bed
; End of custom start GCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment