|
|
|
@ -487,101 +487,101 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
|
|
|
|
|
#region 称量结束日志
|
|
|
|
|
|
|
|
|
|
if (DB2119.Coolwater_A.Dos_End)
|
|
|
|
|
{
|
|
|
|
|
if (PlcControl("DB2119.28.3", false))
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("冷水称A称量结束", DB2119.Coolwater_A.Value_Initial, 2, 3, 1);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (DB2119.Hotwater_A.Dos_End)
|
|
|
|
|
{
|
|
|
|
|
if (PlcControl("DB2119.8.3", false))
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("热水称A称量结束", DB2119.Hotwater_A.Value_Initial, 2, 1, 1);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (DB2119.Coolwater_B.Dos_End)
|
|
|
|
|
{
|
|
|
|
|
if (PlcControl("DB2119.38.3", false))
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("冷水称B称量结束", DB2119.Coolwater_B.Value_Initial, 2, 4, 1);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (DB2119.Hotwater_B.Dos_End)
|
|
|
|
|
{
|
|
|
|
|
if (PlcControl("DB2119.18.3", false))
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("热水称B称量结束", DB2119.Hotwater_B.Value_Initial, 2, 2, 1);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (DB2119.Spiral_A.Dos_End)
|
|
|
|
|
{
|
|
|
|
|
if (PlcControl("DB2119.60.3", false))
|
|
|
|
|
{
|
|
|
|
|
if (DB2119.Spiral_A.Weter_Bin == 1)
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("湿混机1称量结束", DB2119.Spiral_A.Value_Weight, 4, 1, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
else if (DB2119.Spiral_A.Weter_Bin == 2)
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("湿混机2称量结束", DB2119.Spiral_A.Value_Weight, 4, 2, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("螺旋1称量结束", DB2119.Spiral_A.Value_Weight, 4, 12, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (DB2119.Spiral_B.Dos_End)
|
|
|
|
|
{
|
|
|
|
|
if (PlcControl("DB2119.82.3", false))
|
|
|
|
|
{
|
|
|
|
|
if (DB2119.Spiral_B.Weter_Bin == 1)
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("湿混机3称量结束", DB2119.Spiral_B.Value_Weight, 4, 3, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
else if (DB2119.Spiral_B.Weter_Bin == 2)
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("湿混机4称量结束", DB2119.Spiral_B.Value_Weight, 4, 4, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("螺旋2称量结束", DB2119.Spiral_B.Value_Weight, 4, 34, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (DB2119.Spiral_C.Dos_End)
|
|
|
|
|
{
|
|
|
|
|
if (PlcControl("DB2119.104.3", false))
|
|
|
|
|
{
|
|
|
|
|
if (DB2119.Spiral_C.Weter_Bin == 1)
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("湿混机5称量结束", DB2119.Spiral_C.Value_Weight, 4, 5, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
else if (DB2119.Spiral_C.Weter_Bin == 2)
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("湿混机6称量结束", DB2119.Spiral_C.Value_Weight, 4, 6, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
LjLogControl.ManualLogControl("螺旋1称量结束", DB2119.Spiral_C.Value_Weight, 4, 56, 2);
|
|
|
|
|
LogSelect("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Coolwater_A.Dos_End)
|
|
|
|
|
//{
|
|
|
|
|
// if (PlcControl("DB2119.28.3", false))
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("冷水称A称量结束", DB2119.Coolwater_A.Value_Initial, 2, 3, 1);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//if (DB2119.Hotwater_A.Dos_End)
|
|
|
|
|
//{
|
|
|
|
|
// if (PlcControl("DB2119.8.3", false))
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("热水称A称量结束", DB2119.Hotwater_A.Value_Initial, 2, 1, 1);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//if (DB2119.Coolwater_B.Dos_End)
|
|
|
|
|
//{
|
|
|
|
|
// if (PlcControl("DB2119.38.3", false))
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("冷水称B称量结束", DB2119.Coolwater_B.Value_Initial, 2, 4, 1);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//if (DB2119.Hotwater_B.Dos_End)
|
|
|
|
|
//{
|
|
|
|
|
// if (PlcControl("DB2119.18.3", false))
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("热水称B称量结束", DB2119.Hotwater_B.Value_Initial, 2, 2, 1);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//if (DB2119.Spiral_A.Dos_End)
|
|
|
|
|
//{
|
|
|
|
|
// if (PlcControl("DB2119.60.3", false))
|
|
|
|
|
// {
|
|
|
|
|
// if (DB2119.Spiral_A.Weter_Bin == 1)
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("湿混机1称量结束", DB2119.Spiral_A.Value_Weight, 4, 1, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// else if (DB2119.Spiral_A.Weter_Bin == 2)
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("湿混机2称量结束", DB2119.Spiral_A.Value_Weight, 4, 2, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("螺旋1称量结束", DB2119.Spiral_A.Value_Weight, 4, 12, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//if (DB2119.Spiral_B.Dos_End)
|
|
|
|
|
//{
|
|
|
|
|
// if (PlcControl("DB2119.82.3", false))
|
|
|
|
|
// {
|
|
|
|
|
// if (DB2119.Spiral_B.Weter_Bin == 1)
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("湿混机3称量结束", DB2119.Spiral_B.Value_Weight, 4, 3, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// else if (DB2119.Spiral_B.Weter_Bin == 2)
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("湿混机4称量结束", DB2119.Spiral_B.Value_Weight, 4, 4, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("螺旋2称量结束", DB2119.Spiral_B.Value_Weight, 4, 34, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//if (DB2119.Spiral_C.Dos_End)
|
|
|
|
|
//{
|
|
|
|
|
// if (PlcControl("DB2119.104.3", false))
|
|
|
|
|
// {
|
|
|
|
|
// if (DB2119.Spiral_C.Weter_Bin == 1)
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("湿混机5称量结束", DB2119.Spiral_C.Value_Weight, 4, 5, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// else if (DB2119.Spiral_C.Weter_Bin == 2)
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("湿混机6称量结束", DB2119.Spiral_C.Value_Weight, 4, 6, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// LjLogControl.ManualLogControl("螺旋1称量结束", DB2119.Spiral_C.Value_Weight, 4, 56, 2);
|
|
|
|
|
// LogSelect("");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
@ -595,13 +595,13 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
|
|
|
|
|
WaterActualValue4.MCValue = DB2107.Weight.WScale_2.ActWeight;
|
|
|
|
|
|
|
|
|
|
WaterMetValue1.MCValue = DB2119.Coolwater_A.Value_Initial;
|
|
|
|
|
//WaterMetValue1.MCValue = DB2119.Coolwater_A.Value_Initial;
|
|
|
|
|
|
|
|
|
|
WaterMetValue2.MCValue = DB2119.Hotwater_A.Value_Initial;
|
|
|
|
|
//WaterMetValue2.MCValue = DB2119.Hotwater_A.Value_Initial;
|
|
|
|
|
|
|
|
|
|
WaterMetValue3.MCValue = DB2119.Coolwater_B.Value_Initial;
|
|
|
|
|
//WaterMetValue3.MCValue = DB2119.Coolwater_B.Value_Initial;
|
|
|
|
|
|
|
|
|
|
WaterMetValue4.MCValue = DB2119.Hotwater_B.Value_Initial;
|
|
|
|
|
//WaterMetValue4.MCValue = DB2119.Hotwater_B.Value_Initial;
|
|
|
|
|
|
|
|
|
|
SpiralActValue1.MCValue = DB2103.DM2ASF01.ACT_Speed;
|
|
|
|
|
|
|
|
|
@ -611,118 +611,118 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
|
|
|
|
|
SpiralActValue4.MCValue = DB2103.DM2DSF01.ACT_Speed;
|
|
|
|
|
|
|
|
|
|
SpiralMetValue1.MCValue = DB2119.Spiral_A.Value_Weight;
|
|
|
|
|
//SpiralMetValue1.MCValue = DB2119.Spiral_A.Value_Weight;
|
|
|
|
|
|
|
|
|
|
SpiralMetValue2.MCValue = DB2119.Spiral_B.Value_Weight;
|
|
|
|
|
//SpiralMetValue2.MCValue = DB2119.Spiral_B.Value_Weight;
|
|
|
|
|
|
|
|
|
|
SpiralMetValue3.MCValue = DB2119.Spiral_C.Value_Weight;
|
|
|
|
|
//SpiralMetValue3.MCValue = DB2119.Spiral_C.Value_Weight;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 水称状态指示
|
|
|
|
|
|
|
|
|
|
if (DB2119.Coolwater_A.Dos_Status)
|
|
|
|
|
{
|
|
|
|
|
MetageState1.MCValue = "正在称量";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MetageState1.MCValue = "停止称量";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Coolwater_A.Dos_Status)
|
|
|
|
|
//{
|
|
|
|
|
// MetageState1.MCValue = "正在称量";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// MetageState1.MCValue = "停止称量";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Coolwater_A.Dis_Status)
|
|
|
|
|
{
|
|
|
|
|
WaterOutState1.MCValue = "正在排水";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
WaterOutState1.MCValue = "停止排水";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Coolwater_A.Dis_Status)
|
|
|
|
|
//{
|
|
|
|
|
// WaterOutState1.MCValue = "正在排水";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// WaterOutState1.MCValue = "停止排水";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Hotwater_A.Dos_Status)
|
|
|
|
|
{
|
|
|
|
|
MetageState2.MCValue = "正在称量";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MetageState2.MCValue = "停止称量";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Hotwater_A.Dos_Status)
|
|
|
|
|
//{
|
|
|
|
|
// MetageState2.MCValue = "正在称量";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// MetageState2.MCValue = "停止称量";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Hotwater_A.Dis_Status)
|
|
|
|
|
{
|
|
|
|
|
WaterOutState2.MCValue = "正在排水";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
WaterOutState2.MCValue = "停止排水";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Hotwater_A.Dis_Status)
|
|
|
|
|
//{
|
|
|
|
|
// WaterOutState2.MCValue = "正在排水";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// WaterOutState2.MCValue = "停止排水";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Coolwater_B.Dos_Status)
|
|
|
|
|
{
|
|
|
|
|
MetageState3.MCValue = "正在称量";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MetageState3.MCValue = "停止称量";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Coolwater_B.Dos_Status)
|
|
|
|
|
//{
|
|
|
|
|
// MetageState3.MCValue = "正在称量";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// MetageState3.MCValue = "停止称量";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Coolwater_B.Dis_Status)
|
|
|
|
|
{
|
|
|
|
|
WaterOutState3.MCValue = "正在排水";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
WaterOutState3.MCValue = "停止排水";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Coolwater_B.Dis_Status)
|
|
|
|
|
//{
|
|
|
|
|
// WaterOutState3.MCValue = "正在排水";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// WaterOutState3.MCValue = "停止排水";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Hotwater_B.Dos_Status)
|
|
|
|
|
{
|
|
|
|
|
MetageState4.MCValue = "正在称量";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MetageState4.MCValue = "停止称量";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Hotwater_B.Dos_Status)
|
|
|
|
|
//{
|
|
|
|
|
// MetageState4.MCValue = "正在称量";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// MetageState4.MCValue = "停止称量";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Hotwater_B.Dis_Status)
|
|
|
|
|
{
|
|
|
|
|
WaterOutState4.MCValue = "正在排水";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
WaterOutState4.MCValue = "停止排水";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Hotwater_B.Dis_Status)
|
|
|
|
|
//{
|
|
|
|
|
// WaterOutState4.MCValue = "正在排水";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// WaterOutState4.MCValue = "停止排水";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 螺旋状态指示
|
|
|
|
|
|
|
|
|
|
if (DB2119.Spiral_A.Dos_Status)
|
|
|
|
|
{
|
|
|
|
|
SpiralState1.MCValue = "正在螺旋";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SpiralState1.MCValue = "停止螺旋";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Spiral_A.Dos_Status)
|
|
|
|
|
//{
|
|
|
|
|
// SpiralState1.MCValue = "正在螺旋";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// SpiralState1.MCValue = "停止螺旋";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Spiral_B.Dos_Status)
|
|
|
|
|
{
|
|
|
|
|
SpiralState2.MCValue = "正在螺旋";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SpiralState2.MCValue = "停止螺旋";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Spiral_B.Dos_Status)
|
|
|
|
|
//{
|
|
|
|
|
// SpiralState2.MCValue = "正在螺旋";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// SpiralState2.MCValue = "停止螺旋";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
if (DB2119.Spiral_C.Dos_Status)
|
|
|
|
|
{
|
|
|
|
|
SpiralState3.MCValue = "正在螺旋";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SpiralState3.MCValue = "停止螺旋";
|
|
|
|
|
}
|
|
|
|
|
//if (DB2119.Spiral_C.Dos_Status)
|
|
|
|
|
//{
|
|
|
|
|
// SpiralState3.MCValue = "正在螺旋";
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// SpiralState3.MCValue = "停止螺旋";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//Read = PlcConnect.Instance.Read("DB2119..0", 1);
|
|
|
|
|
|
|
|
|
|