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 | 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: A general question about convert e.g. in longout record drvh, drvl handling |
From: | "Johnson, Andrew N. via Core-talk" <core-talk at aps.anl.gov> |
To: | Heinz Junkes <junkes at fhi-berlin.mpg.de> |
Cc: | EPICS Core Talk <core-talk at aps.anl.gov> |
Date: | Thu, 28 Jan 2021 00:00:40 +0000 |
An option that doesn’t depend on DRVL/DRVH at all is this:
record(longout, zero) {
field(LOLO, -1)
field(LLSV, INVALID) field(HIHI, 1)
field(HHSV, INVALID) field(IVOA, "Set output to IVOV") field(IVOV, 0) }
If VAL gets set to any value other than 0 by any means, the record will go into Invalid alarm and the IVOA action will reset VAL back to 0 when the record processes. You also get a nice HIHI or LOLO Invalid alarm severity if someone tries to change
it, in case that interests you.
You might want to set DISP to 1 to prevent anyone modifying the fields in the first place though.
- Andrew
--
Complexity comes for free, simplicity you have to work for.
|