Specifications

sigmadue - IEC 61131-3 Function Block Library
164
5-3-34 MODEM_SMS_SEND
FB Prototype
MODEM_SMS_SEND
Input description
Output description
Description
This function block performs the operations needed to deliver an SMS (Short
Message Service) message up to 5 valid phone numbers trough the modem
connected the RS-232 ASCII configured port. It returns a TRUE value on the
CONFIRM output if the procedure successfully reaches the end. The function block
Label Type Description
SEND_SMS BOOL
Command to start the procedure
to send the SMS message,
evaluated on the rising edge
ONLY!!!
PHONE_NUMS USINT
Amount of phone numbers which
to send the SMS message [num]
1… 5
PHONE_NUM1 STRING(16)
1
st
phone number which to send
the SMS message [chars]
+, 0, 1, 2, 3, 4,
5, 6, 7, 8, 9, 0
PHONE_NUM2 STRING(16)
2
nd
phone number which to send
the SMS message [chars]
+, 0, 1, 2, 3, 4,
5, 6, 7, 8, 9, 0
PHONE_NUM3 STRING(16)
3
rd
phone number which to send
the SMS message [chars]
+, 0, 1, 2, 3, 4,
5, 6, 7, 8, 9, 0
PHONE_NUM4 STRING(16)
4
th
phone number which to send
the SMS message [chars]
+, 0, 1, 2, 3, 4,
5, 6, 7, 8, 9, 0
PHONE_NUM5 STRING(16)
5
th
phone number which to send
the SMS message [chars]
+, 0, 1, 2, 3, 4,
5, 6, 7, 8, 9, 0
MSG_TXT STRING(100)
Text message body to be sent
[chars]
up to 100
characters
from all the
supported AT
commands for
GSM/GPRS
wireless
modem
standards
Label Type Description
CONFIRM BOOL Function block operational status
ERROR BOOL Error status
ERR_CODE DWORD Error code [bit mask]
16#00 00 00 00…
16#FF FF FF FF)
STATUS USINT
Sequence of operation status value
[num]
0… 6
SEND_SMS
COM_PORT
PHONE_NUMS
PHONE_NUM1
PHONE_NUM2
PHONE_NUM3
PHONE_NUM4
PHONE_NUM5
MSG_TXT
BOOL
MODEM_PORT
USINT
STRING(16)
STRING(16)
STRING(16)
STRING(16)
STRING(16)
STRING(100)
¡
¡
¡
¡
¡
¡
¡
¡
¡
BOOL
BOOL
DWORD
USINT
CONFIRM
ERROR
ERR_CODE
STATUS
¡
¡
¡
¡