Skip to content

Instantly share code, notes, and snippets.

@shauneccles
Created November 4, 2020 10:15
Show Gist options
  • Save shauneccles/69eb40ed3f3c7fe43c9f01021ff56a92 to your computer and use it in GitHub Desktop.
Save shauneccles/69eb40ed3f3c7fe43c9f01021ff56a92 to your computer and use it in GitHub Desktop.
; Preamble
M420 S1 ; restore abl mesh
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
; Heat nozzle just enough to accurately home without drooping
M140 S50
M104 S120
M190 S50
M109 S120
M105
; - Home - this is used with the strain gauge as a zero position for the Z-offset
G28
; Now we know the positions we can move out of the way and happily droop at the side of the bed
M104 S{material_print_temperature}
M140 S{material_bed_temperature}
M105
G0 Z20
G0 X0 Y0
; Now wait for the temperatures to reach
M190 R{material_bed_temperature}
M109 S{material_print_temperature}
M105
; And we can now draw our purge line
G92 E0 ;Reset Extruder
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
@Sebazzz
Copy link

Sebazzz commented Nov 4, 2020

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