EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Motor record -- URIP with soft limits
From: Ron Sluiter <[email protected]>
To: [email protected]
Date: Wed, 26 Sep 2012 10:25:28 -0500
On 09/26/2012 09:41 AM, [email protected] wrote:
Hi,

One caveat.. Make sure the ERES field is set correctly before switching UEIP (normally it would be the same as MRES). Otherwise you can get into a mess because the motor record attempts to do a 'set position' each time UEIP is switched. So if ERES is wrong it would set an incorrect number of counts on the controller.

I think the logic there is something to do with wanting to keep RBV the same number if you switch UEIP.


Matt's comments are correct except for the last statement about the motor record
trying to keep the RBV the same with UEIP is switched.  The motor record uses the
DVAL with the "set position" command. That results in the encoder being set based
on the commanded position (DVAL/VAL/RVAL).

Some people have commented that this logic is backwards, i.e., that when UEIP
is toggled the motor record should use the readback postion (DRBV/RBV/RRBV)
when setting the position. This way toggling UEIP would synch the command
position with the readback and not change the encoder's value.

I agree and I plan on changing it in a future release.

Ron


References:
Motor record -- URIP with soft limits Fong, Nia W.
Re: Motor record -- URIP with soft limits J. Lewis Muir
Re: Motor record -- URIP with soft limits Ernest L. Williams Jr.
Re: Motor record -- URIP with soft limits J. Lewis Muir
RE: Motor record -- URIP with soft limits matthew.pearson
Re: Motor record -- URIP with soft limits J. Lewis Muir
RE: Motor record -- URIP with soft limits Mark Rivers
RE: Motor record -- URIP with soft limits matthew.pearson

Navigate by Date:
Prev: RE: Motor record -- URIP with soft limits matthew.pearson
Next: Building a self-contained shareable library Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Motor record -- URIP with soft limits matthew.pearson
Next: Building a self-contained shareable library Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·