Modbus TCP模拟器Windows / Linux

问题描述 投票:1回答:3

我正在寻找一个优秀的Modbus over TCP模拟器与GUI尝试两个单独的PC(一个主人,其他作为奴隶)。我发现只有Simply Modbus,但这个只作为主人。有什么建议?

simulator modbus modbus-tcp
3个回答
0
投票

您可以尝试从这里免费下载的Modbus协议测试仪(主站):http://www.colwaysolutions.com/modbus-protocol-tester.php

对于从站,您可以在http://www.colwaysolutions.com以“C”源代码形式找到Modbus RTU和TCP从站实现。

由于实现是ANSI'C',您可以轻松地将其移植到任何控制器。

从站支持以下11个功能代码。

Read Coils(0x01),

Read Discrete Input(0x02),

Read Holding register(0x03),

Read Input register(0x04),

write single coil(0x05),

write multiple coils(0x0F),

write multiple registers(0x10),

write single register(0x06),

Read exception status(0x07),

Report slave ID(0x11),

Read/write multiple registers(0x17)

它们还提供移植服务,以便将库移植到您的电路板并以最低成本工作。

使用Modbus Protocol tester (master)WIN32(C source code) Modbus slave,您可以在两台不同的PC之间建立客户端/服务器Modbus通信。


0
投票

有一个名为Unslave的免费Modbus RTU/TCP slave simulator工具。

它不支持GUI,而是支持简单的基于JSON的配置,您可以在其中设置这样的从站:

"slaves": {
    "1": {
        "isOnline": true,
        "registers": {
            "HR0": 1,
            "HR10": "0x0A",
            "C0": true,
            "C999": {exception: 3}
        }
    }
}

它还显示链接上所有通信的日志以简化调试:

2017/06/06 17:21:54.310 - TRACE: Byte received: 1. Total: 1
2017/06/06 17:21:54.310 - TRACE: Byte received: 3. Total: 2
2017/06/06 17:21:54.310 - TRACE: Byte received: 0. Total: 3
2017/06/06 17:21:54.326 - TRACE: Byte received: 60. Total: 4
2017/06/06 17:21:54.326 - TRACE: Byte received: 0. Total: 5
2017/06/06 17:21:54.326 - TRACE: Byte received: 1. Total: 6
2017/06/06 17:21:54.342 - TRACE: Byte received: 68. Total: 7
2017/06/06 17:21:54.358 - TRACE: Byte received: 6. Total: 8
2017/06/06 17:21:54.363 - INFO: Modbus frame received: [1 3 0 60 0 1 68 6]
2017/06/06 17:21:54.363 - INFO: Reading value: 1HR60 = 14119
2017/06/06 17:21:54.363 - INFO: Modbus frame sent: [1 3 2 55 39 238 110]

0
投票

http://www.modbustools.com/download.html 他们有Modbus轮询和Modbus从模拟器。免费试用。

© www.soinside.com 2019 - 2024. All rights reserved.