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+20 E-5 X-20 Y-20 F7800 ;move Z up a bit and retract filament even more G28 X0 Y0 G90 G1 Y200 F1000 ;move completed part out M84