EventEnum.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Runtime.Serialization;
  6. using Aitex.Common.Util;
  7. namespace Aitex.Core.RT.Event
  8. {
  9. [DataContract]
  10. [Serializable]
  11. public enum EventEnum
  12. {
  13. /// <summary>
  14. /// 操控权限:{0}
  15. /// Only authorized account can execute operation and control command
  16. /// </summary>
  17. [EnumMember]
  18. OperationAuthorization = 9,
  19. /// <summary>
  20. /// '{0}' 退出系统。
  21. /// 用户退出系统。
  22. /// </summary>
  23. [EnumMember]
  24. UserLoggedOff = 10,
  25. /// <summary>
  26. /// '{0}' 登录系统。
  27. /// 用户登录
  28. /// </summary>
  29. [EnumMember]
  30. UserLoggedIn = 11,
  31. /// <summary>
  32. /// 用户帐号'{0}'的内容被修改。
  33. /// 用户帐号改变
  34. /// </summary>
  35. [EnumMember]
  36. AccountChanged = 12,
  37. /// <summary>
  38. /// 用户账号'{0}'的密码被修改。
  39. /// 用户账号密码变更
  40. /// </summary>
  41. [EnumMember]
  42. PasswordChanged = 13,
  43. /// <summary>
  44. /// 用户帐号'{0}'已被删除。
  45. /// 用户帐号删除
  46. /// </summary>
  47. [EnumMember]
  48. AccountDeleted = 14,
  49. /// <summary>
  50. /// 用户帐号'{0}'已被创建。
  51. /// 用户帐号创建
  52. /// </summary>
  53. [EnumMember]
  54. AccountCreated = 15,
  55. /// <summary>
  56. /// 放盘到{0}操作成功完成。。
  57. /// This event is posted right before putting a susceptor to a chamber.
  58. /// </summary>
  59. [EnumMember]
  60. PuttingWaferToChamberEnds = 19,
  61. /// <summary>
  62. /// 向{0}传盘操作开始。
  63. /// This event is posted right before putting a susceptor to a chamber.
  64. /// </summary>
  65. [EnumMember]
  66. PuttingWaferToChamberBegins = 20,
  67. /// <summary>
  68. /// 从{0}取盘操作已成功完成。
  69. /// This event is posted right after the operation of picking a susceptor from a chamber.
  70. /// </summary>
  71. [EnumMember]
  72. PickingWaferFromChamberEnds = 21,
  73. /// <summary>
  74. /// 从{0}取盘操作开始。
  75. /// This event is posted right before picking a suseceptor from some chamber,
  76. /// </summary>
  77. [EnumMember]
  78. PickingWaferFromChamberBegins = 22,
  79. /// <summary>
  80. /// 对齐操作开始
  81. ///
  82. /// </summary>
  83. [EnumMember]
  84. AlignBegins = 25,
  85. /// <summary>
  86. /// 对齐操作结束
  87. /// When chamber pressure servo stops, thie event will be thrown.
  88. /// </summary>
  89. [EnumMember]
  90. AlignEnds = 26,
  91. /// <summary>
  92. /// 对齐操作失败
  93. ///
  94. /// </summary>
  95. [EnumMember]
  96. AlignFailed = 27,
  97. /// <summary>
  98. ///
  99. /// Wafer {0} moved from {1} {2} to {3} {4}
  100. /// </summary>
  101. [EnumMember]
  102. WaferMoved = 28,
  103. /// <summary>
  104. /// Wafer create
  105. ///
  106. /// </summary>
  107. [EnumMember]
  108. WaferCreate = 36,
  109. /// <summary>
  110. ///
  111. ///
  112. /// /// </summary>
  113. [EnumMember]
  114. WaferDelete = 37,
  115. /// <summary>
  116. ///
  117. /// LOAD FOUP start
  118. /// </summary>
  119. [EnumMember]
  120. LoadFOUPStart = 41,
  121. /// <summary>
  122. ///
  123. /// LOAD FOUP End
  124. /// /// </summary>
  125. [EnumMember]
  126. LoadFOUPEnd = 42,
  127. /// <summary>
  128. ///
  129. ///
  130. /// </summary>
  131. [EnumMember]
  132. LoadFOUPFailed = 43,
  133. /// <summary>
  134. /// Unload FOUP Start
  135. ///
  136. /// /// </summary>
  137. [EnumMember]
  138. UnloadFOUPStart = 44,
  139. /// <summary>
  140. /// Unload FOUP Start
  141. /// </summary>
  142. [EnumMember]
  143. UnloadFOUPEnd = 45,
  144. /// <summary>
  145. /// UnLoad FOUP Failed
  146. ///
  147. /// </summary>
  148. [EnumMember]
  149. UnloadFOUPFailed = 46,
  150. /// <summary>
  151. /// {0}
  152. /// 默认事件类型(通用)
  153. /// </summary>
  154. [EnumMember]
  155. GeneralInfo = 1000,
  156. /// <summary>
  157. /// {0} 服务程序'{1}'被终止,原因:{2}。
  158. /// where {0} is the chamber name, while {1} is the service name. When service routine is aborted, this event will be posted.
  159. /// </summary>
  160. [EnumMember]
  161. ServiceRoutineAborted = 1023,
  162. /// <summary>
  163. /// {0} {1}:{2}。
  164. /// 用于显示在服务程序运行过程中的信息显示,{0}反应腔名,{1}服务程序名,{2}当前动作名。
  165. /// </summary>
  166. [EnumMember]
  167. ServiceRoutineInfo = 1033,
  168. /// <summary>
  169. /// {0} {1}。
  170. /// 当收到用户界面命令,并成功执行时,发出该事件。{0}反应腔名,{1}命令解释。
  171. /// </summary>
  172. [EnumMember]
  173. GuiCmdExecSucc = 1040,
  174. /// <summary>
  175. /// {0} {1}。
  176. /// 当发生软件互锁时,发出该警告信息。{0}反应腔名,{1}具体软件互锁原因。
  177. /// </summary>
  178. [EnumMember]
  179. SwInterlock = 1052,
  180. /// <summary>
  181. /// 用户 {0} 无操控权,请先获取操控权
  182. /// 只有拥有操控权的用户,才能进行操控
  183. /// </summary>
  184. [EnumMember]
  185. AccountWithoutAuthorization = 2052,
  186. /// <summary>
  187. /// {0}。
  188. /// 警告范围2000~3999,如果系统反馈的警告事件没有指定事件ID,或者ID编号范围有误,则使用当前默认的警告代码作为该事件的警告代码。
  189. /// </summary>
  190. [EnumMember]
  191. DefaultWarning = 2053,
  192. /// <summary>
  193. /// {0} {1}。
  194. /// 当用户命令执行失败时发出该警告事件。
  195. /// </summary>
  196. [EnumMember]
  197. GuiCmdExecFailed = 3027,
  198. /// <summary>
  199. /// {0} 数据库连接失败。
  200. /// 当控制程序与数据库连接断开时发出该事件。
  201. /// </summary>
  202. [EnumMember]
  203. DbConnFailed = 3034,
  204. /// <summary>
  205. /// {0} {1}。
  206. /// 当安全PLC的安全逻辑将某DO设定值拦截下来的时候发出该警告信息。
  207. /// </summary>
  208. [EnumMember]
  209. SafePlcInterlock = 3038,
  210. /// <summary>
  211. /// {0} 阀门{1}{2}失败,原因{3}。
  212. /// 当阀门打开或关闭超时的时候发出该警告信息。
  213. /// </summary>
  214. [EnumMember]
  215. ValveOperationFail = 3039,
  216. /// <summary>
  217. /// 传盘条件不具备:{0}。
  218. /// 在点击"开始"按钮后,预检各Chamber门,是否忙要求。若不具备,抛出事件,传盘不能进行
  219. /// </summary>
  220. [EnumMember]
  221. TransferPrepareFailed = 4050,
  222. /// <summary>
  223. /// {0}未检测到托盘,且无托盘记录,不能取出托盘
  224. /// 只有目标腔同时检测到托盘和托盘记录,才能取出托盘。
  225. /// </summary>
  226. [EnumMember]
  227. WaferAbsentWithoutRecord = 4051,
  228. /// <summary>
  229. /// {0}检测到托盘,且有托盘记录,无法送入托盘。
  230. /// 只有目标腔无托盘且无托盘记录时,才能送入托盘。
  231. /// </summary>
  232. [EnumMember]
  233. WaferPresentWithRecord = 4052,
  234. /// <summary>
  235. /// 向{0}传盘操作失败。
  236. /// 因某种原因,传送腔向某腔体传盘失败。
  237. /// </summary>
  238. [EnumMember]
  239. PlaceWaferFailed = 4054,
  240. /// <summary>
  241. /// 从{0}取盘操作失败。
  242. /// 因某种原因,传送腔从某腔体取盘失败。
  243. /// </summary>
  244. [EnumMember]
  245. PickingWaferFromChamberFails = 4055,
  246. /// <summary>
  247. /// 送盘后机械臂上检测到托盘。
  248. /// 在送盘后机械臂上检测到托盘时,发出此错误事件。
  249. /// </summary>
  250. [EnumMember]
  251. WaferDetectedAfterSend = 4061,
  252. /// <summary>
  253. /// 送盘前机械臂上未检测到托盘。
  254. /// 在送盘前机械臂上未检测到托盘时,发出此错误事件。
  255. /// </summary>
  256. [EnumMember]
  257. WaferNotDetectedBeforeSend = 4062,
  258. /// <summary>
  259. /// 取盘后机械臂上未检测到托盘。
  260. /// 在取盘后机械臂上未检测到托盘时,发出此错误事件。
  261. /// </summary>
  262. [EnumMember]
  263. WaferNotDetectedAfterPick = 4063,
  264. /// <summary>
  265. /// 取盘前机械臂上检测到托盘。
  266. /// 在取盘前机械臂上检测到托盘时,发出此错误事件。
  267. /// </summary>
  268. [EnumMember]
  269. WaferDetectedBeforePick = 4064,
  270. /// <summary>
  271. /// 报警事件:{0}。
  272. /// 警告范围4000~4000+,如果系统反馈的警告事件没有指定事件ID,或者ID编号范围有误,则使用当前默认的报警代码作为该事件的警告代码。
  273. /// </summary>
  274. [EnumMember]
  275. DefaultAlarm = 4093,
  276. /// <summary>
  277. /// {0} 蝶阀工作异常。
  278. /// 当蝶阀工作状态异常时,发出该报警。
  279. /// </summary>
  280. [EnumMember]
  281. ThrottleValveAbnormal = 5020,
  282. /// <summary>
  283. /// {0} PLC运行失败,请检查PLC运行情况。
  284. /// PLC运行时需不断向C#程序发送心跳包消息,如果消息发送超时,则向GUI发送该错误消息。
  285. /// </summary>
  286. [EnumMember]
  287. PlcHeartBeatFail = 5027,
  288. /// <summary>
  289. /// TCP连接成功,IP:{0} Port:{1}
  290. /// 当TCP连接成功时,发出此消息事件
  291. /// </summary>
  292. [EnumMember]
  293. TCPConnSucess = 5120,
  294. /// <summary>
  295. /// 出现通讯错误时,发送此消息
  296. /// {0} Communication error, {1}
  297. /// </summary>
  298. ///
  299. [EnumMember]
  300. IOPointAlarm = 5123,
  301. [EnumMember]
  302. IOPointAlarmReset = 5124,
  303. [EnumMember]
  304. CommunicationError = 5125,
  305. [EnumMember]
  306. ToleranceAlarm = 5126,
  307. /// <summary>
  308. /// 温度计 {0} 坏了。
  309. ///
  310. /// </summary>
  311. [EnumMember]
  312. TCBroken = 5128,
  313. [EnumMember]
  314. RunningModeChanged = 5130,
  315. /// <summary>
  316. /// Home操作开始。
  317. /// This event is posted right before home
  318. /// </summary>
  319. [EnumMember]
  320. HomeBegins = 5200,
  321. /// <summary>
  322. /// Home操作已成功完成。
  323. /// This event is posted right after home
  324. /// </summary>
  325. [EnumMember]
  326. HomeEnds = 5201,
  327. [EnumMember]
  328. HomeFailed = 5202,
  329. [EnumMember]
  330. ManualOpAccess = 5205,
  331. /// <summary>
  332. /// Read {0} Carrier ID, {1}
  333. ///
  334. /// </summary>
  335. [EnumMember]
  336. CarrierIdRead = 5206,
  337. /// <summary>
  338. /// Failed read {0} carrier ID
  339. ///
  340. /// </summary>
  341. [EnumMember]
  342. CarrierIdReadFailed = 5207,
  343. /// <summary>
  344. /// {0} wafer mapped, {1}
  345. ///
  346. /// </summary>
  347. [EnumMember]
  348. SlotMapAvailable = 5208,
  349. //
  350. //
  351. //
  352. //WaferLeftPosition
  353. //WaferArrivePosition
  354. //WaferAlignStart
  355. //WaferAlignEnd
  356. //WaferLMRead
  357. //CarrierComplete
  358. //CarrierUnloaded
  359. //CarrierRemoved
  360. //LotProcessEnd
  361. }
  362. }