From 7108d4e85be4ca93e5b7108b0127c1d62c9cac4b Mon Sep 17 00:00:00 2001 From: "Mr.V" Date: Wed, 24 Apr 2024 15:21:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E5=AE=9A=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=AD=98=E5=9C=A8=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/DetectService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] \