终端一体化运控平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

394 satır
17 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.Academy._50L
  7. {
  8. public class DeviceStatus:NotifyBase
  9. {
  10. #region 按钮状态反馈
  11. /// <summary>
  12. /// 反应釜旋转电机 V2000.0
  13. /// </summary>
  14. public bool IsSetReactTurnMotor { get { return _isSetreactTurnMotor; } set { _isSetreactTurnMotor = value; OnPropertyChanged(); } }
  15. private bool _isSetreactTurnMotor;
  16. /// <summary>
  17. /// 负压风机 V2000.1
  18. /// </summary>
  19. public bool IsSetFans { get { return _isSetfans; } set { _isSetfans = value; OnPropertyChanged(); } }
  20. private bool _isSetfans;
  21. /// <summary>
  22. /// 卤水泵 V2000.2
  23. /// </summary>
  24. public bool IsSetBrinePumpState { get { return _isSetbrinePumpState; } set { _isSetbrinePumpState = value; OnPropertyChanged(); } }
  25. private bool _isSetbrinePumpState;
  26. /// <summary>
  27. /// 反应釜回原点
  28. /// </summary>
  29. public bool IsSetReactHomeBit { get { return _isSetreactHomeBit; } set { _isSetreactHomeBit = value; OnPropertyChanged(); } }
  30. private bool _isSetreactHomeBit;
  31. /// <summary>
  32. /// 反应釜去倒料位
  33. /// </summary>
  34. public bool IsSetReactOut { get { return _isSetreactOut; } set { _isSetreactOut = value; OnPropertyChanged(); } }
  35. private bool _isSetreactOut;
  36. /// <summary>
  37. /// 反应釜旋转电机点动 V2000.0
  38. /// </summary>
  39. public bool IsSetReactTurnMotorJogging { get { return _isSetreactTurnMotorJogging; } set { _isSetreactTurnMotorJogging = value; OnPropertyChanged(); } }
  40. private bool _isSetreactTurnMotorJogging;
  41. /// <summary>
  42. /// 反应釜升温 V2000.0
  43. /// </summary>
  44. public bool IsSetReactHeat { get { return _isSetReactHeat; } set { _isSetReactHeat = value; OnPropertyChanged(); } }
  45. private bool _isSetReactHeat;
  46. /// <summary>
  47. /// 反应釜降温 V2000.0
  48. /// </summary>
  49. public bool IsSetReactCool { get { return _isSetReactCool; } set { _isSetReactCool = value; OnPropertyChanged(); } }
  50. private bool _isSetReactCool;
  51. /// <summary>
  52. /// 冷凝水罐降温 V2000.0
  53. /// </summary>
  54. public bool IsSetCWTCool { get { return _isSetCWTCool; } set { _isSetCWTCool = value; OnPropertyChanged(); } }
  55. private bool _isSetCWTCool;
  56. /// <summary>
  57. /// 反应釜泄压阀 V2001.7
  58. /// </summary>
  59. public bool IsSetReactPressureReliefValve { get { return _isSetreactPressureReliefValve; } set { _isSetreactPressureReliefValve = value; OnPropertyChanged(); } }
  60. private bool _isSetreactPressureReliefValve;
  61. /// <summary>
  62. /// 反应釜排热空气阀(抽真空阀) V2001.2
  63. /// </summary>
  64. public bool IsSetReactOutHotGasValve { get { return _isSetreactOutHotGasValve; } set { _isSetreactOutHotGasValve = value; OnPropertyChanged(); } }
  65. private bool _isSetreactOutHotGasValve;
  66. /// <summary>
  67. /// 热气排空阀 V1001.3
  68. /// </summary>
  69. public bool IsSetHotGasEmptyValve { get { return _isSethotGasEmptyValve; } set { _isSethotGasEmptyValve = value; OnPropertyChanged(); } }
  70. private bool _isSethotGasEmptyValve;
  71. /// <summary>
  72. /// 冷凝水进气阀 V2001.4
  73. /// </summary>
  74. public bool IsSetColdWaterTankInAirValve { get { return _isSetcoldWaterTankInAirValve; } set { _isSetcoldWaterTankInAirValve = value; OnPropertyChanged(); } }
  75. private bool _isSetcoldWaterTankInAirValve;
  76. /// <summary>
  77. /// 反应釜排水阀 V2000.6
  78. /// </summary>
  79. public bool IsSetReactDrainValve { get { return _isSetreactDrainValve; } set { _isSetreactDrainValve = value; OnPropertyChanged(); } }
  80. private bool _isSetreactDrainValve;
  81. /// <summary>
  82. /// 反应釜进清水阀 V2000.7
  83. /// </summary>
  84. public bool IsSetReactInCleanWaterValve { get { return _isSetreactInCleanWaterValve; } set { _isSetreactInCleanWaterValve = value; OnPropertyChanged(); } }
  85. private bool _isSetreactInCleanWaterValve;
  86. /// <summary>
  87. /// 反应釜压缩空气进气阀 V2001.0
  88. /// </summary>
  89. public bool IsSetReactPressureAirInValve { get { return _isSetreactPressureAirInValve; } set { _isSetreactPressureAirInValve = value; OnPropertyChanged(); } }
  90. private bool _isSetreactPressureAirInValve;
  91. /// <summary>
  92. /// 反应釜进卤水阀 V2001.1
  93. /// </summary>
  94. public bool IsSetReactInBrineWaterValve { get { return _isSetreactInBrineWaterValve; } set { _isSetreactInBrineWaterValve = value; OnPropertyChanged(); } }
  95. private bool _isSetreactInBrineWaterValve;
  96. /// <summary>
  97. /// 冷凝水罐真空阀 V2002.0
  98. /// </summary>
  99. public bool IsSetColdWaterTankVacuumValve { get { return _isSetcoldWaterTankVacuumValve; } set { _isSetcoldWaterTankVacuumValve = value; OnPropertyChanged(); } }
  100. private bool _isSetcoldWaterTankVacuumValve;
  101. /// <summary>
  102. /// 空压机启动 V2002.1
  103. /// </summary>
  104. public bool IsSetCompressorRunning { get { return _isSetcompressorRunning; } set { _isSetcompressorRunning = value; OnPropertyChanged(); } }
  105. private bool _isSetcompressorRunning;
  106. /// <summary>
  107. /// 反应釜进料 V2002.1
  108. /// </summary>
  109. public bool IsSetReactEnter { get { return _isSetReactEnter; } set { _isSetReactEnter = value; OnPropertyChanged(); } }
  110. private bool _isSetReactEnter;
  111. /// <summary>
  112. /// 反应釜反转 V2002.1
  113. /// </summary>
  114. public bool IsSetReactReverse { get { return _isSetReactReverse; } set { _isSetReactReverse = value; OnPropertyChanged(); } }
  115. private bool _isSetReactReverse;
  116. /// <summary>
  117. /// 进卤水启动 V2002.1
  118. /// </summary>
  119. public bool IsSetStartEnterBrine { get { return _isSetStartEnterBrine; } set { _isSetStartEnterBrine = value; OnPropertyChanged(); } }
  120. private bool _isSetStartEnterBrine;
  121. /// <summary>
  122. /// 排水启动 V2002.1
  123. /// </summary>
  124. public bool IsSetStartEmptyWater { get { return _isSetStartEmptyWater; } set { _isSetStartEmptyWater = value; OnPropertyChanged(); } }
  125. private bool _isSetStartEmptyWater;
  126. /// <summary>
  127. /// 反应釜出冷却水阀 V2000.5
  128. /// </summary>
  129. public bool IsSetReactOutColdValve { get { return _isSetreactOutColdValve; } set { _isSetreactOutColdValve = value; OnPropertyChanged(); } }
  130. private bool _isSetreactOutColdValve;
  131. /// <summary>
  132. /// 冷凝水罐进水阀 V2001.5
  133. /// </summary>
  134. public bool IsSetColdWaterTankInWaterValve { get { return _isSetcoldWaterTankInWaterValve; } set { _isSetcoldWaterTankInWaterValve = value; OnPropertyChanged(); } }
  135. private bool _isSetcoldWaterTankInWaterValve;
  136. /// <summary>
  137. /// 清洗启动按钮 V2001.5
  138. /// </summary>
  139. public bool IsSetStartClean { get { return _isSetStartClean; } set { _isSetStartClean = value; OnPropertyChanged(); } }
  140. private bool _isSetStartClean;
  141. /// <summary>
  142. /// 真空蒸馏 V2001.5
  143. /// </summary>
  144. public bool IsSetVacuumDistill { get { return _isSetVacuumDistill; } set { _isSetVacuumDistill = value; OnPropertyChanged(); } }
  145. private bool _isSetVacuumDistill;
  146. /// <summary>
  147. /// 去加料位 V2001.5
  148. /// </summary>
  149. public bool IsSetGoAddPosition { get { return _isSetGoAddPosition; } set { _isSetGoAddPosition = value; OnPropertyChanged(); } }
  150. private bool _isSetGoAddPosition;
  151. /// <summary>
  152. /// 称重水罐重量清零 V1003.7
  153. /// </summary>
  154. public bool IsSetColdWaterTankZero { get { return _isSetColdWaterTankZero; } set { _isSetColdWaterTankZero = value; OnPropertyChanged(); } }
  155. private bool _isSetColdWaterTankZero;
  156. /// <summary>
  157. /// 卤水配制罐重量清零 V1003.7
  158. /// </summary>
  159. public bool IsSetBrineTankZero { get { return _isSetBrineTankZero; } set { _isSetBrineTankZero = value; OnPropertyChanged(); } }
  160. private bool _isSetBrineTankZero;
  161. /// <summary>
  162. /// 系统启动 V1003.7
  163. /// </summary>
  164. public bool IsSetSystemStart { get { return _isSetSystemStart; } set { _isSetSystemStart = value; OnPropertyChanged(); } }
  165. private bool _isSetSystemStart;
  166. /// <summary>
  167. /// 心跳 V1003.7
  168. /// </summary>
  169. public bool IsSetHeartBeat { get { return _isSetheartBeat; } set { _isSetheartBeat = value; OnPropertyChanged(); } }
  170. private bool _isSetheartBeat;
  171. #endregion
  172. #region 电机阀门反馈
  173. /// <summary>
  174. /// 旋转电机启停反馈 V2000.0
  175. /// </summary>
  176. public bool ReactTurnMotor { get { return _reactTurnMotor; } set { _reactTurnMotor = value; OnPropertyChanged(); } }
  177. private bool _reactTurnMotor;
  178. /// <summary>
  179. /// 负压风机启动反馈 V2000.1
  180. /// </summary>
  181. public bool Fans { get { return _fans; } set { _fans = value; OnPropertyChanged(); } }
  182. private bool _fans;
  183. /// <summary>
  184. /// 卤水泵启动反馈 V2000.2
  185. /// </summary>
  186. public bool BrinePumpState { get { return _brinePumpState; } set { _brinePumpState = value; OnPropertyChanged(); } }
  187. private bool _brinePumpState;
  188. /// <summary>
  189. /// 反应釜进蒸汽阀 V2000.3
  190. /// </summary>
  191. public bool ReactInSteamValue { get { return _reactInSteamValue; } set { _reactInSteamValue = value; OnPropertyChanged(); } }
  192. private bool _reactInSteamValue;
  193. /// <summary>
  194. /// 反应釜进冷却水阀 V2000.4
  195. /// </summary>
  196. public bool ReactInColdValve { get { return _reactInColdValve; } set { _reactInColdValve = value; OnPropertyChanged(); } }
  197. private bool _reactInColdValve;
  198. /// <summary>
  199. /// 反应釜出冷却水阀 V2000.5
  200. /// </summary>
  201. public bool ReactOutColdValve { get { return _reactOutColdValve; } set { _reactOutColdValve = value; OnPropertyChanged(); } }
  202. private bool _reactOutColdValve;
  203. /// <summary>
  204. /// 反应釜排水阀 V2000.6
  205. /// </summary>
  206. public bool ReactDrainValve { get { return _reactDrainValve; } set { _reactDrainValve = value; OnPropertyChanged(); } }
  207. private bool _reactDrainValve;
  208. /// <summary>
  209. /// 反应釜进清水阀 V2000.7
  210. /// </summary>
  211. public bool ReactInCleanWaterValve { get { return _reactInCleanWaterValve; } set { _reactInCleanWaterValve = value; OnPropertyChanged(); } }
  212. private bool _reactInCleanWaterValve;
  213. /// <summary>
  214. /// 压缩空气进气阀反馈 V2001.0
  215. /// </summary>
  216. public bool ReactPressureAirInValve { get { return _reactPressureAirInValve; } set { _reactPressureAirInValve = value; OnPropertyChanged(); } }
  217. private bool _reactPressureAirInValve;
  218. /// <summary>
  219. /// 反应釜进卤水阀 V2001.1
  220. /// </summary>
  221. public bool ReactInBrineWaterValve { get { return _reactInBrineWaterValve; } set { _reactInBrineWaterValve = value; OnPropertyChanged(); } }
  222. private bool _reactInBrineWaterValve;
  223. /// <summary>
  224. /// 反应釜排热空气阀反馈 V2001.2
  225. /// </summary>
  226. public bool ReactOutHotGasValve { get { return _reactOutHotGasValve; } set { _reactOutHotGasValve = value; OnPropertyChanged(); } }
  227. private bool _reactOutHotGasValve;
  228. /// <summary>
  229. /// 热气排空阀反馈 V2001.3
  230. /// </summary>
  231. public bool HotGasEmptyValve { get { return _hotGasEmptyValve; } set { _hotGasEmptyValve = value; OnPropertyChanged(); } }
  232. private bool _hotGasEmptyValve;
  233. /// <summary>
  234. /// 冷凝水罐进气阀 V2001.4
  235. /// </summary>
  236. public bool ColdWaterTankInAirValve { get { return _coldWaterTankInAirValve; } set { _coldWaterTankInAirValve = value; OnPropertyChanged(); } }
  237. private bool _coldWaterTankInAirValve;
  238. /// <summary>
  239. /// 冷凝水罐进水阀反馈 V2001.5
  240. /// </summary>
  241. public bool ColdWaterTankInWaterValve { get { return _coldWaterTankInWaterValve; } set { _coldWaterTankInWaterValve = value; OnPropertyChanged(); } }
  242. private bool _coldWaterTankInWaterValve;
  243. /// <summary>
  244. /// 反应釜原点位置反馈 V2001.6
  245. /// </summary>
  246. public bool ReactHomeBit { get { return _reactHomeBit; } set { _reactHomeBit = value; OnPropertyChanged(); } }
  247. private bool _reactHomeBit;
  248. /// <summary>
  249. /// 反应釜泄压阀反馈 V2001.7
  250. /// </summary>
  251. public bool ReactPressureReliefValve { get { return _reactPressureReliefValve; } set { _reactPressureReliefValve = value; OnPropertyChanged(); } }
  252. private bool _reactPressureReliefValve;
  253. /// <summary>
  254. /// 冷凝水罐真空阀反馈 V2002.0
  255. /// </summary>
  256. public bool ColdWaterTankVacuumValve { get { return _coldWaterTankVacuumValve; } set { _coldWaterTankVacuumValve = value; OnPropertyChanged(); } }
  257. private bool _coldWaterTankVacuumValve;
  258. /// <summary>
  259. /// 空压机启动反馈 V2002.1
  260. /// </summary>
  261. public bool CompressorRunning { get { return _compressorRunning; } set { _compressorRunning = value; OnPropertyChanged(); } }
  262. private bool _compressorRunning;
  263. /// <summary>
  264. /// 心跳反馈 V2003.7
  265. /// </summary>
  266. public bool HeartBeat { get { return _heartBeat; } set { _heartBeat = value; OnPropertyChanged(); } }
  267. private bool _heartBeat;
  268. ///// 蒸汽梳水阀反馈
  269. ///// </summary>
  270. //public bool CardWater { get { return _cardWater; } set { _cardWater = value; OnPropertyChanged(); } }
  271. //private bool _cardWater;
  272. ///// <summary>
  273. ///// 称重水罐负压阀反馈
  274. ///// </summary>
  275. //public bool WeightPot { get { return _weightPot; } set { _weightPot = value; OnPropertyChanged(); } }
  276. //private bool _weightPot;
  277. #endregion
  278. #region 模拟量
  279. /// <summary>
  280. /// 反应釜温度 VD2006
  281. /// </summary>
  282. public float ReactTemp { get { return _reactTemp; } set { _reactTemp = value; OnPropertyChanged(); } }
  283. private float _reactTemp;
  284. /// <summary>
  285. /// 反应釜蒸汽压力 VD2010
  286. /// </summary>
  287. public float ReactSteamPressure { get { return _reactSteamPressure; } set { _reactSteamPressure = value; OnPropertyChanged(); } }
  288. private float _reactSteamPressure;
  289. /// <summary>
  290. /// 反应釜蒸汽流量 VD2014
  291. /// </summary>
  292. public float ReactSteamFlow { get { return _reactSteamFlow; } set { _reactSteamFlow = value; OnPropertyChanged(); } }
  293. private float _reactSteamFlow;
  294. /// <summary>
  295. /// 冷凝水罐温度 VD2018
  296. /// </summary>
  297. public float ColdWaterTankTemp { get { return _coldWaterTankTemp; } set { _coldWaterTankTemp = value; OnPropertyChanged(); } }
  298. private float _coldWaterTankTemp;
  299. /// <summary>
  300. /// 冷凝水罐湿度 VD2022
  301. /// </summary>
  302. public float ColdWaterTankHumidity { get { return _coldWaterTankHumidity; } set { _coldWaterTankHumidity = value; OnPropertyChanged(); } }
  303. private float _coldWaterTankHumidity;
  304. /// <summary>
  305. /// 负压流量 VD2026
  306. /// </summary>
  307. public float VacuumFlow { get { return _vacuumFlow; } set { _vacuumFlow = value; OnPropertyChanged(); } }
  308. private float _vacuumFlow;
  309. /// <summary>
  310. /// 称重水罐重量 VD2030
  311. /// </summary>
  312. public float WaterTankWeight { get { return _waterTankWeight; } set { _waterTankWeight = value; OnPropertyChanged(); } }
  313. private float _waterTankWeight;
  314. /// <summary>
  315. /// 反应釜编码器值 VD2034
  316. /// </summary>
  317. public float ReactEncoderValue { get { return _reactEncoderValue; } set { _reactEncoderValue = value; OnPropertyChanged(); } }
  318. private float _reactEncoderValue;
  319. /// <summary>
  320. /// 蒸汽比例阀实际开度 VD2038
  321. /// </summary>
  322. public float SteamProportValveRealOpening { get { return _steamProportValveRealOpening; } set { _steamProportValveRealOpening = value; OnPropertyChanged(); } }
  323. private float _steamProportValveRealOpening;
  324. /// <summary>
  325. /// 卤水配制罐重量 VD2042
  326. /// </summary>
  327. public float BrineTankWeight { get { return _brineTankWeight; } set { _brineTankWeight = value; OnPropertyChanged(); } }
  328. private float _brineTankWeight;
  329. /// <summary>
  330. /// 反应釜压力 VD2046
  331. /// </summary>
  332. public float ReactPressure { get { return _reactPressure; } set { _reactPressure = value; OnPropertyChanged(); } }
  333. private float _reactPressure;
  334. #endregion
  335. }
  336. }