Specifications
sigmadue - IEC 61131-3 Function Block Library
162
5-3-33 MODEM_CONF
FB Prototype
MODEM_CONF
Input description
Output description
Description
This function block performs the configuration and initialisation of the modem
connected to 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 and default values of the parameters has been successfully tested with the
Label Type Description Range
INIT_MODEM BOOL
Command to perform
the modem initialisa-
tion,
evaluated on the
rising edge ONLY!!!
DTE_SPEED STRING(20)
DTE speed configura-
tion string [chars]
up to 20 characters from all
the supported AT com-
mands for GSM/GPRS
wireless modem standards
DTE_FORMAT STRING(20)
Command to perform
the modem initialisa-
tion,
evaluated on the
rising edge ONLY!!!
TXT_MODE STRING(20)
DTE speed configura-
tion string [chars]
up to 20 characters from all
the supported AT com-
mands for GSM/GPRS
wireless modem standards
COM_MNGT_1 STRING(20)
DTE data format config-
uration string [chars]
up to 20 characters from all
the supported AT com-
mands for GSM/GPRS
wireless modem standards
COM_MNGT_2 STRING(20)
SMS text mode configu-
ration string [chars]
up to 20 characters from all
the supported AT com-
mands for GSM/GPRS
wireless modem standards
Output Type Description Range
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
Modem initialisation phase status value
[num]
0… 8
INIT_MODEM
COM_PORT
DTE_SPEED
DTE_FORMAT
TXT_MODE
COM_MNGT_1
COM_MNGT_2
BOOL
MODEM_PORT
STRING(20)
STRING(20)
STRING(20)
STRING(20)
STRING(20)
¡
¡
¡
¡
¡
¡
¡
BOOL
BOOL
DWORD
USINT
CONFIRM
ERROR
ERR_CODE
STATUS
¡
¡
¡
¡