using Aitex.Core.Util; using MECF.Framework.Common.Equipment; using MECF.Framework.RT.Core.IoProviders; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.ServiceModel; using System.Text; using System.Threading.Tasks; using Venus_Core; namespace Venus_RT.Devices { public class TwincatFeedBackManager : Singleton { #region 内容 //private Dictionary _processFeedBack = new Dictionary(); #endregion /// /// 初始化 /// /// //public void Initialize(string moduleName) //{ // _processFeedBack[moduleName] = new ProcessRecipeFeedBack(); //} /// /// 更新Feebback /// /// /// //public void UpdateFeedback(string moduleName, ProcessRecipeFeedBack feedback) //{ // _processFeedBack[moduleName] = feedback; //} /// /// 获取feedback /// /// /// //public ProcessRecipeFeedBack GetModuleFeebback(string moduleName) //{ // return _processFeedBack.ContainsKey(moduleName) ? _processFeedBack[moduleName] : null; //} public string GetErrorCodeString(int errorCode) { return ProcessErrorCode[errorCode]; } public static readonly Dictionary ProcessErrorCode = new Dictionary { { 0, "正常" }, { 1, "异常1" }, { 2, "异常2" }, }; } }