α
2 Simple Application Controllers
Function Blocks 6
6 - 76
6.30
GSM/SMS Block
The GSM/SMS function block, when used with a GSM modem, provides SMS (Short Message
Service) communication between the
α
2 Series Controller and a mobile device or computer.
Pin code. Gateway and Mobile access information from an SMS Service Provider is necessary
to use the SMS function properly. The GSM/SMS function block can also be used to provide
remote access from a computer running VLS software to the remote
α
2 Series Controller.
Using the remote access option disables SMS capabilities.
Table 6.39: GMS Function Block
Function
Set Item
Description
I
Bit input pin for GSM/SMS function block operation
FB
Refer to the Communication Manual for detailed explanations
concerning the GSM functionality of the
α
2 Series controllers.
1) Detects the ON/OFF status of an input and subsequently sends
the SMS (Short Message Service) to the predefined user destination.
2) The SMS message will continue to send regardless of the input
switching OFF.
3) The input will be ignored if it turns on during:
a) an SMS transmission
b) the waiting period.
4) Communication failure (e.g. busy line) will tell the SMS function
block to retry three times in a period of two minutes.
5) If the message was not sent after the third retry, the output status
will switch to ON and an error message will be generated through the
word pin of the function block.
6) The user may experience incorrect validity period timings. Please
check with your Service Provider.
7) If both the Mobile (SMSC1) and Gateway (SMSC2) numbers are
entered, the
α
2
controller will automatically choose the correct path
number for the SMS in conjunction with the destination chosen. The
destination being either to a mobile phone (SMSC1) or an email
address (SMSC2).
Output
1) The output status will set ON when the GSM/SMS block:
a) succeeds in sending an SMS message
b) fails at sending an SMS message after three retries.
2) If more than one SMS function block exists in the program, an
FIFO (First In First Out) sequence is performed.
3) The following items are available for other function blocks:
a) SMS message sent/SMS failed to be sent after 3 attempts
b) Current Status (See 6.29.3 - Word Output)
0
0
0
M
S
O
I
S
P