ProcessUnitDefine.cs 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. 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. public int RFPower { get; set; }
  114. public int C1 { get; set; }
  115. public int C2 { get; set; }
  116. [IsOnlyRead]
  117. public int AutoC1 { get; set; }
  118. [IsOnlyRead]
  119. public int AutoC2 { get; set; }
  120. public int MaxReflectedPower { get; set; }
  121. [JsonConverter(typeof(StringEnumConverter))]
  122. public MatchWorkMode MatchWorkMode { get; set; }
  123. private bool m_EnableRamp;
  124. [IsCanConfigIgnore]
  125. public bool EnableRamp
  126. {
  127. get { return m_EnableRamp;}
  128. set { m_EnableRamp = value; }
  129. }
  130. //public int StartPower { get; set; }
  131. public int TargetRFPower { get; set; }
  132. }
  133. public class BiasUnit : ProcessUnitBase
  134. {
  135. public string UnitName { get; set; } = "BiasUnit";
  136. public int BiasRFPower { get; set; }
  137. public int BiasC1{ get; set; }
  138. public int BiasC2 { get; set; }
  139. [IsOnlyRead]
  140. public int AutoBiasC1 { get; set; }
  141. [IsOnlyRead]
  142. public int AutoBiasC2 { get; set; }
  143. public int BiasMaxReflectedPower { get; set; }
  144. [JsonConverter(typeof(StringEnumConverter))]
  145. public MatchWorkMode BiasMatchWorkMode { get; set; }
  146. [JsonConverter(typeof(StringEnumConverter))]
  147. public GeneratorMode BiasGeneratorMode { get; set; }
  148. public int PulseRateFreq { get; set; }
  149. public int PulseDutyCycle { get; set; }
  150. [IsCanConfigIgnore]
  151. public bool EnableRamp { get; set; }
  152. [JsonConverter(typeof(StringEnumConverter))]
  153. public TargetMode TargetMode { get; set; }
  154. //public int StartBiasRFPower { get; set; }
  155. public int TargetBiasRFPower { get; set; }
  156. }
  157. public class GasControlUnit : ProcessUnitBase
  158. {
  159. public string UnitName { get; set; } = "GasControlUnit";
  160. public int Gas1 { get; set; }
  161. public int Gas2 { get; set; }
  162. public int Gas3 { get; set; }
  163. public int Gas4 { get; set; }
  164. public int Gas5 { get; set; }
  165. public int Gas6 { get; set; }
  166. public int Gas7 { get; set; }
  167. public int Gas8 { get; set; }
  168. [IsCanConfigIgnore]
  169. public bool EnableRamp { get; set; }
  170. public int Gas1Target { get; set; }
  171. public int Gas2Target { get; set; }
  172. public int Gas3Target { get; set; }
  173. public int Gas4Target { get; set; }
  174. public int Gas5Target { get; set; }
  175. public int Gas6Target { get; set; }
  176. public int Gas7Target { get; set; }
  177. public int Gas8Target { get; set; }
  178. public int FlowRatie { get; set; }
  179. }
  180. public class Kepler2200GasControlUnit : ProcessUnitBase
  181. {
  182. public string UnitName { get; set; } = "GasUnit";
  183. public int Gas1 { get; set; }
  184. public int Gas2 { get; set; }
  185. public int Gas3 { get; set; }
  186. public int Gas4 { get; set; }
  187. public int Gas5 { get; set; }
  188. public int Gas6 { get; set; }
  189. }
  190. public class VenusSEGasControlUnit : ProcessUnitBase
  191. {
  192. public string UnitName { get; set; } = "SEGasControlUnit";
  193. public int Gas1 { get; set;}
  194. public int Gas2 { get; set;}
  195. public int Gas3 { get; set;}
  196. public int Gas4 { get; set;}
  197. public int Gas5 { get; set;}
  198. public int Gas6 { get; set;}
  199. public int Gas7 { get; set;}
  200. public int Gas8 { get; set;}
  201. public int Gas9 { get; set;}
  202. public int Gas10 { get; set;}
  203. public int Gas11 { get; set;}
  204. public int Gas12 { get; set;}
  205. }
  206. public class ESCHVUnit : ProcessUnitBase
  207. {
  208. public string UnitName { get; set; } = "ESCHVUnit";
  209. public int BacksideHelum { get; set; }
  210. public int MinHeFlow { get; set; }
  211. public int MaxHeFlow { get; set; }
  212. public int ESCClampValtage { get; set; }
  213. public int Temperature { get; set; }
  214. }
  215. public class ProcessKitUnit : ProcessUnitBase
  216. {
  217. public string UnitName { get; set; } = "ProcessKitUnit";
  218. private MovementPosition m_LiftPinPostion;
  219. [JsonConverter(typeof(StringEnumConverter))]
  220. public MovementPosition LiftPinPostion
  221. {
  222. get { return m_LiftPinPostion; }
  223. set { m_LiftPinPostion = value; }
  224. }
  225. [JsonConverter(typeof(StringEnumConverter))]
  226. public MovementPosition WeprBasrPinPosition { get; set; }
  227. }
  228. }