修改判定条件存在的错误

This commit is contained in:
Mr.V 2024-04-24 15:21:01 +08:00
parent 67f829258c
commit 7108d4e85b
1 changed files with 1 additions and 1 deletions

View File

@ -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"] \