Last active
January 14, 2021 13:41
-
-
Save Qteb/667077103ad52fe36161b71348bee40c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Start G-code | |
M107 ; turn off fan | |
G21 ; set units to millimeters | |
G90 ; use absolute coordinates | |
M83 ; extruder relative mode | |
M104 S[first_layer_temperature] ; set extruder temp | |
M140 S[first_layer_bed_temperature] ; set bed temp | |
G28 ; home all | |
M190 S[first_layer_bed_temperature] ; wait for bed temp | |
M109 S[first_layer_temperature] ; wait for extruder temp | |
; intro line | |
M221 S100 ; Set flow to 100 | |
G1 X170 F1000 | |
G1 Z0.2 F720 | |
G1 X110.0 E8.0 F900 | |
G1 X40.0 E10.0 F700 | |
; intro line end | |
G92 E0.0 | |
M221 S95 ; set flow | |
; End G-code | |
G1 E-1 F2100 ; retract | |
{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+2, max_print_height)}{endif} F720 ; Move print head up | |
G28 X Y ; park print head | |
{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+150, max_print_height)}{endif} F720 ; Move print head further up | |
G4 ; wait | |
M104 S0 ; turn off temperature | |
M140 S0 ; turn off heatbed | |
M107 ; turn off fan | |
M221 S100 ; reset flow | |
M900 K0 ; reset LA | |
M84 ; disable motors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment