EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FB 71 - TCP_MB_SERVER - Modbus;Tcp Server

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...
5. 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. MW108 returns
7004h and indicates waiting for a new job.
If M101.0 is not automatically reset and MW108 returns non-zero, an error has
occurred. The cause of error can be read by the code of MW108 (e.g. MW108 =
8382h when the start address 2000 in the server is not available). MW108
returns 7004h and indicates waiting for a new job.
9.1.2 FB 71 - TCP_MB_SERVER - Modbus/TCP server
9.1.2.1 Description
This function allows the operation of an Ethernet interface as Modbus/TCP server.
Call parameter
Name Declara-
tion
Type Description
ENABLE IN BOOL Activation/Deactivation Modbus server.
MB_DATA_PTR IN ANY Modbus: Data buffer (only flag area or data block of
type Byte allowed) for access with function code 03h,
06h and 10h.
ID IN WORD ID from TCON.
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
REQUEST_COUNT STAT WORD Counter for each received frame.
MESSAGE_COUNT STAT WORD Counter for each valid Modbus request.
XMT_RCV_COUNT STAT WORD Counter for each received frame, which contains no
valid Modbus request.
EXCEPTION_COUNT STAT WORD Counter for each negatively acknowledged Modbus
request.
SUCCESS_COUNT STAT WORD Counter for each positively acknowledged Modbus
request.
FC1_ADDR_OUTPUT_START STAT WORD Modbus Function code 01h start register for Q0.0
Default: 0
VIPA SPEED7
Modbus Communication
TCP > FB 71 - TCP_MB_SERVER - Modbus/TCP server
HB00 | OPL_SP7 | Operation list | en | 18-30 186

Table of Contents

Related product manuals