When machine hits a limit sensor, find the override limits on your interface, and make sure it's checked, then power on the machine with the "Switch on" button, then click on the JOINT tab, and within the JOINT tab select the joint to move, and with the buttons within the JOINT tab Move + and Move- move the machine away from the limit
Once done go back to GENERAL tab and press the "Home" button