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  <20112012  2013  2014  2015  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: EDM and record processing
From: "Szalata, Zenon M." <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 6 Jul 2011 21:12:16 -0700

This is resend of a previously sent question.  Subject is now added and a comment at the end.

 

I have a few pairs of bo records.  For simplicity let’s consider only one pair, record A and record B.  The requirement is that if A is true, then B is not allowed to process.  When A is false, then B can process.  In addition, I also have an EDM screen with two toggle buttons; toggle A control record A and toggle B controls record B.

This is how I attempted implementing this:

 

record( bo, "BO:A"){

  field( ZNAM, "off")

  field( ONAM, "on")

  field( FLNK, "DF:A")

  field( PINI, "YES")

}

record( dfanout, "DF:A"){

  field( DOL,  "BO:A")

  field( OMSL, "closed_loop")

  field( OUTA, "BO:B.DISA")

}

record( bo, "B"){

  field( DISV, "1")

  field( ZNAM, "off")

  field( ONAM, "on")

}

 

This record set seems to works correctly.  The communication between the EDM buttons and the records does not work correctly, at least from my point of view.  This is what I see:

 

I start the test IOC and an EDM screen.

Both A and B records are in false state.

I set A to true by clicking on toggle button A.  DISA is set to 1 in record B.  So, now both DISV and DISA are 1 and the record now does not process.

However, I click on toggle B and button goes to an on visual state, this conveys wrong information to the operator.

If I click toggle B again, the visual state does not change.

This behavior is observed each time toggle A changes from off to on.

It is actually worse than that.  Clicking on B to put it in on state while A is off, then clicking on A to put it in on state, leads to a badly confused state of record B and toggle B, when toggle B is clicked again.  In this case the visual aspect of toggle changes to off, record B does not process and still is in true (on) state.

 

My goal is to provide operators with an EDM screen such that when record A is in true (on) state, then record B will not process, but also that this denial of processing will be reflected in the visual representation of the toggle button that controls record B.

 

I first tried this with two bo records, where in record B I put SDIS link to get the value from record A.  The results were the same.

 

Any suggestions on how to overcome this difficulty, or some different approach which produces correct results, are most welcome.

Thanks in advance,

Zen


Replies:
Re: EDM and record processing Andrew Johnson
Re: EDM and record processing Ned Arnold

Navigate by Date:
Prev: [no subject] Szalata, Zenon M.
Next: PPC603 / PPC604 differences? Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: [no subject] Szalata, Zenon M.
Next: Re: EDM and record processing Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·