# Start G-Code G21 ;metric values G90 ;absolute positioning M107 ;start with the fan off G28 ;move to endstops G92 E0 ;zero the extruded length G1 F200 E3 ;extrude 3mm of feed stock G92 E0 ;zero the extruded length again G1 F{speed_travel} ;Put printing message on LCD screen M117 Printing... # End G-Code M400 ;Free buffer G91 ;relative positioning G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure G1 F{speed_travel} Z+1 E-5 X+1 Y+1 ;move Z up a bit and retract filament even more G90 ;absolute positioning M104 S0 ;extruder heater off M140 S0 ;heated bed heater off (if you have it) M107 ;fan off M84 ;steppers off G28 ;move to endstop M84 ;steppers off