123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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<TwincatFeedBackManager>
- {
- #region 内容
- //private Dictionary<string, ProcessRecipeFeedBack> _processFeedBack = new Dictionary<string, ProcessRecipeFeedBack>();
- #endregion
- /// <summary>
- /// 初始化
- /// </summary>
- /// <param name="moduleName"></param>
- //public void Initialize(string moduleName)
- //{
- // _processFeedBack[moduleName] = new ProcessRecipeFeedBack();
- //}
- /// <summary>
- /// 更新Feebback
- /// </summary>
- /// <param name="moduleName"></param>
- /// <param name="feedback"></param>
- //public void UpdateFeedback(string moduleName, ProcessRecipeFeedBack feedback)
- //{
- // _processFeedBack[moduleName] = feedback;
- //}
- /// <summary>
- /// 获取feedback
- /// </summary>
- /// <param name="moduleName"></param>
- /// <returns></returns>
- //public ProcessRecipeFeedBack GetModuleFeebback(string moduleName)
- //{
- // return _processFeedBack.ContainsKey(moduleName) ? _processFeedBack[moduleName] : null;
- //}
- public string GetErrorCodeString(int errorCode)
- {
- return ProcessErrorCode[errorCode];
- }
- public static readonly Dictionary<int, string> ProcessErrorCode = new Dictionary<int, string>
- {
- { 0, "正常" },
- { 1, "异常1" },
- { 2, "异常2" },
- };
- }
- }
|