|
|
|
@ -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];
|
|
|
|
@ -59,7 +59,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
begin += 12;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.6",true);
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.6", true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -147,7 +147,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
@ -168,7 +168,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.6",true);
|
|
|
|
|
PlcConnect.Instance.Write($"DB2104.53.6", true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -228,7 +228,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
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++)
|
|
|
|
|
{
|
|
|
|
@ -255,7 +255,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
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++)
|
|
|
|
|
{
|
|
|
|
@ -281,7 +281,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
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++)
|
|
|
|
|
{
|
|
|
|
@ -308,7 +308,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
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++)
|
|
|
|
|
{
|
|
|
|
@ -335,7 +335,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
recipePlcViews = recipePlcViews.Where(x => x.Bin != -1).ToList();
|
|
|
|
|
int begin =1998;
|
|
|
|
|
int begin = 1998;
|
|
|
|
|
DownCleanG1Recipe(begin);
|
|
|
|
|
for (int i = 0; i < recipePlcViews.Count(); i++)
|
|
|
|
|
{
|
|
|
|
@ -404,75 +404,75 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
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;
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
@ -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);
|
|
|
|
|
|
|
|
|
|