Skip to content

Instantly share code, notes, and snippets.

@Qteb
Last active August 15, 2021 21:38
Show Gist options
  • Save Qteb/4681882f5f5164963a95f8ccda546692 to your computer and use it in GitHub Desktop.
Save Qteb/4681882f5f5164963a95f8ccda546692 to your computer and use it in GitHub Desktop.
; Start G-code
M107 ; turn off fan
M82
G21 ; set units to millimeters
G90 ; use absolute coordinates
M104 S{material_print_temperature} ; set extruder temp
M140 S{material_bed_temperature} ; set bed temp
G28 ; home all
M190 S{material_bed_temperature} ; wait for bed temp
M109 S{material_print_temperature} ; wait for extruder temp
; intro line
G92 E0.0
G1 X170 F5000
G1 Z0.2 F100
G1 X110.0 E8.0 F900
G1 X40.0 E10.0 F3000
G92 E0.0
; intro line end
G92 E0.0
START_PRINT
;SET_PRESSURE_ADVANCE ADVANCE=0.6
; End G-code
G92 E0.0
G1 E-1 F2100 ; retract
G90 ; use absolute coordinates
G1 X195 Y195 F2500
G1 Z250 F5000
M104 S0 ; turn off temperature
M140 S0 ; turn off heatbed
M107 ; turn off fan
M221 S100 ; reset flow
M84 ; disable motors
FINISH_PRINT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment