Name Declara-
tion
Type Description
FC15_ADDR_MEMORY_START STAT WORD Modbus Function code 0Fh start register for Q0.0
Default: 20000
FC15_ADDR_MEMORY_END STAT WORD Modbus Function code 0Fh end register for Qx.y
Default: 39999
The following must be observed:
n The call parameters must be specified with the block call. Besides the call parameters
all parameters are located in the instance DB.
n The communication link must be previously initialized via FB 65 (TCON).
n FB 63 (TSEND) and FB 64 (TRCV) are required for the use of the block.
n The INPUT/OUTPUT Modbus addresses of a Function code must be located in front
of the MEMORY Modbus address and thus always be lower.
n Within a Function code no Modbus address may be defined multiple times - also not
0!
n The server can only process one job simultaneously. New Modbus requests during
job processing are ignored and not answered.
The function block reports via STATUS the following status and error information.
STATUS NDR DR ERROR Description
0000h 0 or 1* 0 Operation executed without error.
7000h 0 0 0 No connection established or communication error (TCON).
7005h 0 0 0 Data are sent.
7006h 0 0 0 Data are received.
8210h 0 0 1 The hardware is incompatible with the block library Modbus RTU/TCP.
8380h 0 0 1 Received Modbus frame does not have the correct format or bytes are
missing.
8381h 0 0 1 Exception code 01h, Function code is not supported.
8382h 0 0 1 Exception code 03h, data length or data value are not valid.
8383h 0 0 1 Exception code 02h, invalid start address or address range.
8384h 0 0 1 Exception code 04h, area length error when accessing inputs, outputs or
bit memories.
8387h 0 0 1 Connection ID (TCON) does not match the instance or client returns wrong
protocol ID.
8187h 0 0 1 MB_DATA_PTR not valid.
*) Error free Modbus job with Function code 05h, 06h, 0Fh or 10h returns NDR=1 and DR=0.
Error free Modbus job with Function code 01h, 02h, 03h, 04h return DR=1 and NDR=0.
Status and error indication
VIPA SPEED7
Modbus Communication
TCP > FB 71 - TCP_MB_SERVER - Modbus/TCP server
HB00 | OPL_SP7 | Operation list | en | 18-30 188