AITHeaterData.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Reflection;
  6. using System.Runtime.Serialization;
  7. using System.Text;
  8. using System.Windows.Input;
  9. using Aitex.Core.UI.MVVM;
  10. using MECF.Framework.Common.CommonData;
  11. namespace Aitex.Core.Common.DeviceData
  12. {
  13. [DataContract]
  14. [Serializable]
  15. public class AITHeaterData : NotifiableItem
  16. {
  17. [DataMember]
  18. public string Module { get; set; }
  19. [DataMember]
  20. public string DeviceName { get; set; }
  21. /// <summary>
  22. /// 显示在界面上的名称
  23. /// </summary>
  24. [DataMember]
  25. public string DisplayName { get; set; }
  26. /// <summary>
  27. /// IO 表中定义的物理编号,物理追溯使用 比如: M122
  28. /// </summary>
  29. [DataMember]
  30. public string DeviceSchematicId { get; set; }
  31. [DataMember]
  32. public string Unit { get; set; }
  33. [DataMember]
  34. public string Description { get; set; }
  35. /// <summary>
  36. /// 量程
  37. /// </summary>
  38. [DataMember]
  39. public double Scale { get; set; }
  40. /// <summary>
  41. /// 设定值
  42. /// </summary>
  43. [DataMember]
  44. public double SetPoint { get; set; }
  45. [DataMember]
  46. public double FeedBack { get; set; }
  47. /// <summary>
  48. /// 默认值
  49. /// </summary>
  50. [DataMember]
  51. public double DefaultValue { get; set; }
  52. /// <summary>
  53. /// 默认值
  54. /// </summary>
  55. [DataMember]
  56. public double DefaultSetPoint { get; set; }
  57. /// <summary>
  58. /// 是否有报警
  59. /// </summary>
  60. [DataMember]
  61. public bool IsWarning { get; set; }
  62. /// <summary>
  63. /// alarm或是erro时显示的信息
  64. /// </summary>
  65. [DataMember]
  66. public string ErroMessage { get; set; }
  67. /// <summary>
  68. /// MFC,PC
  69. /// </summary>
  70. [DataMember]
  71. public string Type { get; set; }
  72. [DataMember]
  73. public double Factor { get; set; }
  74. [DataMember]
  75. public bool IsPowerOn
  76. {
  77. get;
  78. set;
  79. }
  80. [DataMember]
  81. public bool IsPowerOnSetPoint
  82. {
  83. get;
  84. set;
  85. }
  86. [DataMember]
  87. public bool IsControlTcBroken
  88. {
  89. get;
  90. set;
  91. }
  92. [DataMember]
  93. public bool IsTcDeviation
  94. {
  95. get;
  96. set;
  97. }
  98. [DataMember]
  99. public bool IsMonitorTcBroken
  100. {
  101. get;
  102. set;
  103. }
  104. [DataMember]
  105. public double MonitorTcFeedBack { get; set; }
  106. [DataMember]
  107. public double CoolantInletTcFeedback { get; set; }
  108. [DataMember]
  109. public double CoolantOutletTcFeedback { get; set; }
  110. [DataMember]
  111. public string FormatString
  112. {
  113. get; set;
  114. }
  115. [DataMember]
  116. public bool DisplayWithUnit
  117. {
  118. get;
  119. set;
  120. }
  121. public AITHeaterData()
  122. {
  123. DisplayName = "Undefined";
  124. Factor = 1.0;
  125. Unit = "℃";
  126. Type = "Heater";
  127. }
  128. public void Update(IDeviceData data)
  129. {
  130. throw new NotImplementedException();
  131. }
  132. }
  133. public class AITHeaterOperation
  134. {
  135. public const string Ramp = "Ramp";
  136. public const string SetPowerOnOff = "SetPowerOnOff";
  137. public const string SetTemperature = "SetTemperature";
  138. }
  139. public class AITHeaterPropertyName
  140. {
  141. public const string ControlTcFeedbackNoOffSet = "ControlTcFeedbackNoOffSet";
  142. public const string ControlTcFeedback = "ControlTcFeedback";
  143. public const string MonitorTcFeedback = "MonitorTcFeedback";
  144. public const string CoolantInletTempFeedback = "CoolantInletTempFeedback";
  145. public const string CoolantOutletTempFeedback = "CoolantOutletTempFeedback";
  146. public const string ControlTcSetPoint = "ControlTcSetPoint";
  147. public const string ControlTcSetPointView = "ControlTcSetPointView";
  148. public const string IsControlTcBroken = "IsControlTcBroken";
  149. public const string IsMonitorTcBroken = "IsMonitorTcBroken";
  150. public const string IsTcDeviation = "IsTcDeviation";
  151. public const string IsPowerOnFeedback = "IsPowerOnFeedback";
  152. public const string IsPowerOnSetPoint = "IsPowerOnSetPoint";
  153. }
  154. }