|
|
@ -154,6 +154,20 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
var drtSelected = FreeSqlUnit.Instance.Select<DeviceMaterrial>().
|
|
|
|
var drtSelected = FreeSqlUnit.Instance.Select<DeviceMaterrial>().
|
|
|
|
Where(x => x.DeviceId == select && x.Type == 1).ToList();
|
|
|
|
Where(x => x.DeviceId == select && x.Type == 1).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (drtSelected.Count < 15)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
DeviceMaterrial deviceMaterrial = new DeviceMaterrial()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
DeviceId = select,
|
|
|
|
|
|
|
|
Type = 1,
|
|
|
|
|
|
|
|
MaterrialId = -1,
|
|
|
|
|
|
|
|
Code = -1,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
while(drtSelected.Count < 15)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
drtSelected.Add(deviceMaterrial);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
if (drtSelected.Count != 0)
|
|
|
|
if (drtSelected.Count != 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ComboE.DryM1.SelectedValue = drtSelected[0].MaterrialId;
|
|
|
|
ComboE.DryM1.SelectedValue = drtSelected[0].MaterrialId;
|
|
|
@ -168,6 +182,9 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
ComboE.DryM10.SelectedValue = drtSelected[9].MaterrialId;
|
|
|
|
ComboE.DryM10.SelectedValue = drtSelected[9].MaterrialId;
|
|
|
|
ComboE.DryM11.SelectedValue = drtSelected[10].MaterrialId;
|
|
|
|
ComboE.DryM11.SelectedValue = drtSelected[10].MaterrialId;
|
|
|
|
ComboE.DryM12.SelectedValue = drtSelected[11].MaterrialId;
|
|
|
|
ComboE.DryM12.SelectedValue = drtSelected[11].MaterrialId;
|
|
|
|
|
|
|
|
ComboE.DryM13.SelectedValue = drtSelected[12].MaterrialId;
|
|
|
|
|
|
|
|
ComboE.DryM14.SelectedValue = drtSelected[13].MaterrialId;
|
|
|
|
|
|
|
|
ComboE.DryM15.SelectedValue = drtSelected[14].MaterrialId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -183,6 +200,9 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
ComboE.DryM10.SelectedIndex = 0;
|
|
|
|
ComboE.DryM10.SelectedIndex = 0;
|
|
|
|
ComboE.DryM11.SelectedIndex = 0;
|
|
|
|
ComboE.DryM11.SelectedIndex = 0;
|
|
|
|
ComboE.DryM12.SelectedIndex = 0;
|
|
|
|
ComboE.DryM12.SelectedIndex = 0;
|
|
|
|
|
|
|
|
ComboE.DryM13.SelectedIndex = 0;
|
|
|
|
|
|
|
|
ComboE.DryM14.SelectedIndex = 0;
|
|
|
|
|
|
|
|
ComboE.DryM15.SelectedIndex = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var getDryerD1 = LjPlanningPlcHelp.GetDryerD1;
|
|
|
|
var getDryerD1 = LjPlanningPlcHelp.GetDryerD1;
|
|
|
@ -223,6 +243,9 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
TextE.DryW10.MCValue = Dry.RecipePlcViews[9].Set;
|
|
|
|
TextE.DryW10.MCValue = Dry.RecipePlcViews[9].Set;
|
|
|
|
TextE.DryW11.MCValue = Dry.RecipePlcViews[10].Set;
|
|
|
|
TextE.DryW11.MCValue = Dry.RecipePlcViews[10].Set;
|
|
|
|
TextE.DryW12.MCValue = Dry.RecipePlcViews[11].Set;
|
|
|
|
TextE.DryW12.MCValue = Dry.RecipePlcViews[11].Set;
|
|
|
|
|
|
|
|
//TextE.DryW13.MCValue = Dry.RecipePlcViews[12].Set;
|
|
|
|
|
|
|
|
//TextE.DryW14.MCValue = Dry.RecipePlcViews[13].Set;
|
|
|
|
|
|
|
|
//TextE.DryW15.MCValue = Dry.RecipePlcViews[14].Set;
|
|
|
|
TextE.DryT1.MCValue = Dry.RecipePlcViews[0].Tolerance;
|
|
|
|
TextE.DryT1.MCValue = Dry.RecipePlcViews[0].Tolerance;
|
|
|
|
TextE.DryT2.MCValue = Dry.RecipePlcViews[1].Tolerance;
|
|
|
|
TextE.DryT2.MCValue = Dry.RecipePlcViews[1].Tolerance;
|
|
|
|
TextE.DryT3.MCValue = Dry.RecipePlcViews[2].Tolerance;
|
|
|
|
TextE.DryT3.MCValue = Dry.RecipePlcViews[2].Tolerance;
|
|
|
@ -235,6 +258,9 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
TextE.DryT10.MCValue = Dry.RecipePlcViews[9].Tolerance;
|
|
|
|
TextE.DryT10.MCValue = Dry.RecipePlcViews[9].Tolerance;
|
|
|
|
TextE.DryT11.MCValue = Dry.RecipePlcViews[10].Tolerance;
|
|
|
|
TextE.DryT11.MCValue = Dry.RecipePlcViews[10].Tolerance;
|
|
|
|
TextE.DryT12.MCValue = Dry.RecipePlcViews[11].Tolerance;
|
|
|
|
TextE.DryT12.MCValue = Dry.RecipePlcViews[11].Tolerance;
|
|
|
|
|
|
|
|
//TextE.DryT13.MCValue = Dry.RecipePlcViews[12].Tolerance;
|
|
|
|
|
|
|
|
//TextE.DryT14.MCValue = Dry.RecipePlcViews[13].Tolerance;
|
|
|
|
|
|
|
|
//TextE.DryT15.MCValue = Dry.RecipePlcViews[14].Tolerance;
|
|
|
|
TextE.DryWaitTime.MCValue = Dry.RecipeSteps[1].MixTime;
|
|
|
|
TextE.DryWaitTime.MCValue = Dry.RecipeSteps[1].MixTime;
|
|
|
|
TextE.DryOutDelayTime.MCValue = Dry.RecipeSteps[2].MixTime;
|
|
|
|
TextE.DryOutDelayTime.MCValue = Dry.RecipeSteps[2].MixTime;
|
|
|
|
TextE.DrySpeed1.MCValue = Dry.RecipeSteps[0].MixSpeed;
|
|
|
|
TextE.DrySpeed1.MCValue = Dry.RecipeSteps[0].MixSpeed;
|
|
|
|