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  <2025 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  <2025
<== Date ==> <== Thread ==>

Subject: IOC, QServ, and AMSG / alarm.message
From: Ivan Finch - STFC UKRI via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 13 Feb 2025 16:21:04 +0000

Hello,

 

We have setup a simple IOC with bi records triggered by forward links such as the following:

 

record(bi, "$(P):T3TP4_FAULT:STATUS")

{

      field(DESC, "InjVac Tank 3 Turbo Pump 4 Fault Status")

      field(ZNAM, "INJVAC – T3TP4 Fault")

      field(ONAM, " ")

      field(ZSV, "MAJOR")

field(INP, {pva:{pv:"$(P):T3TP4_FAULT:STATUS_C", proc:true}})

}

 

The IOC uses QServ for PVAccess and pvget -v INJ:VAC:TANKS:T3TP4_FAULT:STATUS produces:

 

INJ:VAC:TANKS:T3TP4_FAULT:STATUS epics:nt/NTEnum:1.0 
   enum_t value (0) "INJVAC - T3TP4 Fault"
       int index 0
       string[] choices ["INJVAC - T3TP4 Fault", " "]
   alarm_t alarm MAJOR DEVICE STATE 
       int severity 2
       int status 1
       string message STATE
   structure timeStamp
       long secondsPastEpoch 1738571441
       int nanoseconds 481562315
       int userTag 0

 

The alarm.message string is either “NO_ALARM” or “STATE” depending on the PV’s alarm severity.

 

Is there a way to set the alarm.message to other values, depending on the severity? In this case “NO_ALARM” is fine but in case of an alarm severity of 2 we’d like the alarm.message field to be “Tank 3 Turbo Pump 4 Fault”.

 

We’ve investigated setting the AMSG and NAMSG fields in the record, but suspect that this is intended to be set programmatically?

 

Thank you in advance for any assistance you can provide,

 

Ivan Finch

ISIS Controls


Replies:
Re: IOC, QServ, and AMSG / alarm.message Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: Archiver Appliance - Limit on PVs Eusebio Naif Al-Soliman Fuentes via Tech-talk
Next: Re: Archiver Appliance - Limit on PVs Shankar, Murali 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  <2025
Navigate by Thread:
Prev: Re: Last call for EPICS on Microsoft VS2010 and VS2012 Compilers Michael Davidsaver via Tech-talk
Next: Re: IOC, QServ, and AMSG / alarm.message Michael Davidsaver 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  <2025
ANJ, 25 Feb 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·