|
|
|
@ -2,8 +2,7 @@
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.Office.Interop.Excel;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.LjMixManager
|
|
|
|
|
{
|
|
|
|
@ -2262,7 +2261,7 @@ if (i == 9)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DownM1Recipe(List<Step> recipeSteps)
|
|
|
|
|
public static void DownM1Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = BasePlcHelper.Instance;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count; i++)
|
|
|
|
@ -2278,6 +2277,9 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step0_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step0_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step0_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step0_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 1)
|
|
|
|
|
{
|
|
|
|
@ -2289,6 +2291,10 @@ if (i == 1)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step1_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step1_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step1_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step1_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 2)
|
|
|
|
|
{
|
|
|
|
@ -2300,6 +2306,10 @@ if (i == 2)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step2_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step2_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step2_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step2_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 3)
|
|
|
|
|
{
|
|
|
|
@ -2311,6 +2321,10 @@ if (i == 3)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step3_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step3_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step3_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step3_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 4)
|
|
|
|
|
{
|
|
|
|
@ -2322,6 +2336,10 @@ if (i == 4)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step4_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step4_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step4_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step4_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 5)
|
|
|
|
|
{
|
|
|
|
@ -2333,6 +2351,10 @@ if (i == 5)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step5_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step5_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step5_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step5_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 6)
|
|
|
|
|
{
|
|
|
|
@ -2344,6 +2366,11 @@ if (i == 6)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step6_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step6_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step6_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step6_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 7)
|
|
|
|
|
{
|
|
|
|
@ -2355,6 +2382,10 @@ if (i == 7)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step7_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step7_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step7_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step7_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 8)
|
|
|
|
|
{
|
|
|
|
@ -2366,6 +2397,9 @@ if (i == 8)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step8_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step8_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step8_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step8_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 9)
|
|
|
|
|
{
|
|
|
|
@ -2377,6 +2411,9 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step9_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step9_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step9_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M1Step9_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2385,7 +2422,7 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DownM2Recipe(List<Step> recipeSteps)
|
|
|
|
|
public static void DownM2Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = BasePlcHelper.Instance;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count; i++)
|
|
|
|
@ -2401,6 +2438,10 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step0_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step0_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step0_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step0_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 1)
|
|
|
|
|
{
|
|
|
|
@ -2412,6 +2453,10 @@ if (i == 1)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step1_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step1_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step1_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step1_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 2)
|
|
|
|
|
{
|
|
|
|
@ -2423,6 +2468,10 @@ if (i == 2)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step2_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step2_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step2_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step2_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 3)
|
|
|
|
|
{
|
|
|
|
@ -2434,6 +2483,10 @@ if (i == 3)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step3_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step3_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step3_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step3_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 4)
|
|
|
|
|
{
|
|
|
|
@ -2445,6 +2498,10 @@ if (i == 4)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step4_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step4_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step4_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step4_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 5)
|
|
|
|
|
{
|
|
|
|
@ -2456,6 +2513,10 @@ if (i == 5)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step5_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step5_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step5_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step5_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 6)
|
|
|
|
|
{
|
|
|
|
@ -2467,6 +2528,10 @@ if (i == 6)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step6_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step6_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step6_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step6_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 7)
|
|
|
|
|
{
|
|
|
|
@ -2478,6 +2543,8 @@ if (i == 7)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step7_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step7_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step7_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step7_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 8)
|
|
|
|
|
{
|
|
|
|
@ -2489,6 +2556,10 @@ if (i == 8)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step8_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step8_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step8_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step8_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 9)
|
|
|
|
|
{
|
|
|
|
@ -2500,10 +2571,13 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step9_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step9_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step9_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M2Step9_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public static void DownM3Recipe(List<Step> recipeSteps)
|
|
|
|
|
public static void DownM3Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = BasePlcHelper.Instance;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count; i++)
|
|
|
|
@ -2519,6 +2593,8 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step0_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step0_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step0_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step0_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 1)
|
|
|
|
|
{
|
|
|
|
@ -2530,6 +2606,8 @@ if (i == 1)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step1_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step1_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step1_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step1_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 2)
|
|
|
|
|
{
|
|
|
|
@ -2541,6 +2619,9 @@ if (i == 2)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step2_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step2_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step2_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step2_tolerance, view.Tolerance);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (i == 3)
|
|
|
|
|
{
|
|
|
|
@ -2552,6 +2633,9 @@ if (i == 3)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step3_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step3_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step3_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step3_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 4)
|
|
|
|
|
{
|
|
|
|
@ -2563,6 +2647,8 @@ if (i == 4)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step4_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step4_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step4_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step4_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 5)
|
|
|
|
|
{
|
|
|
|
@ -2574,6 +2660,8 @@ if (i == 5)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step5_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step5_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step5_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step5_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 6)
|
|
|
|
|
{
|
|
|
|
@ -2585,6 +2673,9 @@ if (i == 6)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step6_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step6_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step6_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step6_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 7)
|
|
|
|
|
{
|
|
|
|
@ -2596,6 +2687,9 @@ if (i == 7)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step7_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step7_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step7_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step7_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 8)
|
|
|
|
|
{
|
|
|
|
@ -2607,6 +2701,8 @@ if (i == 8)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step8_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step8_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step8_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step8_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 9)
|
|
|
|
|
{
|
|
|
|
@ -2618,12 +2714,15 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step9_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step9_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step9_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M3Step9_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void DownM4Recipe(List<Step> recipeSteps)
|
|
|
|
|
public static void DownM4Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = BasePlcHelper.Instance;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count; i++)
|
|
|
|
@ -2639,6 +2738,9 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step0_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step0_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step0_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step0_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 1)
|
|
|
|
|
{
|
|
|
|
@ -2650,6 +2752,9 @@ if (i == 1)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step1_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step1_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step1_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step1_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 2)
|
|
|
|
|
{
|
|
|
|
@ -2661,6 +2766,9 @@ if (i == 2)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step2_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step2_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step2_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step2_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 3)
|
|
|
|
|
{
|
|
|
|
@ -2672,6 +2780,8 @@ if (i == 3)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step3_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step3_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step3_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step3_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 4)
|
|
|
|
|
{
|
|
|
|
@ -2683,6 +2793,9 @@ if (i == 4)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step4_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step4_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step4_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step4_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 5)
|
|
|
|
|
{
|
|
|
|
@ -2694,6 +2807,8 @@ if (i == 5)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step5_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step5_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step5_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step5_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 6)
|
|
|
|
|
{
|
|
|
|
@ -2705,6 +2820,9 @@ if (i == 6)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step6_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step6_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step6_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step6_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 7)
|
|
|
|
|
{
|
|
|
|
@ -2716,6 +2834,9 @@ if (i == 7)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step7_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step7_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step7_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step7_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 8)
|
|
|
|
|
{
|
|
|
|
@ -2727,6 +2848,9 @@ if (i == 8)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step8_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step8_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step8_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step8_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 9)
|
|
|
|
|
{
|
|
|
|
@ -2738,11 +2862,14 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step9_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step9_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step9_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M4Step9_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public static void DownM5Recipe(List<Step> recipeSteps)
|
|
|
|
|
public static void DownM5Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = BasePlcHelper.Instance;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count; i++)
|
|
|
|
@ -2758,6 +2885,9 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step0_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step0_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step0_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step0_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 1)
|
|
|
|
|
{
|
|
|
|
@ -2769,6 +2899,8 @@ if (i == 1)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step1_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step1_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step1_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step1_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 2)
|
|
|
|
|
{
|
|
|
|
@ -2780,6 +2912,8 @@ if (i == 2)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step2_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step2_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step2_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step2_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 3)
|
|
|
|
|
{
|
|
|
|
@ -2791,6 +2925,9 @@ if (i == 3)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step3_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step3_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step3_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step3_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 4)
|
|
|
|
|
{
|
|
|
|
@ -2802,6 +2939,8 @@ if (i == 4)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step4_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step4_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step4_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step4_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 5)
|
|
|
|
|
{
|
|
|
|
@ -2813,6 +2952,8 @@ if (i == 5)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step5_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step5_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step5_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step5_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 6)
|
|
|
|
|
{
|
|
|
|
@ -2824,6 +2965,10 @@ if (i == 6)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step6_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step6_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step6_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step6_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 7)
|
|
|
|
|
{
|
|
|
|
@ -2835,6 +2980,8 @@ if (i == 7)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step7_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step7_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step7_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step7_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 8)
|
|
|
|
|
{
|
|
|
|
@ -2846,6 +2993,8 @@ if (i == 8)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step8_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step8_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step8_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step8_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 9)
|
|
|
|
|
{
|
|
|
|
@ -2857,11 +3006,13 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step9_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step9_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step9_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M5Step9_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public static void DownM6Recipe(List<Step> recipeSteps)
|
|
|
|
|
public static void DownM6Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = BasePlcHelper.Instance;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count; i++)
|
|
|
|
@ -2878,6 +3029,9 @@ if (i == 0)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step0_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step0_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step0_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step0_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 1)
|
|
|
|
|
{
|
|
|
|
@ -2889,6 +3043,8 @@ if (i == 1)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step1_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step1_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step1_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step1_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 2)
|
|
|
|
|
{
|
|
|
|
@ -2900,6 +3056,9 @@ if (i == 2)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step2_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step2_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step2_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step2_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 3)
|
|
|
|
|
{
|
|
|
|
@ -2911,6 +3070,9 @@ if (i == 3)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step3_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step3_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step3_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step3_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 4)
|
|
|
|
|
{
|
|
|
|
@ -2922,6 +3084,8 @@ if (i == 4)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step4_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step4_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step4_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step4_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 5)
|
|
|
|
|
{
|
|
|
|
@ -2933,6 +3097,8 @@ if (i == 5)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step5_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step5_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step5_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step5_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 6)
|
|
|
|
|
{
|
|
|
|
@ -2944,6 +3110,8 @@ if (i == 6)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step6_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step6_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step6_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step6_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 7)
|
|
|
|
|
{
|
|
|
|
@ -2955,6 +3123,9 @@ if (i == 7)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step7_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step7_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step7_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step7_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 8)
|
|
|
|
|
{
|
|
|
|
@ -2966,6 +3137,8 @@ if (i == 8)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step8_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step8_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step8_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step8_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 9)
|
|
|
|
|
{
|
|
|
|
@ -2977,12 +3150,15 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step9_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step9_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step9_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M6Step9_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public static void DownM7Recipe(List<Step> recipeSteps)
|
|
|
|
|
public static void DownM7Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = BasePlcHelper.Instance;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count; i++)
|
|
|
|
@ -2998,6 +3174,8 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step0_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step0_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step0_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step0_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 1)
|
|
|
|
|
{
|
|
|
|
@ -3009,6 +3187,9 @@ if (i == 1)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step1_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step1_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step1_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step1_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 2)
|
|
|
|
|
{
|
|
|
|
@ -3020,6 +3201,9 @@ if (i == 2)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step2_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step2_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step2_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step2_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 3)
|
|
|
|
|
{
|
|
|
|
@ -3031,6 +3215,8 @@ if (i == 3)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step3_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step3_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step3_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step3_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 4)
|
|
|
|
|
{
|
|
|
|
@ -3042,6 +3228,8 @@ if (i == 4)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step4_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step4_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step4_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step4_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 5)
|
|
|
|
|
{
|
|
|
|
@ -3053,6 +3241,8 @@ if (i == 5)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step5_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step5_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step5_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step5_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 6)
|
|
|
|
|
{
|
|
|
|
@ -3064,6 +3254,8 @@ if (i == 6)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step6_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step6_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step6_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step6_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 7)
|
|
|
|
|
{
|
|
|
|
@ -3075,6 +3267,8 @@ if (i == 7)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step7_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step7_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step7_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step7_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 8)
|
|
|
|
|
{
|
|
|
|
@ -3086,6 +3280,8 @@ if (i == 8)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step8_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step8_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step8_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step8_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 9)
|
|
|
|
|
{
|
|
|
|
@ -3097,10 +3293,13 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step9_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step9_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step9_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M7Step9_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public static void DownM8Recipe(List<Step> recipeSteps)
|
|
|
|
|
public static void DownM8Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
var basePlcHelper = BasePlcHelper.Instance;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count; i++)
|
|
|
|
@ -3116,6 +3315,9 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step0_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step0_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step0_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step0_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 1)
|
|
|
|
|
{
|
|
|
|
@ -3127,6 +3329,8 @@ if (i == 1)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step1_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step1_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step1_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step1_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 2)
|
|
|
|
|
{
|
|
|
|
@ -3138,6 +3342,9 @@ if (i == 2)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step2_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step2_mixSpeed, view.MixSpeed);
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step2_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step2_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 3)
|
|
|
|
|
{
|
|
|
|
@ -3149,6 +3356,8 @@ if (i == 3)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step3_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step3_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step3_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step3_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 4)
|
|
|
|
|
{
|
|
|
|
@ -3160,6 +3369,8 @@ if (i == 4)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step4_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step4_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step4_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step4_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 5)
|
|
|
|
|
{
|
|
|
|
@ -3171,6 +3382,8 @@ if (i == 5)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step5_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step5_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step5_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step5_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 6)
|
|
|
|
|
{
|
|
|
|
@ -3182,6 +3395,8 @@ if (i == 6)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step6_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step6_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step6_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step6_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 7)
|
|
|
|
|
{
|
|
|
|
@ -3193,6 +3408,8 @@ if (i == 7)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step7_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step7_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step7_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step7_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 8)
|
|
|
|
|
{
|
|
|
|
@ -3204,6 +3421,8 @@ if (i == 8)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step8_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step8_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step8_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step8_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
if (i == 9)
|
|
|
|
|
{
|
|
|
|
@ -3215,6 +3434,8 @@ if (i == 9)
|
|
|
|
|
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step9_mixTemp, view.MixTemp);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step9_mixSpeed, view.MixSpeed);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step9_setValue, view.SetValue);
|
|
|
|
|
basePlcHelper.PlcWriteFloatByDataKey(basePlcHelper.Weter_M8Step9_tolerance, view.Tolerance);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|