Kepware Knowledge Base: Solution
Can I connect to a localhost Modbus TCP/IP Server device?
Last Update: 18.03.2021
Yes. Use the Modbus RTU Serial Driver with Ethernet Encapsulation (instead of the Modbus TCP/IP Ethernet Driver).
Follow these steps:
- Create a channel and select Ethernet Encapsulation under Communications.
- Select the Network Interface option.
- Enter the local host IP to bind it to that channel.
- Create the target device within that channel.
- Verify the server node ID matches the target device configuration.
- In the device properties Ethernet Encapsulation settings, set the target device IP address to the local machine IP address.
- Set the Modbus TCP port to 502.
- Configure the device to use TCP framing with no leading or trailing bytes.
- Verify the server can now use the Modbus RTU Serial Driver to communicate through the selected network adapter, then back inward at itself for any Modbus servers responding to the requested device ID.
©
2022
PTC Inc. Alle Rechte vorbehalten.