ProcessUnitDefine.cs 19 KB

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