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 interface to be used must be configured before:
– VIPA System SLIO CP 040: Configuration as "Modbus master RTU" with 60 byte
IO-Size in the hardware configuration.
– Internal serial RS485 interface of a VIPA CPU:
Configuration via SFC 216 (SER_CFG) with protocol "Modbus master RTU".
n FB 60 SEND and FB 61 RECEIVE (or FB 65 SEND_RECV) are required for the use
of the block, even if the internal serial RS485 interface of a CPU from VIPA is used.
n During job processing changes to the input parameters are not evaluated.
n Broadcast request via MB_UNIT_ID = 0 are only accepted for writing functions.
n With the following conditions a job processing is completed or cancelled:
– DONE = 1 job without error
– ERROR = 1 job with error
– Expiration of time-out (parameterization at the interface)
n If REQ is reset before DONE or ERROR is set, 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.
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.
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.
8388h 0 0 1 Server returns wrong value or quantity.
80C8h 0 0 1 No answer of the server during the defined duration (time-out parameter-
izable via interface).
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.
8201h 0 0 1 HARDWARE not valid.
8202h 0 0 1 MB_UNIT_ID not valid.
8200h 0 0 1 Another Modbus request is processed at the time via the port.
Status and error indication
VIPA SPEED7
Modbus Communication
RTU > FB 72 - RTU_MB_MASTER - Modbus RTU master
HB00 | OPL_SP7 | Operation list | en | 18-30 191