|
|
|
@ -38,7 +38,7 @@ using System.Collections;
|
|
|
|
|
|
|
|
|
|
namespace ProductionSystem.Forms
|
|
|
|
|
{
|
|
|
|
|
public partial class HomeForm : XtraForm
|
|
|
|
|
public partial class HomeFormInfo : XtraForm
|
|
|
|
|
{
|
|
|
|
|
private readonly DicService _dicService = new DicService();
|
|
|
|
|
private readonly ParaColumnConfigService _paraColumnConfigService = new ParaColumnConfigService();
|
|
|
|
@ -60,7 +60,7 @@ namespace ProductionSystem.Forms
|
|
|
|
|
|
|
|
|
|
CancellationToken cureCancellationToken;
|
|
|
|
|
|
|
|
|
|
public HomeForm()
|
|
|
|
|
public HomeFormInfo()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
// Program.ProtocolDeviceHelper = new ProtocolDeviceHelper();
|
|
|
|
@ -1992,6 +1992,65 @@ namespace ProductionSystem.Forms
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1100").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
//电流采集值
|
|
|
|
|
if (testResultPoint.Address == "D1202")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1102").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(paraCategory == "BZ2")
|
|
|
|
|
{
|
|
|
|
|
//电压采集值
|
|
|
|
|
if (testResultPoint.Address == "D1204")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1104").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
//电流采集值
|
|
|
|
|
if (testResultPoint.Address == "D1206")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1106").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (paraCategory == "BZ3")
|
|
|
|
|
{
|
|
|
|
|
//电压采集值
|
|
|
|
|
if (testResultPoint.Address == "D1208")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1108").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
//电流采集值
|
|
|
|
|
if (testResultPoint.Address == "D1210")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1110").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (paraCategory == "BZ4")
|
|
|
|
|
{
|
|
|
|
|
if (testResultPoint.Address == "D1224")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1226").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (paraCategory == "BZ5")
|
|
|
|
|
{
|
|
|
|
|
if (testResultPoint.Address == "D1214")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1114").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (paraCategory == "BZ6")
|
|
|
|
|
{
|
|
|
|
|
if (testResultPoint.Address == "D1216")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1116").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (paraCategory == "BZ7")
|
|
|
|
|
{
|
|
|
|
|
if (testResultPoint.Address == "D1212")
|
|
|
|
|
{
|
|
|
|
|
head = GetPlcValue("D1112").ToDouble().ToInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2113,7 +2172,7 @@ namespace ProductionSystem.Forms
|
|
|
|
|
control.TestResultText = "NG";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//control.TestResultBackColor = Color.Red;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|