|
|
|
@ -37,13 +37,11 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void ControlInitFromPLC()
|
|
|
|
|
{
|
|
|
|
|
//switch (SingleSelect())
|
|
|
|
|
//{
|
|
|
|
|
// case 1:
|
|
|
|
|
// LjPlanningPlcHelp.GetGelatG1.
|
|
|
|
|
//}
|
|
|
|
|
ControlsEntity.ChooseMaterial1.DataSource = StockMaterrialDbHelp.GetSiloMaterrial();
|
|
|
|
|
ControlsEntity.ChooseMaterial2.DataSource = StockMaterrialDbHelp.GetSiloMaterrial();
|
|
|
|
|
|
|
|
|
|
var dbt = StockMaterrialDbHelp.GetSiloMaterrial();
|
|
|
|
|
|
|
|
|
|
ControlsEntity.ChooseMaterial1.DataSource = dbt;
|
|
|
|
|
ControlsEntity.ChooseMaterial2.DataSource = dbt;
|
|
|
|
|
|
|
|
|
|
var selected = FreeSqlUnit.Instance.Select<DeviceMaterrial>().Where(x => x.DeviceId == SingleSelect()).ToList();
|
|
|
|
|
|
|
|
|
@ -58,143 +56,160 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
ControlsEntity.ChooseMaterial2.SelectedIndex = -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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 (SingleSelect())
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = LjPlanningPlcHelp.GetGelatG1.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM1[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM1[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM1[4].MixTime;
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = getGelatG1.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = getGelatG1.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = getGelatG1.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = getGelatG1.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = getGelatG1.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = getGelatG1.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = getGelatG1.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = getGelatG1.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = getGelatG1.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = getGelatG1.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = getGelatG1.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = getGelatG1.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = getWeterM1[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = getWeterM1[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = getWeterM1[4].MixTime;
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = LjPlanningPlcHelp.GetGelatG2.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM2[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM2[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM2[4].MixTime;
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = getGelatG2.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = getGelatG2.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = getGelatG2.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = getGelatG2.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = getGelatG2.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = getGelatG2.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = getGelatG2.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = getGelatG2.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = getGelatG2.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = getGelatG2.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = getGelatG2.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = getGelatG2.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = getWeterM2[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = getWeterM2[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = getWeterM2[4].MixTime;
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = LjPlanningPlcHelp.GetGelatG3.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM3[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM3[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM3[4].MixTime;
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = getGelatG3.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = getGelatG3.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = getGelatG3.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = getGelatG3.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = getGelatG3.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = getGelatG3.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = getGelatG3.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = getGelatG3.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = getGelatG3.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = getGelatG3.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = getGelatG3.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = getGelatG3.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = getWeterM3[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = getWeterM3[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = getWeterM3[4].MixTime;
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = LjPlanningPlcHelp.GetGelatG4.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM4[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM4[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM4[4].MixTime;
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = getGelatG4.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = getGelatG4.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = getGelatG4.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = getGelatG4.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = getGelatG4.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = getGelatG4.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = getGelatG4.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = getGelatG4.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = getGelatG4.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = getGelatG4.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = getGelatG4.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = getGelatG4.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = getWeterM4[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = getWeterM4[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = getWeterM4[4].MixTime;
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = LjPlanningPlcHelp.GetGelatG5.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM5[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM5[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM5[4].MixTime;
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = getGelatG5.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = getGelatG5.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = getGelatG5.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = getGelatG5.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = getGelatG5.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = getGelatG5.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = getGelatG5.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = getGelatG5.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = getGelatG5.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = getGelatG5.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = getGelatG5.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = getGelatG5.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = getWeterM5[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = getWeterM5[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = getWeterM5[4].MixTime;
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = LjPlanningPlcHelp.GetGelatG6.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM6[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM6[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM6[4].MixTime;
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = getGelatG6.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = getGelatG6.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = getGelatG6.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = getGelatG6.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = getGelatG6.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = getGelatG6.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = getGelatG6.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = getGelatG6.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = getGelatG6.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = getGelatG6.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = getGelatG6.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = getGelatG6.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = getWeterM6[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = getWeterM6[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = getWeterM6[4].MixTime;
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = LjPlanningPlcHelp.GetGelatG7.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM7[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM7[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM7[4].MixTime;
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = getGelatG7.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = getGelatG7.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = getGelatG7.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = getGelatG7.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = getGelatG7.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = getGelatG7.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = getGelatG7.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = getGelatG7.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = getGelatG7.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = getGelatG7.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = getGelatG7.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = getGelatG7.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = getWeterM7[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = getWeterM7[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = getWeterM7[4].MixTime;
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = LjPlanningPlcHelp.GetGelatG8.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM8[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM8[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM8[4].MixTime;
|
|
|
|
|
ControlsEntity.MaterialWeight1.MCValue = getGelatG8.RecipePlcViews[0].Set;
|
|
|
|
|
ControlsEntity.MaterialWeight2.MCValue = getGelatG8.RecipePlcViews[1].Set;
|
|
|
|
|
ControlsEntity.MaterialTolerance1.MCValue = getGelatG8.RecipePlcViews[0].Tolerance;
|
|
|
|
|
ControlsEntity.MaterialTolerance2.MCValue = getGelatG8.RecipePlcViews[1].Tolerance;
|
|
|
|
|
ControlsEntity.GelSpeedSet.MCValue = getGelatG8.RecipeSteps[0].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeA.MCValue = getGelatG8.RecipeSteps[2].MixTemp;
|
|
|
|
|
ControlsEntity.GelNagTimeB.MCValue = getGelatG8.RecipeSteps[2].MixSpeed;
|
|
|
|
|
ControlsEntity.GelPosTimeC.MCValue = getGelatG8.RecipeSteps[2].MixTime;
|
|
|
|
|
ControlsEntity.GelWaterTime.MCValue = getGelatG8.RecipeSteps[4].MixTime;
|
|
|
|
|
ControlsEntity.GelWaitTime.MCValue = getGelatG8.RecipeSteps[6].MixTime;
|
|
|
|
|
ControlsEntity.GelCloseHeatTime.MCValue = getGelatG8.RecipeSteps[7].MixTime;
|
|
|
|
|
ControlsEntity.GelOutDelayTime.MCValue = getGelatG8.RecipeSteps[7].MixTemp;
|
|
|
|
|
ControlsEntity.WetDryWeight.MCValue = getWeterM8[1].SetValue;
|
|
|
|
|
ControlsEntity.WetMixTime.MCValue = getWeterM8[2].MixTime;
|
|
|
|
|
ControlsEntity.WetOutDelayTime.MCValue = getWeterM8[4].MixTime;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
return;
|
|
|
|
|