Re: [foxboro] Sequence Block Help

John,

Declare a string variable and "build" the parameter you want to reference.
-- In the VARIABLES section:
      temp  : S;  { temporary string }


Next, build the C:B.P path in the new string variable in the STATEMENTS
section:
FOR j := 1 TO 5 DO
      temp := "B0OOO",j;
      :'temp' := TRUE;
ENDFOR;


Steve Shimp
Maintenance & Systems Engineer
ExxonMobil Paulsboro Lube Plant
Phone:  856-224-5059
Cell:  609-820-8501
Fax:  856-224-5030
Email:  steve.shimp@xxxxxxxxxxxxxx



                                                                                
                                                        
                      "ZIEGLER, JOHN E"                                         
                                                        
                      <JEZIEGLER@sunocoi        To:      "Foxboro Mailing List 
(E-mail)" <foxboro@xxxxxxxxxxxxx>                        
                      nc.com>                   cc:                             
                                                        
                      Sent by:                  Subject:       [foxboro] 
Sequence Block Help                                            
                      foxboro-bounce@fre                                        
                                                        
                      elists.org                                                
                                                        
                                                                                
                                                        
                                                                                
                                                        
                                                                                
                                                        
                      07/24/03 03:58 PM                                         
                                                        
                      Please respond to                                         
                                                        
                      foxboro                                                   
                                                        
                                                                                
                                                        
                                                                                
                                                        




I need some help with sequence block coding.  I want to turn on and off=
 several boolean outputs of a sequence code in order. =20

My first thought was to use a "FOR" loop, but I can't seem to address the=
 output correctly.  Here is what I have tried so far.

FOR j :=3D 1 TO 5 DO

   BO000j :=3D TRUE              ;  {Compiler says parameter 'BO000j' not=
 declared}
   BO000'j' :=3D TRUE            ; {Complier says parameter 'BO000' not=
 declared}
  =20
   stringvar :=3D j              ; {stringvar is a variable defined as a=
 string variable}
   BO000'stringvar' :=3D TRUE    ; {Compiler says parameter 'BO000' not=
 declared}
   ::.BO000'stringvar' :=3D TRUE ; {Compiles okay but give error 3 at run=
 time - secured variable}

ENDFOR;

Any help with this method or an alternative is very much appreciated.

Jack Ziegler
Sunoco Chemicals
Frankford Phenol Plant
Margaret & Bermuda Sts
Philadelphia, PA 19137
215-537-2450
JEZiegler@xxxxxxxxxxxxx=20


This email and any files transmitted with it are intended solely for the=
 use of the individual or entity to whom they are addressed.  If you have=
 received this e-mail in error, please notify the originator.


_______________________________________________________________________
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:             http://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:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: