|
|
@ -149,6 +149,73 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void GWInit2(int select, MCComboBoxEntity ComboE, MCTextBoxEntity TextE)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var selected = FreeSqlUnit.Instance.Select<DeviceMaterrial>().Where(x => x.DeviceId == select && x.Type == 2).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (selected.Count != 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ComboE.ChooseMaterial1.SelectedValue = selected[0].MaterrialId;
|
|
|
|
|
|
|
|
ComboE.ChooseMaterial2.SelectedValue = selected[1].MaterrialId;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ComboE.ChooseMaterial1.SelectedIndex = 0;
|
|
|
|
|
|
|
|
ComboE.ChooseMaterial2.SelectedIndex = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var getGelatG1 = LjPlanningPlcHelp.GetGelatG1;
|
|
|
|
|
|
|
|
var getWeterM1 = LjPlanningPlcHelp.GetWeterM1;
|
|
|
|
|
|
|
|
var getGelatG2 = LjPlanningPlcHelp.GetGelatG2;
|
|
|
|
|
|
|
|
var getWeterM2 = LjPlanningPlcHelp.GetWeterM2;
|
|
|
|
|
|
|
|
var getGelatG3 = LjPlanningPlcHelp.GetGelatG3;
|
|
|
|
|
|
|
|
var getWeterM3 = LjPlanningPlcHelp.GetWeterM3;
|
|
|
|
|
|
|
|
var getGelatG4 = LjPlanningPlcHelp.GetGelatG4;
|
|
|
|
|
|
|
|
var getWeterM4 = LjPlanningPlcHelp.GetWeterM4;
|
|
|
|
|
|
|
|
var getGelatG5 = LjPlanningPlcHelp.GetGelatG5;
|
|
|
|
|
|
|
|
var getWeterM5 = LjPlanningPlcHelp.GetWeterM5;
|
|
|
|
|
|
|
|
var getGelatG6 = LjPlanningPlcHelp.GetGelatG6;
|
|
|
|
|
|
|
|
var getWeterM6 = LjPlanningPlcHelp.GetWeterM6;
|
|
|
|
|
|
|
|
var getGelatG7 = LjPlanningPlcHelp.GetGelatG7;
|
|
|
|
|
|
|
|
var getWeterM7 = LjPlanningPlcHelp.GetWeterM7;
|
|
|
|
|
|
|
|
var getGelatG8 = LjPlanningPlcHelp.GetGelatG8;
|
|
|
|
|
|
|
|
var getWeterM8 = LjPlanningPlcHelp.GetWeterM8;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (select)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
GWDataShow2(getGelatG1, getWeterM1, TextE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
GWDataShow2(getGelatG2, getWeterM2, TextE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
|
|
|
|
GWDataShow2(getGelatG3, getWeterM3, TextE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
GWDataShow2(getGelatG4, getWeterM4, TextE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 5:
|
|
|
|
|
|
|
|
GWDataShow2(getGelatG5, getWeterM5, TextE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 6:
|
|
|
|
|
|
|
|
GWDataShow2(getGelatG6, getWeterM6, TextE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 7:
|
|
|
|
|
|
|
|
GWDataShow2(getGelatG7, getWeterM7, TextE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 8:
|
|
|
|
|
|
|
|
GWDataShow2(getGelatG8, getWeterM8, TextE);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DInit(int select, MCComboBoxEntity ComboE, MCTextBoxEntity TextE)
|
|
|
|
public static void DInit(int select, MCComboBoxEntity ComboE, MCTextBoxEntity TextE)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var drtSelected = FreeSqlUnit.Instance.Select<DeviceMaterrial>().
|
|
|
|
var drtSelected = FreeSqlUnit.Instance.Select<DeviceMaterrial>().
|
|
|
@ -283,12 +350,35 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
TextE.GelCloseHeatTime.MCValue = Gel.RecipeSteps[7].MixTime;
|
|
|
|
TextE.GelCloseHeatTime.MCValue = Gel.RecipeSteps[7].MixTime;
|
|
|
|
TextE.GelOutDelayTime.MCValue = Gel.RecipeSteps[7].MixTemp;
|
|
|
|
TextE.GelOutDelayTime.MCValue = Gel.RecipeSteps[7].MixTemp;
|
|
|
|
|
|
|
|
|
|
|
|
//20240221 不更新
|
|
|
|
|
|
|
|
|
|
|
|
TextE.WetDryWeight.MCValue = Wet[1].SetValue;
|
|
|
|
|
|
|
|
TextE.WetMixTime.MCValue = Wet[2].MixTime;
|
|
|
|
|
|
|
|
TextE.WetOutDelayTime.MCValue = Wet[4].MixTime;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void GWDataShow2(DryerView Gel, List<MixStep> Wet, MCTextBoxEntity TextE)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TextE.MaterialWeight1.MCValue = Gel.RecipePlcViews[0].Set;
|
|
|
|
|
|
|
|
TextE.MaterialWeight2.MCValue = Gel.RecipePlcViews[1].Set;
|
|
|
|
|
|
|
|
TextE.MaterialTolerance1.MCValue = Gel.RecipePlcViews[0].Tolerance;
|
|
|
|
|
|
|
|
TextE.MaterialTolerance2.MCValue = Gel.RecipePlcViews[1].Tolerance;
|
|
|
|
|
|
|
|
TextE.GelSpeedSet.MCValue = Gel.RecipeSteps[0].MixSpeed;
|
|
|
|
|
|
|
|
TextE.GelPosTimeA.MCValue = Gel.RecipeSteps[2].MixTemp;
|
|
|
|
|
|
|
|
TextE.GelNagTimeB.MCValue = Gel.RecipeSteps[2].MixSpeed;
|
|
|
|
|
|
|
|
TextE.GelPosTimeC.MCValue = Gel.RecipeSteps[2].MixTime;
|
|
|
|
|
|
|
|
TextE.GelWaterTime.MCValue = Gel.RecipeSteps[4].MixTime;
|
|
|
|
|
|
|
|
TextE.GelWaitTime.MCValue = Gel.RecipeSteps[6].MixTime;
|
|
|
|
|
|
|
|
TextE.GelCloseHeatTime.MCValue = Gel.RecipeSteps[7].MixTime;
|
|
|
|
|
|
|
|
TextE.GelOutDelayTime.MCValue = Gel.RecipeSteps[7].MixTemp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TextE.WetDryWeight.MCValue = Wet[1].SetValue;
|
|
|
|
//TextE.WetDryWeight.MCValue = Wet[1].SetValue;
|
|
|
|
TextE.WetMixTime.MCValue = Wet[2].MixTime;
|
|
|
|
TextE.WetMixTime.MCValue = Wet[2].MixTime;
|
|
|
|
TextE.WetOutDelayTime.MCValue = Wet[4].MixTime;
|
|
|
|
TextE.WetOutDelayTime.MCValue = Wet[4].MixTime;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 将C#数据实体转化为JSON数据
|
|
|
|
/// 将C#数据实体转化为JSON数据
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|