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

Subject: Re: How to handle out-of-index of MBBO/MBBI?
From: Jeong Han Lee <[email protected]>
To: [email protected]
Date: Thu, 05 Mar 2015 10:45:47 +0900
So, here I've found the solution. I add the severity to unused bit entries (from 3 to 15) as "INVALID". After this, the IOC remains calm whenever I send to it whatever. Here the db and the test results are:


* DB -----------------------------

record(mbbo, "$(SYS)-$(SUBSYS):$(DEV):SetADRate")
{
    field(DESC, "Set Predefined Rate")
    field(DTYP, "stream")
    field( OUT, "@devkeithley6514.proto setADRate $(PORT) $(A)")
    field(ZRST, "Slow")
    field(ZRVL, "0")
    field(ONST, "Med")
    field(ONVL, "1")
    field(TWST, "Fast")
    field(TWVL, "2")
    field(THSV, "INVALID")
    field(FRSV, "INVALID")
    field(FVSV, "INVALID")
    field(SXSV, "INVALID")
    field(SVSV, "INVALID")
    field(EISV, "INVALID")
    field(NISV, "INVALID")
    field(TESV, "INVALID")
    field(ELSV, "INVALID")
    field(TVSV, "INVALID")
    field(TTSV, "INVALID")
    field(FTSV, "INVALID")
    field(FTSV, "INVALID")
    field(FFSV, "INVALID")
    field(IVOA, "Don't drive outputs")
 #   field(UNSV, "INVALID")
    field(FLNK, "$(SYS)-$(SUBSYS):$(DEV):GetADRate")
}


* Test ------------------

jhlee@kaffee:~/epics/R3.14.12.4/siteApps/keithley6514$ caput ECR11-Diag:FC01:SetADRate 1 && bash test.sh

Old : ECR11-Diag:FC01:SetADRate
New : ECR11-Diag:FC01:SetADRate      Med
ECR11-Diag:FC01:SetADRate.VAL  Med
ECR11-Diag:FC01:SetADRate.RVAL 1
ECR11-Diag:FC01:SetADRate.STAT NO_ALARM
ECR11-Diag:FC01:SetADRate.SEVR NO_ALARM
ECR11-Diag:FC01:SetADRate.ACKS INVALID

jhlee@kaffee:~/epics/R3.14.12.4/siteApps/keithley6514$ caput ECR11-Diag:FC01:SetADRate -1 && bash test.sh

Old : ECR11-Diag:FC01:SetADRate      Med
New : ECR11-Diag:FC01:SetADRate      Illegal Value
ECR11-Diag:FC01:SetADRate.VAL  Illegal Value
ECR11-Diag:FC01:SetADRate.RVAL 1
ECR11-Diag:FC01:SetADRate.STAT SOFT
ECR11-Diag:FC01:SetADRate.SEVR INVALID
ECR11-Diag:FC01:SetADRate.ACKS INVALID

jhlee@kaffee:~/epics/R3.14.12.4/siteApps/keithley6514$ caput ECR11-Diag:FC01:SetADRate 5 && bash test.sh
Warning: enum index value '5' may be too large.

Old : ECR11-Diag:FC01:SetADRate      Illegal Value
New : ECR11-Diag:FC01:SetADRate
ECR11-Diag:FC01:SetADRate.VAL
ECR11-Diag:FC01:SetADRate.RVAL 0
ECR11-Diag:FC01:SetADRate.STAT STATE
ECR11-Diag:FC01:SetADRate.SEVR INVALID
ECR11-Diag:FC01:SetADRate.ACKS INVALID


  If you have any comments, please let me know.

  Thanks,
  Han


On 03/05/2015 08:59 AM, Andrew Johnson wrote:
On 03/04/2015 05:48 PM, Jeong Han Lee wrote:
By the way, in the EPICS wiki,
https://wiki-ext.aps.anl.gov/epics/index.php/RRM_3-14_Common, I see
three possible selections in Invalid Alarm Output Action section are
CONTINUE, NO_OUTPUT, and OUTPUT_IVOV.
IOC returns the following message:

Can't set "ECR11-Diag:FC01:SetADRate.IVOA" to "NO_OUTPUT"
Error at or before ")" in file "db/devkeithley6514.db" line 522

However, Michael and Chris told me to use "Don't drive outputs" and I
found three possible selections such as "Continue normally", "Don't
drive outputs", and "Set output to IVOV" in menuIvoa.dbd. No error
messages I can see in the IOC. I guess the wiki is out-of-date. Am I
correct?

Yes, although the new strings have been in place since at least 1996.  I
just fixed the Wiki. Thanks!

- Andrew


--
Jeong Han Lee, Dr.rer.nat.
---------------------------
Accelerator Systems Division
Rare Isotope Science Project
Institute for Basic Science
Daejeon, South Korea
---------------------------
tel  : +82-42-878-8733
fax  : +82-42-878-8799

References:
How to handle out-of-index of MBBO/MBBI? Jeong Han Lee
Re: How to handle out-of-index of MBBO/MBBI? Michael Davidsaver
Re: How to handle out-of-index of MBBO/MBBI? Jeong Han Lee
Re: How to handle out-of-index of MBBO/MBBI? Andrew Johnson

Navigate by Date:
Prev: Re: Problem with HDF5 plugin for areaDetector Wilkins, Stuart
Next: RE: Problem with HDF5 plugin for areaDetector Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: How to handle out-of-index of MBBO/MBBI? Andrew Johnson
Next: Errors while building medm3.1.9 GONG Yu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·