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(); } } }