ProcessUnitDefine.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. using Newtonsoft.Json;
  2. using Newtonsoft.Json.Converters;
  3. using System.ComponentModel;
  4. using System.Runtime.Serialization;
  5. using Venus_Core.Attributes;
  6. namespace Venus_Core
  7. {
  8. /// <summary>
  9. /// 设计概述:
  10. /// 本设计主要目的,为了满足复杂的刻蚀工艺需求(各个工艺参数之间相互关联), 和应对未来不断新增的工艺需求(新的设备、
  11. /// 新的工艺、新的材料等等), 同时又能对现存的Recipe保持最大的兼容
  12. ///
  13. /// 1. 将Process 的每道工艺分解为1个至多个逻辑工艺单元, 每个逻辑工艺单元通过 Class Name 和RT的工艺算法绑定,
  14. /// 同时也和 GUI Recipe Editor 的页面布局绑定。
  15. ///
  16. /// 2. 一个逻辑单元功能调试好, 并且有在客户端使用后, 此逻辑单元想关联的 RT Process 代码和GUI 界面代码,
  17. /// 不允许再修改, 只能增加新的Class 来实现新的工艺需求
  18. ///
  19. /// 3. 通过配置文件里面定义 ProcessUnit Class Name列表, 来定义当前机台支持的工艺功能, 也就是说如果Recipe文件里面保函了
  20. /// 配置文件里面没有列出的工艺单元, 表明本机台不支持此Recipe, 并报警提示用户
  21. /// </summary>
  22. public enum VenusUnits
  23. {
  24. PressureByPressureModeUnit,
  25. TCPUnit,
  26. BiasUnit,
  27. GasControlUnit,
  28. ESCHVUnit,
  29. ProcessKitUnit
  30. }
  31. public enum VenusCleanRecipeUnits
  32. {
  33. PressureByPressureModeUnit,
  34. TCPUnit,
  35. GasControlUnit,
  36. ProcessKitUnit
  37. }
  38. public enum Kepler2300Uints
  39. {
  40. PressureByPressureModeUnit,
  41. TCPUnit,
  42. BiasUnit,
  43. GasControlUnit,
  44. ProcessKitUnit
  45. }
  46. public enum Kepler2300CleanRecipeUints
  47. {
  48. PressureByPressureModeUnit,
  49. TCPUnit,
  50. GasControlUnit,
  51. ProcessKitUnit
  52. }
  53. public enum Kepler2200AUnits
  54. {
  55. PressureByPressureModeUnit,
  56. Kepler2200GasControlUnit,
  57. HeaterUnit,
  58. TCPUnit
  59. }
  60. public enum Kepler2200BUnits
  61. {
  62. PressureByPressureModeUnit,
  63. Kepler2200GasControlUnit,
  64. HeaterUnit,
  65. RFBoxUnit,
  66. TCPUnit
  67. }
  68. public enum VenusSEUnits
  69. {
  70. PressureByPressureModeUnit,
  71. TCPUnit,
  72. BiasUnit,
  73. VenusSEGasControlUnit,
  74. ESCHVUnit,
  75. ProcessKitUnit
  76. }
  77. public enum VenusDEUnits
  78. {
  79. }
  80. public partial class PressureByPressureModeUnit : ProcessUnitBase
  81. {
  82. public string UnitName { get; set; } = "PressureModeUnit";
  83. [IsTolerance]
  84. public ToleranceMode ToleranceMode { get; set; }
  85. [IsTolerance]
  86. [CustomName("ToleranceDelayTime(ms)")]
  87. public int ToleranceDelayTime { get; set; }
  88. public PressureUnitMode PressureUnitMode { get; set; }
  89. public float StartValue { get; set; }
  90. [IsTolerance]
  91. public int StartValueWarningRange { get; set; }
  92. [IsTolerance]
  93. public int StartValueAlarmRange { get; set; }
  94. public int ValvePositionPreset { get; set; }
  95. [IsCanConfigIgnore]
  96. public bool EnableRamp { get; set; }
  97. public int HoldTime { get; set; }
  98. public float TargetValue { get; set; }
  99. //public event PropertyChangedEventHandler PropertyChanged;
  100. //public void InvokePropertyChanged(string propertyName)
  101. //{
  102. // if (PropertyChanged != null)
  103. // {
  104. // PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  105. // }
  106. //}
  107. }
  108. public class HeaterUnit : ProcessUnitBase
  109. {
  110. public string UnitName { get; set; } = "HeaterUnit";
  111. [CustomName("Heater Temperature(℃)")]
  112. public int HeaterTemp { get; set; }
  113. [CustomName("Heater Ratio")]
  114. public int HeaterRatio { get; set; }
  115. public Suspect SuspectPosition { get; set; }
  116. public int PositionOffset { get; set; }
  117. }
  118. public class TCPUnit : ProcessUnitBase
  119. {
  120. private string m_UnitName = "TCPUnit";
  121. public string UnitName
  122. {
  123. get { return m_UnitName; }
  124. set { m_UnitName = value; }
  125. }
  126. [IsTolerance]
  127. public ToleranceMode ToleranceMode { get; set; }
  128. [IsTolerance]
  129. [CustomName("ToleranceDelayTime(ms)")]
  130. public int ToleranceDelayTime { get; set; }
  131. [CustomName("RF Power(W)")]
  132. public int RFPower { get; set; }
  133. [IsTolerance]
  134. public int RFPowerWarningRange { get; set; }
  135. [IsTolerance]
  136. public int RFPowerAlarmRange { get; set; }
  137. //[JsonProperty(PropertyName = "C1(%)")]
  138. //[DataMember(Name = "C1(%)")]
  139. [CustomName("C1(%)")]
  140. public float C1 { get; set; }
  141. [CustomName("C2(%)")]
  142. public float C2 { get; set; }
  143. [IsOnlyRead]
  144. [CustomName("AutoC1(%)")]
  145. public float AutoC1 { get; set; }
  146. [IsOnlyRead]
  147. [CustomName("AutoC2(%)")]
  148. public float AutoC2 { get; set; }
  149. [CustomName("RF Max ReflectedPower(W)")]
  150. public int MaxReflectedPower { get; set; }
  151. [JsonConverter(typeof(StringEnumConverter))]
  152. public MatchWorkMode MatchWorkMode { get; set; }
  153. private bool m_EnableRamp;
  154. [IsCanConfigIgnore]
  155. public bool EnableRamp
  156. {
  157. get { return m_EnableRamp;}
  158. set { m_EnableRamp = value; }
  159. }
  160. //public int StartPower { get; set; }
  161. public int TargetRFPower { get; set; }
  162. }
  163. public class BiasUnit : ProcessUnitBase
  164. {
  165. public string UnitName { get; set; } = "BiasUnit";
  166. [IsTolerance]
  167. public ToleranceMode ToleranceMode { get; set; }
  168. [IsTolerance]
  169. [CustomName("ToleranceDelayTime(ms)")]
  170. public int ToleranceDelayTime { get; set; }
  171. //public int RFPower { get; set; }
  172. [IsTolerance]
  173. public int RFPowerWarningRange { get; set; }
  174. [IsTolerance]
  175. public int RFPowerAlarmRange { get; set; }
  176. [CustomName("BiasRF Power(W)")]
  177. public int BiasRFPower { get; set; }
  178. [CustomName("BiasC1(%)")]
  179. public float BiasC1{ get; set; }
  180. [CustomName("BiasC2(%)")]
  181. public float BiasC2 { get; set; }
  182. [IsOnlyRead]
  183. [CustomName("AutoBiasC1(%)")]
  184. public float AutoBiasC1 { get; set; }
  185. [CustomName("AutoBiasC2(%)")]
  186. [IsOnlyRead]
  187. public float AutoBiasC2 { get; set; }
  188. [CustomName("BiasRF Max ReflectedPower(W)")]
  189. public int BiasMaxReflectedPower { get; set; }
  190. [JsonConverter(typeof(StringEnumConverter))]
  191. public MatchWorkMode BiasMatchWorkMode { get; set; }
  192. [JsonConverter(typeof(StringEnumConverter))]
  193. public GeneratorMode BiasGeneratorMode { get; set; }
  194. public int PulseRateFreq { get; set; }
  195. public int PulseDutyCycle { get; set; }
  196. [IsCanConfigIgnore]
  197. public bool EnableRamp { get; set; }
  198. [JsonConverter(typeof(StringEnumConverter))]
  199. public TargetMode TargetMode { get; set; }
  200. //public int StartBiasRFPower { get; set; }
  201. public int TargetBiasRFPower { get; set; }
  202. }
  203. public class RFBoxUnit : ProcessUnitBase
  204. {
  205. public string UnitName { get; set; } = "RFBoxUnit";
  206. [CustomName("C1(%)")]
  207. public float C1 { get; set; }
  208. }
  209. public class GasControlUnit : ProcessUnitBase
  210. {
  211. public string UnitName { get; set; } = "GasControlUnit";
  212. [IsTolerance]
  213. public ToleranceMode ToleranceMode { get; set; }
  214. [IsTolerance]
  215. [CustomName("ToleranceDelayTime(ms)")]
  216. public int ToleranceDelayTime { get; set; }
  217. public int Gas1 { get; set; }
  218. [IsTolerance]
  219. public int Gas1WarningRange { get; set; }
  220. [IsTolerance]
  221. public int Gas1AlarmRange { get; set; }
  222. public int Gas2 { get; set; }
  223. [IsTolerance]
  224. public int Gas2WarningRange { get; set; }
  225. [IsTolerance]
  226. public int Gas2AlarmRange { get; set; }
  227. public int Gas3 { get; set; }
  228. [IsTolerance]
  229. public int Gas3WarningRange { get; set; }
  230. [IsTolerance]
  231. public int Gas3AlarmRange { get; set; }
  232. public int Gas4 { get; set; }
  233. [IsTolerance]
  234. public int Gas4WarningRange { get; set; }
  235. [IsTolerance]
  236. public int Gas4AlarmRange { get; set; }
  237. public int Gas5 { get; set; }
  238. [IsTolerance]
  239. public int Gas5WarningRange { get; set; }
  240. [IsTolerance]
  241. public int Gas5AlarmRange { get; set; }
  242. public int Gas6 { get; set; }
  243. [IsTolerance]
  244. public int Gas6WarningRange { get; set; }
  245. [IsTolerance]
  246. public int Gas6AlarmRange { get; set; }
  247. public int Gas7 { get; set; }
  248. [IsTolerance]
  249. public int Gas7WarningRange { get; set; }
  250. [IsTolerance]
  251. public int Gas7AlarmRange { get; set; }
  252. public int Gas8 { get; set; }
  253. [IsTolerance]
  254. public int Gas8WarningRange { get; set; }
  255. [IsTolerance]
  256. public int Gas8AlarmRange { get; set; }
  257. [IsCanConfigIgnore]
  258. public bool EnableRamp { get; set; }
  259. public int Gas1Target { get; set; }
  260. public int Gas2Target { get; set; }
  261. public int Gas3Target { get; set; }
  262. public int Gas4Target { get; set; }
  263. public int Gas5Target { get; set; }
  264. public int Gas6Target { get; set; }
  265. public int Gas7Target { get; set; }
  266. public int Gas8Target { get; set; }
  267. public int FlowRatie { get; set; }
  268. }
  269. public class Kepler2200GasControlUnit : ProcessUnitBase
  270. {
  271. public string UnitName { get; set; } = "GasUnit";
  272. [IsTolerance]
  273. public ToleranceMode ToleranceMode { get; set; }
  274. [IsTolerance]
  275. [CustomName("ToleranceDelayTime(ms)")]
  276. public int ToleranceDelayTime { get; set; }
  277. public int Gas1 { get; set; }
  278. [IsTolerance]
  279. public int Gas1WarningRange { get; set; }
  280. [IsTolerance]
  281. public int Gas1AlarmRange { get; set; }
  282. public int Gas2 { get; set; }
  283. [IsTolerance]
  284. public int Gas2WarningRange { get; set; }
  285. [IsTolerance]
  286. public int Gas2AlarmRange { get; set; }
  287. public int Gas3 { get; set; }
  288. [IsTolerance]
  289. public int Gas3WarningRange { get; set; }
  290. [IsTolerance]
  291. public int Gas3AlarmRange { get; set; }
  292. public int Gas4 { get; set; }
  293. [IsTolerance]
  294. public int Gas4WarningRange { get; set; }
  295. [IsTolerance]
  296. public int Gas4AlarmRange { get; set; }
  297. public int Gas5 { get; set; }
  298. [IsTolerance]
  299. public int Gas5WarningRange { get; set; }
  300. [IsTolerance]
  301. public int Gas5AlarmRange { get; set; }
  302. public int Gas6 { get; set; }
  303. [IsTolerance]
  304. public int Gas6WarningRange { get; set; }
  305. [IsTolerance]
  306. public int Gas6AlarmRange { get; set; }
  307. }
  308. public class VenusSEGasControlUnit : ProcessUnitBase
  309. {
  310. public string UnitName { get; set; } = "SEGasControlUnit";
  311. [IsTolerance]
  312. public ToleranceMode ToleranceMode { get; set; }
  313. [IsTolerance]
  314. [CustomName("ToleranceDelayTime(ms)")]
  315. public int ToleranceDelayTime { get; set; }
  316. public int Gas1 { get; set; }
  317. [IsTolerance]
  318. public int Gas1WarningRange { get; set; }
  319. [IsTolerance]
  320. public int Gas1AlarmRange { get; set; }
  321. public int Gas2 { get; set; }
  322. [IsTolerance]
  323. public int Gas2WarningRange { get; set; }
  324. [IsTolerance]
  325. public int Gas2AlarmRange { get; set; }
  326. public int Gas3 { get; set; }
  327. [IsTolerance]
  328. public int Gas3WarningRange { get; set; }
  329. [IsTolerance]
  330. public int Gas3AlarmRange { get; set; }
  331. public int Gas4 { get; set; }
  332. [IsTolerance]
  333. public int Gas4WarningRange { get; set; }
  334. [IsTolerance]
  335. public int Gas4AlarmRange { get; set; }
  336. public int Gas5 { get; set; }
  337. [IsTolerance]
  338. public int Gas5WarningRange { get; set; }
  339. [IsTolerance]
  340. public int Gas5AlarmRange { get; set; }
  341. public int Gas6 { get; set; }
  342. [IsTolerance]
  343. public int Gas6WarningRange { get; set; }
  344. [IsTolerance]
  345. public int Gas6AlarmRange { get; set; }
  346. public int Gas7 { get; set; }
  347. [IsTolerance]
  348. public int Gas7WarningRange { get; set; }
  349. [IsTolerance]
  350. public int Gas7AlarmRange { get; set; }
  351. public int Gas8 { get; set; }
  352. [IsTolerance]
  353. public int Gas8WarningRange { get; set; }
  354. [IsTolerance]
  355. public int Gas8AlarmRange { get; set; }
  356. public int Gas9 { get; set;}
  357. [IsTolerance]
  358. public int Gas9WarningRange { get; set; }
  359. [IsTolerance]
  360. public int Gas9AlarmRange { get; set; }
  361. public int Gas10 { get; set;}
  362. [IsTolerance]
  363. public int Gas10WarningRange { get; set; }
  364. [IsTolerance]
  365. public int Gas10AlarmRange { get; set; }
  366. public int Gas11 { get; set;}
  367. [IsTolerance]
  368. public int Gas11WarningRange { get; set; }
  369. [IsTolerance]
  370. public int Gas11AlarmRange { get; set; }
  371. public int Gas12 { get; set;}
  372. [IsTolerance]
  373. public int Gas12WarningRange { get; set; }
  374. [IsTolerance]
  375. public int Gas12AlarmRange { get; set; }
  376. }
  377. public class ESCHVUnit : ProcessUnitBase
  378. {
  379. public string UnitName { get; set; } = "ESCHVUnit";
  380. [IsTolerance]
  381. public ToleranceMode ToleranceMode { get; set; }
  382. [IsTolerance]
  383. [CustomName("ToleranceDelayTime(ms)")]
  384. public int ToleranceDelayTime { get; set; }
  385. public int BacksideHelium { get; set; }
  386. [IsTolerance]
  387. public float HeliumWarningRange { get; set; }
  388. [IsTolerance]
  389. public float HeliumAlarmRange { get; set; }
  390. //public int MinHeFlow { get; set; }
  391. //public int MaxHeFlow { get; set; }
  392. //[CustomName("CheckDelay(ms)")]
  393. //public int CheckDelay { get; set; }
  394. public int ESCClampValtage { get; set; }
  395. public int Temperature { get; set; }
  396. }
  397. //public class SEESCHVUnit : ProcessUnitBase
  398. //{
  399. // public string UnitName { get; set; } = "SEESCHVUnit";
  400. // [IsTolerance]
  401. // public ToleranceMode ToleranceMode { get; set; }
  402. // [IsTolerance]
  403. // [CustomName("ToleranceDelayTime(ms)")]
  404. // public int ToleranceDelayTime { get; set; }
  405. // public int BacksideHelium { get; set; }
  406. // [IsTolerance]
  407. // public int HeliumWarningRange { get; set; }
  408. // [IsTolerance]
  409. // public int HeliumAlarmRange { get; set; }
  410. // public int ESCClampValtage { get; set; }
  411. // public int Temperature { get; set; }
  412. //}
  413. public class ProcessKitUnit : ProcessUnitBase
  414. {
  415. public string UnitName { get; set; } = "ProcessKitUnit";
  416. private MovementPosition m_LiftPinPostion;
  417. [JsonConverter(typeof(StringEnumConverter))]
  418. public MovementPosition LiftPinPostion
  419. {
  420. get { return m_LiftPinPostion; }
  421. set { m_LiftPinPostion = value; }
  422. }
  423. [JsonConverter(typeof(StringEnumConverter))]
  424. public MovementPosition WeprBasrPinPosition { get; set; }
  425. }
  426. }