diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs
index 0eb3221..f1520fd 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs
@@ -4771,5 +4771,40 @@ namespace Mesnac.Action.ChemicalWeighing
#endregion
+
+
+
+ public DataKeyValue Plan0_RecipeCode { get; set; }
+ public DataKeyValue Plan0_PlanCode { get; set; }
+ public DataKeyValue Plan0_Batch { get; set; }
+ public DataKeyValue Plan0_Start { get; set; }
+ public DataKeyValue Plan0_Pause { get; set; }
+ public DataKeyValue Plan0_Stop { get; set; }
+ public DataKeyValue Plan1_RecipeCode { get; set; }
+ public DataKeyValue Plan1_PlanCode { get; set; }
+ public DataKeyValue Plan1_Batch { get; set; }
+ public DataKeyValue Plan1_Start { get; set; }
+ public DataKeyValue Plan1_Pause { get; set; }
+ public DataKeyValue Plan1_Stop { get; set; }
+ public DataKeyValue Plan2_RecipeCode { get; set; }
+ public DataKeyValue Plan2_PlanCode { get; set; }
+ public DataKeyValue Plan2_Batch { get; set; }
+ public DataKeyValue Plan2_Start { get; set; }
+ public DataKeyValue Plan2_Pause { get; set; }
+ public DataKeyValue Plan2_Stop { get; set; }
+ public DataKeyValue Plan3_RecipeCode { get; set; }
+ public DataKeyValue Plan3_PlanCode { get; set; }
+ public DataKeyValue Plan3_Batch { get; set; }
+ public DataKeyValue Plan3_Start { get; set; }
+ public DataKeyValue Plan3_Pause { get; set; }
+ public DataKeyValue Plan3_Stop { get; set; }
+ public DataKeyValue Status0 { get; set; }
+ public DataKeyValue Status1 { get; set; }
+ public DataKeyValue Status2 { get; set; }
+ public DataKeyValue Status3 { get; set; }
+ public DataKeyValue End0 { get; set; }
+ public DataKeyValue End1 { get; set; }
+ public DataKeyValue End2 { get; set; }
+ public DataKeyValue End3 { get; set; }
}
}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.cs
index feacff3..c22c61c 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixA.cs
@@ -92,21 +92,21 @@ namespace Mesnac.Action.ChemicalWeighing.LjMixManager
// 第一台干混机
- switch (_id)
- {
- case 1 :
- LjMixManagerPlc.DownD1Recipe(recipePlcViews, recipeSteps);
- break;
- case 2 :
- LjMixManagerPlc.DownD2Recipe(recipePlcViews, recipeSteps);
- break;
- case 3 :
- LjMixManagerPlc.DownD3Recipe(recipePlcViews, recipeSteps);
- break;
- case 4 :
- LjMixManagerPlc.DownD4Recipe(recipePlcViews, recipeSteps);
- break;
- }
+ // switch (_id)
+ // {
+ // case 1 :
+ // LjMixManagerPlc.DownD1Recipe(recipePlcViews, recipeSteps);
+ // break;
+ // case 2 :
+ // LjMixManagerPlc.DownD2Recipe(recipePlcViews, recipeSteps);
+ // break;
+ // case 3 :
+ // LjMixManagerPlc.DownD3Recipe(recipePlcViews, recipeSteps);
+ // break;
+ // case 4 :
+ // LjMixManagerPlc.DownD4Recipe(recipePlcViews, recipeSteps);
+ // break;
+ // }
this.DialogResult = DialogResult.OK;
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.cs
index 249f351..f7d43b3 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixB.cs
@@ -113,34 +113,34 @@ namespace Mesnac.Action.ChemicalWeighing.LjMixManager
// 第一台干混机
- switch (_id)
- {
- case 1 :
- LjMixManagerPlc.DownG1Recipe(rG1,rG2, recipeSteps);
- break;
- case 2 :
- LjMixManagerPlc.DownG2Recipe(rG1,rG2, recipeSteps);
- break;
- case 3 :
- LjMixManagerPlc.DownG3Recipe(rG1,rG2, recipeSteps);
- break;
- case 4 :
- LjMixManagerPlc.DownG4Recipe(rG1,rG2, recipeSteps);
- break;
-
- case 5 :
- LjMixManagerPlc.DownG5Recipe(rG1,rG2, recipeSteps);
- break;
- case 6 :
- LjMixManagerPlc.DownG6Recipe(rG1,rG2, recipeSteps);
- break;
- case 7 :
- LjMixManagerPlc.DownG7Recipe(rG1,rG2, recipeSteps);
- break;
- case 8 :
- LjMixManagerPlc.DownG8Recipe(rG1,rG2, recipeSteps);
- break;
- }
+ // switch (_id)
+ // {
+ // case 1 :
+ // LjMixManagerPlc.DownG1Recipe(rG1,rG2, recipeSteps);
+ // break;
+ // case 2 :
+ // LjMixManagerPlc.DownG2Recipe(rG1,rG2, recipeSteps);
+ // break;
+ // case 3 :
+ // LjMixManagerPlc.DownG3Recipe(rG1,rG2, recipeSteps);
+ // break;
+ // case 4 :
+ // LjMixManagerPlc.DownG4Recipe(rG1,rG2, recipeSteps);
+ // break;
+ //
+ // case 5 :
+ // LjMixManagerPlc.DownG5Recipe(rG1,rG2, recipeSteps);
+ // break;
+ // case 6 :
+ // LjMixManagerPlc.DownG6Recipe(rG1,rG2, recipeSteps);
+ // break;
+ // case 7 :
+ // LjMixManagerPlc.DownG7Recipe(rG1,rG2, recipeSteps);
+ // break;
+ // case 8 :
+ // LjMixManagerPlc.DownG8Recipe(rG1,rG2, recipeSteps);
+ // break;
+ // }
this.DialogResult = DialogResult.OK;
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.cs
index e3305e5..8abece2 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/FrmMixC.cs
@@ -72,34 +72,34 @@ namespace Mesnac.Action.ChemicalWeighing.LjMixManager
// 第一台干混机
- switch (_id)
- {
- case 1 :
- LjMixManagerPlc.DownM1Recipe(recipeSteps);
- break;
- case 2 :
- LjMixManagerPlc.DownM2Recipe(recipeSteps);
- break;
- case 3 :
- LjMixManagerPlc.DownM3Recipe(recipeSteps);
- break;
- case 4 :
- LjMixManagerPlc.DownM4Recipe(recipeSteps);
- break;
-
- case 5 :
- LjMixManagerPlc.DownM5Recipe(recipeSteps);
- break;
- case 6 :
- LjMixManagerPlc.DownM6Recipe(recipeSteps);
- break;
- case 7 :
- LjMixManagerPlc.DownM7Recipe(recipeSteps);
- break;
- case 8 :
- LjMixManagerPlc.DownM8Recipe(recipeSteps);
- break;
- }
+ // switch (_id)
+ // {
+ // case 1 :
+ // LjMixManagerPlc.DownM1Recipe(recipeSteps);
+ // break;
+ // case 2 :
+ // LjMixManagerPlc.DownM2Recipe(recipeSteps);
+ // break;
+ // case 3 :
+ // LjMixManagerPlc.DownM3Recipe(recipeSteps);
+ // break;
+ // case 4 :
+ // LjMixManagerPlc.DownM4Recipe(recipeSteps);
+ // break;
+ //
+ // case 5 :
+ // LjMixManagerPlc.DownM5Recipe(recipeSteps);
+ // break;
+ // case 6 :
+ // LjMixManagerPlc.DownM6Recipe(recipeSteps);
+ // break;
+ // case 7 :
+ // LjMixManagerPlc.DownM7Recipe(recipeSteps);
+ // break;
+ // case 8 :
+ // LjMixManagerPlc.DownM8Recipe(recipeSteps);
+ // break;
+ // }
this.DialogResult = DialogResult.OK;
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerPlc.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerPlc.cs
index 7074848..35e2779 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerPlc.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjMixManager/LjMixManagerPlc.cs
@@ -9,3563 +9,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjMixManager
- public class LjMixManagerPlc
- {
- ///
- /// 干混机1
- ///
- ///
- ///
- public static void DownD1Recipe(List recipePlcViews, List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip0_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Tolerance, view.TolErance);
-
- continue;
-
-
-
- }
-
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip1_Bin,
- new object[] { view.Bin });
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Tolerance, view.TolErance);
- continue;
- }
-
- if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip2_Bin,
- new object[] { view.Bin });
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Tolerance, view.TolErance);
- continue;
- }
-
- if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip3_Bin,
- new object[] { view.Bin });
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Tolerance, view.TolErance);
-
- }
- }
-
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step0_MixCode,
- new object[] { view.MixCode });
-
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
- }
-
- }
-
-
-
-
-
- public static void DownD2Recipe(List recipePlcViews, List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip0_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip0_Tolerance, view.TolErance);
- continue;
-
- }
-
-
-
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip1_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip1_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip2_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip2_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip2_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip3_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip3_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip3_Tolerance, view.TolErance);
- continue;
- }
-
-
-
-
-
-
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
- }
-
- }
-
- public static void DownD3Recipe(List recipePlcViews, List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
-
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Recip0_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip0_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Recip1_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip1_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Recip2_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip2_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip2_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Recip3_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip3_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip3_Tolerance, view.TolErance);
- continue;
- }
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
- }
- }
-
-
- public static void DownD4Recipe(List recipePlcViews, List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
-
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Recip0_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip0_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Recip1_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip1_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Recip2_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip2_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip2_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Recip3_Bin,
- new object[] { view.Bin });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip3_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip3_Tolerance, view.TolErance);
- continue;
- }
-
-
-
-
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-
- if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
-
- }
- }
-
-
-
-
- public static void DownG1Recipe(List recipePlcViews,List reShui,List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG1Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG1Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip1_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- }
-
-
- for (int i = 0; i < reShui.Count(); i++)
- {
- var view = reShui[i];
-
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Recip1_Tolerance, view.TolErance);
- continue;
- }
-
-
-
- }
-
-
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
-
-
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
-
-
-
-
-
- }
- }
-
-
- public static void DownG2Recipe(List recipePlcViews, List reShui,
- List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
-
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG2Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG2Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip1_Tolerance, view.TolErance);
- continue;
- }
-
- }
-
- for (int i = 0; i < reShui.Count(); i++)
- {
- var view = reShui[i];
-
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Recip1_Tolerance, view.TolErance);
- continue;
- }
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
-
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
-
- }
- }
- public static void DownG3Recipe(List recipePlcViews, List reShui,
- List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG3Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG3Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG3Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG3Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG3Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG3Recip1_Tolerance, view.TolErance);
- continue;
- }
- }
-
- for (int i = 0; i < reShui.Count(); i++)
- {
- var view = reShui[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Recip1_Tolerance, view.TolErance);
- continue;
- }
-
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
-
- }
- }
- public static void DownG4Recipe(List recipePlcViews, List reShui,
- List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG4Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG4Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG4Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG4Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG4Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG4Recip1_Tolerance, view.TolErance);
- continue;
- }
-
- }
-
- for (int i = 0; i < reShui.Count(); i++)
- {
- var view = reShui[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Recip1_Tolerance, view.TolErance);
- continue;
- }
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
- }
- }
- public static void DownG5Recipe(List recipePlcViews, List reShui,
- List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG5Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG5Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG5Recip0_Tolerance, view.TolErance);
-
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG5Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG5Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG5Recip1_Tolerance, view.TolErance);
- continue;
- }
- }
-
- for (int i = 0; i < reShui.Count(); i++)
- {
- var view = reShui[i];
- if (i == 0)
-
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
-
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Recip1_Tolerance, view.TolErance);
- continue;
- }
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
-
-
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
-
-
-
-
- }
- }
- public static void DownG6Recipe(List recipePlcViews, List reShui,
- List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG6Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG6Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG6Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG6Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG6Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG6Recip1_Tolerance, view.TolErance);
- continue;
- }
- }
-
- for (int i = 0; i < reShui.Count(); i++)
- {
- var view = reShui[i];
-
- if (i == 0)
-
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
-
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Recip1_Tolerance, view.TolErance);
- continue;
- }
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
- }
- }
- public static void DownG7Recipe(List recipePlcViews, List reShui,
- List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG7Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG7Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG7Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG7Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG7Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG7Recip1_Tolerance, view.TolErance);
- continue;
- }
- }
-
- for (int i = 0; i < reShui.Count(); i++)
- {
- var view = reShui[i];
- if (i == 0)
-
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
-
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Recip1_Tolerance, view.TolErance);
- continue;
- }
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step7_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step8_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step9_MixSpeed, view.MixSpeed);
- continue;
- }
-
- }
- }
- public static void DownG8Recipe(List recipePlcViews, List reShui,
- List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipePlcViews.Count(); i++)
- {
- var view = recipePlcViews[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG8Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG8Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG8Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG8Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG8Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG8Recip1_Tolerance, view.TolErance);
- continue;
- }
- }
-
- for (int i = 0; i < reShui.Count(); i++)
- {
- var view = reShui[i];
-
- if (i == 0)
-
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Recip0_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Recip0_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Recip0_Tolerance, view.TolErance);
- continue;
- }
- if (i == 1)
-
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Recip1_Bin, new object[]
- {
- view.Bin
- });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Recip1_Set,
- view.Set);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Recip1_Tolerance, view.TolErance);
- continue;
- }
-
-
- }
-
- for (int i = 0; i < recipeSteps.Count(); i++)
- {
- var view = recipeSteps[i];
-
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step0_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step1_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step2_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step3_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step4_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step5_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step6_MixSpeed, view.MixSpeed);
- continue;
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step7_MixSpeed, view.MixSpeed);
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step8_MixSpeed, view.MixSpeed);
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step9_MixSpeed, view.MixSpeed);
- }
-
- }
- }
-
-
- public static void DownM1Recipe(List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipeSteps.Count; i++)
- {
- var view = recipeSteps[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step0_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step0_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step0_Tolerance, view.Tolerance);
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step1_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step1_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step1_Tolerance, view.Tolerance);
-
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step2_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step2_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step2_Tolerance, view.Tolerance);
-
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step3_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step3_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step3_Tolerance, view.Tolerance);
-
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step4_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step4_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step4_Tolerance, view.Tolerance);
-
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step5_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step5_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step5_Tolerance, view.Tolerance);
-
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step6_MixSpeed, view.MixSpeed);
-
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step6_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step6_Tolerance, view.Tolerance);
-
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step7_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step7_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step7_Tolerance, view.Tolerance);
-
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step8_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step8_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step8_Tolerance, view.Tolerance);
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step9_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step9_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step9_Tolerance, view.Tolerance);
- }
-
-
- }
- }
-
-
-
- public static void DownM2Recipe(List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipeSteps.Count; i++)
- {
- var view = recipeSteps[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step0_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step0_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step0_Tolerance, view.Tolerance);
-
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step1_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step1_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step1_Tolerance, view.Tolerance);
-
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step2_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step2_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step2_Tolerance, view.Tolerance);
-
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step3_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step3_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step3_Tolerance, view.Tolerance);
-
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step4_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step4_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step4_Tolerance, view.Tolerance);
-
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step5_MixSpeed, view.MixSpeed);
-
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step5_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step5_Tolerance, view.Tolerance);
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step6_MixSpeed, view.MixSpeed);
-
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step6_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step6_Tolerance, view.Tolerance);
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step7_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step7_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step7_Tolerance, view.Tolerance);
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step8_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step8_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step8_Tolerance, view.Tolerance);
-
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step9_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step9_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step9_Tolerance, view.Tolerance);
- }
- }
- }
- public static void DownM3Recipe(List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipeSteps.Count; i++)
- {
- var view = recipeSteps[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step0_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step0_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step0_Tolerance, view.Tolerance);
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step1_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step1_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step1_Tolerance, view.Tolerance);
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step2_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step2_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step2_Tolerance, view.Tolerance);
-
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step3_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step3_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step3_Tolerance, view.Tolerance);
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step4_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step4_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step4_Tolerance, view.Tolerance);
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step5_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step5_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step5_Tolerance, view.Tolerance);
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step6_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step6_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step6_Tolerance, view.Tolerance);
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step7_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step7_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step7_Tolerance, view.Tolerance);
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step8_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step8_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step8_Tolerance, view.Tolerance);
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step9_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step9_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step9_Tolerance, view.Tolerance);
- }
-
- }
- }
-
- public static void DownM4Recipe(List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipeSteps.Count; i++)
- {
- var view = recipeSteps[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step0_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step0_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step0_Tolerance, view.Tolerance);
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step1_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step1_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step1_Tolerance, view.Tolerance);
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step2_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step2_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step2_Tolerance, view.Tolerance);
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step3_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step3_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step3_Tolerance, view.Tolerance);
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step4_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step4_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step4_Tolerance, view.Tolerance);
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step5_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step5_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step5_Tolerance, view.Tolerance);
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step6_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step6_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step6_Tolerance, view.Tolerance);
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step7_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step7_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step7_Tolerance, view.Tolerance);
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step8_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step8_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step8_Tolerance, view.Tolerance);
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step9_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step9_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step9_Tolerance, view.Tolerance);
- }
-
- }
- }
- public static void DownM5Recipe(List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipeSteps.Count; i++)
- {
- var view = recipeSteps[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step0_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step0_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step0_Tolerance, view.Tolerance);
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step1_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step1_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step1_Tolerance, view.Tolerance);
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step2_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step2_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step2_Tolerance, view.Tolerance);
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step3_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step3_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step3_Tolerance, view.Tolerance);
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step4_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step4_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step4_Tolerance, view.Tolerance);
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step5_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step5_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step5_Tolerance, view.Tolerance);
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step6_MixSpeed, view.MixSpeed);
-
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step6_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step6_Tolerance, view.Tolerance);
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step7_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step7_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step7_Tolerance, view.Tolerance);
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step8_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step8_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step8_Tolerance, view.Tolerance);
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step9_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step9_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step9_Tolerance, view.Tolerance);
- }
-
- }
- }
- public static void DownM6Recipe(List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipeSteps.Count; i++)
- {
- var view = recipeSteps[i];
-
-if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step0_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step0_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step0_Tolerance, view.Tolerance);
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step1_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step1_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step1_Tolerance, view.Tolerance);
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step2_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step2_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step2_Tolerance, view.Tolerance);
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step3_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step3_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step3_Tolerance, view.Tolerance);
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step4_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step4_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step4_Tolerance, view.Tolerance);
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step5_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step5_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step5_Tolerance, view.Tolerance);
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step6_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step6_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step6_Tolerance, view.Tolerance);
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step7_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step7_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step7_Tolerance, view.Tolerance);
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step8_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step8_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step8_Tolerance, view.Tolerance);
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step9_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step9_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step9_Tolerance, view.Tolerance);
- }
-
-
- }
- }
- public static void DownM7Recipe(List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipeSteps.Count; i++)
- {
- var view = recipeSteps[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step0_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step0_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step0_Tolerance, view.Tolerance);
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step1_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step1_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step1_Tolerance, view.Tolerance);
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step2_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step2_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step2_Tolerance, view.Tolerance);
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step3_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step3_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step3_Tolerance, view.Tolerance);
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step4_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step4_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step4_Tolerance, view.Tolerance);
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step5_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step5_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step5_Tolerance, view.Tolerance);
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step6_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step6_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step6_Tolerance, view.Tolerance);
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step7_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step7_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step7_Tolerance, view.Tolerance);
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step8_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step8_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step8_Tolerance, view.Tolerance);
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step9_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step9_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step9_Tolerance, view.Tolerance);
- }
- }
- }
- public static void DownM8Recipe(List recipeSteps)
- {
- var basePlcHelper = BasePlcHelper.Instance;
- for (int i = 0; i < recipeSteps.Count; i++)
- {
- var view = recipeSteps[i];
- if (i == 0)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step0_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step0_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step0_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step0_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step0_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step0_Tolerance, view.Tolerance);
- return;
- }
-if (i == 1)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step1_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step1_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step1_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step1_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step1_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step1_Tolerance, view.Tolerance);
- }
-if (i == 2)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step2_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step2_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step2_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step2_MixSpeed, view.MixSpeed);
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step2_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step2_Tolerance, view.Tolerance);
- }
-if (i == 3)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step3_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step3_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step3_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step3_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step3_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step3_Tolerance, view.Tolerance);
- }
-if (i == 4)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step4_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step4_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step4_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step4_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step4_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step4_Tolerance, view.Tolerance);
- }
-if (i == 5)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step5_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step5_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step5_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step5_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step5_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step5_Tolerance, view.Tolerance);
- }
-if (i == 6)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step6_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step6_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step6_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step6_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step6_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step6_Tolerance, view.Tolerance);
- }
-if (i == 7)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step7_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step7_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step7_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step7_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step7_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step7_Tolerance, view.Tolerance);
- }
-if (i == 8)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step8_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step8_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step8_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step8_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step8_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step8_Tolerance, view.Tolerance);
- }
-if (i == 9)
- {
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step9_MixCode,
- new object[] { view.MixCode });
-
- basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step9_MixTime,
- new object[] { view.MixTime });
-
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step9_MixTemp, view.MixTemp);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step9_MixSpeed, view.MixSpeed);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step9_SetValue, view.SetValue);
- basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step9_Tolerance, view.Tolerance);
- }
- }
- }
-
-
-
-
- }
+
}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/Db/LjFormulaDb.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/Db/LjFormulaDb.cs
index cceb95c..5bfb04b 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/Db/LjFormulaDb.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/Db/LjFormulaDb.cs
@@ -1,4 +1,5 @@
-using DevExpress.Utils.DPI;
+using DevExpress.Office.Utils;
+using DevExpress.Utils.DPI;
using DevExpress.XtraRichEdit.Fields;
using Mesnac.Action.ChemicalWeighing.LjMaterial;
@@ -45,6 +46,22 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning.Db
}
+ public static List GetDrp()
+ {
+ string sql = "select Id, FormulaNo, FormulaName from Lj_Formula";
+ var dataTable = GetTable(sql);
+ List < MyNameValue> myNames=new List();
+ foreach (DataRow item in dataTable.Rows) {
+ myNames.Add(new MyNameValue()
+ {
+ Id = Convert.ToInt32(item["Id"]),
+ Name = item["FormulaName"].ToString()
+ });
+ }
+ return myNames;
+
+ }
+
public static DataTable GetMainTable()
{
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/DownloadAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/DownloadAction.cs
index 6a8744d..241be07 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/DownloadAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/DownloadAction.cs
@@ -4,8 +4,12 @@ using System.Linq;
using System.Windows.Forms;
using Mesnac.Action.Base;
using Mesnac.Action.ChemicalWeighing.LjMixManager;
+using Mesnac.Action.ChemicalWeighing.LjPlanning.Db;
using Mesnac.Action.ChemicalWeighing.LjProdcutLine;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement.ListView;
+
namespace Mesnac.Action.ChemicalWeighing.LjPlanning
{
public class DownloadAction:ChemicalWeighingAction, IAction
@@ -50,103 +54,130 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
if (ljPlanningView != null)
{
- var productLineView = ProductLineDb.GetById(ljPlanningView.ProductLineId);
- var strings = productLineView.DryId.Split(',').ToArray();
+
List recipePlcViews = new List();
List recipePlcViews2 = new List();
List recipeSteps = new List();
List mixSteps = new List();
- var id1 = ljPlanningView.Id;
-
- foreach (var s in strings)
+ //配方名称
+ var formulaId= ljPlanningView.FormulaId;
+ var unit = ljPlanningView.Unit;
+
+ var formulDetail=LjFormulaDb.GetDetail(formulaId);
+ //单元
+ switch (unit)
{
- int i = Convert.ToInt32(s);
- if (i < 5)
- {
- recipePlcViews = LjMixManagerDb.GetRecip(ljPlanningView.MetageAId);
- recipeSteps=LjMixManagerDb.GetStep(ljPlanningView.MetageAId);
- }
- else
- {
- if (id < 13)
- {
- recipePlcViews = LjMixManagerDb.GetRecip(ljPlanningView.MetageB1Id);
- recipePlcViews2 = LjMixManagerDb.GetRecip(ljPlanningView.MetageB2Id);
- recipeSteps=LjMixManagerDb.GetStep( ljPlanningView.MixBId);
- }
- else
+ case 1:
+
+ //获取干混机1
+ var dataDry1C = formulDetail.Where(x => x.MachineType == "Dry" && x.FormulaType == 1 && x.Machine == "A").ToList();
+ var dataDry1CPlcView = dataDry1C.Select(x => new RecipePlcView()
{
- mixSteps = LjMixManagerDb.GetMixStep(ljPlanningView.MixBId);
- }
- }
- switch (i)
- {
+ Bin = x.BinNo,
+ Set = x.SetValue,
+ TolErance = x.Tolerance
+ }).ToList();
- case 1 :
- LjMixManagerPlc.DownD1Recipe(recipePlcViews, recipeSteps);
- break;
- case 2 :
- LjMixManagerPlc.DownD2Recipe(recipePlcViews, recipeSteps);
- break;
- case 3 :
- LjMixManagerPlc.DownD3Recipe(recipePlcViews, recipeSteps);
- break;
- case 4 :
- LjMixManagerPlc.DownD4Recipe(recipePlcViews, recipeSteps);
- break;
- case 5 :
- LjMixManagerPlc.DownG1Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
- break;
- case 6 :
- LjMixManagerPlc.DownG2Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
- break;
- case 7 :
- LjMixManagerPlc.DownG3Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
- break;
- case 8 :
- LjMixManagerPlc.DownG4Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
- break;
-
- case 9 :
- LjMixManagerPlc.DownG5Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
- break;
- case 10 :
- LjMixManagerPlc.DownG6Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
- break;
- case 11 :
- LjMixManagerPlc.DownG7Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
- break;
- case 12 :
- LjMixManagerPlc.DownG8Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
- break;
- case 13 :
- LjMixManagerPlc.DownM1Recipe(mixSteps);
- break;
- case 14 :
- LjMixManagerPlc.DownM2Recipe(mixSteps);
- break;
- case 15 :
- LjMixManagerPlc.DownM3Recipe(mixSteps);
- break;
- case 16 :
- LjMixManagerPlc.DownM4Recipe(mixSteps);
- break;
- case 17 :
- LjMixManagerPlc.DownM5Recipe(mixSteps);
- break;
- case 18 :
- LjMixManagerPlc.DownM6Recipe(mixSteps);
- break;
- case 19 :
- LjMixManagerPlc.DownM7Recipe(mixSteps);
- break;
- case 20:
- LjMixManagerPlc.DownM8Recipe(mixSteps);
- break;
- }
+ break;
+ case 2:
+ break;
+ case 3:
+ break;
+ case 4:
+ break;
}
+
+
+
+ //foreach (var s in strings)
+ //{
+ // int i = Convert.ToInt32(s);
+ // if (i < 5)
+ // {
+ // recipePlcViews = LjMixManagerDb.GetRecip(ljPlanningView.MetageAId);
+ // recipeSteps=LjMixManagerDb.GetStep(ljPlanningView.MetageAId);
+ // }
+ // else
+ // {
+ // if (id < 13)
+ // {
+ // recipePlcViews = LjMixManagerDb.GetRecip(ljPlanningView.MetageB1Id);
+ // recipePlcViews2 = LjMixManagerDb.GetRecip(ljPlanningView.MetageB2Id);
+ // recipeSteps=LjMixManagerDb.GetStep( ljPlanningView.MixBId);
+ // }
+ // else
+ // {
+ // mixSteps = LjMixManagerDb.GetMixStep(ljPlanningView.MixBId);
+ // }
+ // }
+ // switch (i)
+ // {
+
+ // case 1 :
+ // LjPlanningPlcHelp.DownD1Recipe(recipePlcViews, recipeSteps);
+ // break;
+ // case 2 :
+ // LjPlanningPlcHelp.DownD2Recipe(recipePlcViews, recipeSteps);
+ // break;
+ // case 3 :
+ // LjPlanningPlcHelp.DownD3Recipe(recipePlcViews, recipeSteps);
+ // break;
+ // case 4 :
+ // LjPlanningPlcHelp.DownD4Recipe(recipePlcViews, recipeSteps);
+ // break;
+ // case 5 :
+ // LjPlanningPlcHelp.DownG1Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
+ // break;
+ // case 6 :
+ // LjPlanningPlcHelp.DownG2Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
+ // break;
+ // case 7 :
+ // LjPlanningPlcHelp.DownG3Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
+ // break;
+ // case 8 :
+ // LjPlanningPlcHelp.DownG4Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
+ // break;
+
+ // case 9 :
+ // LjPlanningPlcHelp.DownG5Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
+ // break;
+ // case 10 :
+ // LjPlanningPlcHelp.DownG6Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
+ // break;
+ // case 11 :
+ // LjPlanningPlcHelp.DownG7Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
+ // break;
+ // case 12 :
+ // LjPlanningPlcHelp.DownG8Recipe(recipePlcViews,recipePlcViews2, recipeSteps);
+ // break;
+ // case 13 :
+ // LjPlanningPlcHelp.DownM1Recipe(mixSteps);
+ // break;
+ // case 14 :
+ // LjPlanningPlcHelp.DownM2Recipe(mixSteps);
+ // break;
+ // case 15 :
+ // LjPlanningPlcHelp.DownM3Recipe(mixSteps);
+ // break;
+ // case 16 :
+ // LjPlanningPlcHelp.DownM4Recipe(mixSteps);
+ // break;
+ // case 17 :
+ // LjPlanningPlcHelp.DownM5Recipe(mixSteps);
+ // break;
+ // case 18 :
+ // LjPlanningPlcHelp.DownM6Recipe(mixSteps);
+ // break;
+ // case 19 :
+ // LjPlanningPlcHelp.DownM7Recipe(mixSteps);
+ // break;
+ // case 20:
+ // LjPlanningPlcHelp.DownM8Recipe(mixSteps);
+ // break;
+ // }
+ //}
}
else
{
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/Entity/LjFormulaDetail.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/Entity/LjFormulaDetail.cs
index e0b9338..9625d9b 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/Entity/LjFormulaDetail.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/Entity/LjFormulaDetail.cs
@@ -33,7 +33,7 @@
public float? Speed { get; set; }
- public float? SetValue { get; set; }
+ public float SetValue { get; set; }
public float? SetTolerance { get; set; }
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.Designer.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.Designer.cs
index b6e280d..7288478 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.Designer.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.Designer.cs
@@ -34,307 +34,176 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
private void InitializeComponent()
{
this.label3 = new System.Windows.Forms.Label();
- this.DrpProductLine = new System.Windows.Forms.ComboBox();
- this.label1 = new System.Windows.Forms.Label();
+ this.DrpFormula = new System.Windows.Forms.ComboBox();
this.txtCarNumber = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.DrpMixA = new System.Windows.Forms.ComboBox();
- this.label5 = new System.Windows.Forms.Label();
- this.DrpMetageA = new System.Windows.Forms.ComboBox();
- this.label4 = new System.Windows.Forms.Label();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.DrpMixB = new System.Windows.Forms.ComboBox();
- this.label8 = new System.Windows.Forms.Label();
- this.DrpMetageB2 = new System.Windows.Forms.ComboBox();
- this.label6 = new System.Windows.Forms.Label();
- this.DrpMetageB1 = new System.Windows.Forms.ComboBox();
- this.label7 = new System.Windows.Forms.Label();
- this.groupBox3 = new System.Windows.Forms.GroupBox();
- this.DrpMixC = new System.Windows.Forms.ComboBox();
- this.label9 = new System.Windows.Forms.Label();
this.btnCancel = new System.Windows.Forms.Button();
this.btnOK = new System.Windows.Forms.Button();
- this.groupBox1.SuspendLayout();
- this.groupBox2.SuspendLayout();
- this.groupBox3.SuspendLayout();
+ this.txtName = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.cbClass = new System.Windows.Forms.ComboBox();
+ this.cbUnit = new System.Windows.Forms.ComboBox();
+ this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label3
//
this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(11, 15);
- this.label3.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label3.Location = new System.Drawing.Point(77, 104);
+ this.label3.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(47, 12);
+ this.label3.Size = new System.Drawing.Size(53, 18);
this.label3.TabIndex = 49;
- this.label3.Text = "生产线:";
- //
- // DrpProductLine
+ this.label3.Text = "配方:";
//
- this.DrpProductLine.FormattingEnabled = true;
- this.DrpProductLine.Location = new System.Drawing.Point(68, 12);
- this.DrpProductLine.Name = "DrpProductLine";
- this.DrpProductLine.Size = new System.Drawing.Size(129, 20);
- this.DrpProductLine.TabIndex = 52;
- this.DrpProductLine.SelectedIndexChanged += new System.EventHandler(this.DrpProductLine_SelectedIndexChanged);
- //
- // label1
+ // DrpFormula
//
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(222, 15);
- this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(41, 12);
- this.label1.TabIndex = 53;
- this.label1.Text = "label1";
+ this.DrpFormula.FormattingEnabled = true;
+ this.DrpFormula.Location = new System.Drawing.Point(160, 96);
+ this.DrpFormula.Margin = new System.Windows.Forms.Padding(4);
+ this.DrpFormula.Name = "DrpFormula";
+ this.DrpFormula.Size = new System.Drawing.Size(192, 26);
+ this.DrpFormula.TabIndex = 52;
+ this.DrpFormula.SelectedIndexChanged += new System.EventHandler(this.DrpProductLine_SelectedIndexChanged);
//
// txtCarNumber
//
- this.txtCarNumber.Location = new System.Drawing.Point(68, 40);
- this.txtCarNumber.Margin = new System.Windows.Forms.Padding(5);
+ this.txtCarNumber.Location = new System.Drawing.Point(160, 162);
+ this.txtCarNumber.Margin = new System.Windows.Forms.Padding(8);
this.txtCarNumber.MaxLength = 100;
this.txtCarNumber.Name = "txtCarNumber";
- this.txtCarNumber.Size = new System.Drawing.Size(129, 21);
+ this.txtCarNumber.Size = new System.Drawing.Size(192, 28);
this.txtCarNumber.TabIndex = 55;
//
// label2
//
this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(23, 43);
- this.label2.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label2.Location = new System.Drawing.Point(77, 172);
+ this.label2.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(35, 12);
+ this.label2.Size = new System.Drawing.Size(53, 18);
this.label2.TabIndex = 54;
this.label2.Text = "车次:";
//
- // groupBox1
+ // btnCancel
//
- this.groupBox1.Controls.Add(this.DrpMixA);
- this.groupBox1.Controls.Add(this.label5);
- this.groupBox1.Controls.Add(this.DrpMetageA);
- this.groupBox1.Controls.Add(this.label4);
- this.groupBox1.Location = new System.Drawing.Point(11, 68);
- this.groupBox1.Margin = new System.Windows.Forms.Padding(2);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Padding = new System.Windows.Forms.Padding(2);
- this.groupBox1.Size = new System.Drawing.Size(240, 80);
- this.groupBox1.TabIndex = 56;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "干混机";
+ this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.btnCancel.Location = new System.Drawing.Point(243, 413);
+ this.btnCancel.Margin = new System.Windows.Forms.Padding(8);
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.Size = new System.Drawing.Size(147, 68);
+ this.btnCancel.TabIndex = 60;
+ this.btnCancel.Text = "取消";
+ this.btnCancel.UseVisualStyleBackColor = true;
+ this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
- // DrpMixA
+ // btnOK
//
- this.DrpMixA.FormattingEnabled = true;
- this.DrpMixA.Location = new System.Drawing.Point(74, 45);
- this.DrpMixA.Name = "DrpMixA";
- this.DrpMixA.Size = new System.Drawing.Size(153, 20);
- this.DrpMixA.TabIndex = 52;
+ this.btnOK.Location = new System.Drawing.Point(64, 413);
+ this.btnOK.Margin = new System.Windows.Forms.Padding(8);
+ this.btnOK.Name = "btnOK";
+ this.btnOK.Size = new System.Drawing.Size(147, 68);
+ this.btnOK.TabIndex = 59;
+ this.btnOK.Text = "保存";
+ this.btnOK.UseVisualStyleBackColor = true;
+ this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
- // label5
+ // txtName
//
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(7, 48);
- this.label5.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(59, 12);
- this.label5.TabIndex = 49;
- this.label5.Text = "混合步骤:";
+ this.txtName.Location = new System.Drawing.Point(160, 46);
+ this.txtName.Margin = new System.Windows.Forms.Padding(8);
+ this.txtName.MaxLength = 100;
+ this.txtName.Name = "txtName";
+ this.txtName.Size = new System.Drawing.Size(192, 28);
+ this.txtName.TabIndex = 62;
//
- // DrpMetageA
+ // label1
//
- this.DrpMetageA.FormattingEnabled = true;
- this.DrpMetageA.Location = new System.Drawing.Point(74, 19);
- this.DrpMetageA.Name = "DrpMetageA";
- this.DrpMetageA.Size = new System.Drawing.Size(153, 20);
- this.DrpMetageA.TabIndex = 52;
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(61, 50);
+ this.label1.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(89, 18);
+ this.label1.TabIndex = 61;
+ this.label1.Text = "计划名称:";
//
// label4
//
this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(7, 22);
- this.label4.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+ this.label4.Location = new System.Drawing.Point(77, 231);
+ this.label4.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(59, 12);
+ this.label4.Size = new System.Drawing.Size(53, 18);
this.label4.TabIndex = 49;
- this.label4.Text = "粉料称量:";
- //
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.DrpMixB);
- this.groupBox2.Controls.Add(this.label8);
- this.groupBox2.Controls.Add(this.DrpMetageB2);
- this.groupBox2.Controls.Add(this.label6);
- this.groupBox2.Controls.Add(this.DrpMetageB1);
- this.groupBox2.Controls.Add(this.label7);
- this.groupBox2.Location = new System.Drawing.Point(11, 152);
- this.groupBox2.Margin = new System.Windows.Forms.Padding(2);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Padding = new System.Windows.Forms.Padding(2);
- this.groupBox2.Size = new System.Drawing.Size(240, 106);
- this.groupBox2.TabIndex = 57;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "糊化机";
- //
- // DrpMixB
- //
- this.DrpMixB.FormattingEnabled = true;
- this.DrpMixB.Location = new System.Drawing.Point(74, 71);
- this.DrpMixB.Name = "DrpMixB";
- this.DrpMixB.Size = new System.Drawing.Size(153, 20);
- this.DrpMixB.TabIndex = 52;
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(7, 74);
- this.label8.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(59, 12);
- this.label8.TabIndex = 49;
- this.label8.Text = "混合步骤:";
+ this.label4.Text = "班次:";
//
- // DrpMetageB2
+ // cbClass
//
- this.DrpMetageB2.FormattingEnabled = true;
- this.DrpMetageB2.Location = new System.Drawing.Point(74, 45);
- this.DrpMetageB2.Name = "DrpMetageB2";
- this.DrpMetageB2.Size = new System.Drawing.Size(153, 20);
- this.DrpMetageB2.TabIndex = 52;
+ this.cbClass.FormattingEnabled = true;
+ this.cbClass.Location = new System.Drawing.Point(160, 223);
+ this.cbClass.Margin = new System.Windows.Forms.Padding(4);
+ this.cbClass.Name = "cbClass";
+ this.cbClass.Size = new System.Drawing.Size(192, 26);
+ this.cbClass.TabIndex = 52;
+ this.cbClass.SelectedIndexChanged += new System.EventHandler(this.DrpProductLine_SelectedIndexChanged);
//
- // label6
+ // cbUnit
//
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(19, 48);
- this.label6.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(47, 12);
- this.label6.TabIndex = 49;
- this.label6.Text = "水称量:";
+ this.cbUnit.FormattingEnabled = true;
+ this.cbUnit.Location = new System.Drawing.Point(160, 300);
+ this.cbUnit.Margin = new System.Windows.Forms.Padding(4);
+ this.cbUnit.Name = "cbUnit";
+ this.cbUnit.Size = new System.Drawing.Size(192, 26);
+ this.cbUnit.TabIndex = 64;
//
- // DrpMetageB1
- //
- this.DrpMetageB1.FormattingEnabled = true;
- this.DrpMetageB1.Location = new System.Drawing.Point(74, 19);
- this.DrpMetageB1.Name = "DrpMetageB1";
- this.DrpMetageB1.Size = new System.Drawing.Size(153, 20);
- this.DrpMetageB1.TabIndex = 52;
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(7, 22);
- this.label7.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(59, 12);
- this.label7.TabIndex = 49;
- this.label7.Text = "粉料称量:";
- //
- // groupBox3
- //
- this.groupBox3.Controls.Add(this.DrpMixC);
- this.groupBox3.Controls.Add(this.label9);
- this.groupBox3.Location = new System.Drawing.Point(11, 262);
- this.groupBox3.Margin = new System.Windows.Forms.Padding(2);
- this.groupBox3.Name = "groupBox3";
- this.groupBox3.Padding = new System.Windows.Forms.Padding(2);
- this.groupBox3.Size = new System.Drawing.Size(240, 53);
- this.groupBox3.TabIndex = 58;
- this.groupBox3.TabStop = false;
- this.groupBox3.Text = "湿混机";
- //
- // DrpMixC
- //
- this.DrpMixC.FormattingEnabled = true;
- this.DrpMixC.Location = new System.Drawing.Point(74, 19);
- this.DrpMixC.Name = "DrpMixC";
- this.DrpMixC.Size = new System.Drawing.Size(153, 20);
- this.DrpMixC.TabIndex = 52;
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Location = new System.Drawing.Point(7, 22);
- this.label9.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(59, 12);
- this.label9.TabIndex = 49;
- this.label9.Text = "混合步骤:";
- //
- // btnCancel
- //
- this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.btnCancel.Location = new System.Drawing.Point(153, 357);
- this.btnCancel.Margin = new System.Windows.Forms.Padding(5);
- this.btnCancel.Name = "btnCancel";
- this.btnCancel.Size = new System.Drawing.Size(98, 45);
- this.btnCancel.TabIndex = 60;
- this.btnCancel.Text = "取消";
- this.btnCancel.UseVisualStyleBackColor = true;
- this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
- //
- // btnOK
+ // label5
//
- this.btnOK.Location = new System.Drawing.Point(11, 357);
- this.btnOK.Margin = new System.Windows.Forms.Padding(5);
- this.btnOK.Name = "btnOK";
- this.btnOK.Size = new System.Drawing.Size(98, 45);
- this.btnOK.TabIndex = 59;
- this.btnOK.Text = "确认";
- this.btnOK.UseVisualStyleBackColor = true;
- this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 308);
+ this.label5.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(53, 18);
+ this.label5.TabIndex = 63;
+ this.label5.Text = "产线:";
//
// FrmPlanning
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(367, 422);
+ this.ClientSize = new System.Drawing.Size(550, 633);
+ this.Controls.Add(this.cbUnit);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.txtName);
+ this.Controls.Add(this.label1);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
- this.Controls.Add(this.groupBox3);
- this.Controls.Add(this.groupBox2);
- this.Controls.Add(this.groupBox1);
this.Controls.Add(this.txtCarNumber);
this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.DrpProductLine);
+ this.Controls.Add(this.cbClass);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.DrpFormula);
this.Controls.Add(this.label3);
- this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "FrmPlanning";
this.Text = "计划管理";
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.groupBox2.ResumeLayout(false);
- this.groupBox2.PerformLayout();
- this.groupBox3.ResumeLayout(false);
- this.groupBox3.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
+
}
#endregion
private Label label3;
- private System.Windows.Forms.ComboBox DrpProductLine;
- private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.ComboBox DrpFormula;
private TextBox txtCarNumber;
private Label label2;
- private GroupBox groupBox1;
- private ComboBox DrpMetageA;
- private Label label4;
- private ComboBox DrpMixA;
- private Label label5;
- private GroupBox groupBox2;
- private ComboBox DrpMetageB2;
- private Label label6;
- private ComboBox DrpMetageB1;
- private Label label7;
- private ComboBox DrpMixB;
- private Label label8;
- private GroupBox groupBox3;
- private ComboBox DrpMixC;
- private Label label9;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnOK;
+ private TextBox txtName;
+ private Label label1;
+ private Label label4;
+ private ComboBox cbClass;
+ private ComboBox cbUnit;
+ private Label label5;
}
}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.cs
index 213a2d3..3ba3f4a 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/FrmPlanning.cs
@@ -5,6 +5,7 @@ using System.Windows.Forms;
using Mesnac.Action.ChemicalWeighing.LjMaterial;
using Mesnac.Action.ChemicalWeighing.LjMetageFormula;
using Mesnac.Action.ChemicalWeighing.LjMixFormula;
+using Mesnac.Action.ChemicalWeighing.LjPlanning.Db;
using Mesnac.Action.ChemicalWeighing.LjProdcutLine;
namespace Mesnac.Action.ChemicalWeighing.LjPlanning
@@ -27,24 +28,38 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
if (ljPlanningView != null)
{
txtCarNumber.Text = ljPlanningView.NumCar.ToString();
- //根据更新去获取数据
- Checked(DrpMetageA, ljPlanningView.MetageAId);
- Checked(DrpMetageB1,ljPlanningView.MetageB1Id);
- Checked(DrpMetageB2, ljPlanningView.MetageB2Id);
+ txtName.Text= ljPlanningView.PlanName.ToString();
+ Checked(DrpFormula, ljPlanningView.FormulaId);
+ //cbUnit
- Checked(DrpMixA,ljPlanningView.MixAId);
- Checked(DrpMixB,ljPlanningView.MixBId);
- Checked(DrpMixC,ljPlanningView.MixCId);
+ Checked(cbUnit, ljPlanningView.Unit);
+ string cbClass = ljPlanningView.ClassName;
+ if (cbClass == "早")
+ {
+ this.cbClass.SelectedIndex = 0;
+ }
+ else
+ {
+ if (cbClass == "中")
+ {
+ this.cbClass.SelectedIndex = 1;
+ }
+ else
+ {
+ this.cbClass.SelectedIndex = 2;
+ }
+ }
}
}
- private void Checked(ComboBox alBox,string checkId)
+ private void Checked(ComboBox alBox,int checkId)
{
- foreach (MyNameValueStr combo in alBox.Items)
+ foreach (MyNameValue combo in alBox.Items)
{
if (combo.Id == checkId)
+ if (combo.Id == checkId)
{
alBox.SelectedItem = combo;
break;
@@ -52,53 +67,52 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
}
}
- private List productLineViews;
-
- // private List lsList;
-
- private List lsAMixList;
- private List lsBMixList;
- private List lsCMixList;
+
private void FillController()
{
- productLineViews = ProductLineDb.GetList();
- DrpProductLine.DataSource=productLineViews;
- FillComboBox(DrpProductLine);
-
- //var selectedIndex = DrpProductLine.SelectedIndex;
- //var productLineView = productLineViews[selectedIndex];
- //this.label1.Text=productLineView.DryName;
-
- IEnumerable ien = MetageFormulaDb.GetMetageNmaValue();
-
- var drpA = ien.ToList();
- var drpB = ien.ToList();
- var drpC = ien.ToList();
-
-
- FillComboBox(DrpMetageA);
- DrpMetageA.DataSource = drpA;
-
-
- FillComboBox(DrpMetageB1);
- DrpMetageB1.DataSource = drpB;
-
- FillComboBox(DrpMetageB2);
- DrpMetageB2.DataSource = drpC;
+ FillComboBox(DrpFormula);
+ FillComboBox(cbClass);
+ FillComboBox(cbUnit);
+ List lsClass = new List();
+ lsClass.Add(new MyNameValue()
+ {
+ Id=1,
+ Name="早"
+ });
+ lsClass.Add(new MyNameValue()
+ {
+ Id = 2,
+ Name = "中"
+ });
+ lsClass.Add(new MyNameValue()
+ {
+ Id = 3,
+ Name = "晚"
+ });
+ cbClass.DataSource = lsClass;
- lsAMixList = MixDb.GetMyNameValueStrs(2);
- DrpMixA.DataSource = lsAMixList;
- FillComboBox(DrpMixA);
- lsBMixList= MixDb.GetMyNameValueStrs(1);
- DrpMixB.DataSource = lsBMixList;
- FillComboBox(DrpMixB);
- lsCMixList = MixDb.GetMyNameValueStrs(3);
- DrpMixC.DataSource = lsCMixList;
- FillComboBox(DrpMixC);
+ List lsUnit = new List();
+ lsUnit.Add(new MyNameValue()
+ {
+ Id = 1,
+ Name = "1#"
+ });
+ lsUnit.Add(new MyNameValue()
+ {
+ Id = 2,
+ Name = "2#"
+ });
+ lsUnit.Add(new MyNameValue()
+ {
+ Id = 3,
+ Name = "3#"
+ });
+ cbUnit.DataSource = lsUnit;
+ DrpFormula.DataSource = LjFormulaDb.GetDrp();
}
@@ -110,9 +124,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
private void DrpProductLine_SelectedIndexChanged(object sender, System.EventArgs e)
{
- var selectedIndex = DrpProductLine.SelectedIndex;
- var productLineView = productLineViews[selectedIndex];
- this.label1.Text = productLineView.DryName;
+ var selectedIndex = DrpFormula.SelectedIndex;
+
+
}
private void btnCancel_Click(object sender, System.EventArgs e)
@@ -136,31 +150,14 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
return;
}
-
- view.UpdateTime = DateTime.Now;
- view.NumCar = carNo;
- view.MetageAId = DrpMetageA.SelectedValue.ToString();
- view.MetageAName = DrpMetageA.Text;
-
- view.MixAId = DrpMixA.SelectedValue.ToString();
- view.MixAName = DrpMixA.Text;
-
- view.MetageB1Id = DrpMetageB1.SelectedValue.ToString();
- view.MetageB1Name= DrpMetageB1.Text;
-
- view.MetageB2Id = DrpMetageB2.SelectedValue.ToString();
- view.MetageB2Name= DrpMetageB2.Text;
-
- view.MixBId= DrpMixB.SelectedValue.ToString();
- view.MixBName=DrpMixB.Text;
-
- view.MixCId =DrpMixC.SelectedValue.ToString();
- view.MixCName=DrpMixC.Text;
-
-
- view.ProductLineId = Convert.ToInt32(DrpProductLine.SelectedValue);
- view.ProductLineName = label1.Text;
+ view.PlanName = txtName.Text;
+ view.CreateTime = DateTime.Now;
+ view.NumCar = carNo;
+ view.FormulaId = Convert.ToInt32(DrpFormula.SelectedValue);
+ view.FormulaName = DrpFormula.Text;
+ view.ClassName = cbClass.Text;
+ view.Unit = Convert.ToInt32(cbUnit.SelectedValue);
//需要设计状态 0 未开始 -1 异常退出 1 完成
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/InItDbAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/InItDbAction.cs
index 434909a..cabcd94 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/InItDbAction.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/InItDbAction.cs
@@ -32,9 +32,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
private void FileControl()
{
DataTable table =
- DBHelp.GetTable(@"select Id, No, Status, CreateTime, UpdateTime, BegTime, EndTime, NumCar, Share, MetageAId, MetageAName, MixAId,
- MixAName, MetageB1Id, MetageB1Name, MetageB2Id, MetageB2Name, MixBId, MixBName, MixCId,
- MixCName, RecipeType, Remark, ProductLineId, ProductLineName,'' as StatusName from lj_planning where IsEnable=1");
+ DBHelp.GetTable(@"select Id,PlanName, PlanNo, Status, CreateTime, UpdateTime, BegTime, EndTime, NumCar, Unit, Remark, IsEnable, FormulaId, FormulaName,'' as StatusName
+ ,ClassName from lj_planning where IsEnable=1 order by CreateTime desc ");
if (this._materialGridControl != null && this._materialGridControl.BaseControl != null)
{
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningDb.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningDb.cs
index 525e3a0..3a163ad 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningDb.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningDb.cs
@@ -12,45 +12,27 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
public static void Add(LjPlanningView view)
{
- string sql = $"insert into lj_planning " +
- $"values (@No,@Status,@CreateTime,@UpdateTime,@BegTime,@EndTime,@NumCar," +
- $"@Share,@MetageAId,@MetageAName,@MixAId,@MixAName,@MetageB1Id,@MetageB1Name,@MetageB2Id," +
- $"@MetageB2Name,@MixBId,@MixBName,@MixCId,@MixCName,@RecipeType,@Remark,@ProductLineId,@ProductLineName,@IsEnable)";
-
+ string sql = $"insert into lj_planning (\"PlanNo\", Status, CreateTime, UpdateTime, BegTime, EndTime, NumCar, Unit, Remark, IsEnable,\r\n " +
+ $" FormulaId, FormulaName, PlanName, ClassName)\r\nvalues (@PlanNo,@Status,@CreateTime,@UpdateTime,@BegTime,@EndTime,@NumCar,@Unit," +
+ $" @Remark ,@IsEnable,@FormulaId,@FormulaName,@PlanName,@ClassName);";
+
IDictionary dic = new Dictionary();
- dic["@No"] = view.No;
+ dic["@PlanNo"] = view.PlanNo;
dic["@Status"] = view.Status;
dic["@CreateTime"] = view.CreateTime;
- dic["@UpdateTime"] = view.UpdateTime;
+ dic["@UpdateTime"] = null;
dic["@BegTime"] = view.BegTime;
dic["@EndTime"] = view.EndTime;
dic["@NumCar"] = view.NumCar;
-
- dic["@Share"] = view.Share;
- dic["@MetageAId"] = view.MetageAId;
- dic["@MetageAName"] = view.MetageAName;
- dic["@MixAId"] = view.MixAId;
- dic["@MixAName"] = view.MixAName;
-
- dic["@MetageB1Id"] = view.MetageB1Id;
- dic["@MetageB1Name"] = view.MetageB1Name;
- dic["@MetageB2Id"] = view.MetageB2Id;
- dic["@MetageB2Name"] = view.MetageB2Name;
- dic["@MixBId"] = view.MixBId;
- dic["@MixBName"] = view.MixBName;
-
-
- dic["@MixCId"] = view.MixCId;
- dic["@MixCName"] = view.MixCName;
- dic["@RecipeType"] = view.RecipeType;
+ dic["@Unit"] = view.Unit;
dic["@Remark"] = view.Remark;
-
- dic["@ProductLineId"] = view.ProductLineId;
- dic["@ProductLineName"] = view.ProductLineName;
dic["@IsEnable"] = 1;
+ dic["@FormulaId"] = view.FormulaId;
+ dic["@FormulaName"] = view.FormulaName;
+ dic["@PlanName"] = view.PlanName;
+ dic["@ClassName"] = view.ClassName;
-
ExecuteNonQuery(sql,dic);
}
@@ -59,35 +41,21 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
{
StringBuilder sb = new StringBuilder();
sb.Append(" update lj_planning ");
- sb.Append($" set No='{view.No}', ");
- sb.Append($" Status='{view.Status}', ");
- //sb.Append($" CreateTime='{view.CreateTime}', ");
+ sb.Append($" set PlanNo='{view.PlanNo}', ");
sb.Append($" UpdateTime='{view.UpdateTime}', ");
sb.Append($" BegTime='{view.BegTime}', ");
sb.Append($" EndTime='{view.EndTime}', ");
sb.Append($" NumCar='{view.NumCar}', ");
- sb.Append($" Share='{view.Share}', ");
- sb.Append($" MetageAId='{view.MetageAId}', ");
- sb.Append($" MetageAName='{view.MetageAName}', ");
- sb.Append($" MixAId='{view.MixAId}', ");
- sb.Append($" MixAName='{view.MixAName}', ");
-
- sb.Append($" MetageB1Id='{view.MetageB1Id}', ");
- sb.Append($" MetageB1Name='{view.MetageB1Name}', ");
- sb.Append($" MetageB2Id='{view.MetageB2Id}', ");
- sb.Append($" MetageB2Name='{view.MetageB2Name}', ");
- sb.Append($" MixBId='{view.MixBId}', ");
- sb.Append($" MixBName='{view.MixBName}', ");
-
- sb.Append($" MixCId='{view.MixCId}', ");
- sb.Append($" MixCName='{view.MixCName}', ");
- sb.Append($" RecipeType='{view.RecipeType}', ");
-
- sb.Append($" Remark='{view.Remark}', ");
+ sb.Append($" Unit='{view.Unit}', ");
+ sb.Append($" FormulaId='{view.FormulaId}', ");
+ sb.Append($" FormulaName='{view.FormulaName}', ");
+ sb.Append($" PlanName='{view.PlanName}', ");
+ sb.Append($" ClassName='{view.ClassName}', ");
+
- sb.Append($" ProductLineId={view.ProductLineId}, ");
- sb.Append($" ProductLineName='{view.ProductLineName}' ");
+ sb.Append($" Remark='{view.Remark}' ");
+
sb.Append($" where id={view.Id}");
@@ -133,10 +101,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
public static LjPlanningView GetById(int id)
{
- string sql = $"select Id, No, Status, CreateTime, UpdateTime, BegTime, EndTime, " +
- $"NumCar, Share, MetageAId, MetageAName, MixAId, MixAName," +
- $" MetageB1Id, MetageB1Name, MetageB2Id, MetageB2Name, MixBId, MixBName, " +
- $"MixCId, MixCName, RecipeType, Remark,ProductLineId,ProductLineName from lj_planning where id={id}";
+ string sql = $"select Id, PlanNo, Status, CreateTime, UpdateTime, BegTime, EndTime, NumCar, Unit, Remark, IsEnable, FormulaId, FormulaName, PlanName, ClassName from lj_planning where Id = " + id;
DataTable dt = GetTable(sql);
@@ -145,9 +110,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
if (dt.Rows.Count == 1)
{
DataRow dr = dt.Rows[0];
- if (dr["No"] != null)
+ if (dr["PlanNo"] != null)
{
- view.No = dr["No"].ToString();
+ view.PlanNo = dr["PlanNo"].ToString();
}
if (dr["Status"] != null)
@@ -160,7 +125,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
view.CreateTime = Convert.ToDateTime(dr["CreateTime"]);
}
- if (dr["UpdateTime"] != null)
+ if (dr["UpdateTime"] != null && dr["UpdateTime"]!=DBNull.Value)
{
view.UpdateTime = Convert.ToDateTime(dr["UpdateTime"]);
}
@@ -181,100 +146,34 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
view.NumCar = Convert.ToInt32(dr["NumCar"]);
}
- if (dr["Share"] != null)
- {
- view.Share = Convert.ToInt32(dr["Share"]);
- }
-
- if (dr["MetageAId"] != null)
- {
- view.MetageAId = dr["MetageAId"].ToString();
- }
-
- if (dr["MetageAName"] != null)
- {
- view.MetageAName = dr["MetageAName"].ToString();
- }
-
- if (dr["MixAId"] != null)
- {
- view.MixAId = dr["MetageAId"].ToString();
- }
-
- if (dr["MixAName"] != null)
- {
- view.MixAName = dr["MixAName"].ToString();
- }
-
-
- if (dr["MetageB1Id"] != null)
+ if (dr["Unit"] != null)
{
- view.MetageB1Id = dr["MetageB1Id"].ToString();
+ view.Unit = Convert.ToInt32(dr["Unit"]);
}
-
- if (dr["MetageB1Name"] != null)
- {
- view.MetageB1Name = dr["MetageB1Name"].ToString();
- }
-
- if (dr["MetageB2Id"] != null)
- {
- view.MetageB2Id = dr["MetageB2Id"].ToString();
- }
-
- if (dr["MetageB2Name"] != null)
- {
- view.MetageB2Name = dr["MetageB2Name"].ToString();
- }
-
- if (dr["MixBId"] != null)
- {
- view.MixBId = dr["MixBId"].ToString();
- }
-
- if (dr["MixBName"] != null)
- {
- view.MixBName = dr["MixBName"].ToString();
- }
-
-
- if (dr["MixBId"] != null)
+
+
+ if (dr["Remark"] != null)
{
- view.MixBId = dr["MixBId"].ToString();
+ view.Remark = dr["Remark"].ToString();
}
+
- if (dr["MixBName"] != null)
- {
- view.MixBName = dr["MixBName"].ToString();
- }
-
- if (dr["MixCId"] != null)
+
+
+ if (dr["FormulaId"] != null)
{
- view.MixCId = dr["MixCId"].ToString();
+ view.FormulaId = Convert.ToInt32(dr["FormulaId"]);
}
-
- if (dr["MixCName"] != null)
- {
- view.MixCName = dr["MixCName"].ToString();
- }
-
-
- if (dr["RecipeType"] != null)
+ if (dr["ClassName"] != null)
{
- view.RecipeType = Convert.ToInt32(dr["RecipeType"]);
+ view.ClassName = dr["ClassName"].ToString();
}
- if (dr["Remark"] != null)
+ if (dr["PlanName"] != null)
{
- view.Remark = dr["Remark"].ToString();
+ view.PlanName = dr["PlanName"].ToString();
}
-
-
- view.ProductLineId = Convert.ToInt32(dr["ProductLineId"]);
- view.ProductLineName = dr["ProductLineName"].ToString();
-
-
view.Id = id;
}
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs
index 167ceb6..4cdcd7c 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs
@@ -1,7 +1,3561 @@
-namespace Mesnac.Action.ChemicalWeighing.LjPlanning
+using System.Collections.Generic;
+using System.Linq;
+using Mesnac.Action.ChemicalWeighing.LjMixManager;
+
+namespace Mesnac.Action.ChemicalWeighing.LjPlanning
{
public class LjPlanningPlcHelp
{
+ ///
+ /// 干混机1
+ ///
+ ///
+ ///
+ public static void DownD1Recipe(List recipePlcViews, List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip0_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip0_Tolerance, view.TolErance);
+
+ continue;
+
+
+
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip1_Bin,
+ new object[] { view.Bin });
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip2_Bin,
+ new object[] { view.Bin });
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip2_Tolerance, view.TolErance);
+ continue;
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Recip3_Bin,
+ new object[] { view.Bin });
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Recip3_Tolerance, view.TolErance);
+
+ }
+ }
+
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step0_MixCode,
+ new object[] { view.MixCode });
+
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD1Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD1Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ }
+
+ }
+
+
+
+
+ public static void DownD2Recipe(List recipePlcViews, List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip0_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip0_Tolerance, view.TolErance);
+ continue;
+
+ }
+
+
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip1_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip2_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip2_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Recip3_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip3_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Recip3_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+
+
+
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD2Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD2Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ }
+
+ }
+
+ public static void DownD3Recipe(List recipePlcViews, List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Recip0_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Recip1_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Recip2_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip2_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Recip3_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip3_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Recip3_Tolerance, view.TolErance);
+ continue;
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD3Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD3Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ }
+ }
+
+
+ public static void DownD4Recipe(List recipePlcViews, List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Recip0_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Recip1_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Recip2_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip2_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip2_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Recip3_Bin,
+ new object[] { view.Bin });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip3_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Recip3_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.DryerD4Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.DryerD4Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+
+ }
+ }
+
+
+
+
+ public static void DownG1Recipe(List recipePlcViews,List reShui,List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG1Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG1Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG1Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ }
+
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+
+ }
+
+
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG1Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG1Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+
+
+
+
+
+ }
+ }
+
+
+ public static void DownG2Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG2Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG2Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG2Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG2Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG2Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+
+ }
+ }
+ public static void DownG3Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG3Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG3Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG3Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG3Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG3Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG3Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG3Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG3Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+
+ }
+ }
+ public static void DownG4Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG4Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG4Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG4Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG4Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG4Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG4Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG4Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG4Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ }
+ }
+ public static void DownG5Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG5Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG5Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG5Recip0_Tolerance, view.TolErance);
+
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG5Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG5Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG5Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+ if (i == 0)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG5Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG5Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+
+
+
+
+ }
+ }
+ public static void DownG6Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG6Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG6Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG6Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG6Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG6Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG6Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+
+ if (i == 0)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG6Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG6Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ }
+ }
+ public static void DownG7Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG7Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG7Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG7Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG7Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG7Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG7Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+ if (i == 0)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step7_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step8_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG7Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG7Step9_MixSpeed, view.MixSpeed);
+ continue;
+ }
+
+ }
+ }
+ public static void DownG8Recipe(List recipePlcViews, List reShui,
+ List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipePlcViews.Count(); i++)
+ {
+ var view = recipePlcViews[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG8Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG8Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG8Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.GelatG8Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG8Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.GelatG8Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+ }
+
+ for (int i = 0; i < reShui.Count(); i++)
+ {
+ var view = reShui[i];
+
+ if (i == 0)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Recip0_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Recip0_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Recip0_Tolerance, view.TolErance);
+ continue;
+ }
+ if (i == 1)
+
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Recip1_Bin, new object[]
+ {
+ view.Bin
+ });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Recip1_Set,
+ view.Set);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Recip1_Tolerance, view.TolErance);
+ continue;
+ }
+
+
+ }
+
+ for (int i = 0; i < recipeSteps.Count(); i++)
+ {
+ var view = recipeSteps[i];
+
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step0_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step1_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step2_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step3_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step4_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step5_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step6_MixSpeed, view.MixSpeed);
+ continue;
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step7_MixSpeed, view.MixSpeed);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step8_MixSpeed, view.MixSpeed);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WaterSCG8Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WaterSCG8Step9_MixSpeed, view.MixSpeed);
+ }
+
+ }
+ }
+
+
+ public static void DownM1Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step0_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step0_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step0_Tolerance, view.Tolerance);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step1_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step1_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step1_Tolerance, view.Tolerance);
+
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step2_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step2_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step2_Tolerance, view.Tolerance);
+
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step3_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step3_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step3_Tolerance, view.Tolerance);
+
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step4_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step4_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step4_Tolerance, view.Tolerance);
+
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step5_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step5_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step5_Tolerance, view.Tolerance);
+
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step6_MixSpeed, view.MixSpeed);
+
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step6_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step6_Tolerance, view.Tolerance);
+
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step7_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step7_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step7_Tolerance, view.Tolerance);
+
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step8_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step8_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step8_Tolerance, view.Tolerance);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM1Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step9_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step9_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM1Step9_Tolerance, view.Tolerance);
+ }
+
+
+ }
+ }
+
+
+
+ public static void DownM2Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step0_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step0_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step0_Tolerance, view.Tolerance);
+
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step1_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step1_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step1_Tolerance, view.Tolerance);
+
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step2_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step2_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step2_Tolerance, view.Tolerance);
+
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step3_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step3_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step3_Tolerance, view.Tolerance);
+
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step4_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step4_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step4_Tolerance, view.Tolerance);
+
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step5_MixSpeed, view.MixSpeed);
+
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step5_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step5_Tolerance, view.Tolerance);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step6_MixSpeed, view.MixSpeed);
+
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step6_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step6_Tolerance, view.Tolerance);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step7_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step7_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step7_Tolerance, view.Tolerance);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step8_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step8_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step8_Tolerance, view.Tolerance);
+
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM2Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step9_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step9_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM2Step9_Tolerance, view.Tolerance);
+ }
+ }
+ }
+ public static void DownM3Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step0_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step0_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step0_Tolerance, view.Tolerance);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step1_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step1_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step1_Tolerance, view.Tolerance);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step2_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step2_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step2_Tolerance, view.Tolerance);
+
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step3_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step3_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step3_Tolerance, view.Tolerance);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step4_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step4_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step4_Tolerance, view.Tolerance);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step5_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step5_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step5_Tolerance, view.Tolerance);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step6_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step6_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step6_Tolerance, view.Tolerance);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step7_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step7_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step7_Tolerance, view.Tolerance);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step8_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step8_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step8_Tolerance, view.Tolerance);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM3Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step9_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step9_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM3Step9_Tolerance, view.Tolerance);
+ }
+
+ }
+ }
+
+ public static void DownM4Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step0_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step0_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step0_Tolerance, view.Tolerance);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step1_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step1_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step1_Tolerance, view.Tolerance);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step2_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step2_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step2_Tolerance, view.Tolerance);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step3_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step3_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step3_Tolerance, view.Tolerance);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step4_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step4_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step4_Tolerance, view.Tolerance);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step5_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step5_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step5_Tolerance, view.Tolerance);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step6_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step6_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step6_Tolerance, view.Tolerance);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step7_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step7_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step7_Tolerance, view.Tolerance);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step8_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step8_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step8_Tolerance, view.Tolerance);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM4Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step9_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step9_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM4Step9_Tolerance, view.Tolerance);
+ }
+
+ }
+ }
+ public static void DownM5Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step0_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step0_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step0_Tolerance, view.Tolerance);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step1_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step1_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step1_Tolerance, view.Tolerance);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step2_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step2_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step2_Tolerance, view.Tolerance);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step3_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step3_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step3_Tolerance, view.Tolerance);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step4_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step4_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step4_Tolerance, view.Tolerance);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step5_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step5_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step5_Tolerance, view.Tolerance);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step6_MixSpeed, view.MixSpeed);
+
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step6_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step6_Tolerance, view.Tolerance);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step7_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step7_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step7_Tolerance, view.Tolerance);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step8_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step8_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step8_Tolerance, view.Tolerance);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM5Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step9_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step9_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM5Step9_Tolerance, view.Tolerance);
+ }
+
+ }
+ }
+ public static void DownM6Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+
+if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step0_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step0_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step0_Tolerance, view.Tolerance);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step1_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step1_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step1_Tolerance, view.Tolerance);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step2_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step2_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step2_Tolerance, view.Tolerance);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step3_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step3_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step3_Tolerance, view.Tolerance);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step4_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step4_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step4_Tolerance, view.Tolerance);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step5_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step5_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step5_Tolerance, view.Tolerance);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step6_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step6_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step6_Tolerance, view.Tolerance);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step7_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step7_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step7_Tolerance, view.Tolerance);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step8_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step8_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step8_Tolerance, view.Tolerance);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM6Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step9_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step9_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM6Step9_Tolerance, view.Tolerance);
+ }
+
+
+ }
+ }
+ public static void DownM7Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step0_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step0_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step0_Tolerance, view.Tolerance);
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step1_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step1_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step1_Tolerance, view.Tolerance);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step2_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step2_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step2_Tolerance, view.Tolerance);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step3_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step3_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step3_Tolerance, view.Tolerance);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step4_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step4_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step4_Tolerance, view.Tolerance);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step5_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step5_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step5_Tolerance, view.Tolerance);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step6_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step6_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step6_Tolerance, view.Tolerance);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step7_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step7_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step7_Tolerance, view.Tolerance);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step8_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step8_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step8_Tolerance, view.Tolerance);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM7Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step9_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step9_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM7Step9_Tolerance, view.Tolerance);
+ }
+ }
+ }
+ public static void DownM8Recipe(List recipeSteps)
+ {
+ var basePlcHelper = BasePlcHelper.Instance;
+ for (int i = 0; i < recipeSteps.Count; i++)
+ {
+ var view = recipeSteps[i];
+ if (i == 0)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step0_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step0_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step0_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step0_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step0_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step0_Tolerance, view.Tolerance);
+ return;
+ }
+if (i == 1)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step1_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step1_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step1_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step1_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step1_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step1_Tolerance, view.Tolerance);
+ }
+if (i == 2)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step2_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step2_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step2_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step2_MixSpeed, view.MixSpeed);
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step2_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step2_Tolerance, view.Tolerance);
+ }
+if (i == 3)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step3_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step3_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step3_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step3_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step3_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step3_Tolerance, view.Tolerance);
+ }
+if (i == 4)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step4_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step4_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step4_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step4_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step4_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step4_Tolerance, view.Tolerance);
+ }
+if (i == 5)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step5_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step5_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step5_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step5_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step5_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step5_Tolerance, view.Tolerance);
+ }
+if (i == 6)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step6_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step6_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step6_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step6_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step6_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step6_Tolerance, view.Tolerance);
+ }
+if (i == 7)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step7_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step7_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step7_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step7_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step7_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step7_Tolerance, view.Tolerance);
+ }
+if (i == 8)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step8_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step8_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step8_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step8_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step8_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step8_Tolerance, view.Tolerance);
+ }
+if (i == 9)
+ {
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step9_MixCode,
+ new object[] { view.MixCode });
+
+ basePlcHelper.PlcWriteByDataKey(basePlcHelper.WeterM8Step9_MixTime,
+ new object[] { view.MixTime });
+
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step9_MixTemp, view.MixTemp);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step9_MixSpeed, view.MixSpeed);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step9_SetValue, view.SetValue);
+ basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.WeterM8Step9_Tolerance, view.Tolerance);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningView.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningView.cs
index 2710f77..f6c309f 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningView.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningView.cs
@@ -4,9 +4,10 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
{
public class LjPlanningView
{
+
public int Id { get; set; }
- public string No { get; set; }
+ public string PlanNo { get; set; }
public string Status { get; set; }
@@ -20,41 +21,20 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
public int NumCar { get; set; }
- public int Share { get; set; }
-
- public string MetageAId { get; set; }
-
- public string MetageAName { get; set; }
-
- public string MixAId { get; set; }
-
- public string MixAName { get; set; }
-
- public string MetageB1Id { get; set; }
-
- public string MetageB1Name { get; set; }
+ public int Unit { get; set; }
- public string MetageB2Id { get; set; }
-
- public string MetageB2Name { get; set; }
-
- public string MixBId { get; set; }
-
- public string MixBName { get; set; }
-
- public string MixCId { get; set; }
+ public string Remark { get; set; }
- public string MixCName { get; set; }
+ public bool IsEnable { get; set; }
- public int RecipeType { get; set; }
- public string Remark { get; set; }
+ public int FormulaId { get; set; }
- public int ProductLineId { get; set;}
+ public string FormulaName { get; set; }
- public string ProductLineName { get; set;}
+ public string PlanName { get; set; }
-
+ public string ClassName { get; set; }
}
}
\ No newline at end of file
diff --git a/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml b/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
index 834bbbe..560d7c2 100644
--- a/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
+++ b/Main/MCEdit/Data/MCProject/nodeForm/FormPlan.xml
@@ -3,7 +3,7 @@