LoadPortModuleAlarmDefine.cs 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using Aitex.Core.Common;
  5. using Aitex.Core.RT.DataCenter;
  6. using Aitex.Core.RT.Device;
  7. using Aitex.Core.RT.Device.Unit;
  8. using Aitex.Core.RT.Event;
  9. using Aitex.Core.RT.Fsm;
  10. using Aitex.Core.RT.OperationCenter;
  11. using Aitex.Core.RT.Routine;
  12. using Aitex.Core.RT.SCCore;
  13. using Aitex.Core.Utilities;
  14. using Aitex.Sorter.Common;
  15. using MECF.Framework.Common.Alarms;
  16. using MECF.Framework.Common.Equipment;
  17. using MECF.Framework.Common.Event;
  18. using MECF.Framework.Common.Schedulers;
  19. using MECF.Framework.Common.SubstrateTrackings;
  20. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.LoadPorts;
  21. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot;
  22. using FurnaceRT.Equipments.Systems;
  23. namespace FurnaceRT.Equipments.LPs
  24. {
  25. public partial class LoadPortModule
  26. {
  27. public AlarmEventItem LoadTimeoutAlarm { get; set; }
  28. public AlarmEventItem LoadFailAlarm { get; set; }
  29. public AlarmEventItem UnloadTimeoutAlarm { get; set; }
  30. public AlarmEventItem UnloadFailAlarm { get; set; }
  31. public AlarmEventItem HomeTimeoutAlarm { get; set; }
  32. public AlarmEventItem HomeFailAlarm { get; set; }
  33. public AlarmEventItem SMIFNotReadyWarning { get; set; }
  34. public AlarmEventItem SMIFPodNotPresentWarning { get; set; }
  35. public AlarmEventItem LoadJobFailWarning { get; set; }
  36. private void InitAlarmEvent()
  37. {
  38. LoadFailAlarm = SubscribeAlarm(new AlarmEventItem()
  39. {
  40. EventEnum = $"{Name}.LoadFailAlarm",
  41. Description = $"Load fail reason ",
  42. Solution = "No information available. Press[Retry] to delete alarm message.",
  43. Explaination = "No information available.",
  44. AutoRecovery = false,
  45. Level = EventLevel.Alarm,
  46. Action = EventAction.ClearAndRetry,
  47. Category = "SMIFAlarm",//对应AlarmDefine.xml中SMIFAlarm这个分类的名称
  48. }, () => { /*_spinLeakSensor.Reset()如果有reset代码放这里;*/ return true; });
  49. UnloadFailAlarm = SubscribeAlarm(new AlarmEventItem()
  50. {
  51. EventEnum = $"{Name}.UnloadFailAlarm",
  52. Description = $"Unload fail reason ",
  53. Solution = "No information available. Press[Retry] to delete alarm message.",
  54. Explaination = "No information available.",
  55. AutoRecovery = false,
  56. Level = EventLevel.Alarm,
  57. Action = EventAction.ClearAndRetry,
  58. Category = "SMIFAlarm",
  59. }, () => { return true; });
  60. LoadTimeoutAlarm = SubscribeAlarm(new AlarmEventItem()
  61. {
  62. EventEnum = $"{Name}.LoadTimeoutAlarm",
  63. Description = $"Load timeout ",
  64. Solution = "No information available. Press[Retry] to delete alarm message.",
  65. Explaination = "No information available.",
  66. AutoRecovery = false,
  67. Level = EventLevel.Alarm,
  68. Action = EventAction.ClearAndRetry,
  69. Category = "SMIFAlarm",
  70. }, () => { return true; });
  71. UnloadTimeoutAlarm = SubscribeAlarm(new AlarmEventItem()
  72. {
  73. EventEnum = $"{Name}.UnloadTimeoutAlarm",
  74. Description = $"Unload timeout ",
  75. Solution = "No information available. Press[Retry] to delete alarm message.",
  76. Explaination = "No information available.",
  77. AutoRecovery = false,
  78. Level = EventLevel.Alarm,
  79. Action = EventAction.ClearAndRetry,
  80. Category = "SMIFAlarm",
  81. }, () => { return true; });
  82. HomeFailAlarm = SubscribeAlarm(new AlarmEventItem()
  83. {
  84. EventEnum = $"{Name}.HomeFailAlarm",
  85. Description = $"Home fail reason ",
  86. Solution = "No information available. Press[Retry] to delete alarm message.",
  87. Explaination = "No information available.",
  88. AutoRecovery = false,
  89. Level = EventLevel.Alarm,
  90. Action = EventAction.ClearAndRetry,
  91. Category = "SMIFAlarm",
  92. }, () => { return true; });
  93. HomeTimeoutAlarm = SubscribeAlarm(new AlarmEventItem()
  94. {
  95. EventEnum = $"{Name}.HomeTimeoutAlarm",
  96. Description = $"Home timeout ",
  97. Solution = "No information available. Press[Retry] to delete alarm message.",
  98. Explaination = "No information available.",
  99. AutoRecovery = false,
  100. Level = EventLevel.Alarm,
  101. Action = EventAction.ClearAndRetry,
  102. Category = "SMIFAlarm",
  103. }, () => { return true; });
  104. SMIFNotReadyWarning = SubscribeAlarm(new AlarmEventItem()
  105. {
  106. EventEnum = $"{Name}.SMIFNotReadyWarning",
  107. Description = $"Smif not ready ",
  108. Solution = "No information available. Press[CLEAR] to delete alarm message.",
  109. Explaination = "No information available.",
  110. AutoRecovery = false,
  111. Level = EventLevel.Warning,
  112. Action = EventAction.Clear,
  113. Category = "SMIFAlarm",
  114. }, () => { return true; });
  115. SMIFPodNotPresentWarning = SubscribeAlarm(new AlarmEventItem()
  116. {
  117. EventEnum = $"{Name}.SMIFPodNotPresentWarning",
  118. Description = $"Smif pod not present ",
  119. Solution = "No information available. Press[CLEAR] to delete alarm message.",
  120. Explaination = "No information available.",
  121. AutoRecovery = false,
  122. Level = EventLevel.Warning,
  123. Action = EventAction.Clear,
  124. Category = "SMIFAlarm",
  125. }, () => { return true; });
  126. LoadJobFailWarning = SubscribeAlarm(new AlarmEventItem()
  127. {
  128. EventEnum = $"{Name}.LoadJobFailWarning",
  129. Description = $"Load job fail reason ",
  130. Solution = "No information available. Press[CLEAR] to delete alarm message.",
  131. Explaination = "No information available.",
  132. AutoRecovery = false,
  133. Level = EventLevel.Warning,
  134. Action = EventAction.Clear,
  135. Category = "SMIFAlarm",
  136. }, () => { return true; });
  137. }
  138. }
  139. }