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: how NOT to update the record
From: Tasaddaq Khan <[email protected]>
To: [email protected]
Date: Wed, 8 Jul 2015 23:59:11 +0500
Dear all

I have three records, when the value in the record "b" is "1" the value in the record c is calculated and the record d is updated as well. Upto this the things are working fine. But I want one more thing that when the b=0, the value of record "c" should become the zero (that is happening) but it should not send the value zero to the record d means at b=0 record c should be updated but it should not update the record d. I want to keep the last value of record d so that when b=1 again then record d should start from the last value that it will hold. Please tell me how to do this?

record (bi,"b"){
field(FLNK, "c")
}

record (calcout, "c"){
field(SCAN, "1 second")
field(INPA, "c")
field(INPB,"b")
field(INPC,"1")
field(CALC,"B=1?A+C:0")
field(OUT,"d PP")
}

record(calcout, "d"){
field(INPA, "c")
field(INPB,"1")
field(CALC,"A+B")
}

regards,
Tasaddaq

Replies:
RE: how NOT to update the record Mooney, Tim M.

Navigate by Date:
Prev: RE: waveform record freddie.akeroyd
Next: RE: how NOT to update the record Mooney, Tim M.
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: waveform record freddie.akeroyd
Next: RE: how NOT to update the record Mooney, Tim M.
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 ·