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  <20092010  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  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Alarm Limits
From: "Owens, PH \(Peter\)" <[email protected]>
To: "Pierrick Hanlet" <[email protected]>, <[email protected]>
Date: Thu, 19 Mar 2009 11:47:07 -0000
Pierrick,

Yes it is possible.

You need to spcify the OUT fields of the calcout records.

You cannot set the HIHI HIGH LOLO LOW fields to links.

Pete


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Pierrick Hanlet
> Sent: 19 March 2009 11:10
> To: [email protected]
> Subject: Alarm Limits
> 
> 
> 
> Hi,
> Can one use the output of a calc or a calcout routine to set 
> values for HIHI, HIGH,
> LOW, and LOLO?  When I load my database, I always get errors 
> in these lines.  Is
> there some sort of special incantation that I must do?
> 
> Here's what I have.  I've used camonitor to check that all of 
> the records leading
> up to and including the calc records work as expected.  For 
> the calcout routines,
> I have a value between 0<= VAL <=1 for ILimMajor and 
> ILimMinor.  The calcout
> records appear to do what I want them to do:
> 
> ======================================
> record(calcout, "$(user):calcQ1I_HiHi") {
> 	field(DESC, "Q1 I Max Major limit")
> 	field(PREC, "3")
> 	field(INPA, "$(user):Q1SetCurrent.VAL  NPP NMS")
> 	field(INPB, "$(user):ILimMajor.VAL  NPP NMS")
> 	field(CALC, "A+(A*B)")
> }
> record(calcout, "$(user):calcQ1I_High") {
> 	field(DESC, "Q1 I Max Minor limit")
> 	field(PREC, "3")
> 	field(INPA, "$(user):Q1SetCurrent.VAL  NPP NMS")
> 	field(INPB, "$(user):ILimMinor.VAL  NPP NMS")
> 	field(CALC, "A+A*B")
> }
> record(calcout, "$(user):calcQ1I_Low") {
> 	field(DESC, "Q1 I Min Minor limit")
> 	field(PREC, "3")
> 	field(INPA, "$(user):Q1SetCurrent.VAL  NPP NMS")
> 	field(INPB, "$(user):ILimMinor.VAL  NPP NMS")
> 	field(CALC, "A-A*B")
> }
> record(calcout, "$(user):calcQ1I_LoLo") {
> 	field(DESC, "Q1 I Min Major limit")
> 	field(PREC, "3")
> 	field(INPA, "$(user):Q1SetCurrent.VAL  NPP NMS")
> 	field(INPB, "$(user):ILimMajor.VAL  NPP NMS")
> 	field(CALC, "A-A*B")
> }
> record(ai, "$(user):Q1ReadCurrent") {
> 	field(DESC, "Q1 Magnet Readback Current")
> 	field(PREC, "3")
> 	field(INP,  "$(user):rampQ1Current.VAL NPP NMS")
> 	field(EGUF, "10")
> 	field(EGU,  "A")
> 	field(HOPR, "2000")
> 	field(LOPR, "0")
> 	field(HIHI, "$(user):calcQ1I_HiHi.VAL")
> 	field(HIGH, "$(user):calcQ1I_High.VAL")
> 	field(LOW,  "$(user):calcQ1I_Low.VAL")
> 	field(LOLO, "$(user):calcQ1I_LoLo.VAL")
> 	field(HHSV, "MAJOR")
> 	field(HSV,  "MINOR")
> 	field(LSV,  "MINOR")
> 	field(LLSV, "MAJOR")
> 	field(FLNK, "$(user):Q1RampCurrent.PROC")
> }
> ======================================
> Thanks,
> Pierrick
> 
> 
> --------------------------------------------------------------
> ---------------------------
> Pierrick Hanlet
> Fermilab, P.O. Box 500, M.S. 122
> Batavia, IL 60510
> [email protected]
> (630)840-5555/8871/6039         office/lab/fax 
> http://www-d0.fnal.gov/~hanlet 
> 
> "Whether you think you can or think you can't, either way, 
> you are correct" -- Henry Ford
> 
> 
> 


References:
Alarm Limits Pierrick Hanlet

Navigate by Date:
Prev: Re: Starting multiple SNL programs Martin L. Smith
Next: RE: Alarm Limits Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Alarm Limits Pierrick Hanlet
Next: RE: Alarm Limits Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·