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  2015  2016  2017  2018  <20192020  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  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: calc record odd behavior
From: Ralph Lange via Tech-talk <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Wed, 30 Jan 2019 09:20:48 +0100


On Tue, 29 Jan 2019 at 18:00, Johnson, Andrew N. via Tech-talk <[email protected]> wrote:

On 1/29/19 10:09 AM, Bruno Martins via Tech-talk wrote:
> CALC's value is initially 1, as expected. However, if I do "caput CALC
> 0", a monitor event is never issued again when CALC.VAL goes back to
> being 1. Shouldn't a monitor event be issued in this case?
Your "caput CALC 0" is pointed at the VAL field, which has some special
handling.
[...]

One could say that the VAL field of a CALC record is not intended to be written to, as its value will always be updated by the result of the calculation.

The same effect (with the same possible surprise about unexpected behavior) applies to all output record types that don't consider VAL as the original source of the value to write, but calculate VAL using some algorithm, e.g. from base:
  • the calcout record as it does the same as the calc,
  • the mbboDirect record that overwrites VAL with the or'ed up Bn fields,
  • the sel record that overwrites VAL with the result of the selection algorithm.

Would making the VAL field SPC_NOMOD make the behavior more clear by rejecting writes? Feels like it could have side effects that break existing databases, though...

Cheers,
~Ralph



Replies:
Re: calc record odd behavior Johnson, Andrew N. via Tech-talk
References:
calc record odd behavior Bruno Martins via Tech-talk
Re: calc record odd behavior Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: Symantec legacy certificate makes EPICS wiki untrusted Hill, Bruce via Tech-talk
Next: EPICS CSS with OPC UA Abhijit Bhopale via Tech-talk
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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: calc record odd behavior Bruno Martins via Tech-talk
Next: Re: calc record odd behavior Johnson, Andrew N. via Tech-talk
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  <20192020  2021  2022  2023  2024 
ANJ, 30 Jan 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·