|
|
@ -81,6 +81,11 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
HslCurve PressureCurve;
|
|
|
|
HslCurve PressureCurve;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 传送带
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
HslConveyer Conveyer;
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
@ -95,6 +100,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
|
|
|
|
|
|
|
|
AlarmMoveText = Controls.FirstOrDefault(x => x != null && x.Name == "AlarmMoveText") as HslMoveText;
|
|
|
|
AlarmMoveText = Controls.FirstOrDefault(x => x != null && x.Name == "AlarmMoveText") as HslMoveText;
|
|
|
|
PressureCurve = Controls.FirstOrDefault(x => x.Name == "PressureCurve") as HslCurve;
|
|
|
|
PressureCurve = Controls.FirstOrDefault(x => x.Name == "PressureCurve") as HslCurve;
|
|
|
|
|
|
|
|
Conveyer = Controls.FirstOrDefault(x => x.Name == "Conveyer") as HslConveyer;
|
|
|
|
|
|
|
|
|
|
|
|
SetAllControls();
|
|
|
|
SetAllControls();
|
|
|
|
|
|
|
|
|
|
|
@ -484,6 +490,23 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
PlcTemp.DM1DSIG01_Alarm = DB91.DM1DSIG01.Alarm;
|
|
|
|
PlcTemp.DM1DSIG01_Alarm = DB91.DM1DSIG01.Alarm;
|
|
|
|
PlcTemp.DM1ESIG01_Alarm = DB91.DM1ESIG01.Alarm;
|
|
|
|
PlcTemp.DM1ESIG01_Alarm = DB91.DM1ESIG01.Alarm;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS01_Set = DB91.DM1GDS01.Running;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS02_Set = DB91.DM1GDS02.Running;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS03_Set = DB91.DM1GDS03.Running;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS04_Set = DB91.DM1GDS04.Running;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS05_Set = DB91.DM1GDS05.Running;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS06_Set = DB91.DM1GDS06.Running;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS09_Set = DB91.DM1GDS09.Running;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS12_Set = DB91.DM1GDS12.Running;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS01_Alarm = DB91.DM1GDS01.Alarm;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS02_Alarm = DB91.DM1GDS02.Alarm;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS03_Alarm = DB91.DM1GDS03.Alarm;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS04_Alarm = DB91.DM1GDS04.Alarm;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS05_Alarm = DB91.DM1GDS05.Alarm;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS06_Alarm = DB91.DM1GDS06.Alarm;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS09_Alarm = DB91.DM1GDS09.Alarm;
|
|
|
|
|
|
|
|
PlcTemp.DM1GDS12_Alarm = DB91.DM1GDS12.Alarm;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void DBOtherGetData()
|
|
|
|
private void DBOtherGetData()
|
|
|
@ -793,6 +816,38 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
ControlsHelper.SetFan(FanE.DM1ESIG01, PlcTemp.DM1ESIG01_Set, PlcTemp.DM1ESIG01_Alarm);
|
|
|
|
ControlsHelper.SetFan(FanE.DM1ESIG01, PlcTemp.DM1ESIG01_Set, PlcTemp.DM1ESIG01_Alarm);
|
|
|
|
ControlsHelper.SetFan(FanE.DM1GDP01, PlcTemp.DM1GDP01_Set, PlcTemp.DM1GDP01_Alarm);
|
|
|
|
ControlsHelper.SetFan(FanE.DM1GDP01, PlcTemp.DM1GDP01_Set, PlcTemp.DM1GDP01_Alarm);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ControlsHelper.SetFan(FanE.DM1GDS01, PlcTemp.DM1GDS01_Set, PlcTemp.DM1GDS01_Alarm);
|
|
|
|
|
|
|
|
ControlsHelper.SetFan(FanE.DM1GDS02, PlcTemp.DM1GDS02_Set, PlcTemp.DM1GDS02_Alarm);
|
|
|
|
|
|
|
|
ControlsHelper.SetFan(FanE.DM1GDS03, PlcTemp.DM1GDS03_Set, PlcTemp.DM1GDS03_Alarm);
|
|
|
|
|
|
|
|
ControlsHelper.SetFan(FanE.DM1GDS06, PlcTemp.DM1GDS06_Set, PlcTemp.DM1GDS06_Alarm);
|
|
|
|
|
|
|
|
ControlsHelper.SetFan(FanE.DM1GDS09, PlcTemp.DM1GDS09_Set, PlcTemp.DM1GDS09_Alarm);
|
|
|
|
|
|
|
|
ControlsHelper.SetFan(FanE.DM1GDS12, PlcTemp.DM1GDS12_Set, PlcTemp.DM1GDS12_Alarm);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//传送带是否有报警
|
|
|
|
|
|
|
|
if(PlcTemp.DM1GDS04_Alarm || PlcTemp.DM1GDS05_Alarm)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ControlsHelper.SetSwitchLight(SwitchlightE.DM1GDS45, false, true);
|
|
|
|
|
|
|
|
Conveyer.MoveSpeed = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if(PlcTemp.DM1GDS04_Set || PlcTemp.DM1GDS05_Set)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ControlsHelper.SetSwitchLight(SwitchlightE.DM1GDS45, true);
|
|
|
|
|
|
|
|
//传送带正反运转判断
|
|
|
|
|
|
|
|
if (PlcTemp.DM1GDS04_Set)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Conveyer.MoveSpeed = 2f;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Conveyer.MoveSpeed = -2f;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else //传送带没有运转信号
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ControlsHelper.SetSwitchLight(SwitchlightE.DM1GDS45, false);
|
|
|
|
|
|
|
|
Conveyer.MoveSpeed = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void DBOtherSetData()
|
|
|
|
private void DBOtherSetData()
|
|
|
@ -868,11 +923,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
ControlsHelper.SetHslBottle(bottleE.Bottle14, PlcTemp.Bottle14_Set);
|
|
|
|
ControlsHelper.SetHslBottle(bottleE.Bottle14, PlcTemp.Bottle14_Set);
|
|
|
|
ControlsHelper.SetHslBottle(bottleE.Bottle15, PlcTemp.Bottle15_Set);
|
|
|
|
ControlsHelper.SetHslBottle(bottleE.Bottle15, PlcTemp.Bottle15_Set);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var dic = DaCangFactory.GetDefault();
|
|
|
|
var dic = DaCangFactory.GetDefault();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ControlsImprot.SetMCLabel(LabelE.HslBottleValue1, JiSuan(PlcTemp.Bottle1_Set, dic["小料1"]) + "t");
|
|
|
|
ControlsImprot.SetMCLabel(LabelE.HslBottleValue1, JiSuan(PlcTemp.Bottle1_Set, dic["小料1"]) + "t");
|
|
|
|
ControlsImprot.SetMCLabel(LabelE.HslBottleValue2, JiSuan(PlcTemp.Bottle2_Set, dic["小料2"]) + "t");
|
|
|
|
ControlsImprot.SetMCLabel(LabelE.HslBottleValue2, JiSuan(PlcTemp.Bottle2_Set, dic["小料2"]) + "t");
|
|
|
|
ControlsImprot.SetMCLabel(LabelE.HslBottleValue3, JiSuan(PlcTemp.Bottle3_Set, dic["木粉"]) + "t");
|
|
|
|
ControlsImprot.SetMCLabel(LabelE.HslBottleValue3, JiSuan(PlcTemp.Bottle3_Set, dic["木粉"]) + "t");
|
|
|
@ -890,7 +941,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
ControlsImprot.SetMCLabel(LabelE.HslBottleValue15, JiSuan(PlcTemp.Bottle15_Set, dic["小料1"]) + "t");
|
|
|
|
ControlsImprot.SetMCLabel(LabelE.HslBottleValue15, JiSuan(PlcTemp.Bottle15_Set, dic["小料1"]) + "t");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string JiSuan(double x, DaCangValue daCangValue)
|
|
|
|
public string JiSuan(double x, DaCangValue daCangValue)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var bottleValue3 = Math.Round(x * daCangValue.volume * daCangValue.Density, 2)/100;
|
|
|
|
var bottleValue3 = Math.Round(x * daCangValue.volume * daCangValue.Density, 2)/100;
|
|
|
@ -902,8 +952,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
return entity;
|
|
|
|
return entity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region 报警管理
|
|
|
|
#region 报警管理
|
|
|
|