α
2 Simple Application Controllers
Function Blocks 6
6 - 77
1 ) SMS Operation Timing Diagram
*Communication failure will tell the GSM/SMS FB to retry three times in two minutes.
2 ) Sample VLS Program: SMS - Retry Sending Data
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 or attempt to
send its message three times. The other GSM/SMS FB(s) will be placed in “Wait” status. All
the FBs will send their messages in turn.
SMS Message
Output pin
*
SMS
Message
Input pin
SMS
Message
*
*
1 scan time
Transmission request is ignored
while sending SMS Message.
I01
I02
Send
Request
Stop Retry
PL
SR
FL
O01
O02
O03
OR
Reset
priority
From Off
to On
1
2
3
• Output: Continous
• On time:
120.1s (1201
×
100ms)
• Off time:
0.1s (1
×
100ms)
SMS
CP
Completed
Current status=1
(Bit 0=ON)
4
≤
Current status
≤
7
(Bit 2=ON)
8
≤
Current status
≤
15
(Bit 3=ON)
Current status
≥
16
(Bit 4 = ON)
ZC
ZC
CP
CP
Current status=2
(Bit 1=ON)
O04
O06
O05
OR
1
2
3
S
R