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

Subject: Re: Disable alarm at IOC via PVAccess
From: David Bracey via Tech-talk <[email protected]>
To: "[email protected]" <[email protected]>
Date: Fri, 21 Nov 2025 16:25:28 +0000

Thanks very much to everyone for the responses!  This has really been in the name of investigation, rather than trying to deploy a real system today.  Learning things was more the point, rather than solving a problem.

 

From: Kasemir, Kay <[email protected]>
Date: Friday, November 21, 2025 at 8:24
AM
To: David Bracey <[email protected]>, Pierrick Hanlet <[email protected]>, [email protected] <[email protected]>
Subject: Re: Disable alarm at IOC via PVAccess

[EXTERNAL] – This message is from an external sender

> A PV really has four distinct alarms – all four severities would need to be set NO_ALARM to really “disable alarms” for the PV

> To re-enable alarms, you would have needed to have remembered the prior value to restore it (or just YOU’LL GET MAJOR AND LIKE IT)

 

Correct.

Binary records (bi, bo) have a ZSV and OSV to associate optional alarm seventies with the two possible states.

You may have a record with

   field(ZNAM, “Off”) 

   field(ONAM, “On”) 

and there are no alarms at all because it’s fine for the device to be eiter off or on.

Or one with

   field(ZNAM, “Cozy”) 
   field(ONAM, “Overheated”)

   field(OSV, “MINOR”)

where the “1” state is somewhat bad, or 

   field(ZNAM, “Dead”) 
   field(ONAM, “Alive”)

   field(ZSV, “MAJOR”)

where you consider the “0” state to be very bad.

 

With analog records (calc, calcout, ai, ao, …) there are 4 alarm thresholds, LOLO, LOW, HIGH, HIHI.

They are meant to go with alarm severities MAJOR, MINOR, MINOR, MAJOR.

Way back when that was designed, I guess there was the basic question: If LOW has the default value of 0, does that mean we consider any value <= 0 to be LOW (and MINOR), or does LOW==0 mean you didn’t configure any LOW alarm threshold, you want that to be ignored?

In hindsight, a default of LOLO=LOW=HIGH=HIHI=NaN (not a number) might have been a better idea, but support for NaN was added a little later, so we get defaults of zero for all alarm thresholds, and thus need another field for each threshold to indicate if it should be used. Well, you might actually see the thresholds reported as NaN if the corresponding severity is NO_ALARM, but in any case we for now live with having both the 4 thresholds and the 4 associated severity fields in analog records.

So you set LLSV=MAJOR, LSV=MINOR, HSV=MINOR, HHSV=MAJOR to enable them all, or just set some of them to enable only selected thresholds.

Yes, you could set HSV=MAJOR, HHSV=MINOR, and it might be fun for a while to re-order the thresholds that way, but don’t do that because eventually somebody will get mad at you.

 

-Kay


References:
Disable alarm at IOC via PVAccess David Bracey via Tech-talk
Re: Disable alarm at IOC via PVAccess Pierrick Hanlet via Tech-talk
Re: Disable alarm at IOC via PVAccess David Bracey via Tech-talk
Re: Disable alarm at IOC via PVAccess Kasemir, Kay via Tech-talk
Re: Disable alarm at IOC via PVAccess David Bracey via Tech-talk
Re: Disable alarm at IOC via PVAccess Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] Disable alarm at IOC via PVAccess Ralph Lange via Tech-talk
Next: Re: [EXTERNAL] Disable alarm at IOC via PVAccess Maren Purves 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  2021  2022  2023  2024  <20252026 
Navigate by Thread:
Prev: Re: [EXTERNAL] Disable alarm at IOC via PVAccess Maren Purves via Tech-talk
Next: OMS PC68/78 interface question James P. Withrow 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  2021  2022  2023  2024  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·