DLT645协议解析器及modbus CRC和DLT CS校验码计算,支持两种输入格式,带空格和不带空格。默认需要安装微软VS2012发布包。
比如输入FE FE FE FE 68 AA AA AA AA AA AA 68 13 00 DF 16,解析出结果如下:
[11-05 08:39:58:676] 输入数据: FE FE FE FE 68 AA AA AA AA AA AA 68 13 00 DF 16
[11-05 08:39:58:681] 类型=上1结算日C相反向有功电能
[11-05 08:39:58:685] 类型值=76
[11-05 08:39:58:689] 获取结果= 0.00
另外可按键获取如下CRC
[11-05 08:39:58:697] ***********************************************
[11-05 08:40:08:268] 输入数据:FE FE FE FE 68 AA AA AA AA AA AA 68 13 00 DF 16
[11-05 08:40:08:276] DLT645 CRC=0xCC
[11-05 08:40:08:283] ***********************************************
[11-05 08:40:10:813] 输入数据:FE FE FE FE 68 AA AA AA AA AA AA 68 13 00 DF 16
[11-05 08:40:10:821] CRC(Modbus)=0x6FE5 [HIGH LOW]=[6F E5]
[11-05 09:05:30:239] 输入数据: 68 30 65 00 00 00 00 68 11 04 33 33 33 33 46 16
[11-05 09:05:30:247] 类型=当前组合有功总电能
[11-05 09:05:30:254] 类型值=1
[11-05 09:05:30:264] 获取结果= 0.00
[11-05 09:06:25:098] 输入数据: 68 29 65 00 00 00 00 68 91 08 35 36 36 33 C9 CC 36 33 C9 16
[11-05 09:06:25:112] 类型=上2结算日组合无功1费率3电能
[11-05 09:06:25:127] 类型值=11
[11-05 09:06:25:142] 获取结果=399.96
[11-05 09:33:10:453] 输入数据: FE FE FE FE 68 29 65 00 00 00 00 68 11 04 35 35 34 33 44 16
[11-05 09:33:10:460] 类型=上2结算日正向有功费率2电能
[11-05 09:33:10:467] 类型值=5
[11-05 09:33:10:476] 获取结果= 0.00
[11-05 09:33:10:484] ***********************************************
[11-05 09:33:32:065] 输入数据: FEFEFEFE68296500000000681104353534334416
[11-05 09:33:32:074] 类型=上2结算日正向有功费率2电能
[11-05 09:33:32:086] 类型值=5
[11-05 09:33:32:097] 获取结果= 0.00
1