ProcessUnitDefine.cs 15 KB

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