Skip to content

Instantly share code, notes, and snippets.

@sabarjp
Last active December 3, 2019 04:04
Show Gist options
  • Save sabarjp/419b0b9f005bc4bd226fc6646772b298 to your computer and use it in GitHub Desktop.
Save sabarjp/419b0b9f005bc4bd226fc6646772b298 to your computer and use it in GitHub Desktop.
gcode end ender3 prusaslicer
G4 ; wait
M221 S100
M106 S0 ; turn off cooling fan
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
G91
G1 F1800 E-3
G90
{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ; Move print head up
G28 X0 ; home x and y axis
G1 Y180; Remove Print Position
M84 ; disable motors
M300 S2600 P100; Beep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment