ProcessUnitDefine.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. using Newtonsoft.Json;
  2. using Newtonsoft.Json.Converters;
  3. using System.ComponentModel;
  4. using Venus_Core.Attributes;
  5. namespace Venus_Core
  6. {
  7. /// <summary>
  8. /// 设计概述:
  9. /// 本设计主要目的,为了满足复杂的刻蚀工艺需求(各个工艺参数之间相互关联), 和应对未来不断新增的工艺需求(新的设备、
  10. /// 新的工艺、新的材料等等), 同时又能对现存的Recipe保持最大的兼容
  11. ///
  12. /// 1. 将Process 的每道工艺分解为1个至多个逻辑工艺单元, 每个逻辑工艺单元通过 Class Name 和RT的工艺算法绑定,
  13. /// 同时也和 GUI Recipe Editor 的页面布局绑定。
  14. ///
  15. /// 2. 一个逻辑单元功能调试好, 并且有在客户端使用后, 此逻辑单元想关联的 RT Process 代码和GUI 界面代码,
  16. /// 不允许再修改, 只能增加新的Class 来实现新的工艺需求
  17. ///
  18. /// 3. 通过配置文件里面定义 ProcessUnit Class Name列表, 来定义当前机台支持的工艺功能, 也就是说如果Recipe文件里面保函了
  19. /// 配置文件里面没有列出的工艺单元, 表明本机台不支持此Recipe, 并报警提示用户
  20. /// </summary>
  21. public enum VenusUnits
  22. {
  23. PressureByPressureModeUnit,
  24. TCPUnit,
  25. BiasUnit,
  26. GasControlUnit,
  27. ESCHVUnit,
  28. ProcessKitUnit
  29. }
  30. public enum VenusCleanRecipeUnits
  31. {
  32. PressureByPressureModeUnit,
  33. TCPUnit,
  34. GasControlUnit,
  35. ProcessKitUnit
  36. }
  37. public enum Kepler2300Uints
  38. {
  39. PressureByPressureModeUnit,
  40. TCPUnit,
  41. BiasUnit,
  42. GasControlUnit,
  43. ProcessKitUnit
  44. }
  45. public enum Kepler2300CleanRecipeUints
  46. {
  47. PressureByPressureModeUnit,
  48. TCPUnit,
  49. GasControlUnit,
  50. ProcessKitUnit
  51. }
  52. public enum Kepler2200AUnits
  53. {
  54. PressureByPressureModeUnit,
  55. Kepler2200GasControlUnit,
  56. HeaterUnit,
  57. TCPUnit
  58. }
  59. public enum Kepler2200BUnits
  60. {
  61. PressureByPressureModeUnit,
  62. Kepler2200GasControlUnit,
  63. HeaterUnit,
  64. RFBoxUnit,
  65. TCPUnit
  66. }
  67. public enum VenusSEUnits
  68. {
  69. PressureByPressureModeUnit,
  70. TCPUnit,
  71. BiasUnit,
  72. VenusSEGasControlUnit,
  73. ESCHVUnit,
  74. ProcessKitUnit
  75. }
  76. public enum VenusDEUnits
  77. {
  78. }
  79. public partial class PressureByPressureModeUnit : ProcessUnitBase
  80. {
  81. public string UnitName { get; set; } = "PressureModeUnit";
  82. public PressureUnitMode PressureUnitMode { get; set; }
  83. public float StartValue { get; set; }
  84. public int ValvePositionPreset { get; set; }
  85. [IsCanConfigIgnore]
  86. public bool EnableRamp { get; set; }
  87. public int HoldTime { get; set; }
  88. public float TargetValue { get; set; }
  89. public event PropertyChangedEventHandler PropertyChanged;
  90. public void InvokePropertyChanged(string propertyName)
  91. {
  92. if (PropertyChanged != null)
  93. {
  94. PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  95. }
  96. }
  97. }
  98. public class HeaterUnit : ProcessUnitBase
  99. {
  100. public string UnitName { get; set; } = "HeaterUnit";
  101. public int HeaterTemp { get; set; }
  102. public int HeaterRatio { get; set; }
  103. public Suspect SuspectPosition { get; set; }
  104. public int PositionOffset { get; set; }
  105. }
  106. public class TCPUnit : ProcessUnitBase
  107. {
  108. private string m_UnitName = "TCPUnit";
  109. public string UnitName
  110. {
  111. get { return m_UnitName; }
  112. set { m_UnitName = value; }
  113. }
  114. [IsTolerance]
  115. public ToleranceMode ToleranceMode { get; set; }
  116. [IsTolerance]
  117. public int ToleranceDelayTime_ms { get; set; }
  118. public int RFPower { get; set; }
  119. [IsTolerance]
  120. public int RFPowerWarningRange { get; set; }
  121. [IsTolerance]
  122. public int RFPowerAlarmRange { get; set; }
  123. public int C1 { get; set; }
  124. public int C2 { get; set; }
  125. [IsOnlyRead]
  126. public int AutoC1 { get; set; }
  127. [IsOnlyRead]
  128. public int AutoC2 { get; set; }
  129. public int MaxReflectedPower { get; set; }
  130. [JsonConverter(typeof(StringEnumConverter))]
  131. public MatchWorkMode MatchWorkMode { get; set; }
  132. private bool m_EnableRamp;
  133. [IsCanConfigIgnore]
  134. public bool EnableRamp
  135. {
  136. get { return m_EnableRamp;}
  137. set { m_EnableRamp = value; }
  138. }
  139. //public int StartPower { get; set; }
  140. public int TargetRFPower { get; set; }
  141. }
  142. public class BiasUnit : ProcessUnitBase
  143. {
  144. public string UnitName { get; set; } = "BiasUnit";
  145. [IsTolerance]
  146. public ToleranceMode ToleranceMode { get; set; }
  147. [IsTolerance]
  148. public int ToleranceDelayTime_ms { get; set; }
  149. //public int RFPower { get; set; }
  150. [IsTolerance]
  151. public int RFPowerWarningRange { get; set; }
  152. [IsTolerance]
  153. public int RFPowerAlarmRange { get; set; }
  154. public int BiasRFPower { get; set; }
  155. public int BiasC1{ get; set; }
  156. public int BiasC2 { get; set; }
  157. [IsOnlyRead]
  158. public int AutoBiasC1 { get; set; }
  159. [IsOnlyRead]
  160. public int AutoBiasC2 { get; set; }
  161. public int BiasMaxReflectedPower { get; set; }
  162. [JsonConverter(typeof(StringEnumConverter))]
  163. public MatchWorkMode BiasMatchWorkMode { get; set; }
  164. [JsonConverter(typeof(StringEnumConverter))]
  165. public GeneratorMode BiasGeneratorMode { get; set; }
  166. public int PulseRateFreq { get; set; }
  167. public int PulseDutyCycle { get; set; }
  168. [IsCanConfigIgnore]
  169. public bool EnableRamp { get; set; }
  170. [JsonConverter(typeof(StringEnumConverter))]
  171. public TargetMode TargetMode { get; set; }
  172. //public int StartBiasRFPower { get; set; }
  173. public int TargetBiasRFPower { get; set; }
  174. }
  175. public class RFBoxUnit : ProcessUnitBase
  176. {
  177. public string UnitName { get; set; } = "RFBoxUnit";
  178. public int C1 { get; set; }
  179. }
  180. public class GasControlUnit : ProcessUnitBase
  181. {
  182. public string UnitName { get; set; } = "GasControlUnit";
  183. [IsTolerance]
  184. public ToleranceMode ToleranceMode { get; set; }
  185. [IsTolerance]
  186. public int ToleranceDelayTime_ms { get; set; }
  187. public int Gas1 { get; set; }
  188. [IsTolerance]
  189. public int Gas1WarningRange { get; set; }
  190. [IsTolerance]
  191. public int Gas1AlarmRange { get; set; }
  192. public int Gas2 { get; set; }
  193. [IsTolerance]
  194. public int Gas2WarningRange { get; set; }
  195. [IsTolerance]
  196. public int Gas2AlarmRange { get; set; }
  197. public int Gas3 { get; set; }
  198. [IsTolerance]
  199. public int Gas3WarningRange { get; set; }
  200. [IsTolerance]
  201. public int Gas3AlarmRange { get; set; }
  202. public int Gas4 { get; set; }
  203. [IsTolerance]
  204. public int Gas4WarningRange { get; set; }
  205. [IsTolerance]
  206. public int Gas4AlarmRange { get; set; }
  207. public int Gas5 { get; set; }
  208. [IsTolerance]
  209. public int Gas5WarningRange { get; set; }
  210. [IsTolerance]
  211. public int Gas5AlarmRange { get; set; }
  212. public int Gas6 { get; set; }
  213. [IsTolerance]
  214. public int Gas6WarningRange { get; set; }
  215. [IsTolerance]
  216. public int Gas6AlarmRange { get; set; }
  217. public int Gas7 { get; set; }
  218. [IsTolerance]
  219. public int Gas7WarningRange { get; set; }
  220. [IsTolerance]
  221. public int Gas7AlarmRange { get; set; }
  222. public int Gas8 { get; set; }
  223. [IsTolerance]
  224. public int Gas8WarningRange { get; set; }
  225. [IsTolerance]
  226. public int Gas8AlarmRange { get; set; }
  227. [IsCanConfigIgnore]
  228. public bool EnableRamp { get; set; }
  229. public int Gas1Target { get; set; }
  230. public int Gas2Target { get; set; }
  231. public int Gas3Target { get; set; }
  232. public int Gas4Target { get; set; }
  233. public int Gas5Target { get; set; }
  234. public int Gas6Target { get; set; }
  235. public int Gas7Target { get; set; }
  236. public int Gas8Target { get; set; }
  237. public int FlowRatie { get; set; }
  238. }
  239. public class Kepler2200GasControlUnit : ProcessUnitBase
  240. {
  241. public string UnitName { get; set; } = "GasUnit";
  242. [IsTolerance]
  243. public ToleranceMode ToleranceMode { get; set; }
  244. [IsTolerance]
  245. public int ToleranceDelayTime_ms { get; set; }
  246. public int Gas1 { get; set; }
  247. [IsTolerance]
  248. public int Gas1WarningRange { get; set; }
  249. [IsTolerance]
  250. public int Gas1AlarmRange { get; set; }
  251. public int Gas2 { get; set; }
  252. [IsTolerance]
  253. public int Gas2WarningRange { get; set; }
  254. [IsTolerance]
  255. public int Gas2AlarmRange { get; set; }
  256. public int Gas3 { get; set; }
  257. [IsTolerance]
  258. public int Gas3WarningRange { get; set; }
  259. [IsTolerance]
  260. public int Gas3AlarmRange { get; set; }
  261. public int Gas4 { get; set; }
  262. [IsTolerance]
  263. public int Gas4WarningRange { get; set; }
  264. [IsTolerance]
  265. public int Gas4AlarmRange { get; set; }
  266. public int Gas5 { get; set; }
  267. [IsTolerance]
  268. public int Gas5WarningRange { get; set; }
  269. [IsTolerance]
  270. public int Gas5AlarmRange { get; set; }
  271. public int Gas6 { get; set; }
  272. [IsTolerance]
  273. public int Gas6WarningRange { get; set; }
  274. [IsTolerance]
  275. public int Gas6AlarmRange { get; set; }
  276. }
  277. public class VenusSEGasControlUnit : ProcessUnitBase
  278. {
  279. public string UnitName { get; set; } = "SEGasControlUnit";
  280. public int Gas1 { get; set;}
  281. public int Gas2 { get; set;}
  282. public int Gas3 { get; set;}
  283. public int Gas4 { get; set;}
  284. public int Gas5 { get; set;}
  285. public int Gas6 { get; set;}
  286. public int Gas7 { get; set;}
  287. public int Gas8 { get; set;}
  288. public int Gas9 { get; set;}
  289. public int Gas10 { get; set;}
  290. public int Gas11 { get; set;}
  291. public int Gas12 { get; set;}
  292. }
  293. public class ESCHVUnit : ProcessUnitBase
  294. {
  295. public string UnitName { get; set; } = "ESCHVUnit";
  296. public int BacksideHelum { get; set; }
  297. public int MinHeFlow { get; set; }
  298. public int MaxHeFlow { get; set; }
  299. public int ESCClampValtage { get; set; }
  300. public int Temperature { get; set; }
  301. }
  302. public class ProcessKitUnit : ProcessUnitBase
  303. {
  304. public string UnitName { get; set; } = "ProcessKitUnit";
  305. private MovementPosition m_LiftPinPostion;
  306. [JsonConverter(typeof(StringEnumConverter))]
  307. public MovementPosition LiftPinPostion
  308. {
  309. get { return m_LiftPinPostion; }
  310. set { m_LiftPinPostion = value; }
  311. }
  312. [JsonConverter(typeof(StringEnumConverter))]
  313. public MovementPosition WeprBasrPinPosition { get; set; }
  314. }
  315. }