更新配置, 修改录波报文解析模式;

添加序列数值帧显示模式;
修复帧搜索索引越界问题;
This commit is contained in:
何 泽隆
2024-09-25 18:17:28 +08:00
parent 6ae08d96e3
commit 6964dae3f5
3 changed files with 14 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ modbus_map = {
# 4 - str
# 5 - addr
# 6 - float
0x0B: ["事件标志", 1],
0x0C: ["告警字1", 1],
0x0D: ["告警字2", 1],
0x0E: ["故障字1", 1],
@@ -48,6 +49,7 @@ modbus_map = {
0x54: ["模式更改命令" , 2],
0x55: ["短时停机命令(未启用)" , 2],
0x56: ["手动录波命令" , 2],
0x57: ["时间配置命令" , 7, 3],
0x60: ["整机运行使能", 1],
0x61: ["最小启动允许输入电压", 2],
@@ -292,7 +294,7 @@ class LaminaController:
Warning("config 配置文件格式异常")
pos += 2
config_record['LinePos'].append(pos)
len_faultword = 2 * (data_cfg_bare[3] * 0x100 + data_cfg_bare[2])
len_faultword = (data_cfg_bare[3] * 0x100 + data_cfg_bare[2])
pos += 2
config_record['FaultWord'] = []
for i in range(0, len_faultword, 2):