α
2 Simple Application Controllers
SMS/SMR/CD Functions and the Modem Setting 2
2 - 23
2.7 AL-PCS/WIN-E Program Example
2.7.1 SMS Function Block Example
Table 2.10: GSM Function Block
Note:
*1 If a number of SMS Function Blocks have been used in one program the user must take
care when calculating the message sending order. The first message to be sent depends
on the first input signal turning ON. Thus, if other messages are waiting to be sent they are
then placed in a waiting queue. However, since the waiting queue is scan dependant, if
after one scan the controller has failed to send the first message due to a busy line, thus,
the following message order is no longer dependant on input signals turning ON but is
solely dependant on the Function Block order.
Function
Set
Item
Description
I Bit input pin for GSM/SMS function block operation
FB
1) Detects the high status of an input and subsequently sends the
SMS message to the predefined user destination.
2) The SMS message will continue to send regardless of the input
switching to a low state.
3) The incoming high input will be ignored:
a) During a SMS message transmission
b) During the waiting period.
4) Communication failure (e.g. busy line) will tell the SMS function
block to retry on two further occasions in a period of two minutes.
5)On the third retry the output status will switch to ON and an error
message 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 or an email address.
Output
1) The output status will set ON:
a) In succeeding in sending a SMS message
b) In failing to send a SMS message after three retries.
2) If more than one SMS function block exists on the program, a FIFO
(First In First Out) sequence is performed. *1
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
Table 2.11: Abbreviated terms
Term Description
I SMS Function Block Input pin
O SMS Function Block Output pin
W SMS Function Block Word Output pin
I
W
O