How does a robot protect its own existence
Right now, the scenarios where automata protect their own existence is limited.  

In the case of autonomous vehicles, primary goals would certainly be collision avoidance, and other hazards (deep water, cliff faces, etc.)

It's possible that arial drones could have certain automated defense mechanisms specific to airborne threats such a missiles.  

Bots might be said to protect their existence by copying themselves onto new systems.