Re: [foxboro] HLBL question

  • From: "Johnson, Alex P (IOM)" <alex.johnson@xxxxxxxxxxxxxxxx>
  • To: "foxboro@xxxxxxxxxxxxx" <foxboro@xxxxxxxxxxxxx>
  • Date: Tue, 19 Jan 2010 21:10:41 -0600

Tim,

I can't think of any possible benefit to the code as written. 

As Dave mentions, it will be quite slow if the CBP referenced is in a different 
CP since the block will suspend twice (once for each external reference). 

I once had a client complain that his shutdown logic took too long to execute - 
10s. It was 20 lines of like this:

C01:B.P := FALSE;
...
C20:B.P := FALSE;

which does in fact take 20s to complete if the block has a 0.5s PERIOD>


I wonder if this might have been done to take advantage of the timing? If so, a 
WAIT statement would be better.


One more point, even internal references aren't fast. If you have a lot of 
internal references in a row, you might be surprise at the load they place on 
the CP. 


Regards,
 
Alex Johnson
Invensys Process Systems
10900 Equity Drive
Houston, TX 77041
+1 713 329 8472 (desk)
+1 713 329 1600 (operator)
+1 713 329 1944 (SSC Fax)
+1 713 329 1700 (Central Fax)
alex.johnson@xxxxxxxxxxxxxxxx

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On 
Behalf Of Lowell, Timothy
Sent: Tuesday, January 19, 2010 6:10 PM
To: 'foxboro@xxxxxxxxxxxxx'
Subject: [foxboro] HLBL question

Oh, HLBL gurus,
We have some HLBL code at one of our sites that looks like this:

IF :CMP:BLOCK.MA THEN
                :COMP:BLOCK.MA := FALSE;
ENDIF;

So, If the .MA parameter is true (block is in AUTO), then set the .MA parameter 
to false (set block to MANUAL).  If the block is already in MANUAL, move on.

Is this superior in any way, shape, or form to one simple command:

:CMP:BLOCK.MA := FALSE;

meaning, go ahead and send the command to set the .MA parameter to false, even 
if it is already false?

We're thinking that in the first case, the IND block has to go and grab the 
status of the .MA parameter, and then if it is true, change it, but if not, 
leave it alone.  We can't figure out why that would be better than just sending 
a .MA := FALSE command no matter what.  Either way, the IND block is 
interacting with the Object Manager at least once, and in the first case 
possibly twice, while in the second case you know that it will only interact 
with the Object Manager once, even if it doesn't need to.

Any thoughts?  Does reading from the OM in an IND block take up significantly 
fewer resources that writing to it?

Tim Lowell
Tesoro Companies, Inc.
19100 RidgeWood Parkway
San Antonio, TX 78259
210-626-4929 (w)
210-253-0225 (c )
timothy.lowell@xxxxxxxxxxx<mailto:timothy.lowell@xxxxxxxxxxx>


 
 
_______________________________________________________________________
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
 


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpdesk@xxxxxxxxxxxxx This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).


 
 
_______________________________________________________________________
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
 

Other related posts: