From 064a1f7510656b7271fdb6006bc2a989b6340c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=94=84=E5=A4=B4?= Date: Thu, 18 Apr 2024 16:23:55 +0800 Subject: [PATCH] CollectData --- ProductionSystem/Forms/HomeFormInfo.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ProductionSystem/Forms/HomeFormInfo.cs b/ProductionSystem/Forms/HomeFormInfo.cs index 1e5443b..9fa84b5 100644 --- a/ProductionSystem/Forms/HomeFormInfo.cs +++ b/ProductionSystem/Forms/HomeFormInfo.cs @@ -1177,7 +1177,7 @@ namespace ProductionSystem.Forms if (par == "BZ4") { t.Xll = GetPlcValue("D1224"); - t.Xllzt = GetPlcValue("D1226"); + t.Xllzt = GetPlcValue("D1226").ToDouble().ToInt() == 1 ? "OK" : "NG"; //t.Step = "步骤4"; _result2Service.AddTResult2(t); @@ -1188,7 +1188,7 @@ namespace ProductionSystem.Forms { t.Xll = GetPlcValue("D1214"); - t.Xllzt = GetPlcValue("D1114"); + t.Xllzt = GetPlcValue("D1114").ToDouble().ToInt() == 1 ? "OK" : "NG"; //t.Step = "步骤5"; _result2Service.AddTResult2(t); @@ -1198,7 +1198,7 @@ namespace ProductionSystem.Forms if (par == "BZ6") { t.Xll = GetPlcValue("D1216"); - t.Xllzt = GetPlcValue("D1116"); + t.Xllzt = GetPlcValue("D1116").ToDouble().ToInt() == 1 ? "OK" : "NG"; //t.Step = "步骤6"; _result2Service.AddTResult2(t); } @@ -1206,7 +1206,7 @@ namespace ProductionSystem.Forms if (par == "BZ7") { t.Xll = GetPlcValue("D1212"); - t.Xllzt = GetPlcValue("D1112"); + t.Xllzt = GetPlcValue("D1112").ToDouble().ToInt() == 1 ? "OK" : "NG"; //t.Step = "步骤7"; _result2Service.AddTResult2(t); }