ProcessUnitDefine.cs 11 KB

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