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  <20212022  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Means of comparing alarm status with a conditional in a CALC record
From: "Wang, Andrew via Tech-talk" <tech-talk at aps.anl.gov>
To: "Johnson, Andrew N." <anj at anl.gov>, "Mooney, Tim M." <mooney at anl.gov>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Mon, 17 May 2021 18:38:46 +0000

Thank you!

 

From: Johnson, Andrew N. <anj at anl.gov>
Sent: Wednesday, May 12, 2021 1:18 PM
To: Mooney, Tim M. <mooney at anl.gov>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>; Wang, Andrew <wang126 at llnl.gov>
Subject: Re: Means of comparing alarm status with a conditional in a CALC record

 

There are some additional values for the STAT field that can’t be transmitted over CA as an ENUM (the protocol only sends the first 16 state names as shown in Tim’s graphic from MEDM), but the calc record will get their numeric values. The full list of STAT values can be found in any of include/alarm.h, include/menuAlarmStat.h or dbd/menuAlarmStat.dbd in Base.

 

- Andrew

 



On May 12, 2021, at 2:56 PM, Mooney, Tim M. via Tech-talk <tech-talk at aps.anl.gov> wrote:

 

Hi Andrew,

 

Yes, just specify the record's stat field in one of the calc record's input fields.  You'll get a number from the following list

 

<image.png>

Tim Mooney (mooney at anl.gov) (630)252-5417
Beamline Controls Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Wang, Andrew via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, May 12, 2021 2:36 PM
To: EPICS tech-talk <tech-talk at aps.anl.gov>
Subject: Means of comparing alarm status with a conditional in a CALC record

 

All,

 

I was wondering if there was some method to compare the alarm severity, where I want to determine if one of my record’s STAT field is set to be NO_ALARM or COMM. Can that be done using something like a CALC record?

 

Thanks,

Andy

 

-- 

Complexity comes for free, simplicity you have to work for.

 


References:
Means of comparing alarm status with a conditional in a CALC record Wang, Andrew via Tech-talk
Re: Means of comparing alarm status with a conditional in a CALC record Mooney, Tim M. via Tech-talk
Re: Means of comparing alarm status with a conditional in a CALC record Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Utilizing StreamDevice in conjunction with sockets Wang, Andrew via Tech-talk
Next: RE: Means of comparing alarm status with a conditional in a CALC record Wang, Andrew 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Means of comparing alarm status with a conditional in a CALC record Johnson, Andrew N. via Tech-talk
Next: RE: Means of comparing alarm status with a conditional in a CALC record Wang, Andrew 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  <20212022  2023  2024 
ANJ, 17 May 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·