|
|
|
@ -5,6 +5,7 @@ using Mesnac.Action.ChemicalWeighing.AutoControl.DB;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.AutoControl.Entity;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjMixManager;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.LjPlanning;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.MinAn;
|
|
|
|
|
using Mesnac.Controls.Default;
|
|
|
|
|
using Mesnac.Core.Service;
|
|
|
|
|
using System;
|
|
|
|
@ -426,7 +427,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
MessageBox.Show("当前未选择产线!");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return isReady;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -540,35 +541,42 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
switch (ControlsHelper.SingleSelect(RadioE))
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir1, 1);
|
|
|
|
|
DB2105WriteHelper.WriteManScrewH1();
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH1(value);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir1, 1);
|
|
|
|
|
DB2105WriteHelper.WriteManScrewH2();
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH1(value);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir2, 2);
|
|
|
|
|
DB2105WriteHelper.WriteManScrewH3();
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH2(value);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir2, 2);
|
|
|
|
|
DB2105WriteHelper.WriteManScrewH4();
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH2(value);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 5:
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir3, 3);
|
|
|
|
|
DB2105WriteHelper.WriteManScrewH5();
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH3(value);
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir3, 3);
|
|
|
|
|
DB2105WriteHelper.WriteManScrewH6();
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH3(value);
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir4, 4);
|
|
|
|
|
DB2105WriteHelper.WriteManScrewH7();
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH4(value);
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir4, 4);
|
|
|
|
|
DB2105WriteHelper.WriteManScrewH8();
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH4(value);
|
|
|
|
|
break;
|
|
|
|
@ -720,7 +728,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
/// <param name="recipes">物料集合</param>
|
|
|
|
|
/// <param name="steps">步骤集合</param>
|
|
|
|
|
/// <param name="materials">数据库物料记录</param>
|
|
|
|
|
private static void DryerGetValue(MCCombobox DryM, MCTextBox DryW, MCTextBox DryT,
|
|
|
|
|
private static void DryerGetValue(MCCombobox DryM, MCTextBox DryW, MCTextBox DryT,
|
|
|
|
|
List<RecipePlcView> recipes, List<DeviceMaterrial> materials, MCRadioButtonEntity RadioE)
|
|
|
|
|
{
|
|
|
|
|
int b = Convert.ToInt32(DryM.MCValue.ToString());
|
|
|
|
@ -755,5 +763,21 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 上料提示封装
|
|
|
|
|
|
|
|
|
|
private static void PowderDownSignel(bool minanResult, int num)
|
|
|
|
|
{
|
|
|
|
|
if (minanResult)
|
|
|
|
|
{
|
|
|
|
|
DialogResult result = MessageBox.Show(num + "号罐正在上料", "温馨提示:", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
|
|
|
if (result == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|