Move the machine off the home switches and then power down the machine cnotrol.
Power back up while holding the "P" button and the "CAN" button.
Then try and home the machin again.
If there is an auto home cycle, you may need to home the axes individually.