Hitting the E-stop is quite a shock to the system and you'll need to rehome the machine. It should not have lost where your XY datum point is, though. If I need to stop and it's not an emergency I use Feed Hold and that's a softer 'stop' than the immediate E-stop.
David
David