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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How to implement simple control algorithm (one more question)
From: "Ilya V. Kitaev" <[email protected]>
To: "Kalantari Babak" <[email protected]>
Cc: [email protected]
Date: Fri, 5 Dec 2008 11:29:15 +0300
Hi,
Thank you for your answer.
I'd like to ask one more question:
Is it ok to break 40 chars limit in CALC field( or another text fields
like DESC) ?
I've changed this limit  to 200 in calcoutRecord.dbd, db_access.c and
epicsTypes.h (MAX_STRING_SIZE define) and it works ok.

2008/12/3, Kalantari Babak <[email protected]>:
> Hi,
>
> You do not need to write your own CA application for that.
>
> Monitor alarm status of your "ai" with a "calcout" record and write to
> your "bo" upon occurrence of the conditions.
> This can be done for example as the following:
>
> record(calcout, "$(ALGORITHM)")
> {
>         field(INPA,"$(YOUR_AI_REC).STAT CP") # monitoring
>         field(INPB,"$(YOUR_BO_REC).VAL NPP")
>         field(CALC, "A=3?1:A=5?0:B")
>         field(OOPT, "On Change")
>         field(OUT,"$(YOUR_BO_REC) PP")
> }
>
> Alarm status value for HIHI is 3 and for LOLO is 5.
>
> HTH,
> Babak

Replies:
RE: How to implement simple control algorithm (one more question) Kalantari Babak
RE: How to implement simple control algorithm (one more question) Dalesio, Leo

Navigate by Date:
Prev: Re: NTP-Time on RTEMS(vxWorks) Problem Andrew Johnson
Next: RE: How to implement simple control algorithm (one more question) Kalantari Babak
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Records not in Base Nicholas P. DiMonte
Next: RE: How to implement simple control algorithm (one more question) Kalantari Babak
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·