From 2936c88b49a98cb2c223b49cd02ddf21aa5dd075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Wed, 13 Mar 2024 16:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionSystem/Forms/HomeForm.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ProductionSystem/Forms/HomeForm.cs b/ProductionSystem/Forms/HomeForm.cs index f4723a1..2176268 100644 --- a/ProductionSystem/Forms/HomeForm.cs +++ b/ProductionSystem/Forms/HomeForm.cs @@ -935,11 +935,11 @@ namespace ProductionSystem.Forms var speedUp1ReadResult = OmronHelper.GetPlcVal(Program.speedUp1Points[i].DataType, Program.speedUp1Points[i].Address); Program.speedUp1Points[i].Val = speedUp1ReadResult.val; } - var speedUp1Status = Program.speedUp1Points.FirstOrDefault(m => m.Key == "M129").Val; - if (speedUp1Status == "1.000" || speedUp1Status == "2.000") - { - SetMiddleData(Program.speedUp1Points, "SpeedUp1", responsePoint, 3); - } + //var speedUp1Status = Program.speedUp1Points.FirstOrDefault(m => m.Key == "M129").Val; + //if (speedUp1Status == "1.000" || speedUp1Status == "2.000") + //{ + // SetMiddleData(Program.speedUp1Points, "SpeedUp1", responsePoint, 3); + //} } /// @@ -953,11 +953,11 @@ namespace ProductionSystem.Forms var speedUp2ReadResult = OmronHelper.GetPlcVal(Program.speedUp2Points[i].DataType, Program.speedUp2Points[i].Address); Program.speedUp2Points[i].Val = speedUp2ReadResult.val; } - var speedUp2Status = Program.speedUp2Points.FirstOrDefault(m => m.Key == "M143").Val; - if (speedUp2Status == "1.000" || speedUp2Status == "2.000") - { - SetMiddleData(Program.speedUp2Points, "SpeedUp2", responsePoint, 3); - } + //var speedUp2Status = Program.speedUp2Points.FirstOrDefault(m => m.Key == "M143").Val; + //if (speedUp2Status == "1.000" || speedUp2Status == "2.000") + //{ + // SetMiddleData(Program.speedUp2Points, "SpeedUp2", responsePoint, 3); + //} } ///