【SCADA】Test KingIOServer connected to ModbusTCP device

Hello, everyone, I am Lei Gong!
Test the KingIOServer connection to the ModbusTCP device today, and record the test process below.

1. ModbusTCP device

Simulate a Modbus slave device with ModbusSlave.
1. Open the ModbusSlave software, click on the menu bar [Setup] —> [SlaveDefinition…]

insert image description here

2. Set relevant parameters.
Slave ID: Set the address of the slave station;
Function: Set the function code;
Address: Set the address of the register;
Quantity: Set the number of registers;

insert image description here

3. Click [Connection] -> [connect…] on the menu bar.

insert image description here

4.
Select [TCP/IP] for Connection Setup Connection;
TCP/IP Port: set the port;

insert image description here

Two, KingIOServer configuration

1. After creating a new IOServer project, click [Device], select [Driver Installation], and install the ModbusTCP driver.

insert image description here

2. Create a new device, set the device name, device series, type and other parameters;

insert image description here

3. Set the device address and click OK.

insert image description here

4. Create a new variable: set the basic properties.

insert image description here

5. Set the acquisition properties, and then click OK.

insert image description here

6. Then click Run to view the result value. The displayed result is consistent with the value set by ModbusSlave, indicating that the communication is normal.

insert image description here

postscript

The above is a simple communication test, other specific data types, or processing methods, etc. can be adjusted and tested according to the actual situation on site. The comparison with the collected values ​​shows that the collection configuration is normal.

Guess you like

Origin blog.csdn.net/u013097500/article/details/131504318