Here's some sample code for you.
APP_NAME : SN0001; { Name of DMC application }
CNTDWN : SN0009; { AOA reference for CNTDWN }
...
{ This stores the destination tag as a string into CNTDWN}
CNTDWN := APP_NAME,":DMCOP.CNTDWN";
{ This clears the count down timer. Note the use of : and ' }
:'CNTDWN' := 0;
You can use string variables rather than parameters. I like to use the
parameters as a debugging aid.
Hope this helps.
Regards,
Alex Johnson
10707 Haddington
Houston, TX 77063
713.722.2859(v)
713.722.2700(sb)
713.932.0222(f)
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: Baltus, C.J.M. [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 1:27 PM
To: Foxboro DCS mailing list (E-mail)
Cc: Wilfred Kram (E-mail)
Subject: Variable selection in a sequence
Hi All, (I think this is the standard opening)
I will introduce myself first, I am a DCS engineer working for 2
years with
Foxboro IA, in a small wet country.
I am following this list since I started with Foxboro IA and I saw
many
problems solved. Now here is my problem (perhaps its a stupid one,
but I'm
breaking my wooden shoe on it).
I want to make a variable selection in a sequence, its written in
SFC.
First I made a macro called:
PUMP1 :TEST:GDEV1.AUTDSR
PUMP2 :TEST:GDEV2.AUTDSR
Then I made a variable called:
PUMP and attached to BOOL
In the first selection I want
PUMP := PUMP1;
the following step:
PUMP := TRUE;
and when I return to the beginning I perhaps want PUMP select to:
PUMP := PUMP2;
the following step:
PUMP := TRUE;
But what I tried, it didn't work, has someone got a solution ?? This
will be
written for a selection of 32 posibilties
With Kind Regards,
Cor-Jan Baltus
DCS Engineer
KH-AMEC Engineering
Bergen op Zoom
the Netherlands
* [EMAIL PROTECTED]
---****:-)** ******---
-----------------------------------------------------------------------
This list is neither sponsored nor endorsed by the Foxboro Company.
All
postings from this list are the work of list subscribers and no
warranty
is made or implied as to the accuracy of any information
disseminated
through this medium. By subscribing to this list you agree to hold
the
list sponsor(s) blameless for any and all mishaps which might occur
due to
your application of information received from this mailing list.
To be removed from this list, send mail to
[EMAIL PROTECTED]
with "unsubscribe foxboro" in the Subject. Or, send any mail to
[EMAIL PROTECTED]
-----------------------------------------------------------------------
This list is neither sponsored nor endorsed by the Foxboro Company. All
postings from this list are the work of list subscribers and no warranty
is made or implied as to the accuracy of any information disseminated
through this medium. By subscribing to this list you agree to hold the
list sponsor(s) blameless for any and all mishaps which might occur due to
your application of information received from this mailing list.
To be removed from this list, send mail to
[EMAIL PROTECTED]
with "unsubscribe foxboro" in the Subject. Or, send any mail to
[EMAIL PROTECTED]