EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  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  Index 1994  1995  <19961997  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 
<== Date ==> <== Thread ==>

Subject: Re: CALC record question
From: [email protected] (Tim Mooney)
To: [email protected], [email protected]
Date: Fri, 29 Mar 1996 12:31:54 -0600
re...,

> I am trying to reset a value used in a calculation record
> from a button on a 'dm' screen. The CALC field is set to
> A+1 and the VAL field is looped back to INPA, so that continual
> processing of the calculation record gives: 1, 2, 3, 4, etc.
> 
> I want a button on a 'dm' screen such that when it is pressed, the
> above calculation starts again at 0. I thought this should be easy
> but haven't managed it yet. 
>
> I tried letting the button press put the
> value 0 into INPB and changing CALC to B*{A+1} so that, 
> normally B=1 and we have as before. When the button is
> pressed, the record processes once with B=0 and then the
> whole thing starts again. 

You mean the 'dm' button writes '0' to the "B" field, not to the "INPB"
field, right?

> This doesn't work.
> I suppose because the above means that INPB needs to take two 
> inputs (the first, a hardwired 1, the second a 0 put into B when 
> the button is pressed). 
> In this case, how can the calculation record know which value it is 
> supposed to be using? Or am I going about this in totally the wrong way?

You have to arrange for B to contain '0' only until the reset
succeeds.  The calc record could FLNK to a BO record that puts
(NPP) a '1' into the B field.

You might also just write '0' to the VAL field, but the value change
would be immediate, rather than synchronous.

Tim Mooney


Navigate by Date:
Prev: Re: CapFast: New Menus / Rules Files Bret Goodrich
Next: Re: CALC record question Rozelle Wright
Index: 1994  1995  <19961997  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: Re: CALC record question Marty Kraimer
Next: Re: CALC record question Rozelle Wright
Index: 1994  1995  <19961997  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·