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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Motor record with encoders |
From: | Henrique Almeida <[email protected]> |
To: | Mark Rivers <[email protected]> |
Cc: | "[email protected] Talk" <[email protected]> |
Date: | Thu, 18 Feb 2016 17:16:50 -0200 |
You may be able to just load another record that periodically writes to the STUP field? What are your requirements?
What driver are you using?
If you want to switch to Model 3 then yes you need to rewrite the driver. Model 3 is quite a simple model. You just need to implement some C++ methods like asynMotorAxis:: move(), asynMotorAxis::stop(), asynMotorAxis::poll(), etc.
Mark
From: Henrique Almeida [mailto:[email protected]]
Sent: Thursday, February 18, 2016 1:05 PM
To: Mark Rivers
Cc: [email protected] Talk
Subject: Re: Motor record with encoders
I believe the motor driver is using model 1 (motor*Com.cc) API. Is it necessary to rewrite the driver to support model 3 ?
2016-02-18 16:59 GMT-02:00 Mark Rivers <[email protected]>:
Yes the motor record can update REP when all motors are stopped. If you are using a “Model 2” or “Model 3” driver that does callbacks when the motor is idle then the record will automatically process and update. If you are using a “Model 1” driver then you need to write to the STUP field to force the record to read the status.
Mark
From: [email protected] [mailto:[email protected]] On Behalf Of Henrique Almeida
Sent: Thursday, February 18, 2016 12:50 PM
To: [email protected] Talk
Subject: Motor record with encoders
Hello, is the motor record currently able to update the encoder position ("REP" PV) while all motors are stopped ?