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

Subject: Dynamic limits in alarms
From: Eusebio Naif Al-Soliman Fuentes via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Wed, 05 Jul 2023 20:08:39 +0200
Hello everybody.
 
I'm new to EPICS and I have a little issue with the alarm limits.
 
I know that, if you want to set some limits for the alarms of an IOC, you just have to set the fields LOLO, LOW, HIGH and HIHI to the desired values.
 
However, I want these limits to be dynamic and depend on another variable, I have tried with the next code:
 

record(ao, "alarm_lim_dynamic:Low")
{
    field(DESC, "Test")
    field(PINI, "YES")
}

record(ao, "alarm_lim_dynamic:High")

    field(DESC, "Test")
    field(PINI, "YES")
}

record(ai, "temperature:oil")
{
    field(DESC, "Oil temperature in the engine")
    field(HIGH, "alarm_lim_dynamic:High.VAL")
    field(LOW, "alarm_lim_dynamic:Low.VAL")
    field(HSV, "MINOR")
    field(LSV, "MINOR")
}


But I'm getting the next error:


[eusebio@fedora ~]$ softIocPVA -d test2.db 
Can't set "temperature:oil.HIGH" to "alarm_lim_dynamic:High.VAL"  : No digits to convert
Error at or before ')' in path "."  file "test2.db" line 16
Can't set "temperature:oil.LOW" to "alarm_lim_dynamic:Low.VAL"  : No digits to convert
ErrordbLoadRecords: failed to load 'test2.db'
Error: Failed to load: test2.db


Can someone explain me what's wrong in my code? Thanks in advance.


--

Saludos/Best regards

University of Granada  

Eusebio Naif Al-Soliman Fuentes
MSc. Data Science and Computer Engineering

eunaif at correo.ugr.es


Replies:
Re: Dynamic limits in alarms Rolf Keitel via Tech-talk

Navigate by Date:
Prev: phoebus Tank widget: Limits from PV? Paul Sichta via Tech-talk
Next: Re: Dynamic limits in alarms Rolf Keitel 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  <20232024 
Navigate by Thread:
Prev: Re: [EXTERNAL] phoebus Tank widget: Limits from PV? Kasemir, Kay via Tech-talk
Next: Re: Dynamic limits in alarms Rolf Keitel 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  <20232024 
ANJ, 07 Jul 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·