diff --git a/ProductionSystem/Forms/HomeForm.cs b/ProductionSystem/Forms/HomeForm.cs index 223ddc8..f4723a1 100644 --- a/ProductionSystem/Forms/HomeForm.cs +++ b/ProductionSystem/Forms/HomeForm.cs @@ -911,17 +911,17 @@ namespace ProductionSystem.Forms /// private void GetIdlingPointsVal() { - responsePoint = Program.CommandPointKeyValues.FirstOrDefault(m => m.Key == "M261"); - for (int i = 0; i < Program.idlingPoints.Count; i++) - { - var idlingReadResult = OmronHelper.GetPlcVal(Program.idlingPoints[i].DataType, Program.idlingPoints[i].Address); - Program.idlingPoints[i].Val = idlingReadResult.val; - } - var idlingStatus = Program.idlingPoints.FirstOrDefault(m => m.Key == "M84").Val; - if (idlingStatus == "1.000" || idlingStatus == "2.000") - { - SetMiddleData(Program.idlingPoints, "Idling", responsePoint, 3); - } + //responsePoint = Program.CommandPointKeyValues.FirstOrDefault(m => m.Key == "M261"); + //for (int i = 0; i < Program.idlingPoints.Count; i++) + //{ + // var idlingReadResult = OmronHelper.GetPlcVal(Program.idlingPoints[i].DataType, Program.idlingPoints[i].Address); + // Program.idlingPoints[i].Val = idlingReadResult.val; + //} + //var idlingStatus = Program.idlingPoints.FirstOrDefault(m => m.Key == "M84").Val; + //if (idlingStatus == "1.000" || idlingStatus == "2.000") + //{ + // SetMiddleData(Program.idlingPoints, "Idling", responsePoint, 3); + //} } /// diff --git a/ProductionSystem/SystemConfig.ini b/ProductionSystem/SystemConfig.ini index 54be8a7..863f366 100644 --- a/ProductionSystem/SystemConfig.ini +++ b/ProductionSystem/SystemConfig.ini @@ -5,7 +5,7 @@ DbPwdIsEncrypt=false DbServerIp=175.27.215.92 Port=5432 -Database=production_system2 +Database=production_system_2 UserId=postgres ##凤凰性能测试 Password=haiwei@123