From fc816fcc95fdaec9d75512ba708a796a485a83da Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Tue, 18 Nov 2008 15:58:21 +0000 Subject: [PATCH] LOAD_POS bug fix. --- motorApp/AerotechSrc/devEnsemble.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/motorApp/AerotechSrc/devEnsemble.cc b/motorApp/AerotechSrc/devEnsemble.cc index 4c93c249..b799a12f 100644 --- a/motorApp/AerotechSrc/devEnsemble.cc +++ b/motorApp/AerotechSrc/devEnsemble.cc @@ -1,15 +1,16 @@ /* - * FILENAME... devEnsemble.cc - * USAGE... Motor record device level support for Aerotech Ensemble. + * FILENAME... devEnsemble.cc + * USAGE... Motor record device level support for Aerotech Ensemble. * - * Version: 1.0 - * Modified By: weimer - * Last Modified: 2008/04/10 05:52:03 PM + * Version: $Revision: 1.3 $ + * Modified By: $Author: sluiter $ + * Last Modified: $Date: 2008-11-18 15:58:21 $ */ /* - * Original Author: Mark Rivers - * Date: 10/20/97 + * Original Author: Chad Weimer + * Date: 04/04/08 + * Current Author: Chad Weimer * * Experimental Physics and Industrial Control System (EPICS) * @@ -235,8 +236,7 @@ static RTN_STATUS Ensemble_build_trans (motor_cmnd command, double *parms, break; case LOAD_POS: - sprintf(buff, "MOVEABS @%d %*.f%cWAIT MOVEDONE @%d%cSETPOSCMD @%d, 0", - axis, maxdigits, cntrl_units, ASCII_EOS_CHAR, axis, ASCII_EOS_CHAR, axis); + sprintf(buff, "SETPOSCMD @%d, %.*f", axis, maxdigits, cntrl_units); break; case SET_VEL_BASE: