WF-2026 Quick Start RevB1.0 2016/09
6/8
Access I/O data
01
、
Connection with Modbus TCP utility
a. Open Modbus TCP utility and key in the IP address as "192.168.255.1",
Port as "502". Finally, press the "Connect" button.
Figure9
:
Modbus TCP utility Connection interface
02
、
The following Modbus command function codes are available for
WF-2000 series control
Table 2: Modbus request command list
FC1 Read
multiple coils
status (0xxxx)
for DO
FC2 Read
multiple input
discrete (1xxxx)
for DI
FC3 Read
multiple registers
(4xxxx) for AO
FC4 Read
multiple input
registers (3xxxx)
for AI
FC15 Force
multiple coils
(0xxxx) for DO
FC16 Write
multiple registers
(4xxxx) for AO
Byte 0
Net ID
Byte 1
FC=0x01
FC=0x02
FC=0x03
FC=0x04
FC=0x0F
FC=0x10
Byte 2-3
Reference number
Byte 4-5
Bit count
Bit count
Word count
Word count
Bit count
Word count
Byte 6
N/A
N/A
N/A
N/A
Byte count (B)
Byte count (B)
Byte 7-( B+6)
N/A
N/A
N/A
N/A
Data to be written
Register values
03
、
Modbus TCP request command examples
a. Read multiple coils status (0xxxx) for DO
b. Force multiple coils (0xxxx) for DO