Hey, I came across this post and am having the same problem. I was wondering as a g-code baby if there is anyone out there who might help me resolve the same issue for my Craftbot3D + printer. The specs are here:
https://www.3dhubs.com/3d-printers/Craftbot
Basically, the extruder tip sits on top of the print oozing and i wish i could just bring the bed down automatically.
Most advanced achieved:
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M107 ; turn off fan
M84 ; disable motors
Fail:
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M107 ; turn off fan
G28 ; home all axes
M84 ; disable motors
So far, as advanced as my ending scripts have gotten has been successfully turning off the fans at the end of the print and unsuccessfully ramming my extruder into my print by adding a G28 return to all home axis script.
I think the last post involved some retraction too, so the filament doesn't blob up ontop of the highest point but all this is very new and advanced for me.
Any help would be REALLY appreciated. Thanks in advance!!!