Experimental Physics and Industrial Control System
Hi tech-talk,
I am having trouble getting an MBBI record to handle the values
I set in the ZRVL, ONVL, TWVL, ..., FFVL fields. I am new to EPICS
so maybe the error is in my understanding, but here goes...
I have built a database which contains an mbbi record that receives
its input from an analog input record which in turn receives its
input from a hardware input addressed to an address on a PLC.
The PLC address is for a 16 bit word which will at most have only
one bit on. Thus the values for the word (in decimal) would be:
0 (no bits on), 1, 2, 4, 8, 16, 32, 64, 128, ..., 16384, 32768.
I set up the ZRVL thru FFVL fields to correspond to these numbers and
set the corresponding strings ZRST thru FFST to be the string
descriptions for the 16 states.
For the first three values (0, 1, 2) the behaviour is as expected -
the ZRST, ONST and TWST strings as displayed. But inputting a 3
(where THVL=4) displays the THST! Inputting a 4 displays the FRST
and on and on all the way up to 15. Entering a value larger than 15,
e.g. the value 16384 which is assigned to FTVL, leads to the string
"INVALID VALUE" being displayed.
Looking at the properties for the mbbi record loaded on the mv167,
I can see "SDEF" = 1, but the behaviour is as if none of the
states have been defined and that they have been assigned the values
0 thru 15 for me.
Dayle Kotturi [email protected] Gemini 8-m Telescopes Project
Software Engineer 1-808-933-7165 (v) 180 Kinoole St. Suite 207
1-808-933-7123 (f) Hilo, HI 96720
- Navigate by Date:
- Prev:
EPICS and PPC Andy Foster
- Next:
Re: Setting States for an MBBI Record Ned Arnold
- 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
- Navigate by Thread:
- Prev:
EPICS and PPC Andy Foster
- Next:
Re: Setting States for an MBBI Record Ned Arnold
- 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