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