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); }