FIMSModuleAlarmDefine.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. using Aitex.Core.RT.DataCenter;
  2. using Aitex.Core.RT.Device;
  3. using Aitex.Core.RT.Device.Unit;
  4. using Aitex.Core.RT.Event;
  5. using Aitex.Core.RT.OperationCenter;
  6. using Aitex.Core.RT.SCCore;
  7. using Aitex.Core.Utilities;
  8. using Aitex.Sorter.Common;
  9. using FurnaceRT.Devices;
  10. using MECF.Framework.Common.Alarms;
  11. using MECF.Framework.Common.Equipment;
  12. using MECF.Framework.Common.Event;
  13. using MECF.Framework.Common.Schedulers;
  14. using System;
  15. using System.Collections.Generic;
  16. using System.Linq;
  17. using System.Text;
  18. using System.Threading.Tasks;
  19. namespace FurnaceRT.Equipments.FIMSs
  20. {
  21. public partial class FIMSModule
  22. {
  23. public AlarmEventItem LoadTimeoutAlarm { get; set; }
  24. public AlarmEventItem LoadFailAlarm { get; set; }
  25. public AlarmEventItem UnloadTimeoutAlarm { get; set; }
  26. public AlarmEventItem UnloadFailAlarm { get; set; }
  27. public AlarmEventItem HomeTimeoutAlarm { get; set; }
  28. public AlarmEventItem HomeFailAlarm { get; set; }
  29. private void InitAlarmEvent()
  30. {
  31. LoadFailAlarm = SubscribeAlarm(new AlarmEventItem()
  32. {
  33. EventEnum = $"{Name}.LoadFailAlarm",
  34. Description = $"{Name} load fail reason ",
  35. Solution = "No information available. Press[Retry] to delete alarm message.",
  36. Explaination = "No information available.",
  37. AutoRecovery = false,
  38. Level = EventLevel.Alarm,
  39. Action = EventAction.ClearAndRetry,
  40. Category = "FMISAlarm",
  41. }, () => { return true; });
  42. UnloadFailAlarm = SubscribeAlarm(new AlarmEventItem()
  43. {
  44. EventEnum = $"{Name}.UnloadFailAlarm",
  45. Description = $"{Name} unload fail reason ",
  46. Solution = "No information available. Press[Retry] to delete alarm message.",
  47. Explaination = "No information available.",
  48. AutoRecovery = false,
  49. Level = EventLevel.Alarm,
  50. Action = EventAction.ClearAndRetry,
  51. Category = "FMISAlarm",
  52. }, () => { return true; });
  53. LoadTimeoutAlarm = SubscribeAlarm(new AlarmEventItem()
  54. {
  55. EventEnum = $"{Name}.LoadTimeoutAlarm",
  56. Description = $"{Name} load timeout ",
  57. Solution = "No information available. Press[Retry] to delete alarm message.",
  58. Explaination = "No information available.",
  59. AutoRecovery = false,
  60. Level = EventLevel.Alarm,
  61. Action = EventAction.ClearAndRetry,
  62. Category = "FMISAlarm",
  63. }, () => { return true; });
  64. UnloadTimeoutAlarm = SubscribeAlarm(new AlarmEventItem()
  65. {
  66. EventEnum = $"{Name}.UnloadTimeoutAlarm",
  67. Description = $"{Name} unload timeout ",
  68. Solution = "No information available. Press[Retry] to delete alarm message.",
  69. Explaination = "No information available.",
  70. AutoRecovery = false,
  71. Level = EventLevel.Alarm,
  72. Action = EventAction.ClearAndRetry,
  73. Category = "FMISAlarm",
  74. }, () => { return true; });
  75. HomeFailAlarm = SubscribeAlarm(new AlarmEventItem()
  76. {
  77. EventEnum = $"{Name}.HomeFailAlarm",
  78. Description = $"{Name} home fail reason ",
  79. Solution = "No information available. Press[Retry] to delete alarm message.",
  80. Explaination = "No information available.",
  81. AutoRecovery = false,
  82. Level = EventLevel.Alarm,
  83. Action = EventAction.ClearAndRetry,
  84. Category = "FMISAlarm",
  85. }, () => { return true; });
  86. HomeTimeoutAlarm = SubscribeAlarm(new AlarmEventItem()
  87. {
  88. EventEnum = $"{Name}.HomeTimeoutAlarm",
  89. Description = $"{Name} home timeout ",
  90. Solution = "No information available. Press[Retry] to delete alarm message.",
  91. Explaination = "No information available.",
  92. AutoRecovery = false,
  93. Level = EventLevel.Alarm,
  94. Action = EventAction.ClearAndRetry,
  95. Category = "FMISAlarm",
  96. }, () => { return true; });
  97. }
  98. }
  99. }