ProcessUnitDefine.cs 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. using Newtonsoft.Json;
  2. using Newtonsoft.Json.Converters;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Linq;
  7. using System.Runtime.Serialization;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using Venus_Core.Attributes;
  11. namespace Venus_Core
  12. {
  13. /// <summary>
  14. /// 设计概述:
  15. /// 本设计主要目的,为了满足复杂的刻蚀工艺需求(各个工艺参数之间相互关联), 和应对未来不断新增的工艺需求(新的设备、
  16. /// 新的工艺、新的材料等等), 同时又能对现存的Recipe保持最大的兼容
  17. ///
  18. /// 1. 将Process 的每道工艺分解为1个至多个逻辑工艺单元, 每个逻辑工艺单元通过 Class Name 和RT的工艺算法绑定,
  19. /// 同时也和 GUI Recipe Editor 的页面布局绑定。
  20. ///
  21. /// 2. 一个逻辑单元功能调试好, 并且有在客户端使用后, 此逻辑单元想关联的 RT Process 代码和GUI 界面代码,
  22. /// 不允许再修改, 只能增加新的Class 来实现新的工艺需求
  23. ///
  24. /// 3. 通过配置文件里面定义 ProcessUnit Class Name列表, 来定义当前机台支持的工艺功能, 也就是说如果Recipe文件里面保函了
  25. /// 配置文件里面没有列出的工艺单元, 表明本机台不支持此Recipe, 并报警提示用户
  26. /// </summary>
  27. public enum Suspect
  28. {
  29. Home,
  30. Position1,
  31. Position2
  32. }
  33. public enum VenusUnits
  34. {
  35. PressureByPressureModeUnit,
  36. TCPUnit,
  37. BiasUnit,
  38. GasControlUnit,
  39. ESCHVUnit,
  40. ProcessKitUnit
  41. }
  42. public enum Kepler2300Uints
  43. {
  44. PressureByPressureModeUnit,
  45. TCPUnit,
  46. BiasUnit,
  47. GasControlUnit,
  48. ProcessKitUnit
  49. }
  50. public enum Kepler2200AUnits
  51. {
  52. Kepler2200RFUnit,
  53. Kepler2200GasControlUnit,
  54. HeaterUnit
  55. }
  56. public enum Kepler2200BUnits
  57. {
  58. }
  59. public partial class PressureByPressureModeUnit : ProcessUnitBase
  60. {
  61. public string UnitName { get; set; } = "PressureModeUnit";
  62. public PressureUnitMode PressureUnitMode { get; set; }
  63. public int StartValue { get; set; }
  64. public int ValvePositionPreset { get; set; }
  65. [IsCanConfigIgnore]
  66. public bool EnableRamp { get; set; }
  67. public int HoldTime { get; set; }
  68. public int TargetValue { get; set; }
  69. public event PropertyChangedEventHandler PropertyChanged;
  70. public void InvokePropertyChanged(string propertyName)
  71. {
  72. if (PropertyChanged != null)
  73. {
  74. PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  75. }
  76. }
  77. }
  78. //public class PressureByValveModeUnit : ProcessUnitBase
  79. //{
  80. // public string UnitName { get; set; } = "PressureByValveModeUnit";
  81. // public bool EnableRamp { get; set; }
  82. // public int StartPosition { get; set; }
  83. // public int TargetPosition { get; set; }
  84. // public int HoldTime { get; set; }
  85. //}
  86. public class HeaterUnit : ProcessUnitBase
  87. {
  88. public string UnitName { get; set; } = "HeaterUnit";
  89. public int HeaterPressure { get; set; }
  90. public int HeaterTemp { get; set; }
  91. public int HeaterRatio { get; set; }
  92. public Suspect SuspectPosition { get; set; } = Suspect.Home;
  93. public int PositionOffset { get; set; }
  94. }
  95. public class TCPUnit : ProcessUnitBase
  96. {
  97. private string m_UnitName = "TCPUnit";
  98. public string UnitName
  99. {
  100. get { return m_UnitName; }
  101. set { m_UnitName = value; }
  102. }
  103. public int RFPower { get; set; }
  104. public int TuneCapPreset { get; set; }
  105. public int LoadCapPreset { get; set; }
  106. public int MaxReflectedPower { get; set; }
  107. private bool m_EnableRamp;
  108. [IsCanConfigIgnore]
  109. public bool EnableRamp
  110. {
  111. get { return m_EnableRamp;}
  112. set { m_EnableRamp = value; }
  113. }
  114. public int StartPower { get; set; }
  115. public int TargetPower { get; set; }
  116. //public int HoldTime { get; set; }
  117. }
  118. public class Kepler2200RFUnit : ProcessUnitBase
  119. {
  120. public string UnitName { get; set; } = "RFUnit";
  121. public int TuneCapPreset { get; set; }
  122. public int LoadCapPreset { get; set; }
  123. }
  124. public class BiasUnit : ProcessUnitBase
  125. {
  126. public string UnitName { get; set; } = "BiasUnit";
  127. public int BiasRFPower { get; set; }
  128. public int BiasTuneCapPreset { get; set; }
  129. public int BiasLoadCapPreset { get; set; }
  130. public int BiasMaxReflectedPower { get; set; }
  131. [JsonConverter(typeof(StringEnumConverter))]
  132. public GeneratorMode BiasGeneratorMode { get; set; }
  133. public int PulseRateFreq { get; set; }
  134. public int PulseDutyCycle { get; set; }
  135. [IsCanConfigIgnore]
  136. public bool EnableRamp { get; set; }
  137. public int StartBiasRFPower { get; set; }
  138. public int TargetBiasRFPower { get; set; }
  139. //public int BiasRFHoldTime { get; set; }
  140. }
  141. public class GasControlUnit : ProcessUnitBase
  142. {
  143. public string UnitName { get; set; } = "GasControlUnit";
  144. public int Gas1 { get; set; }
  145. public int Gas2 { get; set; }
  146. public int Gas3 { get; set; }
  147. public int Gas4 { get; set; }
  148. public int Gas5 { get; set; }
  149. public int Gas6 { get; set; }
  150. public int Gas7 { get; set; }
  151. public int Gas8 { get; set; }
  152. [IsCanConfigIgnore]
  153. public bool EnableRamp { get; set; }
  154. [System.Xml.Serialization.XmlIgnore]
  155. public int Gas1Target { get; set; }
  156. public int Gas2Target { get; set; }
  157. public int Gas3Target { get; set; }
  158. public int Gas4Target { get; set; }
  159. public int Gas5Target { get; set; }
  160. public int Gas6Target { get; set; }
  161. public int Gas7Target { get; set; }
  162. public int Gas8Target { get; set; }
  163. public int FlowRatie { get; set; }
  164. }
  165. public class Kepler2200GasControlUnit : ProcessUnitBase
  166. {
  167. public string UnitName { get; set; } = "GasUnit";
  168. public int Gas1 { get; set; }
  169. public int Gas2 { get; set; }
  170. public int Gas3 { get; set; }
  171. public int Gas4 { get; set; }
  172. public int Gas5 { get; set; }
  173. public int Gas6 { get; set; }
  174. }
  175. public class ESCHVUnit : ProcessUnitBase
  176. {
  177. public string UnitName { get; set; } = "ESCHVUnit";
  178. public int BacksideHelum { get; set; }
  179. public int MinHeFlow { get; set; }
  180. public int MaxHeFlow { get; set; }
  181. public int ESCClampValtage { get; set; }
  182. public int Temperature { get; set; }
  183. }
  184. public class ProcessKitUnit : ProcessUnitBase
  185. {
  186. public string UnitName { get; set; } = "ProcessKitUnit";
  187. private MovementPosition m_LiftPinPostion;
  188. [JsonConverter(typeof(StringEnumConverter))]
  189. public MovementPosition LiftPinPostion
  190. {
  191. get { return m_LiftPinPostion; }
  192. set { m_LiftPinPostion = value; }
  193. }
  194. [JsonConverter(typeof(StringEnumConverter))]
  195. public MovementPosition WeprBasrPinPosition { get; set; }
  196. }
  197. }