Skip to content

Instantly share code, notes, and snippets.

@wess
Created July 30, 2019 21:07
Show Gist options
  • Star 51 You must be signed in to star a gist
  • Fork 18 You must be signed in to fork a gist
  • Save wess/c66382198d48238787718b9bb8e9f3d9 to your computer and use it in GitHub Desktop.
Save wess/c66382198d48238787718b9bb8e9f3d9 to your computer and use it in GitHub Desktop.
Start/End GCodes for BLTouch Ender 3
; Ender 3 Custom Start G-code
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
M104 S160; start warming extruder to 160
G28 ; Home all axes
G29 ; Auto bed-level (BL-Touch)
G92 E0 ; Reset Extruder
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
; G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
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
; End of custom start GCode
; Ender 3 Custom End G-code
M400 ; Wait for current moves to finish
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F2400 E-3 ; Retract filament 3mm at 40mm/s to prevent stringing
G0 F5000 Z20 ; Move Z Axis up 20mm to allow filament ooze freely
G90 ; Set coordinates to absolute
G0 X0 Y235 F5000 ; Move Heat Bed to the front for easy print removal
M84 ; Disable stepper motors
; End of custom end GCode
@MagicSven81
Copy link

MagicSven81 commented Dec 30, 2020

Hi, i tried your code but after Auto bed-level (BL-Touch) the
M104; Set Extruder temperatur will stay furter at 160° and not at the temperature definded in the slicer

Fixed: the problem was i used it in "Creality Slicer" the original slicer wich come out with my Ender 3 Pro.
With "Ultimaker Cura" it works fine - thx.

@RagingLemons1
Copy link

sorry about the necro, but this gcode works, thanks! no more dripping in the center of the bed or dragging the nozzle across the bed.

@everdio
Copy link

everdio commented Jan 9, 2022

hi, for some reason after finnishing the bed was still being heated, before the line M84 ; Disable stepper motors, you may need to add these:
M106 S0 ; turn off cooling fan
M104 S0 ; turn off extruder
M140 S0 ; turn off bed

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