TwincatFeedBackManager.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using Aitex.Core.Util;
  2. using MECF.Framework.Common.Equipment;
  3. using MECF.Framework.RT.Core.IoProviders;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Reflection;
  8. using System.ServiceModel;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using Venus_Core;
  12. namespace Venus_RT.Devices
  13. {
  14. public class TwincatFeedBackManager : Singleton<TwincatFeedBackManager>
  15. {
  16. #region 内容
  17. //private Dictionary<string, ProcessRecipeFeedBack> _processFeedBack = new Dictionary<string, ProcessRecipeFeedBack>();
  18. #endregion
  19. /// <summary>
  20. /// 初始化
  21. /// </summary>
  22. /// <param name="moduleName"></param>
  23. //public void Initialize(string moduleName)
  24. //{
  25. // _processFeedBack[moduleName] = new ProcessRecipeFeedBack();
  26. //}
  27. /// <summary>
  28. /// 更新Feebback
  29. /// </summary>
  30. /// <param name="moduleName"></param>
  31. /// <param name="feedback"></param>
  32. //public void UpdateFeedback(string moduleName, ProcessRecipeFeedBack feedback)
  33. //{
  34. // _processFeedBack[moduleName] = feedback;
  35. //}
  36. /// <summary>
  37. /// 获取feedback
  38. /// </summary>
  39. /// <param name="moduleName"></param>
  40. /// <returns></returns>
  41. //public ProcessRecipeFeedBack GetModuleFeebback(string moduleName)
  42. //{
  43. // return _processFeedBack.ContainsKey(moduleName) ? _processFeedBack[moduleName] : null;
  44. //}
  45. public string GetErrorCodeString(int errorCode)
  46. {
  47. return ProcessErrorCode[errorCode];
  48. }
  49. public static readonly Dictionary<int, string> ProcessErrorCode = new Dictionary<int, string>
  50. {
  51. { 0, "正常" },
  52. { 1, "异常1" },
  53. { 2, "异常2" },
  54. };
  55. }
  56. }