... go to menue SCRIPTS and there to the tab Ending Scripts
insert there
*****************************************
G28 X0 ; home the X-axis
M104 S0 T1 ; turn off right extruder
M104 S0 T0 ; turn off left extruder
M140 S0 ; turn off bed
G1 Z180 (Example!)
M84 ; disable motors
****************************************
T1 / T2 when there are 2 extruders, otherwise delete the T1- line
Z180 = nozzles height after the print, BUT be sure, you are in the "Absolute-Mode".
Absolute-mode understands Z180 as the real point at 180 mm over the bed,
contrary to "Absolute" is "Relative" and this would cause a mouvement of 180 mm starting at the last Z-height, so it adds the Z-value to the models height! That can demage your printer. If you are not sure what mode is running , insert another line above G1 Z....
" G90; set to absolute positioning
[ >>>
http://reprap.org/wiki/G-code <<< ]
Regards
horst.w
GER
annex:
Another tip for you. Never use this when the model is greater than the given G1 Z ...-value !!! I.e. the model has 200 mm height, than Z180 crashes the printhead to the model. I use a marker in front of my nose to never forget it!