ProcessUnitDefine.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  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. [CustomName("PressureMode")]
  97. public PressureUnitMode PressureUnitMode { get; set; }
  98. public float StartValue { get; set; }
  99. [IsTolerance]
  100. public int StartValueWarningRange { get; set; } = 5;
  101. [IsTolerance]
  102. public int StartValueAlarmRange { get; set; } = 10;
  103. public int ValvePositionPreset { get; set; }
  104. [IsCanConfigIgnore]
  105. public bool EnableRamp { get; set; }
  106. public int HoldTime { get; set; }
  107. public float TargetValue { get; set; }
  108. //public event PropertyChangedEventHandler PropertyChanged;
  109. //public void InvokePropertyChanged(string propertyName)
  110. //{
  111. // if (PropertyChanged != null)
  112. // {
  113. // PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  114. // }
  115. //}
  116. }
  117. public class HeaterUnit : ProcessUnitBase
  118. {
  119. public string UnitName { get; set; } = "HeaterUnit";
  120. [IsTolerance]
  121. public ToleranceMode ToleranceMode { get; set; }
  122. [IsTolerance]
  123. [CustomName("ToleranceDelayTime(ms)")]
  124. public int ToleranceDelayTime { get; set; }
  125. [CustomName("Heater Temperature(℃)")]
  126. public int HeaterTemp { get; set; }
  127. [IsTolerance]
  128. public int HeaterTempWarningRange { get; set; }
  129. [IsTolerance]
  130. public int HeaterTempAlarmRange { get; set; }
  131. [CustomName("Heater Ratio")]
  132. public int HeaterRatio { get; set; }
  133. public Suspect SuspectPosition { get; set; }
  134. public int PositionOffset { get; set; }
  135. }
  136. public class TCPUnit : ProcessUnitBase
  137. {
  138. private string m_UnitName = "TCPUnit";
  139. public string UnitName
  140. {
  141. get { return m_UnitName; }
  142. set { m_UnitName = value; }
  143. }
  144. [IsTolerance]
  145. public ToleranceMode ToleranceMode { get; set; } = ToleranceMode.Value;
  146. [IsTolerance]
  147. [CustomName("ToleranceDelayTime(ms)")]
  148. public int ToleranceDelayTime { get; set; } = 3000;
  149. [CustomName("RF Power(W)")]
  150. public int RFPower { get; set; }
  151. [IsTolerance]
  152. public int RFPowerWarningRange { get; set; } = 5;
  153. [IsTolerance]
  154. public int RFPowerAlarmRange { get; set; } = 10;
  155. [CustomName("C1(%)")]
  156. public float C1 { get; set; }
  157. [CustomName("C2(%)")]
  158. public float C2 { get; set; }
  159. [IsOnlyRead]
  160. [CustomName("AutoC1(%)")]
  161. public float AutoC1 { get; set; }
  162. [IsOnlyRead]
  163. [CustomName("AutoC2(%)")]
  164. public float AutoC2 { get; set; }
  165. [CustomName("RF Max ReflectedPower(W)")]
  166. public int MaxReflectedPower { get; set; }
  167. [JsonConverter(typeof(StringEnumConverter))]
  168. public MatchWorkMode MatchWorkMode { get; set; }
  169. private bool m_EnableRamp;
  170. [IsCanConfigIgnore]
  171. public bool EnableRamp
  172. {
  173. get { return m_EnableRamp; }
  174. set { m_EnableRamp = value; }
  175. }
  176. //public int StartPower { get; set; }
  177. public int TargetRFPower { get; set; }
  178. }
  179. public class BiasUnit : ProcessUnitBase
  180. {
  181. public string UnitName { get; set; } = "BiasUnit";
  182. [IsTolerance]
  183. public ToleranceMode ToleranceMode { get; set; } = ToleranceMode.Value;
  184. [IsTolerance]
  185. [CustomName("ToleranceDelayTime(ms)")]
  186. public int ToleranceDelayTime { get; set; } = 3000;
  187. //public int RFPower { get; set; }
  188. [IsTolerance]
  189. public int RFPowerWarningRange { get; set; } = 5;
  190. [IsTolerance]
  191. public int RFPowerAlarmRange { get; set; } = 10;
  192. [CustomName("BiasRF Power(W)")]
  193. public int BiasRFPower { get; set; }
  194. [CustomName("BiasC1(%)")]
  195. public float BiasC1 { get; set; }
  196. [CustomName("BiasC2(%)")]
  197. public float BiasC2 { get; set; }
  198. [IsOnlyRead]
  199. [CustomName("AutoBiasC1(%)")]
  200. public float AutoBiasC1 { get; set; }
  201. [CustomName("AutoBiasC2(%)")]
  202. [IsOnlyRead]
  203. public float AutoBiasC2 { get; set; }
  204. [CustomName("BiasRF Max ReflectedPower(W)")]
  205. public int BiasMaxReflectedPower { get; set; }
  206. [JsonConverter(typeof(StringEnumConverter))]
  207. public MatchWorkMode BiasMatchWorkMode { get; set; }
  208. [JsonConverter(typeof(StringEnumConverter))]
  209. public GeneratorMode BiasGeneratorMode { get; set; }
  210. public int PulseRateFreq { get; set; }
  211. public int PulseDutyCycle { get; set; }
  212. [IsCanConfigIgnore]
  213. public bool EnableRamp { get; set; }
  214. [JsonConverter(typeof(StringEnumConverter))]
  215. public TargetMode TargetMode { get; set; }
  216. //public int StartBiasRFPower { get; set; }
  217. public int TargetBiasRFPower { get; set; }
  218. }
  219. public class RFBoxUnit : ProcessUnitBase
  220. {
  221. public string UnitName { get; set; } = "RFBoxUnit";
  222. [CustomName("RFBox C1(%)")]
  223. public float C1 { get; set; }
  224. }
  225. public class GasControlUnit : ProcessUnitBase
  226. {
  227. public string UnitName { get; set; } = "GasControlUnit";
  228. [IsTolerance]
  229. public ToleranceMode ToleranceMode { get; set; }
  230. [IsTolerance]
  231. [CustomName("ToleranceDelayTime(ms)")]
  232. public int ToleranceDelayTime { get; set; }
  233. public int Gas1 { get; set; }
  234. [IsTolerance]
  235. public int Gas1WarningRange { get; set; }
  236. [IsTolerance]
  237. public int Gas1AlarmRange { get; set; }
  238. public int Gas2 { get; set; }
  239. [IsTolerance]
  240. public int Gas2WarningRange { get; set; }
  241. [IsTolerance]
  242. public int Gas2AlarmRange { get; set; }
  243. public int Gas3 { get; set; }
  244. [IsTolerance]
  245. public int Gas3WarningRange { get; set; }
  246. [IsTolerance]
  247. public int Gas3AlarmRange { get; set; }
  248. public int Gas4 { get; set; }
  249. [IsTolerance]
  250. public int Gas4WarningRange { get; set; }
  251. [IsTolerance]
  252. public int Gas4AlarmRange { get; set; }
  253. public int Gas5 { get; set; }
  254. [IsTolerance]
  255. public int Gas5WarningRange { get; set; }
  256. [IsTolerance]
  257. public int Gas5AlarmRange { get; set; }
  258. public int Gas6 { get; set; }
  259. [IsTolerance]
  260. public int Gas6WarningRange { get; set; }
  261. [IsTolerance]
  262. public int Gas6AlarmRange { get; set; }
  263. public int Gas7 { get; set; }
  264. [IsTolerance]
  265. public int Gas7WarningRange { get; set; }
  266. [IsTolerance]
  267. public int Gas7AlarmRange { get; set; }
  268. public int Gas8 { get; set; }
  269. [IsTolerance]
  270. public int Gas8WarningRange { get; set; }
  271. [IsTolerance]
  272. public int Gas8AlarmRange { get; set; }
  273. [IsCanConfigIgnore]
  274. public bool EnableRamp { get; set; }
  275. public int Gas1Target { get; set; }
  276. public int Gas2Target { get; set; }
  277. public int Gas3Target { get; set; }
  278. public int Gas4Target { get; set; }
  279. public int Gas5Target { get; set; }
  280. public int Gas6Target { get; set; }
  281. public int Gas7Target { get; set; }
  282. public int Gas8Target { get; set; }
  283. public int FlowRatie { get; set; }
  284. }
  285. public class Kepler2200GasControlUnit : ProcessUnitBase
  286. {
  287. public string UnitName { get; set; } = "GasUnit";
  288. [IsTolerance]
  289. public ToleranceMode ToleranceMode { get; set; }
  290. [IsTolerance]
  291. [CustomName("ToleranceDelayTime(ms)")]
  292. public int ToleranceDelayTime { get; set; }
  293. public float Gas1 { get; set; }
  294. [IsTolerance]
  295. public float Gas1WarningRange { get; set; }
  296. [IsTolerance]
  297. public float Gas1AlarmRange { get; set; }
  298. public int Gas2 { get; set; }
  299. [IsTolerance]
  300. public int Gas2WarningRange { get; set; }
  301. [IsTolerance]
  302. public int Gas2AlarmRange { get; set; }
  303. public int Gas3 { get; set; }
  304. [IsTolerance]
  305. public int Gas3WarningRange { get; set; }
  306. [IsTolerance]
  307. public int Gas3AlarmRange { get; set; }
  308. public int Gas4 { get; set; }
  309. [IsTolerance]
  310. public int Gas4WarningRange { get; set; }
  311. [IsTolerance]
  312. public int Gas4AlarmRange { get; set; }
  313. public int Gas5 { get; set; }
  314. [IsTolerance]
  315. public int Gas5WarningRange { get; set; }
  316. [IsTolerance]
  317. public int Gas5AlarmRange { get; set; }
  318. public int Gas6 { get; set; }
  319. [IsTolerance]
  320. public int Gas6WarningRange { get; set; }
  321. [IsTolerance]
  322. public int Gas6AlarmRange { get; set; }
  323. public int Gas7 { get; set; }
  324. [IsTolerance]
  325. public int Gas7WarningRange { get; set; }
  326. [IsTolerance]
  327. public int Gas7AlarmRange { get; set; }
  328. public int Gas8 { get; set; }
  329. [IsTolerance]
  330. public int Gas8WarningRange { get; set; }
  331. [IsTolerance]
  332. public int Gas8AlarmRange { get; set; }
  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 float Gas1 { get; set; }
  357. [IsTolerance]
  358. public float Gas1WarningRange { get; set; } = 5;
  359. [IsTolerance]
  360. public float Gas1AlarmRange { get; set; } = 10;
  361. public float Gas2 { get; set; }
  362. [IsTolerance]
  363. public float Gas2WarningRange { get; set; } = 5;
  364. [IsTolerance]
  365. public float Gas2AlarmRange { get; set; } = 10;
  366. public float Gas3 { get; set; }
  367. [IsTolerance]
  368. public float Gas3WarningRange { get; set; } = 5;
  369. [IsTolerance]
  370. public float Gas3AlarmRange { get; set; } = 10;
  371. public float Gas4 { get; set; }
  372. [IsTolerance]
  373. public float Gas4WarningRange { get; set; } = 5;
  374. [IsTolerance]
  375. public float Gas4AlarmRange { get; set; } = 10;
  376. public float Gas5 { get; set; }
  377. [IsTolerance]
  378. public float Gas5WarningRange { get; set; } = 5;
  379. [IsTolerance]
  380. public float Gas5AlarmRange { get; set; } = 10;
  381. public float Gas6 { get; set; }
  382. [IsTolerance]
  383. public float Gas6WarningRange { get; set; } = 5;
  384. [IsTolerance]
  385. public float Gas6AlarmRange { get; set; } = 10;
  386. public float Gas7 { get; set; }
  387. [IsTolerance]
  388. public float Gas7WarningRange { get; set; } = 5;
  389. [IsTolerance]
  390. public float Gas7AlarmRange { get; set; } = 10;
  391. public float Gas8 { get; set; }
  392. [IsTolerance]
  393. public float Gas8WarningRange { get; set; } = 5;
  394. [IsTolerance]
  395. public float Gas8AlarmRange { get; set; } = 10;
  396. public float Gas9 { get; set; }
  397. [IsTolerance]
  398. public float Gas9WarningRange { get; set; } = 5;
  399. [IsTolerance]
  400. public float Gas9AlarmRange { get; set; } = 10;
  401. public float Gas10 { get; set; }
  402. [IsTolerance]
  403. public float Gas10WarningRange { get; set; } = 5;
  404. [IsTolerance]
  405. public float Gas10AlarmRange { get; set; } = 10;
  406. public float Gas11 { get; set; }
  407. [IsTolerance]
  408. public float Gas11WarningRange { get; set; } = 5;
  409. [IsTolerance]
  410. public float Gas11AlarmRange { get; set; } = 10;
  411. public float Gas12 { get; set; }
  412. [IsTolerance]
  413. public float Gas12WarningRange { get; set; } = 5;
  414. [IsTolerance]
  415. public float 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 float Gas1 { get; set; }
  426. [IsTolerance]
  427. public float Gas1WarningRange { get; set; } = 5;
  428. [IsTolerance]
  429. public float Gas1AlarmRange { get; set; } = 10;
  430. public float Gas2 { get; set; }
  431. [IsTolerance]
  432. public float Gas2WarningRange { get; set; } = 5;
  433. [IsTolerance]
  434. public float Gas2AlarmRange { get; set; } = 10;
  435. public float Gas3 { get; set; }
  436. [IsTolerance]
  437. public float Gas3WarningRange { get; set; } = 5;
  438. [IsTolerance]
  439. public float Gas3AlarmRange { get; set; } = 10;
  440. public float Gas4 { get; set; }
  441. [IsTolerance]
  442. public float Gas4WarningRange { get; set; } = 5;
  443. [IsTolerance]
  444. public float Gas4AlarmRange { get; set; } = 10;
  445. public float Gas5 { get; set; }
  446. [IsTolerance]
  447. public float Gas5WarningRange { get; set; } = 5;
  448. [IsTolerance]
  449. public float Gas5AlarmRange { get; set; } = 10;
  450. public float Gas6 { get; set; }
  451. [IsTolerance]
  452. public float Gas6WarningRange { get; set; } = 5;
  453. [IsTolerance]
  454. public float Gas6AlarmRange { get; set; } = 10;
  455. public float Gas7 { get; set; }
  456. [IsTolerance]
  457. public float Gas7WarningRange { get; set; } = 5;
  458. [IsTolerance]
  459. public float Gas7AlarmRange { get; set; } = 10;
  460. public float Gas8 { get; set; }
  461. [IsTolerance]
  462. public float Gas8WarningRange { get; set; } = 5;
  463. [IsTolerance]
  464. public float Gas8AlarmRange { get; set; } = 10;
  465. public float Gas9 { get; set; }
  466. [IsTolerance]
  467. public float Gas9WarningRange { get; set; } = 5;
  468. [IsTolerance]
  469. public float Gas9AlarmRange { get; set; } = 10;
  470. public float Gas10 { get; set; }
  471. [IsTolerance]
  472. public float Gas10WarningRange { get; set; } = 5;
  473. [IsTolerance]
  474. public float Gas10AlarmRange { get; set; } = 10;
  475. public float Gas11 { get; set; }
  476. [IsTolerance]
  477. public float Gas11WarningRange { get; set; } = 5;
  478. [IsTolerance]
  479. public float Gas11AlarmRange { get; set; } = 10;
  480. public float Gas12 { get; set; }
  481. [IsTolerance]
  482. public float Gas12WarningRange { get; set; } = 5;
  483. [IsTolerance]
  484. public float 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. //public override Dictionary<string, float> GetFDCItems()
  511. //{
  512. // Dictionary<string, float> FdcItems = new Dictionary<string, float>();
  513. // FdcItems.Add("MfcGas1.FeedBack", Gas1);
  514. // FdcItems.Add("MfcGas2.FeedBack", Gas2);
  515. // FdcItems.Add("MfcGas3.FeedBack", Gas3);
  516. // FdcItems.Add("MfcGas4.FeedBack", Gas4);
  517. // FdcItems.Add("MfcGas5.FeedBack", Gas5);
  518. // FdcItems.Add("MfcGas6.FeedBack", Gas6);
  519. // return FdcItems;
  520. //}
  521. public class HeliosBiasRFKitUnit
  522. {
  523. }
  524. }