dep_yangw
我叫锄头 11 months ago committed by frankiecao
commit e105943619

@ -1,6 +1,6 @@
namespace ProductionSystem.Forms namespace ProductionSystem.Forms
{ {
partial class HomeForm partial class HomeFormInfo
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

@ -38,7 +38,7 @@ using System.Collections;
namespace ProductionSystem.Forms namespace ProductionSystem.Forms
{ {
public partial class HomeForm : XtraForm public partial class HomeFormInfo : XtraForm
{ {
private readonly DicService _dicService = new DicService(); private readonly DicService _dicService = new DicService();
private readonly ParaColumnConfigService _paraColumnConfigService = new ParaColumnConfigService(); private readonly ParaColumnConfigService _paraColumnConfigService = new ParaColumnConfigService();
@ -60,7 +60,7 @@ namespace ProductionSystem.Forms
CancellationToken cureCancellationToken; CancellationToken cureCancellationToken;
public HomeForm() public HomeFormInfo()
{ {
InitializeComponent(); InitializeComponent();
// Program.ProtocolDeviceHelper = new ProtocolDeviceHelper(); // Program.ProtocolDeviceHelper = new ProtocolDeviceHelper();
@ -1992,6 +1992,65 @@ namespace ProductionSystem.Forms
{ {
head = GetPlcValue("D1100").ToDouble().ToInt(); 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"; control.TestResultText = "NG";
break; break;
} }
//control.TestResultBackColor = Color.Red;
} }

@ -177,7 +177,7 @@ namespace ProductionSystem.Forms
case "bar_BtnShowIndex"://首页 case "bar_BtnShowIndex"://首页
if (!CheckHasMdiChildForm("HomeForm")) if (!CheckHasMdiChildForm("HomeForm"))
{ {
HomeForm homeForm = new HomeForm HomeFormInfo homeForm = new HomeFormInfo
{ {
MdiParent = this, MdiParent = this,
Dock = DockStyle.Fill Dock = DockStyle.Fill

@ -234,11 +234,11 @@
<Compile Include="Forms\CommonForms\MyBaseForm.Designer.cs"> <Compile Include="Forms\CommonForms\MyBaseForm.Designer.cs">
<DependentUpon>MyBaseForm.cs</DependentUpon> <DependentUpon>MyBaseForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Forms\HomeForm.cs"> <Compile Include="Forms\HomeFormInfo.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Forms\HomeForm.Designer.cs"> <Compile Include="Forms\HomeFormInfo.Designer.cs">
<DependentUpon>HomeForm.cs</DependentUpon> <DependentUpon>HomeFormInfo.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Forms\MainForm.cs"> <Compile Include="Forms\MainForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
@ -435,8 +435,8 @@
<EmbeddedResource Include="Forms\CommonForms\MyBaseForm.resx"> <EmbeddedResource Include="Forms\CommonForms\MyBaseForm.resx">
<DependentUpon>MyBaseForm.cs</DependentUpon> <DependentUpon>MyBaseForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Forms\HomeForm.resx"> <EmbeddedResource Include="Forms\HomeFormInfo.resx">
<DependentUpon>HomeForm.cs</DependentUpon> <DependentUpon>HomeFormInfo.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Forms\MainForm.resx"> <EmbeddedResource Include="Forms\MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon> <DependentUpon>MainForm.cs</DependentUpon>

Loading…
Cancel
Save