Skip to content

Instantly share code, notes, and snippets.

@kerryhatcher
Last active September 17, 2023 19:19
Show Gist options
  • Save kerryhatcher/41b628cfd90558695482abfb7e3ae7ae to your computer and use it in GitHub Desktop.
Save kerryhatcher/41b628cfd90558695482abfb7e3ae7ae to your computer and use it in GitHub Desktop.
GCODE Snipts
; WARNING!!!!!
; THis only works with prints that are below the level of the mini cross bars when the head is all the way at the bed. see https://www.icloud.com/photos/#0b7vfzKzxbK8bWF9dSPXntOYg
; USE AT YOUR OWN RISK!!!
; Shared under MIT License https://opensource.org/license/mit/
G1 Z100 F900 ;Move Z way up
G1 E-1 F2100 ; retract
G1 X178 Y178 F4200 ; park print head
G4 ; waitaac
M104 S0 ;Turn hotend off
M140 S0 ;Turn heat bed off
G1 Y{{bed_y}/2} F900 ;Move Y to the middle
G1 X{{bed_x}-5} E8 F900 ;Move X all the way towards motor
G1 Z1 F800 ;Move Z down to bed
G1 X5 E8 F900 ;Sweep hotend across the bed along the X
G1 X178 Y178 F4200 ; park print head
M400 ; wait for moves to finish before processing next Gcode (print start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment