dathlin / HslCommunication

A very popular industrial Internet of Things communication plug-in. Using this dll can be very convenient, stable, and fast to obtain data from PLC equipment of multiple brands, and also supports redis, mqtt, websocket, etc., which can let your data on the network Free transmission, reducing enterprise development costs.
http://www.hslcommunication.cn
1.56k stars 612 forks source link

关于ADS读取指定长度的位,结果问题 #36

Open Karlvision opened 1 year ago

Karlvision commented 1 year ago

ADS位读取
例如 M100.0 ,长度10 ,布尔类型 获取结果 [M100.0] [False,False] 报文: [调试] 2023-01-16 22:38:15.836 Thread [003] BeckhoffAdsServer[10086] : [127.0.0.1:10766] Tcp 接收:00 00 2C 00 00 00 C0 A8 A3 08 01 01 53 03 C0 A8 A3 09 01 01 BD 80 02 00 04 00 0C 00 00 00 00 00 00 00 12 00 00 00 21 40 00 00 20 03 00 00 0A 00 00 00 [调试] 2023-01-16 22:38:15.836 Thread [003] BeckhoffAdsServer[10086] : [127.0.0.1:10766] Tcp 发送:00 00 2A 00 00 00 C0 A8 A3 09 01 01 BD 80 C0 A8 A3 00 01 01 53 03 02 00 05 00 0A 00 00 00 00 00 00 00 12 00 00 00 00 00 00 00 02 00 00 00 00 00

而且第18个字节为0,不明白为什么?