|
|
|
@ -41,8 +41,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin = 58;
|
|
|
|
|
DownCleanD1Recipe(begin);
|
|
|
|
|
int begin = 58;
|
|
|
|
|
DownCleanD1Recipe(begin);
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipePlcViews[i];
|
|
|
|
@ -57,14 +57,14 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.6",true);
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.6", true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DownD2Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
{
|
|
|
|
@ -85,11 +85,11 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.7", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -112,7 +112,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.54.0", true);
|
|
|
|
|
}
|
|
|
|
@ -137,17 +137,17 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.54.1", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DownG1Recipe(List<RecipePlcView> recipePlcViews,List<Step> recipeSteps)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DownG1Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin = 1018;
|
|
|
|
@ -158,21 +158,21 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
Dowd(begin, view);
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 1038;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.6",true);
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.6", true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DownG2Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
public static void DownG2Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin = 1158;
|
|
|
|
@ -184,9 +184,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 1178;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
@ -194,9 +194,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.54.2", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownG3Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
@ -211,8 +211,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 1318;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
@ -220,15 +220,15 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.7", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownG4Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin = 1438;
|
|
|
|
|
int begin = 1438;
|
|
|
|
|
DownCleanG1Recipe(begin);
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
@ -236,7 +236,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
Dowd(begin, view);
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 1458;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
@ -244,18 +244,18 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.54.4", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DownG5Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin = 1578;
|
|
|
|
|
int begin = 1578;
|
|
|
|
|
DownCleanG1Recipe(begin);
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
@ -264,8 +264,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 1598;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
@ -273,15 +273,15 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.54.6", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownG6Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin =1718;
|
|
|
|
|
int begin = 1718;
|
|
|
|
|
DownCleanG1Recipe(begin);
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
@ -290,9 +290,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 1738;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
@ -300,15 +300,15 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.54.7", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownG7Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin =1858;
|
|
|
|
|
int begin = 1858;
|
|
|
|
|
DownCleanG1Recipe(begin);
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
@ -317,8 +317,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 1878;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
@ -326,16 +326,16 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.0", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public static void DownG8Recipe(List<RecipePlcView> recipePlcViews, List<Step> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin =1998;
|
|
|
|
|
int begin = 1998;
|
|
|
|
|
DownCleanG1Recipe(begin);
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
@ -343,23 +343,23 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
Dowd(begin, view);
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 2018;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.1", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void DownM1Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int begin = 2138;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
@ -367,11 +367,11 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.2", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -385,9 +385,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.3", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM3Recipe(List<MixStep> recipeSteps)
|
|
|
|
@ -399,80 +399,80 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.4", true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void DownM4Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 2738;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.5", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM5Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 2938;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.6", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM6Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 3138;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.7", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM7Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 3338;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.56.0", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM8Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 3538;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.56.1", true);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void DownM4Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 2738;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.5", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM5Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 2938;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.6", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM6Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 3138;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.55.7", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM7Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 3338;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.56.0", true);
|
|
|
|
|
}
|
|
|
|
|
public static void DownM8Recipe(List<MixStep> recipeSteps)
|
|
|
|
|
{
|
|
|
|
|
int begin = 3538;
|
|
|
|
|
DownM1CleanRecipe(begin);
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.56.1", true);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static DryerView GetDryerView(int start)
|
|
|
|
|
{
|
|
|
|
@ -583,14 +583,14 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
|
|
|
|
|
var data = operateResult.Content;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
|
|
{
|
|
|
|
|
var bytes = data.Skip(i * 20).Take(20).ToArray();
|
|
|
|
|
MixStep step = new MixStep()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MixCode = byteTransform.TransInt16(bytes, 0),
|
|
|
|
|
MixTime = byteTransform.TransInt16(bytes, 2),
|
|
|
|
|
MixTemp = byteTransform.TransSingle(bytes, 4),
|
|
|
|
@ -609,62 +609,62 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
{
|
|
|
|
|
List<RecipePlcView> recipePlcViews = GetClean(12);
|
|
|
|
|
List<Step> recipeSteps = GetCleanStep(10);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipePlcViews[i];
|
|
|
|
|
Dowd(begin, view);
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//begin += 120;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void DownCleanG1Recipe(int begin)
|
|
|
|
|
{
|
|
|
|
|
List<RecipePlcView> recipePlcViews = GetClean(2);
|
|
|
|
|
List<Step> recipeSteps = GetCleanStep(10);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipePlcViews[i];
|
|
|
|
|
Dowd(begin, view);
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//begin += 20;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowSteps(begin, view);
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void DownM1CleanRecipe(int begin)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<MixStep> recipeSteps = GetCleanMixStep(10);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
|
var view = recipeSteps[i];
|
|
|
|
|
DowMSteps(begin, view);
|
|
|
|
|
begin += 20;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -697,7 +697,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
private static void DowMSteps(int start, MixStep step)
|
|
|
|
|
{
|
|
|
|
|
int mixCode = start;
|
|
|
|
|
var s= PlcConnect.Instance.Write($"DB2104.{mixCode}.0", step.MixCode);
|
|
|
|
|
var s = PlcConnect.Instance.Write($"DB2104.{mixCode}.0", step.MixCode);
|
|
|
|
|
int mixTime = start + 2;
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.{mixTime}.0", step.MixTime);
|
|
|
|
|
|
|
|
|
@ -773,6 +773,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|