EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FB 73 - RTU_MB_SLAVE - Modbus RTU Slave

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3. Set M101.0 in the CPU to TRUE.
ð
The Modbus request is sent and it is waited for a response.
If M101.0 is automatically reset, the job was finished without errors and the read
data are stored in the CPU starting from bit memory byte 200. MW104 returns
7004h and indicates waiting for a new job.
If M101.0 is not automatically reset and MW104 returns non-zero, an error has
occurred. The cause of error can be read by the code of MW104 (e.g. MW104 =
8382h when the start address 2000 in the server is not available). MW102
returns 7004h and indicates waiting for a new job.
9.2.2 FB 73 - RTU_MB_SLAVE - Modbus RTU slave
9.2.2.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 slave.
Call parameter
Name Declara-
tion
Type Description
ENABLE IN BOOL Activation/Deactivation Modbus server.
HARDWARE IN BYTE 1 = System SLIO CP 040 /
2 = VIPA SPEED7 CPU
LADDR IN INT Logical address of the System SLIO CP 040 (param-
eter is ignored with the VIPA SPEED7 CPU).
MB_UNIT_ID IN BYTE Modbus: Device identification = own address (1 ...
247).
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.
NDR* OUT BOOL New data were written by the Modbus client.
DR* OUT BOOL Data were read by the Modbus client.
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 Declara-
tion
Type Description
INIT STAT BOOL With an edge 0-1 an synchronous reset is established
at the System SLIO CP 040.
REQUEST_COUNT STAT WORD Counter for each received frame.
MESSAGE_COUNT STAT WORD Counter for each valid Modbus request.
BROADCAST_COUNT STAT WORD Counter for each valid Modbus broadcast request.
VIPA SPEED7
Modbus Communication
RTU > FB 73 - RTU_MB_SLAVE - Modbus RTU slave
HB00 | OPL_SP7 | Operation list | en | 18-30 193

Table of Contents

Related product manuals