Robotic arm

Hi...i want to ask about my fyp. My project is related to robotic arm so i want it to do task as i want. The problem now is when blackout occur, is there any suggestion on how to make the robotic arm still perform task after no more blackout instead of arduino reset automatic? Sorry bad english

A reset will always occur after power on. Your program must store the current task and step taken in that task. After power on the progam will recognize the stored task and resume at the last step.