AITRfPowerData.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. using System.Runtime.Serialization;
  2. namespace OldWorldData.CommonData.DeviceData
  3. {
  4. [Serializable]
  5. public enum EnumRfPowerRegulationMode
  6. {
  7. [EnumMember]
  8. Undefined = 0,
  9. [EnumMember]
  10. Forward = 1,
  11. [EnumMember]
  12. Load = 2,
  13. [EnumMember]
  14. DcBias = 3,
  15. [EnumMember]
  16. VALimit = 4,
  17. }
  18. [Serializable]
  19. public enum EnumRfPowerControlMode
  20. {
  21. [EnumMember]
  22. Forward = 6,
  23. [EnumMember]
  24. Load = 7,
  25. [EnumMember]
  26. DcBias = 8,
  27. }
  28. [Serializable]
  29. public enum EnumRfPowerPulsingMode
  30. {
  31. [EnumMember]
  32. Close = 0,
  33. [EnumMember]
  34. InnerPulsing = 1,
  35. [EnumMember]
  36. OuterPulsing = 2,
  37. [EnumMember]
  38. OuterPulsingReverse = 3,
  39. [EnumMember]
  40. InnerOuterPulsing = 4,
  41. }
  42. [Serializable]
  43. public enum EnumRfPowerWorkMode
  44. {
  45. [EnumMember]
  46. Undefined = 0,
  47. [EnumMember]
  48. ContinuousWaveMode = 1,
  49. [EnumMember]
  50. PulsingMode = 2,
  51. }
  52. [Serializable]
  53. public enum EnumRfPowerClockMode
  54. {
  55. [EnumMember]
  56. Undefined = 0,
  57. [EnumMember]
  58. Phase = 1,
  59. [EnumMember]
  60. FreqManual = 2,
  61. [EnumMember]
  62. FreqAuto = 3,
  63. }
  64. [DataContract]
  65. [Serializable]
  66. public class AITRfPowerData
  67. {
  68. [DataMember]
  69. public string Module { get; set; }
  70. [DataMember]
  71. public string DeviceName { get; set; }
  72. /// <summary>
  73. /// 显示在界面上的名称
  74. /// </summary>
  75. [DataMember]
  76. public string DisplayName { get; set; }
  77. /// <summary>
  78. /// IO 表中定义的物理编号,物理追溯使用 比如: M122
  79. /// </summary>
  80. [DataMember]
  81. public string DeviceSchematicId { get; set; }
  82. [DataMember]
  83. public string Description { get; set; }
  84. [DataMember]
  85. public string UnitPower { get; set; }
  86. [DataMember]
  87. public string UnitFrequency { get; set; }
  88. [DataMember]
  89. public string UnitDuty { get; set; }
  90. [DataMember]
  91. public double ScalePower { get; set; }
  92. [DataMember]
  93. public double ScaleFrequency { get; set; }
  94. [DataMember]
  95. public double ScaleDuty { get; set; }
  96. [DataMember]
  97. public float PowerSetPoint { get; set; }
  98. [DataMember]
  99. public float FrequencySetPoint { get; set; }
  100. [DataMember]
  101. public float DutySetPoint { get; set; }
  102. [DataMember]
  103. public bool IsInterlockOk { get; set; }
  104. [DataMember]
  105. public bool IsRfOn { get; set; }
  106. [DataMember]
  107. public bool IsRfAlarm { get; set; }
  108. [DataMember]
  109. public float ForwardPower { get; set; }
  110. [DataMember]
  111. public float ReflectPower { get; set; }
  112. [DataMember]
  113. public float LoadPower { get; set; }
  114. [DataMember]
  115. public float Frequency { get; set; }
  116. [DataMember]
  117. public float PulsingFrequency { get; set; }
  118. [DataMember]
  119. public float PulsingDutyCycle { get; set; }
  120. public string TextOnOff
  121. {
  122. get
  123. {
  124. return IsRfOn ? "On" : "Off";
  125. }
  126. }
  127. [DataMember]
  128. public EnumRfPowerRegulationMode RegulationMode { get; set; }
  129. [DataMember]
  130. public EnumRfPowerControlMode ControlMode { get; set; }
  131. [DataMember]
  132. public EnumRfPowerPulsingMode PulsingMode { get; set; }
  133. public AITRfPowerData()
  134. {
  135. DisplayName = "Undefined";
  136. }
  137. }
  138. public enum AITRfPowerOperation
  139. {
  140. SetPowerOnOff,
  141. SetMode,
  142. SetContinuousPower,
  143. SetPulsingPower,
  144. SetPower,
  145. SetPulsingFrequency,
  146. SetPulsingDuty,
  147. SetMatchMode,
  148. SetMatchProcessMode,
  149. SetMatchPosition, //同时设置2个
  150. SetMatchPositionC1,
  151. SetMatchPositionC2,
  152. }
  153. public class AITRfPowerProperty
  154. {
  155. public const string RFEnable = "RFEnable";
  156. public const string RFSetPoint = "RFSetPoint";
  157. public const string RFForwardPower = "RFForwardPower";
  158. public const string RFReflectPower = "RFReflectPower";
  159. public const string RFRatio = "RFRatio";
  160. public const string RFInterlock = "RFInterlock";
  161. public const string RFDuty = "RFDuty";
  162. public const string RFFrequency = "RFFrequency";
  163. public const string RFMode = "RFMode";
  164. public const string RFMatchPositionC1Feedback = "RFMatchPositionC1Feedback";
  165. public const string RFMatchPositionC2Feedback = "RFMatchPositionC2Feedback";
  166. public const string RFMatchPositionC1SetPoint = "RFMatchPositionC1SetPoint";
  167. public const string RFMatchPositionC2SetPoint = "RFMatchPositionC2SetPoint";
  168. public const string RFAlarm = "RFAlarm";
  169. public const string Voltage = "Voltage";
  170. public const string Current = "Current";
  171. public const string IsOverTemp = "IsOverTemp";
  172. }
  173. }