diff --git a/motorApp/NewportSrc/XPSAsynInterpose.c b/motorApp/NewportSrc/XPSAsynInterpose.c index f536da07..f2525103 100644 --- a/motorApp/NewportSrc/XPSAsynInterpose.c +++ b/motorApp/NewportSrc/XPSAsynInterpose.c @@ -15,7 +15,8 @@ typedef struct { static XPSCommandStruct XPSCommands[XPS_NUM_PARAMS] = { {minJerkTime, "MIN_JERK_TIME"}, - {maxJerkTime, "MAX_JERK_TIME"} + {maxJerkTime, "MAX_JERK_TIME"}, + {XPSStatus, "XPS_STATUS"} }; typedef struct { diff --git a/motorApp/NewportSrc/XPSAsynInterpose.h b/motorApp/NewportSrc/XPSAsynInterpose.h index ee1e2492..aafd500f 100644 --- a/motorApp/NewportSrc/XPSAsynInterpose.h +++ b/motorApp/NewportSrc/XPSAsynInterpose.h @@ -2,8 +2,9 @@ typedef enum { minJerkTime = MOTOR_AXIS_NUM_PARAMS, - maxJerkTime + maxJerkTime, + XPSStatus } XPSCommand; -#define XPS_NUM_PARAMS 2 +#define XPS_NUM_PARAMS 3 diff --git a/motorApp/NewportSrc/drvXPSAsyn.c b/motorApp/NewportSrc/drvXPSAsyn.c index 8eae0a58..369187db 100644 --- a/motorApp/NewportSrc/drvXPSAsyn.c +++ b/motorApp/NewportSrc/drvXPSAsyn.c @@ -631,6 +631,8 @@ static void XPSPoller(XPSController *pController) } } /* Set the axis done parameter */ + /* Set the axis done parameter */ + motorParam->setInteger(pAxis->params, XPSStatus, pAxis->axisStatus); motorParam->setInteger(pAxis->params, motorAxisDone, axisDone); if (pAxis->axisStatus == 11) { motorParam->setInteger(pAxis->params, motorAxisHomeSignal, 1);