Skip to content

Instantly share code, notes, and snippets.

@JoelLisenby
Last active January 17, 2024 17:40
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 JoelLisenby/e3b02317ef83d805587854b0aec5be07 to your computer and use it in GitHub Desktop.
Save JoelLisenby/e3b02317ef83d805587854b0aec5be07 to your computer and use it in GitHub Desktop.
TEVO Tarantula i3 - Start and End GCODE with bed leveling and low preheat to prevent oozing before print

Start GCODE

G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
M109 S160 ; Preheat nozzle lower temp
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G29 ;level bed
G1 Z15.0 F9000 ;move the platform down 15mm
M109 S{material_print_temperature} ;Heat nozzle
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F9000
;Put printing message on LCD screen
M117 Printing...

End GCODE

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
G90 ;absolute positioning
G1 X0 Y200 F3600 ;move extruder out of the way by moving the baseplate to the front for easier access to printed object
M84 ;steppers off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment