Re: [foxboro] Questions concerning IND-Block / substitution of C:B.P
- From: "Jones, Charles R. (Chuck)" <CRJones@xxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Tue, 18 Nov 2003 15:06:21 -0600
I don't understand exactly what it is that you are asking in your second
question, but I'll try to answer. =20
You stated that you wanted to get the compound and block name from the
sequence block itself. (Perhaps you have several sequence blocks with ve=
ry
similar code.) You may add strings together, but I do not know if you ca=
n
truncate or parse strings (because I've never tried). But, there is anot=
her
way.... (Isn't there always?)
Getting those values from the sequence block itself implies that they do =
not
change (within an individual block). You may establish those values in a
constant at the beginning of the program and then combine them as needed
within the code. The code may still copied from block to block, as neede=
d.
You'll just have to change the value of the constant for each block.
Further, if you are doing this because you have many blocks using the sam=
e
code, you'll probably have "include" files as well. In that case, save
yourself some time. Instead of setting the constant in the body of the c=
ode
(under CONSTANTS), put it in the "include" file and be done with it.
For example:
INDEPENDENT_SEQUENCE
CONSTANTS
CmpBlk =3D "0309:M002.";
USER_LABELS
Param : SN0001; { name of parameter )
STATEMENTS
=20
/* Here we combine the compound:block with the parameter */
CBP =3D CmpBlk,Param;
/* If you like, you can use literal strings, too */
CBP =3D CmpBlk,"AUTDSR";
ENDSEQUENCE
I may have misunderstood your question, but this is a way to get the
compound and block names from the sequence block itself. This way, you w=
ill
require only the parameter name from outside the sequence block.
Chuck Jones
Refinery Automation Technologist
Tate & Lyle North America -- Lafayette South Plant
765.477.5324 - Office | 877.536.9219 - Pager
-----Original Message-----
From: Josten@xxxxxxx [mailto:Josten@xxxxxxx]=20
Sent: Tuesday, November 18, 2003 11:34 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Questions concerning IND-Block / substitution of C:B.P
Hi list,
=3D=3D=3D=3D=3D=3D
2nd IND-Block question:
Is ist possible to truncate the name of the IND-Block given by the=20
variable "BLOCK_NAME" that I get "M002" out of "M002_SEQ"
I'd like to automate the adressing with the C:B values given by the=20
Indipendet Block itself
Any assistance will be appreceated.
Best regards
Heinz-Peter Josten
GMVT mbH
Gesellschaft f=FCr Me=DF-, Regel- und Verfahrenstechnik
Ulmer Strasse 8
D-89331 Burgau / Schwaben
*************************************************************************=
****************************
This email and any files transmitted with it are confidential and intende=
d solely for the=20
use of the individual or entity to whom they are addressed. If you are no=
t the intended=20
recipient or the person responsible for delivering the email to the inten=
ded recipient, be=20
advised that you have received this email in error that any use, dissemin=
ation,=20
forwarding, printing, or copying of this email is strictly prohibited. I=
f you have received=20
this email in error please notify the sender immediately.
Please note that we reserve the right to monitor and read any emails sent=
and=20
received by the Company in accordance with and to the extent permitted by=
=20
applicable legal rules.
*************************************************************************=
****************************
_______________________________________________________________________
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: