diff --git a/service/DetectService.py b/service/DetectService.py index 5abe413..b22d2ee 100644 --- a/service/DetectService.py +++ b/service/DetectService.py @@ -70,7 +70,7 @@ def read_loading_tags(tagsList, plc): # 开始配煤时,记录标志,准备读取掐煤量 # 注意:此处之前用 completion_coal_blending_type 从true变为false判断该读掐煤量,后发现PLC在点击“配煤重读”时,此值不准确跳动 # 故 改为 start_coal_blending_type 从false变为true时读取;效果会比前者稍慢 - if loadingTagsNamelist[index] == "start_coal_blending_type" \ + if loadingTagsNamelist[index] == "completion_coal_blending_type" \ and len(plcInfo.loadingDict_List) > track \ and loadingTagsNamelist[index] in plcInfo.loadingDict_List[track].keys() \ and plcInfo.loadingDict_List[track][loadingTagsNamelist[index]] != tag["value"] \