ProcessUnitDefine.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  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. [IsTolerance]
  112. public ToleranceMode ToleranceMode { get; set; }
  113. [IsTolerance]
  114. [CustomName("ToleranceDelayTime(ms)")]
  115. public int ToleranceDelayTime { get; set; }
  116. [CustomName("Heater Temperature(℃)")]
  117. public int HeaterTemp { get; set; }
  118. [IsTolerance]
  119. public int HeaterTempWarningRange { get; set; }
  120. [IsTolerance]
  121. public int HeaterTempAlarmRange { get; set; }
  122. [CustomName("Heater Ratio")]
  123. public int HeaterRatio { get; set; }
  124. public Suspect SuspectPosition { get; set; }
  125. public int PositionOffset { get; set; }
  126. }
  127. public class TCPUnit : ProcessUnitBase
  128. {
  129. private string m_UnitName = "TCPUnit";
  130. public string UnitName
  131. {
  132. get { return m_UnitName; }
  133. set { m_UnitName = value; }
  134. }
  135. [IsTolerance]
  136. public ToleranceMode ToleranceMode { get; set; }
  137. [IsTolerance]
  138. [CustomName("ToleranceDelayTime(ms)")]
  139. public int ToleranceDelayTime { get; set; }
  140. [CustomName("RF Power(W)")]
  141. public int RFPower { get; set; }
  142. [IsTolerance]
  143. public int RFPowerWarningRange { get; set; }
  144. [IsTolerance]
  145. public int RFPowerAlarmRange { get; set; }
  146. //[JsonProperty(PropertyName = "C1(%)")]
  147. //[DataMember(Name = "C1(%)")]
  148. [CustomName("C1(%)")]
  149. public float C1 { get; set; }
  150. [CustomName("C2(%)")]
  151. public float C2 { get; set; }
  152. [IsOnlyRead]
  153. [CustomName("AutoC1(%)")]
  154. public float AutoC1 { get; set; }
  155. [IsOnlyRead]
  156. [CustomName("AutoC2(%)")]
  157. public float AutoC2 { get; set; }
  158. [CustomName("RF Max ReflectedPower(W)")]
  159. public int MaxReflectedPower { get; set; }
  160. [JsonConverter(typeof(StringEnumConverter))]
  161. public MatchWorkMode MatchWorkMode { get; set; }
  162. private bool m_EnableRamp;
  163. [IsCanConfigIgnore]
  164. public bool EnableRamp
  165. {
  166. get { return m_EnableRamp;}
  167. set { m_EnableRamp = value; }
  168. }
  169. //public int StartPower { get; set; }
  170. public int TargetRFPower { get; set; }
  171. }
  172. public class BiasUnit : ProcessUnitBase
  173. {
  174. public string UnitName { get; set; } = "BiasUnit";
  175. [IsTolerance]
  176. public ToleranceMode ToleranceMode { get; set; }
  177. [IsTolerance]
  178. [CustomName("ToleranceDelayTime(ms)")]
  179. public int ToleranceDelayTime { get; set; }
  180. //public int RFPower { get; set; }
  181. [IsTolerance]
  182. public int RFPowerWarningRange { get; set; }
  183. [IsTolerance]
  184. public int RFPowerAlarmRange { get; set; }
  185. [CustomName("BiasRF Power(W)")]
  186. public int BiasRFPower { get; set; }
  187. [CustomName("BiasC1(%)")]
  188. public float BiasC1{ get; set; }
  189. [CustomName("BiasC2(%)")]
  190. public float BiasC2 { get; set; }
  191. [IsOnlyRead]
  192. [CustomName("AutoBiasC1(%)")]
  193. public float AutoBiasC1 { get; set; }
  194. [CustomName("AutoBiasC2(%)")]
  195. [IsOnlyRead]
  196. public float AutoBiasC2 { get; set; }
  197. [CustomName("BiasRF Max ReflectedPower(W)")]
  198. public int BiasMaxReflectedPower { get; set; }
  199. [JsonConverter(typeof(StringEnumConverter))]
  200. public MatchWorkMode BiasMatchWorkMode { get; set; }
  201. [JsonConverter(typeof(StringEnumConverter))]
  202. public GeneratorMode BiasGeneratorMode { get; set; }
  203. public int PulseRateFreq { get; set; }
  204. public int PulseDutyCycle { get; set; }
  205. [IsCanConfigIgnore]
  206. public bool EnableRamp { get; set; }
  207. [JsonConverter(typeof(StringEnumConverter))]
  208. public TargetMode TargetMode { get; set; }
  209. //public int StartBiasRFPower { get; set; }
  210. public int TargetBiasRFPower { get; set; }
  211. }
  212. public class RFBoxUnit : ProcessUnitBase
  213. {
  214. public string UnitName { get; set; } = "RFBoxUnit";
  215. [CustomName("C1(%)")]
  216. public float C1 { get; set; }
  217. }
  218. public class GasControlUnit : ProcessUnitBase
  219. {
  220. public string UnitName { get; set; } = "GasControlUnit";
  221. [IsTolerance]
  222. public ToleranceMode ToleranceMode { get; set; }
  223. [IsTolerance]
  224. [CustomName("ToleranceDelayTime(ms)")]
  225. public int ToleranceDelayTime { get; set; }
  226. public int Gas1 { get; set; }
  227. [IsTolerance]
  228. public int Gas1WarningRange { get; set; }
  229. [IsTolerance]
  230. public int Gas1AlarmRange { get; set; }
  231. public int Gas2 { get; set; }
  232. [IsTolerance]
  233. public int Gas2WarningRange { get; set; }
  234. [IsTolerance]
  235. public int Gas2AlarmRange { get; set; }
  236. public int Gas3 { get; set; }
  237. [IsTolerance]
  238. public int Gas3WarningRange { get; set; }
  239. [IsTolerance]
  240. public int Gas3AlarmRange { get; set; }
  241. public int Gas4 { get; set; }
  242. [IsTolerance]
  243. public int Gas4WarningRange { get; set; }
  244. [IsTolerance]
  245. public int Gas4AlarmRange { get; set; }
  246. public int Gas5 { get; set; }
  247. [IsTolerance]
  248. public int Gas5WarningRange { get; set; }
  249. [IsTolerance]
  250. public int Gas5AlarmRange { get; set; }
  251. public int Gas6 { get; set; }
  252. [IsTolerance]
  253. public int Gas6WarningRange { get; set; }
  254. [IsTolerance]
  255. public int Gas6AlarmRange { get; set; }
  256. public int Gas7 { get; set; }
  257. [IsTolerance]
  258. public int Gas7WarningRange { get; set; }
  259. [IsTolerance]
  260. public int Gas7AlarmRange { get; set; }
  261. public int Gas8 { get; set; }
  262. [IsTolerance]
  263. public int Gas8WarningRange { get; set; }
  264. [IsTolerance]
  265. public int Gas8AlarmRange { get; set; }
  266. [IsCanConfigIgnore]
  267. public bool EnableRamp { get; set; }
  268. public int Gas1Target { get; set; }
  269. public int Gas2Target { get; set; }
  270. public int Gas3Target { get; set; }
  271. public int Gas4Target { get; set; }
  272. public int Gas5Target { get; set; }
  273. public int Gas6Target { get; set; }
  274. public int Gas7Target { get; set; }
  275. public int Gas8Target { get; set; }
  276. public int FlowRatie { get; set; }
  277. }
  278. public class Kepler2200GasControlUnit : ProcessUnitBase
  279. {
  280. public string UnitName { get; set; } = "GasUnit";
  281. [IsTolerance]
  282. public ToleranceMode ToleranceMode { get; set; }
  283. [IsTolerance]
  284. [CustomName("ToleranceDelayTime(ms)")]
  285. public int ToleranceDelayTime { get; set; }
  286. public int Gas1 { get; set; }
  287. [IsTolerance]
  288. public int Gas1WarningRange { get; set; }
  289. [IsTolerance]
  290. public int Gas1AlarmRange { get; set; }
  291. public int Gas2 { get; set; }
  292. [IsTolerance]
  293. public int Gas2WarningRange { get; set; }
  294. [IsTolerance]
  295. public int Gas2AlarmRange { get; set; }
  296. public int Gas3 { get; set; }
  297. [IsTolerance]
  298. public int Gas3WarningRange { get; set; }
  299. [IsTolerance]
  300. public int Gas3AlarmRange { get; set; }
  301. public int Gas4 { get; set; }
  302. [IsTolerance]
  303. public int Gas4WarningRange { get; set; }
  304. [IsTolerance]
  305. public int Gas4AlarmRange { get; set; }
  306. public int Gas5 { get; set; }
  307. [IsTolerance]
  308. public int Gas5WarningRange { get; set; }
  309. [IsTolerance]
  310. public int Gas5AlarmRange { get; set; }
  311. public int Gas6 { get; set; }
  312. [IsTolerance]
  313. public int Gas6WarningRange { get; set; }
  314. [IsTolerance]
  315. public int Gas6AlarmRange { get; set; }
  316. }
  317. public class VenusSEGasControlUnit : ProcessUnitBase
  318. {
  319. public string UnitName { get; set; } = "SEGasControlUnit";
  320. [IsTolerance]
  321. public ToleranceMode ToleranceMode { get; set; }
  322. [IsTolerance]
  323. [CustomName("ToleranceDelayTime(ms)")]
  324. public int ToleranceDelayTime { get; set; }
  325. public int Gas1 { get; set; }
  326. [IsTolerance]
  327. public int Gas1WarningRange { get; set; }
  328. [IsTolerance]
  329. public int Gas1AlarmRange { get; set; }
  330. public int Gas2 { get; set; }
  331. [IsTolerance]
  332. public int Gas2WarningRange { get; set; }
  333. [IsTolerance]
  334. public int Gas2AlarmRange { get; set; }
  335. public int Gas3 { get; set; }
  336. [IsTolerance]
  337. public int Gas3WarningRange { get; set; }
  338. [IsTolerance]
  339. public int Gas3AlarmRange { get; set; }
  340. public int Gas4 { get; set; }
  341. [IsTolerance]
  342. public int Gas4WarningRange { get; set; }
  343. [IsTolerance]
  344. public int Gas4AlarmRange { get; set; }
  345. public int Gas5 { get; set; }
  346. [IsTolerance]
  347. public int Gas5WarningRange { get; set; }
  348. [IsTolerance]
  349. public int Gas5AlarmRange { get; set; }
  350. public int Gas6 { get; set; }
  351. [IsTolerance]
  352. public int Gas6WarningRange { get; set; }
  353. [IsTolerance]
  354. public int Gas6AlarmRange { get; set; }
  355. public int Gas7 { get; set; }
  356. [IsTolerance]
  357. public int Gas7WarningRange { get; set; }
  358. [IsTolerance]
  359. public int Gas7AlarmRange { get; set; }
  360. public int Gas8 { get; set; }
  361. [IsTolerance]
  362. public int Gas8WarningRange { get; set; }
  363. [IsTolerance]
  364. public int Gas8AlarmRange { get; set; }
  365. public int Gas9 { get; set;}
  366. [IsTolerance]
  367. public int Gas9WarningRange { get; set; }
  368. [IsTolerance]
  369. public int Gas9AlarmRange { get; set; }
  370. public int Gas10 { get; set;}
  371. [IsTolerance]
  372. public int Gas10WarningRange { get; set; }
  373. [IsTolerance]
  374. public int Gas10AlarmRange { get; set; }
  375. public int Gas11 { get; set;}
  376. [IsTolerance]
  377. public int Gas11WarningRange { get; set; }
  378. [IsTolerance]
  379. public int Gas11AlarmRange { get; set; }
  380. public int Gas12 { get; set;}
  381. [IsTolerance]
  382. public int Gas12WarningRange { get; set; }
  383. [IsTolerance]
  384. public int Gas12AlarmRange { get; set; }
  385. }
  386. public class ESCHVUnit : ProcessUnitBase
  387. {
  388. public string UnitName { get; set; } = "ESCHVUnit";
  389. public int BacksideHelium { get; set; }
  390. [CustomName("HeCheckDelayTime(ms)")]
  391. public int CheckDelay { get; set; }
  392. public float MinHeFlow { get; set; }
  393. public float MaxHeFlow { get; set; }
  394. public int ESCClampValtage { get; set; }
  395. }
  396. public class ProcessKitUnit : ProcessUnitBase
  397. {
  398. public string UnitName { get; set; } = "ProcessKitUnit";
  399. private MovementPosition m_LiftPinPostion;
  400. [JsonConverter(typeof(StringEnumConverter))]
  401. public MovementPosition LiftPinPostion
  402. {
  403. get { return m_LiftPinPostion; }
  404. set { m_LiftPinPostion = value; }
  405. }
  406. [JsonConverter(typeof(StringEnumConverter))]
  407. public MovementPosition WeprBasrPinPosition { get; set; }
  408. }
  409. }