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 <2023> 2024 2025 | 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 <2023> 2024 2025 |
<== 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