|
|
@ -743,57 +743,57 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
|
|
|
|
PowderDownSignel(MinAnPlc.Heir1, 1);
|
|
|
|
PowderDownSignel(MinAnPlc.Heir1, 1);
|
|
|
|
DB2105WriteHelper.WriteSetValueH1(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueL1(value);
|
|
|
|
DB2105WriteHelper.WriteH(1, "L", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(1, "L", true);
|
|
|
|
// DB2105WriteHelper.WriteManScrewH1();
|
|
|
|
// DB2105WriteHelper.WriteManScrewH1();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
case 2:
|
|
|
|
PowderDownSignel(MinAnPlc.Heir1, 1);
|
|
|
|
PowderDownSignel(MinAnPlc.Heir1, 1);
|
|
|
|
DB2105WriteHelper.WriteSetValueH1(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueR1(value);
|
|
|
|
DB2105WriteHelper.WriteH(1, "R", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(1, "R", true);
|
|
|
|
// DB2105WriteHelper.WriteManScrewH2();
|
|
|
|
// DB2105WriteHelper.WriteManScrewH2();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
PowderDownSignel(MinAnPlc.Heir2, 2);
|
|
|
|
PowderDownSignel(MinAnPlc.Heir2, 2);
|
|
|
|
DB2105WriteHelper.WriteSetValueH2(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueL2(value);
|
|
|
|
DB2105WriteHelper.WriteH(2, "L", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(2, "L", true);
|
|
|
|
// DB2105WriteHelper.WriteManScrewH3();
|
|
|
|
// DB2105WriteHelper.WriteManScrewH3();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
case 4:
|
|
|
|
PowderDownSignel(MinAnPlc.Heir2, 2);
|
|
|
|
PowderDownSignel(MinAnPlc.Heir2, 2);
|
|
|
|
DB2105WriteHelper.WriteSetValueH2(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueR2(value);
|
|
|
|
DB2105WriteHelper.WriteH(2, "R", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(2, "R", true);
|
|
|
|
// DB2105WriteHelper.WriteManScrewH4();
|
|
|
|
// DB2105WriteHelper.WriteManScrewH4();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
case 5:
|
|
|
|
PowderDownSignel(MinAnPlc.Heir3, 3);
|
|
|
|
PowderDownSignel(MinAnPlc.Heir3, 3);
|
|
|
|
DB2105WriteHelper.WriteSetValueH3(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueL3(value);
|
|
|
|
DB2105WriteHelper.WriteH(3, "L", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(3, "L", true);
|
|
|
|
//DB2105WriteHelper.WriteManScrewH5();
|
|
|
|
//DB2105WriteHelper.WriteManScrewH5();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
case 6:
|
|
|
|
PowderDownSignel(MinAnPlc.Heir3, 3);
|
|
|
|
PowderDownSignel(MinAnPlc.Heir3, 3);
|
|
|
|
DB2105WriteHelper.WriteSetValueH3(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueR3(value);
|
|
|
|
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteH(3, "R", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(3, "R", true);
|
|
|
|
// DB2105WriteHelper.WriteManScrewH6();
|
|
|
|
// DB2105WriteHelper.WriteManScrewH6();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
case 7:
|
|
|
|
PowderDownSignel(MinAnPlc.Heir4, 4);
|
|
|
|
PowderDownSignel(MinAnPlc.Heir4, 4);
|
|
|
|
DB2105WriteHelper.WriteSetValueH4(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueL4(value);
|
|
|
|
DB2105WriteHelper.WriteH(4, "L", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(4, "L", true);
|
|
|
|
// DB2105WriteHelper.WriteManScrewH7();
|
|
|
|
// DB2105WriteHelper.WriteManScrewH7();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 8:
|
|
|
|
case 8:
|
|
|
|
PowderDownSignel(MinAnPlc.Heir4, 4);
|
|
|
|
PowderDownSignel(MinAnPlc.Heir4, 4);
|
|
|
|
DB2105WriteHelper.WriteSetValueH4(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueR4(value);
|
|
|
|
DB2105WriteHelper.WriteH(4, "R", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(4, "R", true);
|
|
|
|
//DB2105WriteHelper.WriteManScrewH8();
|
|
|
|
//DB2105WriteHelper.WriteManScrewH8();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -820,36 +820,66 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
public static bool WetSetWeight(SetValue value, MCRadioButtonEntity RadioE)
|
|
|
|
public static bool WetSetWeight(SetValue value, MCRadioButtonEntity RadioE)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var singE = ControlsHelper.SingleSelect(RadioE);
|
|
|
|
var singE = ControlsHelper.SingleSelect(RadioE);
|
|
|
|
|
|
|
|
|
|
|
|
switch (singE)
|
|
|
|
switch (singE)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteSetValueL1(value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DB2105WriteHelper.WriteManScrewH1();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
case 2:
|
|
|
|
DB2105WriteHelper.WriteSetValueH1(value);
|
|
|
|
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteSetValueR1(value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DB2105WriteHelper.WriteManScrewH2();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH2(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueL2(value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DB2105WriteHelper.WriteManScrewH3();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteSetValueR2(value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DB2105WriteHelper.WriteManScrewH4();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
case 5:
|
|
|
|
case 6:
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH3(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueL3(value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//DB2105WriteHelper.WriteManScrewH5();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 6:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteSetValueR3(value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DB2105WriteHelper.WriteManScrewH6();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
case 7:
|
|
|
|
case 8:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteSetValueH4(value);
|
|
|
|
DB2105WriteHelper.WriteSetValueL4(value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DB2105WriteHelper.WriteManScrewH7();
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 8:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB2105WriteHelper.WriteSetValueR4(value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//DB2105WriteHelper.WriteManScrewH8();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
MessageBox.Show("当前未选择产线!");
|
|
|
|
MessageBox.Show("当前未选择产线!");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -872,7 +902,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var singE = ControlsHelper.SingleSelect(RadioE);
|
|
|
|
var singE = ControlsHelper.SingleSelect(RadioE);
|
|
|
|
int no = (singE + 1) / 2;
|
|
|
|
int no = (singE + 1) / 2;
|
|
|
|
DB2105WriteHelper.WriteH(no, "S", true);
|
|
|
|
DB2105WriteHelper.WriteHNo(no, "S", true);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|