配置文件

dep
我叫锄头 12 months ago
parent efe8b51f19
commit 0eb4538f6a

@ -911,17 +911,17 @@ namespace ProductionSystem.Forms
/// </summary>
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);
//}
}
/// <summary>

@ -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

Loading…
Cancel
Save