ProcessUnitDefine.cs 18 KB

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