ProcessUnitDefine.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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.Text;
  8. using System.Threading.Tasks;
  9. using Venus_Core.Attributes;
  10. namespace Venus_Core
  11. {
  12. /// <summary>
  13. /// 设计概述:
  14. /// 本设计主要目的,为了满足复杂的刻蚀工艺需求(各个工艺参数之间相互关联), 和应对未来不断新增的工艺需求(新的设备、
  15. /// 新的工艺、新的材料等等), 同时又能对现存的Recipe保持最大的兼容
  16. ///
  17. /// 1. 将Process 的每道工艺分解为1个至多个逻辑工艺单元, 每个逻辑工艺单元通过 Class Name 和RT的工艺算法绑定,
  18. /// 同时也和 GUI Recipe Editor 的页面布局绑定。
  19. ///
  20. /// 2. 一个逻辑单元功能调试好, 并且有在客户端使用后, 此逻辑单元想关联的 RT Process 代码和GUI 界面代码,
  21. /// 不允许再修改, 只能增加新的Class 来实现新的工艺需求
  22. ///
  23. /// 3. 通过配置文件里面定义 ProcessUnit Class Name列表, 来定义当前机台支持的工艺功能, 也就是说如果Recipe文件里面保函了
  24. /// 配置文件里面没有列出的工艺单元, 表明本机台不支持此Recipe, 并报警提示用户
  25. /// </summary>
  26. public partial class PressureByPressureModeUnit : ProcessUnitBase
  27. {
  28. public string UnitName { get; set; } = "PressureModeUnit";
  29. public PressureUnitMode PressureUnitMode { get; set; }
  30. public int StartPressure { get; set; } = 10;
  31. public int ValvePositionPreset { get; set; } = 10;
  32. public bool EnableRamp { get; set; }
  33. public int TargetPressure { get; set; } = 20;
  34. public int HoldTime { get; set; } = 1000;
  35. public int StartPosition { get; set; } = 10;
  36. public int TargetPosition { get; set; } = 100;
  37. public event PropertyChangedEventHandler PropertyChanged;
  38. public void InvokePropertyChanged(string propertyName)
  39. {
  40. if (PropertyChanged != null)
  41. {
  42. PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  43. }
  44. }
  45. }
  46. public class PressureByValveModeUnit : ProcessUnitBase
  47. {
  48. public string UnitName { get; set; } = "PressureByValveModeUnit";
  49. public bool EnableRamp { get; set; }
  50. public int StartPosition { get; set; } = 10;
  51. public int TargetPosition { get; set; } = 100;
  52. public int HoldTime { get; set; }= 10000;
  53. }
  54. public class TCPUnit : ProcessUnitBase
  55. {
  56. private string m_UnitName = "TCPUnit";
  57. public string UnitName
  58. {
  59. get { return m_UnitName; }
  60. set { m_UnitName = value; }
  61. }
  62. public int RFPower { get; set; } = 10;
  63. public int TuneCapPreset { get; set; } = 10;
  64. public int LoadCapPreset { get; set; } = 10;
  65. public int MaxReflectedPower { get; set; } = 100;
  66. private bool m_EnableRamp;
  67. public bool EnableRamp
  68. {
  69. get { return m_EnableRamp;}
  70. set { m_EnableRamp = value; }
  71. }
  72. public int StartPower { get; set; } = 10;
  73. public int TargetPower { get; set; } = 100;
  74. public int HoldTime { get; set; } = 1000;
  75. }
  76. public class BiasUnit : ProcessUnitBase
  77. {
  78. public string UnitName { get; set; } = "BiasUnit";
  79. public int BiasRFPower { get; set; } = 10;
  80. public int BiasTuneCapPreset { get; set; } = 10;
  81. public int BiasLoadCapPreset { get; set; } = 10;
  82. public int BiasMaxReflectedPower { get; set; } = 1000;
  83. public bool EnableRamp { get; set; }
  84. public int StartBiasRFPower { get; set; } = 10;
  85. public int TargetBiasRFPower { get; set; } = 100;
  86. public int BiasRFHoldTime { get; set; } = 1000;
  87. [JsonConverter(typeof(StringEnumConverter))]
  88. public GeneratorMode BiasGeneratorMode { get; set; }
  89. public int PulseRateFreq { get; set; } = 10;
  90. public int PulseDutyCycle { get; set; } = 10;
  91. }
  92. public class GasControlUnit : ProcessUnitBase
  93. {
  94. public string UnitName { get; set; } = "GasControlUnit";
  95. public int Gas1 { get; set; } = 10;
  96. public int Gas2 { get; set; } = 10;
  97. public int Gas3 { get; set; } = 10;
  98. public int Gas4 { get; set; } = 10;
  99. public int Gas5 { get; set; } = 10;
  100. public int Gas6 { get; set; } = 100;
  101. public int Gas7 { get; set; } = 100;
  102. public int Gas8 { get; set; } = 100;
  103. public bool EnableRamp { get; set; }
  104. public int Gas1Target { get; set; } = 100;
  105. public int Gas2Target { get; set; }= 100;
  106. public int Gas3Target { get; set; }=100;
  107. public int Gas4Target { get; set; } = 100;
  108. public int Gas5Target { get; set; } = 100;
  109. public int Gas6Target { get; set; } = 10;
  110. public int Gas7Target { get; set; } = 10;
  111. public int Gas8Target { get; set; } = 10;
  112. public int FlowRatie { get; set; } = 100;
  113. }
  114. public class ESCHVUnit : ProcessUnitBase
  115. {
  116. public string UnitName { get; set; } = "ESCHVUnit";
  117. public int BacksideHelum { get; set; } = 10;
  118. public int MinHeFlow { get; set; } = 10;
  119. public int MaxHeFlow { get; set; } = 100;
  120. public int ESCClampValtage { get; set; } = 10;
  121. public int Temperature { get; set; } = 20;
  122. }
  123. public class ProcessKitUnit : ProcessUnitBase
  124. {
  125. public string UnitName { get; set; } = "ProcessKitUnit";
  126. [JsonConverter(typeof(StringEnumConverter))]
  127. private MovementPosition m_LiftPinPostion;
  128. public MovementPosition LiftPinPostion
  129. {
  130. get { return m_LiftPinPostion; }
  131. set { m_LiftPinPostion = value; }
  132. }
  133. [JsonConverter(typeof(StringEnumConverter))]
  134. public MovementPosition WeprBasrPinPosition { get; set; }
  135. }
  136. }