α
2
Simple Application Controllers
Function Blocks 6
6 - 61
The GSM Function block will send the SMS packet when the input pin is activated. To input or
edit the GSM/SMS parameters, double click on the GSM/SMS icon to open the Short Message
Service dialog box in AL-PCS/WIN-E. When two or more Function Blocks are trying to send a
message at the same time, the one to connect first will send its SMS message including three
retries if necessary. The other GSM/SMS FB(s) will be placed in “Wait” status. All the FBs will
send their messages in turn.
6.28.1 Input Signal
The
α
2
controller will send the SMS message to the chosen destination when the input pin is
activated. The operation will continue until the message is sent or the retries have been
completed even if the Input pin is turned OFF during the process. When the Input comes ON
and then resets during the send operation or when the FB is in “Wait” status, all further Input
ON signals are ignored until the Output pin has been reset.
6.28.2 Output Signal
The Output signal comes ON when the SMS message has been successfully sent or the final
retry has taken place. If the Input signal that began the operation remains ON, the Output will
remain ON. If the Input signal turns OFF during the send operation, the Output signal will
remain ON for one program scan after the send operation is complete and then turn OFF.
After the initial Input signal has turned OFF, all other input signals are ignored until the Output
has been reset.
6.28.3 Word Output
Check the status of the transmission by checking the Output Word data when connected to a
Display FB.
*1 - The most common “Wait” status conditions are when 1) another GSM FB is transmitting a
message, 2) the GSM modem has not been initialised, or 3) Remote Access by the VLS
software is taking place. After the Output is turned OFF, the Word output status will also be
reset to 0.
Note: The Word Value will be displayed in hexadecimal format but the Table is given in binary
form. If b2 is On, for example, the Output Word will display a value of 00x4 (hex). It is possible
that more than one bit will be ON simultaneously.
Table 6.5: Output Word Value
Bit
Description
b0
Transmission is Complete
b1
Transmission or retry in Progress
b2
Transmission is in “Wait” status *1
b3
Transmission Failed
b4
Transmission did not occur because of SMS Parameter Error
b5 - b15
Reserved, will always be 0