Re: [foxboro] sendmsg
- From: "Jones, Charles R. (Chuck)" <CRJones@xxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Wed, 5 May 2004 13:50:03 -0500
Raymond,
I believe I gave you bad advice. Try this instead:
text1 = this is message 1
text2 = this is message 2
buffer := "text", textnumber;
MESSAGE := 'buffer';
SENDMSG (MESSAGE) TO SN0001 ;
OR:
text1 = this is message 1
text2 = this is message 2
MESSAGE := "text", textnumber;
SENDMSG ('MESSAGE') TO SN0001 ;
The single quotes will cause the string to be evaluated before the rest of
the line is processed. You may have to experiment with left quotes vs.
right quotes. I believe they are "right quotes" (apostrophe).
Option #3: You use a different algorithm.
IF textnumber = 1 THEN
MESSAGE := "this is message 1";
ELSEIF textnumber = 2 THEN
MESSAGE := "this is message 2";
ENDIF;
SENDMSG (MESSAGE) TO SN0001 ;
Chuck Jones
Refinery Automation Technologist
Tate & Lyle North America -- Lafayette South Plant
765.477.5324 - Office | 877.536.9219 - Pager
Anyone who considers arithmetical methods of producing random digits is, of
course, in a state of sin. - John von Neumann (1903-1957)
-----Original Message-----
From: raymond.roofthooft@xxxxxxxxxxxxxxx
[mailto:raymond.roofthooft@xxxxxxxxxxxxxxx]
Sent: Wednesday, May 05, 2004 9:22 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] sendmsg
Hi list
Need to send a message to a display according to a number that i recieve
I tried the folowing in sequence
text1 = this is message 1
text2 = this is message 2
MESSAGE := text1 ;
SENDMSG (MESSAGE) TO SN0001 ;
In SN0001 appears this is message 1 so far ok
when i change to
MESSAGE := "text",textnumber ;
then in SN0001 appears literal text1 in stead of this is message 1
any ideas
------------------------------------------------------------------------
BASF Antwerpen N.V.
C710
Raymond Roofthooft
Tel.: +32-3-561-3057
_______________________________________________________________________
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 email and any files transmitted with it are confidential and intended
solely for the
use of the individual or entity to whom they are addressed. If you are not the
intended
recipient or the person responsible for delivering the email to the intended
recipient, be
advised that you have received this email in error that any use, dissemination,
forwarding, printing, or copying of this email is strictly prohibited. If you
have received
this email in error please notify the sender immediately. Please note that we
reserve
the right to monitor and read any emails sent and received by the Company in
accordance with and to the extent permitted by 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: