EasyManua.ls Logo

YASKAWA VIPA SPEED7 - Page 185

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...
STATUS DONE BUSY ERROR Description
818Dh 0 0 1 Server returns wrong transaction ID.
8200h 0 0 1 Another Modbus request is processed at the time via the
port (PROTOCOL_TIMEOUT).
9.1.1.2 Example
With Function code 03h, starting from address 2000, 100 register are to be read from a
Modbus/TCP server and stored in flag area starting from MB200. Errors are to be stored.
CALL FB 65 , DB65
REQ :=M100.0
ID :=W#16#1
DONE :=M100.1
BUSY :=
ERROR :=M100.2
STATUS :=MW102
CONNECT:=P#DB255.DBX 0.0 BYTE 64
UN M 100.2
SPB ERR1
L MW 102
T MW 104
ERR1: NOP 0
U M 100.1
R M 100.0
CALL FB 70 , DB70
REQ :=M101.0
ID :=W#16#1
MB_FUNCTION :=B#16#3
MB_DATA_ADDR:=W#16#7D0
MB_DATA_LEN :=100
MB_DATA_PTR :=P#M 200.0 BYTE 200
DONE :=M101.1
BUSY :=
ERROR :=M101.2
STATUS :=MW106
UN M 101.2
SPB ERR2
L MW 106
T MW 108
ERR2: NOP 0
U M 101.1
R M 101.0
1. Calling of FB 65 (TCON) to establish a communication connection with the partner
station.
2. Calling the handling block of the Modbus/TCP client with the correct parameters.
3. There is no connection to the partner station and MW102 returns 7000h.
4. Set M100.0 in the CPU to TRUE.
ð
If M100.0 is automatically reset, the connection to the partner station is estab-
lished and MW108 returns 7004h.
Task
OB1
OB1 - Description
VIPA SPEED7
Modbus Communication
TCP > FB 70 - TCP_MB_CLIENT - Modbus/TCP client
HB00 | OPL_SP7 | Operation list | en | 18-30 185

Table of Contents

Related product manuals