Specifications

Chapter 5 - AsconMBCommLib
161
5-3-32 MODEM_CHECK
FB Prototype
MODEM_CHECK
Input description
Output description
Description
This function block performs an operation verification on the modem connected to
the RS-232 ASCII configured port. It returns the signal strength of the GSM
connection accordingly to the standard defined by the AT commands for GSM/
GPRS wireless modems. The function block has been successfully tested with the
Ascon Tecnologic APS2MODEMEGxxx modem. It returns also detailed
information on the possible errors. The function block should be used in
conjunction with the MODEM_CONF in order to have a complete set of operations
before to proceed with the normal modem data activities.
Note: For parameter description and meaning, please search for a good reference
document about AT commands by searching the “AT commands for GSM/GPRS
wireless modem” manual from MultiTech Systems.
Default Values Table
Reference Table
Label Type Description
CHK_MODEM BOOL
Command to perform the modem operational status,
evaluated on the rising edge ONLY!!!
Label 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
SIGN_PWR INT
Modem received signal strength
indication (rssi) [num]
-1... 99
SIGN_ERR INT Modem channel bit error (ber) [num] -1… 99
CHK_MODEM
COM_PORT
BOOL
MODEM_PORT
¡
¡
BOOL
BOOL
DWORD
INT
INT
CONFIRM
ERROR
ERR_COD
E
SIGN_PWR
SIGN_ERR
¡
¡
¡
¡
¡
Input Default Value
CHK_MODEM FALSE
Output Description
ERR_CODE.0 Modem not ready or not available
ERR_CODE.1 No bytes available into the buffer
ERR_CODE.2 Modem signal error
ERR_CODE.3 Port not configured for the ASCII serial protocol
ERR_CODE.4 Peripheral driver problems
ERR_CODE.5 Unavailable number of requested bytes in the input buffer
ERR_CODE.6 Number of bytes present in the input buffer less then requested