User guide

eWON 500-2001-4001-4002 User Guide - Programming the eWON
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 162
9.2.65 REM
Syntax [command]
REM free text
Purpose:
This command enables the insertion of a line of comment in the program. The interpreter does not consider the line.
Example:
9.2.66 RTRIM
Syntax[Command]
RTRIM S1
• S1 is a copy of a string.
Purpose:
RTRIM returns a copy of a string with the rightmost spaces removed.
Example:
See also:
“LTRIM” on page 149
9.2.67 SENDMAIL
Syntax[command]
SENDMAIL S1,S2,S3,S4
• S1 is the E-mail address of the recipients (TO). Multiple recipients can be entered separated by ‘;’.
• S2 is the E-mail address of the recipient Carbon Copies (CC). Multiple recipients can be entered separated by ‘;’.
• S3 is the subject of the message.
• S4 is the content of the message.
Purpose:
This command posts a scheduled action request for an Email generation. When the function returns, the GETSYS PRG,"ACTIONID" returns the
ID of the scheduled action and allows tracking this action. It is also possible to program an ONSTATUS action that will be called when the action
is finished (with or without success). The S4 message content follows a special syntax that allows sending attachments and inserting Export data
inside the content itself. (See also chapter “Export block descriptor” on page 192). The content field (S4) syntax can content any number of
[EXPORT_BLOCK_DESCRIPTOR], these blocks will be replaced by their actual content.
Example:
PRINT a%
REM we can put whatever comment we want here
a%=2: REM Set a% to 2
b$ = RTRIM a$
S4 = "Event Log data [$dtEV] And a real time table: [$dtRL $ftT $tnMyTag]"
Rem will generate an Email with [$dtEV] and [$dtRL…] replaced by the actual data.