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: | Re: motorRecord with phytron support: record send goto 0 command before reference is done |
From: | Kevin Peterson via Tech-talk <tech-talk at aps.anl.gov> |
To: | Torsten Bögershausen <torsten.bogershausen at ess.eu>, "Bernhard.Kuner" <Bernhard.Kuner at helmholtz-berlin.de> |
Cc: | EPICS Tech Talk <tech-talk at aps.anl.gov> |
Date: | Tue, 29 Mar 2022 15:40:43 -0500 |
https://github.com/epics-motor/motorPhytron/blob/9acb974257dc61512017f18f9b823be0495e948d/phytronApp/src/phytronAxisMotor.cpp#L1056-L1057Those bits are why the motor record believes a limit is hit and the motion is done:
https://github.com/epics-modules/motor/blob/cc6c6a9b181691e8b04981c64ec99f8a887a937e/motorApp/MotorSrc/motorRecord.cc#L3693-L3694 Kevin On 3/29/22 13:10, Torsten Bögershausen wrote:
I think that there may be a potential problem in the motorRecord itself. The first one is that the record assumes that a motor is “done”, when a limit switch is hit: <https://github.com/epics-modules/motor/blob/master/motorApp/MotorSrc/motorRecord.cc#L3707> While this may be true for some controllers, it is not, especially for modern controllers that have a “homing sequence” which looks like “hit the limit switch, once activated, revert and drive slowly until the switch is released” I don’t have a Phytron to test this. If you have time to modify the motorRecord itself and test, you can modify line 3707 from above.