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 During a job processing the instance DB is blocked for other clients.
n During job processing changes to the input parameters are not evaluated.
n With the following conditions a job processing is completed or cancelled:
– DONE = 1 job without error
– ERROR = 1 job with error
– Expiration of RCV_TIMEOUT
– REQ = FALSE after expiration of PROTOCOL_TIMEOUT
n REQ is reset before DONE or ERROR is set or PROTOCOL_TIMEOUT has expired,
STATUS 8200h is reported. Here the current job is still processed.
The function block reports via STATUS the following status and error information.
STATUS DONE BUSY ERROR Description
0000h 1 0 0 Operation executed without error.
7000h 0 0 0 No connection established or communication error (TCON).
7004h 0 0 0 Connection established and monitored. No job active.
7005h 0 1 0 Data are sent.
7006h 0 1 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 has an invalid length.
8381h 0 0 1 Server returns Exception code 01h.
8382h 0 0 1 Server returns Exception code 03h or wrong start address.
8383h 0 0 1 Server returns Exception code 02h.
8384h 0 0 1 Server returns Exception code 04h.
8386h 0 0 1 Server returns wrong Function code.
8387h 0 0 1 Connection ID (TCON) does not match the instance or
server returns wrong protocol ID.
8388h 0 0 1 Server returns wrong value or wrong quantity.
80C8h 0 0 1 No answer of the server during the duration
(RCV_TIMEOUT).
8188h 0 0 1 MB_FUNCTION not valid.
8189h 0 0 1 MB_DATA_ADDR not valid.
818Ah 0 0 1 MB_DATA_LEN not valid.
818Bh 0 0 1 MB_DATA_PTR not valid.
818Ch 0 0 1 BLOCKED_PROC_TIMEOUT or RCV_TIMEOUT not valid.
Status and error indication
VIPA SPEED7
Modbus Communication
TCP > FB 70 - TCP_MB_CLIENT - Modbus/TCP client
HB00 | OPL_SP7 | Operation list | en | 18-30 184