Kepware Knowledge Base: Solution
Can I connect to a localhost Modbus TCP/IP Slave device?
Last Update: 2018/11/07
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 slave 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 slaves responding to the
requested device ID.
©
2021
PTC Inc. All Rights Reserved.