; stop.g ; called when M0 (Stop) is run (e.g. when a print from SD card is cancelled) ; M117 Finishing Up ;write Finishing Up M42 P6 S90 M104 S0 ;extruder heater off M140 S0 ;bed heater off (if you have it) G91 ;relative positioning G1 E-1 F300 ;retract the filament a bit, to release some of the pressure G1 Z100 F1200 ;go to Z+100 G1 E-10 F3600 ;retract filament even more G90 ;absolute positioning M117 Print finished ;write Print finished