Skip to content

Instantly share code, notes, and snippets.

@celly
Created January 11, 2016 22:19
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save celly/c4ea2ebc2957059c138e to your computer and use it in GitHub Desktop.
Save celly/c4ea2ebc2957059c138e to your computer and use it in GitHub Desktop.
Printrbot Simple Metal start gcode
Found in this post: https://www.reddit.com/r/PrintrBot/comments/3jm8bc/start_gcode_does_not_extrudeandmove_but_the_code/
Use this to reset, center, and auto-extrudea small bit before printing.
G90 ; Explicitly force absolute positioning in case it was not reset previously.
G28 ; Home all axes.
G29 ; Auto-level the bed.
G0 X0 Y0 Z0.15 F9000 ; Move to the front-left part of the bed.
M109 S{print_temperature} ; Set and wait for extruder temperature.
G92 E0 ; Zero the extruder.
G1 X40 E25 F500 ; Extrude a fat line of filament to prime and clean the nozzle.
G92 E0 ; Zero the extruder.
G1 E-1 F500 ; Retract 1 mm.
G1 X80 F9000 ; Sweep right to cut any strings.
G1 Z0.3 ; Raise the tip a little and begin printing.
@Nik-M
Copy link

Nik-M commented Jun 13, 2016

thanks for the code, I updated cura and it deleted my old start code.

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