使用搜索功能查看 Kepware 的信息库,其中包含 500 多篇知识库文章。缩小搜索结果范围,或在下面的搜索字段中输入您的查询。

或者,如果您无法找到解决方案,我们还有另一个资源:我们的 PTC eSupport Portal。 如果系统提示您登录 eSupport Portal,您可以使用“我的 Kepware”凭据。需要一个“我的 Kepware”帐户吗?在此处创建

搜索解决方案结果:
View All Solutions

Kepware Knowledge Base: Solution


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


Last Update: 2018/11/7
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