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  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: How to reset encoder counts after controller power off
From: 岳宗仰 via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Thu, 13 Jul 2023 21:41:03 +0800 (GMT+08:00)

Hi, tech-talk,

I have a motion controller, and write driver support for it by model 3.


After power off, the pulse information and encoder counts of motor has been lost, and we want to save this informations.


The setPosition(double position) has been rewrote.(I think this method is used for autosave)

Through it, I can reset the pulse counts at any position.

$caput xxx.m1.SET 1

$caput xxx:m1.VAL 0


So I use autosave module, and save the .RBV and .VAL PV.

After IOC and controller restart, the .RBV and .VAL PV has been changed, But .RMP, .REP PV not changed and the register of pulse counts of controller also not change.

Have you met this case?

I would appreciated some suggestions.


Zongyang yue

Thanks


Replies:
Re: How to reset encoder counts after controller power off Kevin Peterson via Tech-talk

Navigate by Date:
Prev: Xspress3 INP error lynn via Tech-talk
Next: RE: Xspress3 INP error Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: RE: Re:Re: Re: Re: Xspress3 INP error Mark Rivers via Tech-talk
Next: Re: How to reset encoder counts after controller power off Kevin Peterson via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 03 Aug 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·