LF: Send SMS

Use this to send an SMS message in your Ladder.

 

Parameter Name

Purpose

A

SMS message

Select a message that has been defined in SMS>SMS Messages

B

Modem

Select a modem that has been defined in PLC Communications>Modems

C

Enable non-English SMS characters

Assign a power-up value of 1 to enable non-English SMS characters

 

 

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

Status

 

UINT32

 

Error

SMS Send Status Message

0

No errors

1

Function start

2

Function in Progress

-1

Modem only: General COM error. Please check the physical connections.

-2

Modem only: Sent message error

-3

Modem only: Telephone number format error

Note that the number cannot contain spaces.

-4

 

Modem only: 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.
Note that if the message contains list elements, and the lists contain many members, this may cause the message to exceed the maximum limit.

-5

SMS Last Error

-6

Router only: Incorrect Username or Password to Router's SMS module

-7

Router only: General Error. Resend message; if error persists, check the Router authorizations.

 

Related Topics

Send/Receive SMS Messages

SMS: Creating Messages

LF: Receive SMS

LF: Initialize Router/Modem

Configuring a Modem

Configuring a Router