Re: [foxboro] HLBL: request the BLOCK_NAME within sequencecode

Andreas,

Both BLOCK_NAME and COMPOUND_NAME are available for use within HLBL code.
To construct names of related blocks, put together a string assignment using
these values.  Then use the defined string with the usual 'blockname'
syntax.

For example:

myname := BLOCK_NAME;
blockname := "IND",myname(5..8);

value := ::'blockname'.II0001;

Regards,

Doug Lloyd
DGL Controls

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of Weiss, Andreas
Sent: Wednesday, December 21, 2005 8:00 AM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] HLBL: request the BLOCK_NAME within sequencecode

> I am not sure I understand you, but try
> =20
> MYSTRING :=3D ::BLOCK.NAME;
> =20
> where "BLOCK" is the name of the block you are trying to reference.
> =20

Hi Ashley,

the trick is that I use general include files in my code.

And I want split the "unknown" block into separat pieces. One piece of
the block name is used to generate other blocknames where I would like
to gather data from.

example:

MYNAME :=3D STRING BLOCK_NAME;
MYNAME :=3D MYNAME(5..8);

VALUEfromAnotherBlock :=3D ::IND'MYNAME'.II0001;

Andreas
 
 
_______________________________________________________________________
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: