SMS message can contain both fixed text and variables.
Note |
The length of the SMS message is limited by whether you have enabled non-English SMS characters in the Send SMS Ladder Element. |
Select SMS Messages in the Solution Explorer.
Click the Add New SMS button.
Click the SMS message to open it up and define it.
From the Toolbox, select elements to add to the message, and configure these elements via the Properties Window.
Add phone numbers by clicking the Message header icon to open the properties window, and then click Phone Numbers Collection.
Click Add New Phone Number, and link a String-ASCII data tag.
SMS Message Struct
When you create an SMS message, UniLogic automatically creates a supporting struct.
Name |
Data Type |
Definition |
|
Send:Success |
Bit |
ON=Sent Successfully |
|
Send: Fail |
Bit |
ON=Send Failed |
|
Initialization Status
|
UINT32
|
Error |
Message |
0 |
No errors |
||
1 |
Function start |
||
2 |
Function in Progress |
||
-1 |
General COM error. Please check the physical connections. |
||
-2 |
Sent message error |
||
-3 |
Telephone number format error Note that the number cannot contain spaces. |
||
-4 |
Parse Message error. This may result because: - The elements in the message may contain a 'null' character - Message length exceed the maximum limit,150 for English-only, 70 for non-English characters. |