SMS

Concept Link IconSee also

Manages sending text messages.

WebVue support - Yes.

Mode

Mnemonic

Syntax

1

SEND

1

Syntax 1

SMS(Mode, SmsProfile, PhoneNumbers, Subject, Message [, Format]);

Return type: INTEGER.

Argument

Meaning

SmsProfile The name of an SMS profile as configured in Actions.Messages.SMS Profiles. Type STR.
PhoneNumbers A list of the phone numbers of the recipients, using semicolon (;) as the separator between the phone numbers. Type STR.
Subject The subject of the message. Type STR.
Message The body of the message. Type STR.
Format

The message format (optional) Type INTEGER.

0: Auto (default value)

1: Text

2: PDU 7-bit

3: Unicode.

For an explanation of the Format argument and the size limits for messages in each format, see the topic Actions.Event actions.Configuring an event to send a message.Configuring the SMS Options

If executed on WebVue the SMS is sent from the WebVue back end.

Execution

Mode

Mnemonic

Action

1

SEND

Set up a message for sending via SMS.

    Return: 0 if successful, else 1. The sending status is recorded in the system variable.

Example

sub main ()

end sub

 

sub SendSms ()

SMS("SEND", "SMSPROFILE1","0033687867361","Scada Basic test", "Message sent by SV");

end sub

 

sub AddSms ()

EVENT ("ADDSMS", "SBSEND","", "", "BitSmsSB", 1, "MSGTEMPLATE1");

end sub

 

sub DelSms ()

EVENT("DELSMS","SBSEND");

end sub