change - 输送界面添加除尘控件 空间更改

dep_deliver
wangsr 11 months ago
parent ff3e513557
commit c61051b460

@ -59,6 +59,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
ThreeWayValveEntity ThreeWayValveE = new ThreeWayValveEntity();
LjSwitchEntity LjSwitchE = new LjSwitchEntity();
MCLabelEntity LabelE = new MCLabelEntity();
ControlCabinetEntity CabinetE = new ControlCabinetEntity();
/// <summary>
/// 报警滚动条
/// </summary>
@ -103,6 +105,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
ControlsHelper.ControlImport<ThreeWayValve>(ThreeWayValveE, Controls);
ControlsHelper.ControlImport<LjSwith>(LjSwitchE, Controls);
ControlsHelper.ControlImport<MCLabel>(LabelE, Controls);
ControlsHelper.ControlImport<ControlCabinet>(CabinetE, Controls);
this.AlarmMoveText.Font = new Font("宋体", 15f, FontStyle.Regular, GraphicsUnit.Point, 134);
this.AlarmMoveText.ForeColor = Color.White;
@ -408,6 +411,19 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
PlcTemp.DM1DSM01_Alarm = DB91.DM1DSM01.Alarm;
PlcTemp.DM2DSM01_Alarm = DB91.DM2DSM01.Alarm;
PlcTemp.DM3DSM01_Alarm = DB91.DM3DSM01.Alarm;
PlcTemp.DM1ASIG01_Set = DB91.DM1ASIG01.Running;
PlcTemp.DM1BSIG01_Set = DB91.DM1BSIG01.Running;
PlcTemp.DM1CSIG01_Set = DB91.DM1CSIG01.Running;
PlcTemp.DM1DSIG01_Set = DB91.DM1DSIG01.Running;
PlcTemp.DM1ESIG01_Set = DB91.DM1ESIG01.Running;
PlcTemp.DM1ASIG01_Alarm = DB91.DM1ASIG01.Alarm;
PlcTemp.DM1BSIG01_Alarm = DB91.DM1BSIG01.Alarm;
PlcTemp.DM1CSIG01_Alarm = DB91.DM1CSIG01.Alarm;
PlcTemp.DM1DSIG01_Alarm = DB91.DM1DSIG01.Alarm;
PlcTemp.DM1ESIG01_Alarm = DB91.DM1ESIG01.Alarm;
}
private void DBOtherGetData()
@ -607,6 +623,23 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
ControlsHelper.SetSwitchLight(SwitchlightE.DM1DSM01, PlcTemp.DM1DSM01_Set, PlcTemp.DM1DSM01_Alarm);
ControlsHelper.SetSwitchLight(SwitchlightE.DM2DSM01, PlcTemp.DM2DSM01_Set, PlcTemp.DM2DSM01_Alarm);
ControlsHelper.SetSwitchLight(SwitchlightE.DM3DSM01, PlcTemp.DM3DSM01_Set, PlcTemp.DM3DSM01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1ASIG011, PlcTemp.DM1ASIG01_Set, PlcTemp.DM1ASIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1ASIG012, PlcTemp.DM1ASIG01_Set, PlcTemp.DM1ASIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1ASIG013, PlcTemp.DM1ASIG01_Set, PlcTemp.DM1ASIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1ASIG014, PlcTemp.DM1ASIG01_Set, PlcTemp.DM1ASIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1BSIG011, PlcTemp.DM1BSIG01_Set, PlcTemp.DM1BSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1BSIG012, PlcTemp.DM1BSIG01_Set, PlcTemp.DM1BSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1CSIG011, PlcTemp.DM1CSIG01_Set, PlcTemp.DM1CSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1CSIG012, PlcTemp.DM1CSIG01_Set, PlcTemp.DM1CSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1CSIG013, PlcTemp.DM1CSIG01_Set, PlcTemp.DM1CSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1CSIG014, PlcTemp.DM1CSIG01_Set, PlcTemp.DM1CSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1DSIG011, PlcTemp.DM1DSIG01_Set, PlcTemp.DM1DSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1DSIG012, PlcTemp.DM1DSIG01_Set, PlcTemp.DM1DSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1DSIG013, PlcTemp.DM1DSIG01_Set, PlcTemp.DM1DSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1DSIG014, PlcTemp.DM1DSIG01_Set, PlcTemp.DM1DSIG01_Alarm);
ControlsHelper.SetControlCabinet(CabinetE.DM1ESIG01, PlcTemp.DM1ESIG01_Set, PlcTemp.DM1ESIG01_Alarm);
}
private void DBOtherSetData()

@ -226,4 +226,23 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver.Entity
public HslBottle Bottle14 { get; set; }
public HslBottle Bottle15 { get; set; }
}
internal class ControlCabinetEntity
{
public ControlCabinet DM1ASIG011 { get; set; }
public ControlCabinet DM1ASIG012 { get; set; }
public ControlCabinet DM1ASIG013 { get; set; }
public ControlCabinet DM1ASIG014 { get; set; }
public ControlCabinet DM1BSIG011 { get; set; }
public ControlCabinet DM1BSIG012 { get; set; }
public ControlCabinet DM1CSIG011 { get; set; }
public ControlCabinet DM1CSIG012 { get; set; }
public ControlCabinet DM1CSIG013 { get; set; }
public ControlCabinet DM1CSIG014 { get; set; }
public ControlCabinet DM1DSIG011 { get; set; }
public ControlCabinet DM1DSIG012 { get; set; }
public ControlCabinet DM1DSIG013 { get; set; }
public ControlCabinet DM1DSIG014 { get; set; }
public ControlCabinet DM1ESIG01 { get; set; }
}
}

@ -346,5 +346,16 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver.Entity
public bool HighLevel1 { get; set; }
public bool HighLevel2 { get; set; }
public bool HighLevel3 { get; set; }
public bool DM1ASIG01_Set { get; set; }
public bool DM1BSIG01_Set { get; set; }
public bool DM1CSIG01_Set { get; set; }
public bool DM1DSIG01_Set { get; set; }
public bool DM1ESIG01_Set { get; set; }
public bool DM1ASIG01_Alarm { get; set; }
public bool DM1BSIG01_Alarm { get; set; }
public bool DM1CSIG01_Alarm { get; set; }
public bool DM1DSIG01_Alarm { get; set; }
public bool DM1ESIG01_Alarm { get; set; }
}
}

@ -41,8 +41,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
{
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
int begin = 58;
DownCleanD1Recipe(begin);
int begin = 58;
DownCleanD1Recipe(begin);
for (int i = 0; i < recipePlcViews.Count(); i++)
{
var view = recipePlcViews[i];
@ -57,14 +57,14 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.53.6",true);
PlcConnect.Instance.Write($"DB2104.53.6", true);
}
public static void DownD2Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
{
@ -85,11 +85,11 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.53.7", true);
}
@ -112,7 +112,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.54.0", true);
}
@ -137,17 +137,17 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.54.1", true);
}
public static void DownG1Recipe(List<RecipePlcView> recipePlcViews,List<Step> recipeSteps)
public static void DownG1Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
{
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
int begin = 1018;
@ -158,21 +158,21 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
Dowd(begin, view);
begin += 10;
}
begin = 1038;
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.53.6",true);
PlcConnect.Instance.Write($"DB2104.53.6", true);
}
public static void DownG2Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
public static void DownG2Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
{
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
int begin = 1158;
@ -184,9 +184,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
begin += 10;
}
begin = 1178;
for (int i = 0; i < recipeSteps.Count(); i++)
@ -194,9 +194,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.54.2", true);
}
public static void DownG3Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
@ -211,8 +211,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
begin += 10;
}
begin = 1318;
for (int i = 0; i < recipeSteps.Count(); i++)
@ -220,15 +220,15 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.53.7", true);
}
public static void DownG4Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
{
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
int begin = 1438;
int begin = 1438;
DownCleanG1Recipe(begin);
for (int i = 0; i < recipePlcViews.Count(); i++)
{
@ -236,7 +236,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
Dowd(begin, view);
begin += 10;
}
begin = 1458;
for (int i = 0; i < recipeSteps.Count(); i++)
@ -244,18 +244,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.54.4", true);
}
public static void DownG5Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
{
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
int begin = 1578;
int begin = 1578;
DownCleanG1Recipe(begin);
for (int i = 0; i < recipePlcViews.Count(); i++)
{
@ -264,8 +264,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
begin += 10;
}
begin = 1598;
for (int i = 0; i < recipeSteps.Count(); i++)
@ -273,15 +273,15 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.54.6", true);
}
public static void DownG6Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
{
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
int begin =1718;
int begin = 1718;
DownCleanG1Recipe(begin);
for (int i = 0; i < recipePlcViews.Count(); i++)
{
@ -290,9 +290,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
begin += 10;
}
begin = 1738;
for (int i = 0; i < recipeSteps.Count(); i++)
@ -300,15 +300,15 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.54.7", true);
}
public static void DownG7Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
{
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
int begin =1858;
int begin = 1858;
DownCleanG1Recipe(begin);
for (int i = 0; i < recipePlcViews.Count(); i++)
{
@ -317,8 +317,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
begin += 10;
}
begin = 1878;
for (int i = 0; i < recipeSteps.Count(); i++)
@ -326,16 +326,16 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.55.0", true);
}
public static void DownG8Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
{
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
int begin =1998;
int begin = 1998;
DownCleanG1Recipe(begin);
for (int i = 0; i < recipePlcViews.Count(); i++)
{
@ -343,23 +343,23 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
Dowd(begin, view);
begin += 10;
}
begin = 2018;
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
PlcConnect.Instance.Write($"DB2104.55.1", true);
}
public static void DownM1Recipe(List<MixStep> recipeSteps)
{
int begin = 2138;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
@ -367,11 +367,11 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.2", true);
}
@ -385,9 +385,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.3", true);
}
public static void DownM3Recipe(List<MixStep> recipeSteps)
@ -399,80 +399,80 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.4", true);
}
public static void DownM4Recipe(List<MixStep> recipeSteps)
{
int begin = 2738;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.5", true);
}
public static void DownM5Recipe(List<MixStep> recipeSteps)
{
int begin = 2938;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.6", true);
}
public static void DownM6Recipe(List<MixStep> recipeSteps)
{
int begin = 3138;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.7", true);
}
public static void DownM7Recipe(List<MixStep> recipeSteps)
{
int begin = 3338;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.56.0", true);
}
public static void DownM8Recipe(List<MixStep> recipeSteps)
{
int begin = 3538;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.56.1", true);
}
public static void DownM4Recipe(List<MixStep> recipeSteps)
{
int begin = 2738;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.5", true);
}
public static void DownM5Recipe(List<MixStep> recipeSteps)
{
int begin = 2938;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.6", true);
}
public static void DownM6Recipe(List<MixStep> recipeSteps)
{
int begin = 3138;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.55.7", true);
}
public static void DownM7Recipe(List<MixStep> recipeSteps)
{
int begin = 3338;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.56.0", true);
}
public static void DownM8Recipe(List<MixStep> recipeSteps)
{
int begin = 3538;
DownM1CleanRecipe(begin);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
PlcConnect.Instance.Write($"DB2104.56.1", true);
}
private static DryerView GetDryerView(int start)
{
@ -583,14 +583,14 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
var data = operateResult.Content;
for (int i = 0; i < 10; i++)
{
var bytes = data.Skip(i * 20).Take(20).ToArray();
MixStep step = new MixStep()
{
MixCode = byteTransform.TransInt16(bytes, 0),
MixTime = byteTransform.TransInt16(bytes, 2),
MixTemp = byteTransform.TransSingle(bytes, 4),
@ -609,62 +609,62 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
{
List<RecipePlcView> recipePlcViews = GetClean(12);
List<Step> recipeSteps = GetCleanStep(10);
for (int i = 0; i < recipePlcViews.Count(); i++)
{
var view = recipePlcViews[i];
Dowd(begin, view);
begin += 10;
}
//begin += 120;
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
}
private static void DownCleanG1Recipe(int begin)
{
List<RecipePlcView> recipePlcViews = GetClean(2);
List<Step> recipeSteps = GetCleanStep(10);
for (int i = 0; i < recipePlcViews.Count(); i++)
{
var view = recipePlcViews[i];
Dowd(begin, view);
begin += 10;
}
//begin += 20;
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowSteps(begin, view);
begin += 12;
}
}
private static void DownM1CleanRecipe(int begin)
{
List<MixStep> recipeSteps = GetCleanMixStep(10);
for (int i = 0; i < recipeSteps.Count(); i++)
{
var view = recipeSteps[i];
DowMSteps(begin, view);
begin += 20;
}
}
@ -697,7 +697,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
private static void DowMSteps(int start, MixStep step)
{
int mixCode = start;
var s= PlcConnect.Instance.Write($"DB2104.{mixCode}.0", step.MixCode);
var s = PlcConnect.Instance.Write($"DB2104.{mixCode}.0", step.MixCode);
int mixTime = start + 2;
PlcConnect.Instance.Write($"DB2104.{mixTime}.0", step.MixTime);
@ -773,6 +773,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
}
}
}

@ -1666,18 +1666,18 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
ControlsHelper.SetJzf(JzfE.AS8GET02, PlcReadTemp.AS8GET02_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1ADF01, PlcReadTemp.PM1ADF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1BDF01, PlcReadTemp.PM1BDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1CDF01, PlcReadTemp.PM1CDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1DDF01, PlcReadTemp.PM1DDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1EDF01, PlcReadTemp.PM1EDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1FDF01, PlcReadTemp.PM1FDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1GDF01, PlcReadTemp.PM1GDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1HDF01, PlcReadTemp.PM1HDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1IDF01, PlcReadTemp.PM1IDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1JDF01, PlcReadTemp.PM1JDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1KDF01, PlcReadTemp.PM1KDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1LDF01, PlcReadTemp.PM1LDF01_Set);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1ADF01, PlcReadTemp.PM1ADF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1BDF01, PlcReadTemp.PM1BDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1CDF01, PlcReadTemp.PM1CDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1DDF01, PlcReadTemp.PM1DDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1EDF01, PlcReadTemp.PM1EDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1FDF01, PlcReadTemp.PM1FDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1GDF01, PlcReadTemp.PM1GDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1HDF01, PlcReadTemp.PM1HDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1IDF01, PlcReadTemp.PM1IDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1JDF01, PlcReadTemp.PM1JDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1KDF01, PlcReadTemp.PM1KDF01_Set, false);
ControlsHelper.SetControlCabinet(ControlCabinetE.PM1LDF01, PlcReadTemp.PM1LDF01_Set, false);
ControlsHelper.SetMCLabel(LabelE.DryMode4, DB2107.Dryer[3].Mode, 1);
ControlsHelper.SetMCLabel(LabelE.DryStatus4, DB2107.Dryer[3].Status, 2);

@ -244,9 +244,13 @@ namespace Mesnac.Action.ChemicalWeighing.Util
/// </summary>
/// <param name="obj"></param>
/// <param name="set"></param>
public static void SetControlCabinet(ControlCabinet obj, bool set)
public static void SetControlCabinet(ControlCabinet obj, bool set, bool alarm)
{
if (set == true)
if (alarm == true)
{
obj.Status = ControlCabinet.Statuses.Alarm;
}
else if (set == true)
{
obj.Status = ControlCabinet.Statuses.TurnOn;
}

@ -17,7 +17,8 @@ namespace Mesnac.Controls.ChemicalWeighing
public enum Statuses
{
TurnOff = 0,
TurnOn = 1
TurnOn = 1,
Alarm = 2,
}
private bool bNewPic = false;
private string _statusName;
@ -39,9 +40,10 @@ namespace Mesnac.Controls.ChemicalWeighing
{
base.Init();
_imageStream = null;
sImages = new string[2];
sImages = new string[3];
sImages[0] = "Mesnac.Controls.ChemicalWeighing.Resources.controlCabinet.png";//zsTurnOff
sImages[1] = "Mesnac.Controls.ChemicalWeighing.Resources.controlCabinet1.png";//zsTurnOn
sImages[2] = "Mesnac.Controls.ChemicalWeighing.Resources.controlCabinet0.png";//zsAlarm
_status = Statuses.TurnOff;
}
@ -90,7 +92,7 @@ namespace Mesnac.Controls.ChemicalWeighing
{
_status = (Statuses)0;
}
else if ((int)value > 1)
else if ((int)value > 2)
{
_status = (Statuses)1;
}

@ -21,17 +21,18 @@ namespace DataBlockHelper.DBHelpers
public ForMotorEntity DM1BSIG01 => new ForMotorEntity(4, bytes);
public ForMotorEntity DM1CSIG01 => new ForMotorEntity(6, bytes);
public ForMotorEntity DM1DSIG01 => new ForMotorEntity(8, bytes);
public ForMotorEntity DM1GDS01 => new ForMotorEntity(10, bytes);
public ForMotorEntity DM1GDS02 => new ForMotorEntity(12, bytes);
public ForMotorEntity DM1ESIG01 => new ForMotorEntity(10, bytes);
public ForMotorEntity DM1GDS01 => new ForMotorEntity(12, bytes);
public ForMotorEntity DM1GDS02 => new ForMotorEntity(14, bytes);
public ForMotorEntity DM1GDS03 => new ForMotorEntity(14, bytes);
public ForMotorEntity DM1GDS03 => new ForMotorEntity(16, bytes);
public ForMotorEntity DM1GDS04 => new ForMotorEntity(16, bytes);
public ForMotorEntity DM1GDS04 => new ForMotorEntity(18, bytes);
public ForMotorEntity DM1GDS05 => new ForMotorEntity(18, bytes);
public ForMotorEntity DM1GDS05 => new ForMotorEntity(20, bytes);
public ForMotorEntity DM1GDS06 => new ForMotorEntity(20, bytes);
public ForMotorEntity DM1GDS06 => new ForMotorEntity(22, bytes);
public ForMotorEntity DM1GDS07 => new ForMotorEntity(24, bytes);

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save