Parameters may be wrong for positive and negative distance from home switch, or you may have a switch or marker pulse issue if it is not homing.