Modem Communications-- System Bits and Integers

Relevant System Bits, System Integers, and Modem Error Messages are listed below.

Modems: General

System Bits

SB

Symbol

Description

72

Initialize Modem

Causes modem initialization. Remains ON until initialization is complete, then turns off. Note that:

  • This SB turns ON at power-up. You can disable this SB at power-up to avoid initializing the modem.

  • You may use this SB to initialize the modem at any point during your application.

73

Modem

Initialization: Succeeded

Signals that modem has been initialized. When SB 73 is ON, PLC is ready to both make and receive calls.

74

Modem

Initialization: Failed

Signals that modem initialization failed. SI 70 contains the error code.

75

Modems Connected

Turns ON when connection is established

76

Disconnect Modem

Ends call (hang-up)

77

Dial Remote Modem

Dials the phone number represented by the index number stored in SI 71

System Integers

SI

Symbol

Description

70

Modem: Error Code

Contains an error code resulting from a modem error. The list is shown below.

71

Modem: Phone Number

Contains the phone number to be dialed. You create a phone book when you configure the modem. Each phone number in the phone book is linked to an index number.

Use the Store Direct function to place the index number of desired phone number in SI 71, then activate SB 77 to dial it.

Error Messages ( SI 70)

Number

Error Message

Description

0

No Error

No error.

1

No Carrier

No carrier signal found--reason unknown. Check your communication cables.

2

Modem Did Not Reply

The modem referred to is the one on the PLC side.

3

No Dial Tone

No dial tone.

4

Line is Busy

The number dialed is engaged.

5

No Carrier While Dialing

Carrier signal was lost during dialing.

6

Modem Report

Error

May be due to an incorrect number or unknown initialization commands.

7

Modem Report Unknown Message

An unrecognized message.

8

No Phone Number

SI 71 contains a number that is not linked to any phone number stored in the phone book.

9

RS232 Port Busy

The RS232 port is already in use.

 

SMS System Bits and Integers

Listed below are the System Bits, System Integers, and Error Messages that are used by the PLC in SMS messaging.

System Bits

SB

Symbol

Description

180

Initialize GSM Modem for SMS

Turn this ON to enable SMS messaging.

181

SMS: Initialization Succeeded

Signals that GSM modem has been initialized. The modem is now ready to send and receive SMS messages.

182

SMS: Initialization Failed

Signals that GSM modem has failed. SI 180 contains the error code.

183

Send SMS

Send the string that is represented by the index number stored in SI 182, to the phone number represented by the index number stored in SI 181.

184

SMS: Transmission succeeded

Signals that SMS has been successfully transmitted

185

SMS: Transmission Failed

Signals that SMS has failed. SI 180 contains the error code

186

SMS Received

Signals that a defined SMS has been received. SI 183 contains the index number identifying the origin of the SMS, if this number has been stored in the SMS phone book. If the number is not found, SI 183 equals 0.

SI 184 contains the index number of the SMS string that has been received. Only messages that have been defined in the SMS messages list can be received by the PLC.

187

Error in Received SMS

This bit signals one of the errors listed below. SI 180 contains the error code.

188

 

Ignore Received SMS

Allows the user to block reception of SMS messages

189

Print SMS message

This prints a message with CR (Carriage Return) & LF (Line Feed)

190

Print SMS message

This prints a message with LF (Line Feed)

191

Print SMS message

This prints a message without CR (Carriage Return) or LF (Line Feed)

192

Get GSM antenna signal quality

Get GSM antennae signal quality. The signal quality is contained in SI 185 GSM Signal Quality.

193

Delete SMS messages from SIM

Deletes SMS messages from the SIM card. When used alone, the default number of messages is 20. Using SB 193 in conjunction with SI 187, Number of SMS messages to be deleted, enables you to delete up to 30 SMS messages.

194

Print SMS message

This prints a message including STX and ETX.

System Integers

SI

Symbol

Description

180

SMS Error Code

Contains an error code resulting from a SMS error. The list is shown below

181

SMS: Send to Phone Number

Contains the index number of a phone number within the GSM phone book. Use the Store Direct function to place the index number of the desired phone number in SI 181.

Storing the value '0' into SI 181 causes a message to be sent to the last number to which an SMS message was sent.

When auto-acknowledge is selected, the number 7 will be automatically placed into S1 181 when the SMS is acknowledged.

182

SMS: String Number to Send

Contains the index number that represents the SMS string to be sent. Use the Store Direct function to place the index number of the desired SMS string in SI 182.

183

Origin of Received SMS

Contains the index number that represents the phone number from which the SMS was sent. If this number is not defined in the GSM phone book, SI 183 will contain 0.

184

Received SMS String

Contains the index number that represents the SMS that has been received. If this number is not defined in the SMS message list, SI 184 will contain 0.

185

GSM Signal Quality

GSM antenna signal quality. If this is less than 11, reposition the antenna. You can use SB 192, Get GSM antennae signal quality,together with this SI.

187

Number of SMS messages to be deleted

 Using SB 193 in conjunction with the new SI 187, Number of SMS messages to be deleted, enables you to delete up to 30 SMS messages.

Error Messages (SI 180)

Number

Error Message

Description

0

No error

No error found

1

GSM Modem Not Initialized

The GSM modem was not initialized. Before using the SMS feature the modem must be initialized. Refer to relevant help sections.

2

GSM Modem Did Not Reply

The GSM modem referred to is the one on the PLC side.

3

Modem Reports Unknown Message

Modem returns an unrecognized reply

5

Wrong PIN number

The Personal Identification Number that was given does not match that of the SIM card installed in the PLC's GSM modem.

6

Failed Registration

GSM modem did not register successfully, for example if no network was found, or if the modem antenna is not functioning.

7

No Phone Number

SI 181 contains a number that is not linked to any phone number stored in the GSM phone book.

8

Transmit: Undefined String number

SI 182 contains a string number that is not linked to any string number stored in the SMS Messages List.

9

Unauthorized Origin

This SMS string has been transmitted from an unauthorized phone number.

11

Illegal String Received

The string received is not linked to any string stored in the SMS Messages List.
SI 184 will contain 0.

14

RS232 Port Busy

The RS232 port is already in use; for example, the modem is currently connected.

16

SMS not successfully sent to all numbers

The SMS message was not successfully sent to all the phone numbers for which it was configured.

17

PUK number needed

The SIM card is locked due to too many attempts to enter an incorrect PIN number.