Skip to content

Instantly share code, notes, and snippets.

@awill1988
Last active January 9, 2022 21:55
Show Gist options
  • Save awill1988/6d51e3449c2930abeb0af9cc67b6b27e to your computer and use it in GitHub Desktop.
Save awill1988/6d51e3449c2930abeb0af9cc67b6b27e to your computer and use it in GitHub Desktop.
Start G-Code
;------------------------------------------
;*** Start Dual Nozzle/Bed Preheating ***
M140 S{material_bed_temperature} ; start preheating the bed WITHOUT wait to what is set in Cura
M104 S{material_print_temperature} T0 ; start preheating hotend WITHOUT wait to what is set in Cura
;-------------------------------------------------
;------------------------------------------
;*** Auto Bed Level ***
M280 P0 S160 ; BLTouch alarm release
G4 P100 ; delay for BLTouch
G28 ; home
G29 ; auto bed leveling
;------------------------------------------
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G92 E0 ;Reset Extruder
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
G1 X10.1 Y20 Z0.2 F5000.0 ; Move to start position
M190 S{material_bed_temperature} ; start heating the bed to what is set in Cura and WAIT
M109 S{material_print_temperature} T0 ; start heating hotend to what is set in Cura and WAIT
G1 Z2.0 F3000 ;Move Z Axis up
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment