zhaopeiym / IoTClient

This is an IoT device communication protocol implementation client, which will include common industrial communication protocols such as mainstream PLC communication reading, ModBus protocol, and Bacnet protocol. This component is open source and free for life, using the most relaxed MIT open source agreement, you can modify and commercial use at will (commercial use please evaluate and test). 这是一个物联网设备通讯协议实现客户端,将会包括主流PLC通信读取、ModBus协议、Bacnet协议等常用工业通讯协议。本组件终身开源免费,采用最宽松的MIT开源协议,您可以随意修改和商业使用(商业使用请做好评估和测试)。
MIT License
1.3k stars 414 forks source link

西门子批量写入正常,但返回result中有错误信息:写入数据数量和响应结果数量不一致 #30

Closed jedtang closed 1 year ago

jedtang commented 1 year ago

如题,示例代码返回result中Err为: 写入数据数量和响应结果数量不一致,写入数据:3 响应数量:1

zhaopeiym commented 1 year ago

那批量写入的值,都能正确读取吗?

jedtang commented 1 year ago

抱歉,目前看起来只是写入IotClient Tools的虚拟服务才出现的问题,读取正常,谢谢!

jedtang commented 1 year ago

V1.1.0 版本模拟和PLC响应不相同,如下: [10:01:03]开启仿真模拟服务 [10:09:03]连接关闭 [10:09:13]连接成功 耗时:2.1705ms [10:09:32][请求报文]03 00 00 48 02 F0 80 32 01 00 00 00 01 00 26 00 11 05 03 12 0A 10 02 00 01 00 01 84 00 9D 80 12 0A 10 02 00 01 00 01 84 00 9D 88 12 0A 10 02 00 01 00 01 84 00 9D 90 00 04 00 08 01 00 00 04 00 08 02 00 00 04 00 08 03 [10:09:32][响应报文]03 00 00 16 02 F0 80 32 03 00 00 00 01 00 02 00 01 00 00 05 01 FF

[10:17:05]关闭仿真模拟服务 [10:17:20]连接关闭 [10:17:21]连接成功 耗时:13.8332ms [10:17:23][请求报文]03 00 00 48 02 F0 80 32 01 00 00 00 01 00 26 00 11 05 03 12 0A 10 02 00 01 00 01 84 00 9D 80 12 0A 10 02 00 01 00 01 84 00 9D 88 12 0A 10 02 00 01 00 01 84 00 9D 90 00 04 00 08 01 00 00 04 00 08 02 00 00 04 00 08 03 [10:17:23][响应报文]03 00 00 18 02 F0 80 32 03 00 00 00 01 00 02 00 03 00 00 05 03 FF FF FF