From 64a0a58c7345ac3f8af881439f038581b2c9988e Mon Sep 17 00:00:00 2001 From: mp49 Date: Fri, 29 Jul 2011 10:19:47 +0000 Subject: [PATCH] motor: XPS model 3 driver. added 50ms sleep to setPosition function before the call to GroupReferencingStop(). This seems to be needed by some types of axes, eg. spindle group axes. --- motorApp/NewportSrc/XPSAxis.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/motorApp/NewportSrc/XPSAxis.cpp b/motorApp/NewportSrc/XPSAxis.cpp index 17e872b0..03d70210 100644 --- a/motorApp/NewportSrc/XPSAxis.cpp +++ b/motorApp/NewportSrc/XPSAxis.cpp @@ -425,6 +425,9 @@ asynStatus XPSAxis::setPosition(double position) "None", position*(stepSize_)); /* Stop referencing, then we are homed on all axes in group.*/ + /*Some types of XPS axes (eg. spindle) need a sleep here, otherwise + the axis can be left in referencing mode.*/ + epicsThreadSleep(0.05); status = GroupReferencingStop(pollSocket_, groupName_); if (status) {