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  <20142015  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  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: mbboDirect problems
From: Eric Norum <[email protected]>
To: Mark Rivers <[email protected]>
Cc: EPICS mailing list <[email protected]>
Date: Mon, 8 Sep 2014 15:07:33 -0700
Thanks for the quick analysis.  I’m not 100% sure that that meets the “principle of least surprise”, but it does explain what I’m seeing.  For now I’ve taken Ned Arnold’s suggest to set PINI=YES.  In the long run I’ll get rid of all word-writes and have nice screens with individual bit controls.

On Sep 8, 2014, at 3:01 PM, Mark Rivers <[email protected]> wrote:

I think that is the way the mbboRecord works.  This is from the process() function:
 
        if(prec->nsev < INVALID_ALARM
        && prec->sevr == INVALID_ALARM
        && prec->omsl == menuOmslsupervisory) {
            /* reload value field with B0 - B15 */
            int offset = 1, i;
            unsigned char *bit = &(prec->b0);
            for (i=0; i<NUM_BITS; i++, offset = offset << 1, bit++) {
                if (*bit)
                    prec->val |= offset;
                else
                    prec->val &= ~offset;
            }
        }
        /* convert val to rval */
        convert(prec);
 
If I read this correctly then the first time the record processes sevr==INVALID_ALARM so it will overwrite the VAL field with the Bn fields.
 
Mark

-- 
Eric Norum
[email protected]


References:
mbboDirect problems Eric Norum
RE: mbboDirect problems Mark Rivers
Re: mbboDirect problems Eric Norum
RE: mbboDirect problems Mark Rivers
Re: mbboDirect problems Eric Norum
RE: mbboDirect problems Mark Rivers

Navigate by Date:
Prev: Re: mbboDirect problems Andrew Johnson
Next: RE: scalcout with streamDevice - request for guidance and example Linda.Pratt
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: mbboDirect problems Mark Rivers
Next: Re: mbboDirect problems Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·