ProcessUnitDefine.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. SEESCHVUnit,
  75. ProcessKitUnit
  76. }
  77. public enum VenusDEUnits
  78. {
  79. }
  80. public partial class PressureByPressureModeUnit : ProcessUnitBase
  81. {
  82. public string UnitName { get; set; } = "PressureModeUnit";
  83. public PressureUnitMode PressureUnitMode { get; set; }
  84. public float StartValue { get; set; }
  85. public int ValvePositionPreset { get; set; }
  86. [IsCanConfigIgnore]
  87. public bool EnableRamp { get; set; }
  88. public int HoldTime { get; set; }
  89. public float TargetValue { get; set; }
  90. public event PropertyChangedEventHandler PropertyChanged;
  91. public void InvokePropertyChanged(string propertyName)
  92. {
  93. if (PropertyChanged != null)
  94. {
  95. PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  96. }
  97. }
  98. }
  99. public class HeaterUnit : ProcessUnitBase
  100. {
  101. public string UnitName { get; set; } = "HeaterUnit";
  102. [CustomName("Heater Temperature(℃)")]
  103. public int HeaterTemp { get; set; }
  104. [CustomName("Heater Ratio")]
  105. public int HeaterRatio { get; set; }
  106. public Suspect SuspectPosition { get; set; }
  107. public int PositionOffset { get; set; }
  108. }
  109. public class TCPUnit : ProcessUnitBase
  110. {
  111. private string m_UnitName = "TCPUnit";
  112. public string UnitName
  113. {
  114. get { return m_UnitName; }
  115. set { m_UnitName = value; }
  116. }
  117. [IsTolerance]
  118. public ToleranceMode ToleranceMode { get; set; }
  119. [IsTolerance]
  120. [CustomName("ToleranceDelayTime(ms)")]
  121. public int ToleranceDelayTime { get; set; }
  122. [CustomName("RF Power(W)")]
  123. public int RFPower { get; set; }
  124. [IsTolerance]
  125. public int RFPowerWarningRange { get; set; }
  126. [IsTolerance]
  127. public int RFPowerAlarmRange { get; set; }
  128. //[JsonProperty(PropertyName = "C1(%)")]
  129. //[DataMember(Name = "C1(%)")]
  130. [CustomName("C1(%)")]
  131. public float C1 { get; set; }
  132. [CustomName("C2(%)")]
  133. public float C2 { get; set; }
  134. [IsOnlyRead]
  135. [CustomName("AutoC1(%)")]
  136. public float AutoC1 { get; set; }
  137. [IsOnlyRead]
  138. [CustomName("AutoC2(%)")]
  139. public float AutoC2 { get; set; }
  140. [CustomName("Max Reflected Power (W)")]
  141. public int MaxReflectedPower { get; set; }
  142. [JsonConverter(typeof(StringEnumConverter))]
  143. public MatchWorkMode MatchWorkMode { get; set; }
  144. private bool m_EnableRamp;
  145. [IsCanConfigIgnore]
  146. public bool EnableRamp
  147. {
  148. get { return m_EnableRamp;}
  149. set { m_EnableRamp = value; }
  150. }
  151. //public int StartPower { get; set; }
  152. public int TargetRFPower { get; set; }
  153. }
  154. public class BiasUnit : ProcessUnitBase
  155. {
  156. public string UnitName { get; set; } = "BiasUnit";
  157. [IsTolerance]
  158. public ToleranceMode ToleranceMode { get; set; }
  159. [IsTolerance]
  160. [CustomName("ToleranceDelayTime(ms)")]
  161. public int ToleranceDelayTime { get; set; }
  162. //public int RFPower { get; set; }
  163. [IsTolerance]
  164. public int RFPowerWarningRange { get; set; }
  165. [IsTolerance]
  166. public int RFPowerAlarmRange { get; set; }
  167. public int BiasRFPower { get; set; }
  168. public float BiasC1{ get; set; }
  169. public float BiasC2 { get; set; }
  170. [IsOnlyRead]
  171. public float AutoBiasC1 { get; set; }
  172. [IsOnlyRead]
  173. public float AutoBiasC2 { get; set; }
  174. public int BiasMaxReflectedPower { get; set; }
  175. [JsonConverter(typeof(StringEnumConverter))]
  176. public MatchWorkMode BiasMatchWorkMode { get; set; }
  177. [JsonConverter(typeof(StringEnumConverter))]
  178. public GeneratorMode BiasGeneratorMode { get; set; }
  179. public int PulseRateFreq { get; set; }
  180. public int PulseDutyCycle { get; set; }
  181. [IsCanConfigIgnore]
  182. public bool EnableRamp { get; set; }
  183. [JsonConverter(typeof(StringEnumConverter))]
  184. public TargetMode TargetMode { get; set; }
  185. //public int StartBiasRFPower { get; set; }
  186. public int TargetBiasRFPower { get; set; }
  187. }
  188. public class RFBoxUnit : ProcessUnitBase
  189. {
  190. public string UnitName { get; set; } = "RFBoxUnit";
  191. [CustomName("C1(%)")]
  192. public float C1 { get; set; }
  193. }
  194. public class GasControlUnit : ProcessUnitBase
  195. {
  196. public string UnitName { get; set; } = "GasControlUnit";
  197. [IsTolerance]
  198. public ToleranceMode ToleranceMode { get; set; }
  199. [IsTolerance]
  200. [CustomName("ToleranceDelayTime(ms)")]
  201. public int ToleranceDelayTime { get; set; }
  202. public int Gas1 { get; set; }
  203. [IsTolerance]
  204. public int Gas1WarningRange { get; set; }
  205. [IsTolerance]
  206. public int Gas1AlarmRange { get; set; }
  207. public int Gas2 { get; set; }
  208. [IsTolerance]
  209. public int Gas2WarningRange { get; set; }
  210. [IsTolerance]
  211. public int Gas2AlarmRange { get; set; }
  212. public int Gas3 { get; set; }
  213. [IsTolerance]
  214. public int Gas3WarningRange { get; set; }
  215. [IsTolerance]
  216. public int Gas3AlarmRange { get; set; }
  217. public int Gas4 { get; set; }
  218. [IsTolerance]
  219. public int Gas4WarningRange { get; set; }
  220. [IsTolerance]
  221. public int Gas4AlarmRange { get; set; }
  222. public int Gas5 { get; set; }
  223. [IsTolerance]
  224. public int Gas5WarningRange { get; set; }
  225. [IsTolerance]
  226. public int Gas5AlarmRange { get; set; }
  227. public int Gas6 { get; set; }
  228. [IsTolerance]
  229. public int Gas6WarningRange { get; set; }
  230. [IsTolerance]
  231. public int Gas6AlarmRange { get; set; }
  232. public int Gas7 { get; set; }
  233. [IsTolerance]
  234. public int Gas7WarningRange { get; set; }
  235. [IsTolerance]
  236. public int Gas7AlarmRange { get; set; }
  237. public int Gas8 { get; set; }
  238. [IsTolerance]
  239. public int Gas8WarningRange { get; set; }
  240. [IsTolerance]
  241. public int Gas8AlarmRange { get; set; }
  242. [IsCanConfigIgnore]
  243. public bool EnableRamp { get; set; }
  244. public int Gas1Target { get; set; }
  245. public int Gas2Target { get; set; }
  246. public int Gas3Target { get; set; }
  247. public int Gas4Target { get; set; }
  248. public int Gas5Target { get; set; }
  249. public int Gas6Target { get; set; }
  250. public int Gas7Target { get; set; }
  251. public int Gas8Target { get; set; }
  252. public int FlowRatie { get; set; }
  253. }
  254. public class Kepler2200GasControlUnit : ProcessUnitBase
  255. {
  256. public string UnitName { get; set; } = "GasUnit";
  257. [IsTolerance]
  258. public ToleranceMode ToleranceMode { get; set; }
  259. [IsTolerance]
  260. [CustomName("ToleranceDelayTime(ms)")]
  261. public int ToleranceDelayTime { get; set; }
  262. public int Gas1 { get; set; }
  263. [IsTolerance]
  264. public int Gas1WarningRange { get; set; }
  265. [IsTolerance]
  266. public int Gas1AlarmRange { get; set; }
  267. public int Gas2 { get; set; }
  268. [IsTolerance]
  269. public int Gas2WarningRange { get; set; }
  270. [IsTolerance]
  271. public int Gas2AlarmRange { get; set; }
  272. public int Gas3 { get; set; }
  273. [IsTolerance]
  274. public int Gas3WarningRange { get; set; }
  275. [IsTolerance]
  276. public int Gas3AlarmRange { get; set; }
  277. public int Gas4 { get; set; }
  278. [IsTolerance]
  279. public int Gas4WarningRange { get; set; }
  280. [IsTolerance]
  281. public int Gas4AlarmRange { get; set; }
  282. public int Gas5 { get; set; }
  283. [IsTolerance]
  284. public int Gas5WarningRange { get; set; }
  285. [IsTolerance]
  286. public int Gas5AlarmRange { get; set; }
  287. public int Gas6 { get; set; }
  288. [IsTolerance]
  289. public int Gas6WarningRange { get; set; }
  290. [IsTolerance]
  291. public int Gas6AlarmRange { get; set; }
  292. }
  293. public class VenusSEGasControlUnit : ProcessUnitBase
  294. {
  295. public string UnitName { get; set; } = "SEGasControlUnit";
  296. public int Gas1 { get; set;}
  297. public int Gas2 { get; set;}
  298. public int Gas3 { get; set;}
  299. public int Gas4 { get; set;}
  300. public int Gas5 { get; set;}
  301. public int Gas6 { get; set;}
  302. public int Gas7 { get; set;}
  303. public int Gas8 { get; set;}
  304. public int Gas9 { get; set;}
  305. public int Gas10 { get; set;}
  306. public int Gas11 { get; set;}
  307. public int Gas12 { get; set;}
  308. }
  309. public class ESCHVUnit : ProcessUnitBase
  310. {
  311. public string UnitName { get; set; } = "ESCHVUnit";
  312. public int BacksideHelum { get; set; }
  313. public int MinHeFlow { get; set; }
  314. public int MaxHeFlow { get; set; }
  315. [CustomName("CheckDelay(ms)")]
  316. public int CheckDelay { get; set; }
  317. public int ESCClampValtage { get; set; }
  318. public int Temperature { get; set; }
  319. }
  320. public class SEESCHVUnit : ProcessUnitBase
  321. {
  322. public string UnitName { get; set; } = "SEESCHVUnit";
  323. public int BacksideHelum { get; set; }
  324. public float MinHeFlow { get; set; }
  325. public float MaxHeFlow { get; set; }
  326. public int CheckDelay_ms { get; set; }
  327. public int ESCClampValtage { get; set; }
  328. public int Temperature { get; set; }
  329. }
  330. public class ProcessKitUnit : ProcessUnitBase
  331. {
  332. public string UnitName { get; set; } = "ProcessKitUnit";
  333. private MovementPosition m_LiftPinPostion;
  334. [JsonConverter(typeof(StringEnumConverter))]
  335. public MovementPosition LiftPinPostion
  336. {
  337. get { return m_LiftPinPostion; }
  338. set { m_LiftPinPostion = value; }
  339. }
  340. [JsonConverter(typeof(StringEnumConverter))]
  341. public MovementPosition WeprBasrPinPosition { get; set; }
  342. }
  343. }