Where to learn more about how the X-controller works

Many settings are retained, like machine size and stepper motor configuration, however your issue here was the zero location. When you lose power, and restart, the machine has no idea where it is