motor: fixed the problem where an XPS axis cannot be homed if it is in state 50 or state 63.

This commit is contained in:
mp49
2011-05-20 17:36:38 +00:00
parent 1bc379f792
commit a0056d7d7e
+1 -1
View File
@@ -1027,7 +1027,7 @@ static int motorAxisHome(AXIS_HDL pAxis, double min_velocity, double max_velocit
}
status = GroupStatusGet(pAxis->pollSocket, pAxis->groupName, &groupStatus);
/* If axis not initialized, then initialize it */
if (groupStatus >= 0 && groupStatus <= 9) {
if ((groupStatus >= 0 && groupStatus <= 9) || (groupStatus == 50) || (groupStatus == 63)) {
status = GroupInitialize(pAxis->pollSocket, pAxis->groupName);
if (status) {
PRINT(pAxis->logParam, MOTOR_ERROR, "motorAxisHome[%d,%d]: error calling GroupInitialize error=%s\n",