ð
The server responds with 60 byte starting from MB220. DR is set for one CPU
cycle and thus M101.2 is set to "1".
8. The client sends a Modbus request with Function code 05h start address 5008 and
the value FF00h.
ð
The server acknowledges the request and writes "1" to the output Q1.0. NDR is
set for one CPU cycle and thus M101.1 is set to "1".
9. The client sends a Modbus request with Function code 03h start address 50 (does
not exist) and quantity 1.
ð
The server responds with Exception code 02h an sets ERROR/STATUS for one
CPU cycle. MW108 returns 8383h.
9.2 RTU
9.2.1 FB 72 - RTU_MB_MASTER - Modbus RTU master
9.2.1.1 Description
This function block allows the operation of the internal serial RS485 interface of a
SPEED7 CPU from VIPA or a System SLIO CP 040 as Modbus RTU master.
Call parameter
Name Declaration Type Description
REQ IN BOOL Start job with edge 0-1.
HARDWARE IN BYTE 1 = System SLIO CP 040 /
2 = VIPA SPEED7 CPU
LADDR IN INT Logical address of the System SLIO CP 040 (parameter is ignored
with the VIPA SPEED7 CPU).
MB_UNIT_ID IN BYTE Modbus: Device identification = Address of the slave (0 ... 247).
MB_FUNCTION IN BYTE Modbus: Function code.
MB_DATA_ADDR IN WORD Modbus: Start address or Sub function code.
MB_DATA_LEN IN INT Modbus: Number of register/bits.
MB_DATA_PTR IN ANY Modbus: Data buffer (only flag area or data block of data type byte
allowed) for access with function code 03h, 06h and 10h.
DONE* OUT BOOL Job finished without error.
BUSY OUT BOOL Job is running.
ERROR* OUT BOOL Job is ready with error - parameter STATUS has error information.
STATUS* OUT WORD Extended status and error information.
*) Parameter is available until the next call of the FB
Parameter in instance DB
Name Declaration Type Description
INIT STAT BOOL With an edge 0-1 an synchronous reset is established at the System
SLIO CP 040. After a successful reset the bit automatically reset.
VIPA SPEED7
Modbus Communication
RTU > FB 72 - RTU_MB_MASTER - Modbus RTU master
HB00 | OPL_SP7 | Operation list | en | 18-30 190