From a0056d7d7e42bbb5f7835752f77649663b4baa66 Mon Sep 17 00:00:00 2001 From: mp49 Date: Fri, 20 May 2011 17:36:38 +0000 Subject: [PATCH] motor: fixed the problem where an XPS axis cannot be homed if it is in state 50 or state 63. --- motorApp/NewportSrc/drvXPSAsyn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motorApp/NewportSrc/drvXPSAsyn.c b/motorApp/NewportSrc/drvXPSAsyn.c index 3975b861..93027510 100644 --- a/motorApp/NewportSrc/drvXPSAsyn.c +++ b/motorApp/NewportSrc/drvXPSAsyn.c @@ -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",