Use Gdev's, No need for Calc blocks, no need to invent the wheel again...... We've been using them form the start, but configured for PLB use. One block gives you the control over the valve and complete status feedback (STAIND), also has nice features for interlocking etc.... Couldn't live without them..... Kind regards Dirk "SLADE Jason -NANTICOKE" <jason.slade@xxxxxxx> Sent by: foxboro-bounce@xxxxxxxxxxxxx 04/10/2011 15:52 Please respond to foxboro@xxxxxxxxxxxxx To <foxboro@xxxxxxxxxxxxx> cc Subject [foxboro] CALCA / Foxdraw / BAD I/O Graphic Question All knowing list, Personal experience indicates that a field device with two limit switches requires 5 states to provide the operator with clear and accurate position indication at all times. These 5 states include: - open - closed - neither (midstroke/travelling) - both (oops!) - "I wish I could tell you, but I haven't got a flippin' clue" (FBM / FCM / PIO bus communication errors = CYAN) Using a CALCA block to convert the Boolean INs to mapped bits in Long Integer 1 (LO01) to drive a single bit-mapped graphic element (because layered graphics will lie like a rug), I'm having a problem coming up with a solution to the last state. For some unknown reason, steps 10 and beyond of the following logic example (or the graphic config) misses the mark. Either way, the graphic element won't turn cyan: BI01 = :NSO.CIN BI02 = :NSC.CIN STEP 1 - IN BI01 STEP 2 - OUT O01 ; BIT 1 OF LO01 ENABLES OPEN INDICATION COLOUR STEP 3 - ; STEP 4 - IN BI02 STEP 5 - OUT O02 ; BIT 2 OF LO01 ENABLES CLOSED INDICATION COLOUR STEP 6 - ; STEP 7 - AND 2 STEP 8 - OUT O03 ; BIT 3 OF LO01 ENABLES LIMIT FAULT INDICATION COLOUR AND FLASHING STEP 9 - ; WITH ALL 3 OF THESE BITS SET TO 0, THE GRAPHIC ELEMENT IS SET TO MID-STROKE COLOUR STEP 10- RBD BI01 STEP 11- RBD BI02 STEP 12- OR 2 STEP 13- BIF 16 ; NEITHER INPUT BAD, CLEAR BAD FLAG STEP 14- SBD LO01 ; INPUT(S) BAD, SET BAD FLAG STEP 15- GTO 17 STEP 16- CBD LO01 STEP 17- ; STEP 18- END What am I missing here? In advance, thanks. Jason Slade Control Technologist Protection & Control Systems Support OPG / Nanticoke GS ----------------------------------------- THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INTENDED RECIPIENT(S) AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, PROPRIETARY AND/OR CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying, conversion to hard copy or other use of this communication is strictly prohibited. If you are not the intended recipient and have received this message in error, please notify me by return e-mail and delete this message from your system. Ontario Power Generation Inc. _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave