Use the search and browse feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Search Solutions Results By: View All Solutions

Kepware Knowledge Base: Solution


Can I connect to a localhost Modbus TCP/IP Slave device?


Last Update: 11/7/2018
Yes. Use the Modbus RTU Serial Driver with Ethernet Encapsulation (instead of the Modbus TCP/IP Ethernet Driver).


Follow these steps:

  1. Create a channel and select Ethernet Encapsulation under Communications.
  2. Select the Network Interface option.
  3. Enter the local host IP to bind it to that channel.
  4. Create the target device within that channel.
  5. Verify the slave node ID matches the target device configuration.
  6. In the device properties Ethernet Encapsulation settings, set the target device IP address to the local machine IP address.
  7. Set the Modbus TCP port to 502.
  8. Configure the device to use TCP framing with no leading or trailing bytes.
  9. 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.


Related Products
KEPServerEX, Modbus Suite