Skip to content

Instantly share code, notes, and snippets.

@mikejr83
Created May 4, 2021 17:35
Show Gist options
  • Save mikejr83/bfb1e621d9c46ea9fdec650fcc76d16a to your computer and use it in GitHub Desktop.
Save mikejr83/bfb1e621d9c46ea9fdec650fcc76d16a to your computer and use it in GitHub Desktop.
Ender 3 Bilinear Leveling Start GCode - For BLTouch
; 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
@BEDLEVELVISUALIZER
G29; ABL
G92 E0 ; Reset Extruder
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
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
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
G1 X0.1 Y200.0 Z0.2 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.2 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.2 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.2 F5000.0 ; Move over to prevent blob squish
@mikejr83
Copy link
Author

mikejr83 commented May 4, 2021

The goal of the code is to do the following:

  1. Warm the bed up to printing temperature
  2. Start warming the nozzle to 160; do not wait for the nozzle to heat up at this point
  3. Home
  4. Run bed leveling
  5. Warm nozzle to printing temperature. Wait until temperature is reached
  6. Print a prime line.

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