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…]
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;
3. Click [Connection] -> [connect…] on the menu bar.
4.
Select [TCP/IP] for Connection Setup Connection;
TCP/IP Port: set the port;
Two, KingIOServer configuration
1. After creating a new IOServer project, click [Device], select [Driver Installation], and install the ModbusTCP driver.
2. Create a new device, set the device name, device series, type and other parameters;
3. Set the device address and click OK.
4. Create a new variable: set the basic properties.
5. Set the acquisition properties, and then click OK.
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.
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.