You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
944 B
C#

using System;
using System.IO;
using System.Reflection;
using System.Xml;
using Mesnac.Equips;
namespace Mesnac.Action.Feeding.BasicInfo
{
public class PlcAction
{
public bool CurrentPlanFinished()
{
RecipeData recipeData = new RecipeData();
int planLotCount = recipeData.GetCurrentPlanLotCount();
if ( (double)PlcData.Instance.MixingFinishedCount.LastValue >= planLotCount
|| (double)PlcData.Instance.PloyFinishedCount.LastValue < planLotCount
|| (double)PlcData.Instance.CarbonFinishedCount.LastValue < planLotCount
|| (double) PlcData.Instance.OilFinishedCount.LastValue < planLotCount)
{
return false;
}
return true;
}
public void ExecuteNexPlan()
{
new Mesnac.Action.Feeding.ProducingPlan.ExecutePlan().ExecuteNext();
}
}
}