Skip to content

Instantly share code, notes, and snippets.

@ninnypants
Created March 26, 2019 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninnypants/8b1b360c47a400afec966a4c73b9056c to your computer and use it in GitHub Desktop.
Save ninnypants/8b1b360c47a400afec966a4c73b9056c to your computer and use it in GitHub Desktop.
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
G28 X0 ;move X to endstop out of the way
G28 Y210; move bed out for easier access
M84 ;steppers off
G90 ;absolute positioning
# Misc
## Extrude
* Nozzle size: 0.4mm
* Material diameter: 1.75mm
## Printer
* X: 220mm
* Y: 220mm
* Z: 240mm
* G-code flavor: Marlin
* All others 0
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 ;move to min endstops
G1 Z0.5; move z up half a mm
G92 E0 Z0 ;zero the extruded length and Z axis
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F9000
M117 Printing...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment