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

Subject: RE:RE:Alarm indicator in CSS
From: GAGET Alexis via Tech-talk <tech-talk at aps.anl.gov>
To: Donny Domagoj Cosic <Donny.Domagoj.Cosic at irb.hr>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 27 Nov 2020 14:14:19 +0000
BEAST installation is quite complicated but I know that Kay Kasemir (I think) is working on a new version based on Kafka, maybe he can tell you more about it.

1/ Yes the field VAL (the default value) will be at 0 but the field SEVR will have the value you are looking for.
 

>caget PV1
>0
>caget PV1.SEVR
> NO_ALARM

You can use PV1.SEVR in the "PV name" in CSS. Also most of the widget can natively handled the SEVR field, "alarm sensitive" option have to be checked.

2/ No it means that the field SEVR will take the maximum level of severity of the different input

record(calc, "PV1") {
     field(DESC, "global alarm severity")
     field(CALC, "0")
     field(INPA, "PV2.SEVR CPP MS")
     field(INPB, "PV3.SEVR CPP MS")
}
i.e. :
PV2.SEVR= NO_ALARM
PV3.SEVR= NO_ALARM
---> PV1.SEVR= NO_ALARM

PV2.SEVR= MINOR
PV3.SEVR= NO_ALARM
---> PV1.SEVR= MINOR

PV2.SEVR= MINOR
PV3.SEVR= MAJOR
---> PV1.SEVR= MAJOR


If you need more level than NO_ALARM, MINOR, MAJOR, you can use as you said the CALC  record as a simple logical expression, but you will lose the Alarm functionnality in CSS.

Cheers

Alexis

________________________________________
De : Donny Domagoj Cosic [Donny.Domagoj.Cosic at irb.hr]
Envoyé : vendredi 27 novembre 2020 14:14
À : GAGET Alexis
Cc : tech-talk at aps.anl.gov
Objet : RE:Alarm indicator in CSS

Hi Alexis,

Thank you for your response. I am not using BEAST because I was not able
to get it to work correctly (is there any tutorial or information on how
to set it up?)
I tried your approach and it is a very good idea, thank you. Could you
just clarify a few things for me.

1. With the CALC field set to "0" isnt the output always "0"? Should the
CALC field be a logical expression with an OR between all inputs?
2. You use the MS field which I am guessing only signals when a MAJOR
alarm is triggered. Is it possible to get an output for any value of
SEVR except NO_ALARM?

Thank you once again,

---
Donny Domagoj Cosic
  Institut Ruđer Bošković, Bijenička cesta 54, 10000 Zagreb, Croatia

Dana 27.11.2020 10:28, GAGET Alexis je napisao(la):
> Hi Donny,
> Are you using an alarm server (BEAST) or just using a simple LED in CSS
> ?
> In Beast I think you have the possibility to agregate the alarm
> easily. Expert will answer you better than m.
>
> Otherwise a way to do it with the database record:
>
> record(calc, "$(MyMarvelousPV):Defects") {
>     field(DESC, "global alarm severity")
>     field(CALC, "0")
>     field(INPA, "C2TS:COND:DefectsSecuBox1.SEVR CPP MS")
>     field(INPB, "C2TS:COND:DefectsSecuBox2.SEVR CPP MS")
>     field(INPC, "C2TS:COND:DefectsTemp.SEVR     CPP MS")
>     field(INPD, "C2TS:COND:DefectsVac.SEVR      CPP MS")
>     field(INPE, "C2TS:COND:DefectsRFPow.SEVR    CPP MS")
>     field(INPF, "C2TS:COND:DefectsRFSrc.SEVR    CPP MS")
>     field(INPG, "C2TS:COND:DefectsPUPM.SEVR     CPP MS")
> }
>
> The MS field (for Maximize Severityà means that my PV
> $(MyMarvelousPV):Defects will have the field SEVR (severity) of the
> higher severity of my inputs.
>
> After that you can display easily your $(MyMarvelousPV):Defects in CSS.
>
> cheers,
>
> Alexis GAGET
> CEA Saclay - DRF/Irfu/DIS/LDISC
> alexis.gaget at cea.fr
> ________________________________________
> De : Tech-talk [tech-talk-bounces at aps.anl.gov] de la part de Donny
> Domagoj Cosic via Tech-talk [tech-talk at aps.anl.gov]
> Envoyé : vendredi 27 novembre 2020 08:43
> À : tech-talk at aps.anl.gov
> Objet : Alarm indicator in CSS
>
> Hello,
>
> I am still relatively new to EPICS, but I am slowly building up the
> system in our lab. In many of the presentations about EPICS I see a
> nice
> alarm panel with LED displays that turn on when an alarm is raised. I
> have been trying to implement this but I am having some difficulties.
>
> I set alarm levels in my IOC for various sub systems such as radiation,
> vacuum etc. and now I would like to have a general indicator in CSS
> that
> will indicate an alarm has been raised in any of these sub systems. So,
> for example, if any of the radiation probes trigger an alarm, a general
> indicator will signal this to the user as an LED in CSS.
>
> Is there any tutorials on how I would implement such a indicator or
> would you be able to provide me with a overview on how to implement it?
>
> Thank you,
>
> --
> Donny Domagoj Cosic
>   Institut Ruđer Bošković, Bijenička cesta 54, 10000 Zagreb, Croatia

Replies:
RE:RE:Alarm indicator in CSS Donny Domagoj Cosic via Tech-talk
References:
Alarm indicator in CSS Donny Domagoj Cosic via Tech-talk
RE:Alarm indicator in CSS GAGET Alexis via Tech-talk
RE:Alarm indicator in CSS Donny Domagoj Cosic via Tech-talk

Navigate by Date:
Prev: ioc startup file installation Felix Krämer via Tech-talk
Next: ADPvCam IOC Makefile bug Jörn Dreyer 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: RE:Alarm indicator in CSS Donny Domagoj Cosic via Tech-talk
Next: RE:RE:Alarm indicator in CSS Donny Domagoj Cosic 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  <20202021  2022  2023  2024 
ANJ, 01 Dec 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·