PMAux.cs 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  1. using Aitex.Core.Common.DeviceData;
  2. using Aitex.Core.RT.DataCenter;
  3. using Aitex.Core.RT.Device;
  4. using Aitex.Core.RT.Event;
  5. using Aitex.Core.RT.IOCore;
  6. using Aitex.Core.RT.Log;
  7. using Aitex.Core.RT.OperationCenter;
  8. using Aitex.Core.RT.SCCore;
  9. using Aitex.Core.Util;
  10. using Aitex.Core.Utilities;
  11. using FurnaceRT.Devices;
  12. using FurnaceRT.Extraction;
  13. using MECF.Framework.Common.DataCenter;
  14. using MECF.Framework.Common.Equipment;
  15. using MECF.Framework.Common.Event;
  16. using MECF.Framework.Common.OperationCenter;
  17. using System;
  18. using System.Collections;
  19. using System.Collections.Generic;
  20. using System.Diagnostics;
  21. using System.Linq;
  22. using System.Security.Cryptography;
  23. namespace FurnaceRT.Equipments.PMs
  24. {
  25. public partial class PMModule
  26. {
  27. private Dictionary<int, List<AITAuxData>> _auxDic;
  28. private int _currentAuxTable = 1;
  29. private string _currentTableName = "";
  30. private bool _isF2ClnOn;
  31. private bool _isHFClnOn;
  32. private bool _isDEPOOn;
  33. private bool _isHTR1Enable;
  34. private bool _isHTR2Enable;
  35. private bool _isHTR3Enable;
  36. private bool _isCEXHOn;
  37. private bool _isDPROn;
  38. private string _toolType;
  39. private Dictionary<string, float> _auxScaleDic;
  40. private Stopwatch _initTimer = new Stopwatch();
  41. private List<string> _auxNames = new List<string>();
  42. public bool IsHTR1Enable
  43. {
  44. get
  45. {
  46. return _isHTR1Enable;
  47. }
  48. set
  49. {
  50. _isHTR1Enable = value;
  51. SC.SetItemValue($"PM1.IsHTR1Enable", value);
  52. TrigHTR1SWON?.SetTrigger(value, out _);
  53. //_HTR1Group.ForEach(x => x.SetEnable(value));
  54. }
  55. }
  56. public bool IsHTR2Enable
  57. {
  58. get
  59. {
  60. return _isHTR2Enable;
  61. }
  62. set
  63. {
  64. _isHTR2Enable = value;
  65. SC.SetItemValue($"PM1.IsHTR2Enable", value);
  66. TrigHTR2SWON?.SetTrigger(value, out _);
  67. _HTR2Group.ForEach(x => x.SetEnable(value));
  68. }
  69. }
  70. public bool IsHTR3Enable
  71. {
  72. get
  73. {
  74. return _isHTR3Enable;
  75. }
  76. set
  77. {
  78. _isHTR3Enable = value;
  79. SC.SetItemValue($"PM1.IsHTR3Enable", value);
  80. TrigHTR3SWON?.SetTrigger(value, out _);
  81. TrigForlineHeaterOn.SetTrigger(value, out _);
  82. }
  83. }
  84. public bool IsF2ClnOn
  85. {
  86. get
  87. {
  88. return _isF2ClnOn;
  89. }
  90. set
  91. {
  92. _isF2ClnOn = value;
  93. SC.SetItemValue($"PM1.IsF2ClnOn", value);
  94. TrigF2CleanSwitchB?.SetTrigger(value, out _);
  95. }
  96. }
  97. public bool IsHFClnOn
  98. {
  99. get
  100. {
  101. return _isHFClnOn;
  102. }
  103. set
  104. {
  105. _isHFClnOn = value;
  106. SC.SetItemValue($"PM1.IsHFClnOn", value);
  107. TrigHFCleanSwitchB?.SetTrigger(value, out _);
  108. }
  109. }
  110. public bool IsDEPOOn
  111. {
  112. get
  113. {
  114. return _isDEPOOn;
  115. }
  116. set
  117. {
  118. _isDEPOOn = value;
  119. SC.SetItemValue($"PM1.IsDEPOOn", value);
  120. TrigDEPOSW?.SetTrigger(value, out _);
  121. }
  122. }
  123. public bool IsCREFOn
  124. {
  125. get
  126. {
  127. return _isCREFOn;
  128. }
  129. set
  130. {
  131. _isCREFOn = value;
  132. TrigCREFON?.SetTrigger(value, out _);
  133. }
  134. }
  135. private bool _isCREFOn;
  136. public bool IsSIREFOn
  137. {
  138. get
  139. {
  140. return _isSIREFOn;
  141. }
  142. set
  143. {
  144. _isSIREFOn = value;
  145. TrigSIREFON?.SetTrigger(value, out _);
  146. }
  147. }
  148. private bool _isSIREFOn;
  149. public bool IsCEXHOn
  150. {
  151. get
  152. {
  153. return _isCEXHOn;
  154. }
  155. set
  156. {
  157. _isCEXHOn = value;
  158. TrigCEXHON?.SetTrigger(value, out _);
  159. }
  160. }
  161. public bool IsDPROn
  162. {
  163. get
  164. {
  165. return _isDPROn;
  166. }
  167. set
  168. {
  169. _isDPROn = value;
  170. SC.SetItemValue($"PM1.IsDPROn", value);
  171. TrigDPRON?.SetTrigger(value, out _);
  172. }
  173. }
  174. private void InitAUX()
  175. {
  176. if (SC.ContainsItem("Minics.EnableMinics") && SC.GetValue<bool>("Minics.EnableMinics"))
  177. {
  178. if (SC.ContainsItem("Minics.PreConfigName"))
  179. _currentTableName = SC.GetStringValue("Minics.PreConfigName");
  180. return;
  181. }
  182. GetAuxNames();
  183. IsHFClnOn = SC.GetValue<bool>($"PM1.IsHFClnOn");
  184. IsF2ClnOn = SC.GetValue<bool>($"PM1.IsF2ClnOn");
  185. _toolType = (string)SC.GetStringValue("System.SetUp.ToolType");
  186. _auxDic = new Dictionary<int, List<AITAuxData>>();
  187. for (int table = 1; table < 5; table++)
  188. {
  189. List<AITAuxData> auxs = new List<AITAuxData>();
  190. for (int index = 1; index < 256; index++)
  191. {
  192. if (!SC.ContainsItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.Set"))
  193. continue;
  194. if (!SC.ContainsItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.WarningLowLimit"))
  195. continue;
  196. if (!SC.ContainsItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.WarningHighLimit"))
  197. continue;
  198. if (!SC.ContainsItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.AlarmLowLimit"))
  199. continue;
  200. if (!SC.ContainsItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.AlarmHighLimit"))
  201. continue;
  202. if (!SC.ContainsItem($"PM1.RecipeEditParameter.AUX.{index}.Display"))
  203. continue;
  204. if (!SC.ContainsItem($"PM1.RecipeEditParameter.AUX.{index}.AI"))
  205. continue;
  206. if (!SC.ContainsItem($"PM1.RecipeEditParameter.AUX.{index}.Unit"))
  207. continue;
  208. AITAuxData aux = new AITAuxData()
  209. {
  210. DisplayName = SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.Display"),
  211. DisplayNameConfig = SC.GetConfigItem($"PM1.RecipeEditParameter.AUX.{index}.Display"),
  212. IOName = SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AI"),
  213. AO = IO.AO[$"{Module}.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AO")}"],
  214. AISV = IO.AI[$"{Module}.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AI").Replace("PV", "SV")}"],
  215. AOAlarmHigher = IO.AO[$"{Module}.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AO").Replace("SV", "AlarmHigher")}"],
  216. AOAlarmLower = IO.AO[$"{Module}.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AO").Replace("SV", "AlarmLower")}"],
  217. Unit = SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.Unit"),
  218. UnitConfig = SC.GetConfigItem($"PM1.RecipeEditParameter.AUX.{index}.Unit"),
  219. SetPoint = (float)SC.GetValue<double>($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.Set"),
  220. SetPointConfig = SC.GetConfigItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.Set"),
  221. WarningLowLimit = (float)SC.GetValue<double>($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.WarningLowLimit"),
  222. WarningLowLimitConfig = SC.GetConfigItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.WarningLowLimit"),
  223. WarningHighLimit = (float)SC.GetValue<double>($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.WarningHighLimit"),
  224. WarningHighLimitConfig = SC.GetConfigItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.WarningHighLimit"),
  225. AlarmLowLimit = (float)SC.GetValue<double>($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.AlarmLowLimit"),
  226. AlarmLowLimitConfig = SC.GetConfigItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.AlarmLowLimit"),
  227. AlarmHighLimit = (float)SC.GetValue<double>($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.AlarmHighLimit"),
  228. AlarmHighLimitConfig = SC.GetConfigItem($"PM1.RecipeEditParameter.AUX.Table{table}.{index}.AlarmHighLimit"),
  229. WarningLowLimitTrig = new R_TRIG(),
  230. WarningHighLimitTrig = new R_TRIG(),
  231. AlarmLowLimitTrig = new R_TRIG(),
  232. AlarmHighLimitTrig = new R_TRIG(),
  233. Index = index,
  234. WarningLowLimitEvent = SubscribeAlarm(new AlarmEventItem()
  235. {
  236. EventEnum = $"{Name}.WarningLowLimit.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AI")}",
  237. Description = $"{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.Display")} Low Limit",
  238. Solution = "No information available. Press[Clear] to delete alarm message.",
  239. Explaination = "No information available.",
  240. AutoRecovery = false,
  241. Level = EventLevel.Warning,
  242. Action = EventAction.Clear,
  243. Category = "TubeAlarm",
  244. }, () => { ResetAUXTrig(); return true; }),
  245. WarningHighLimitEvent = SubscribeAlarm(new AlarmEventItem()
  246. {
  247. EventEnum = $"{Name}.WarningHighLimit.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AI")}",
  248. Description = $"{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.Display")} High Limit",
  249. Solution = "No information available. Press[Clear] to delete alarm message.",
  250. Explaination = "No information available.",
  251. AutoRecovery = false,
  252. Level = EventLevel.Warning,
  253. Action = EventAction.Clear,
  254. Category = "TubeAlarm",
  255. }, () => { ResetAUXTrig(); return true; }),
  256. AlarmLowLimitEvent = SubscribeAlarm(new AlarmEventItem()
  257. {
  258. EventEnum = $"{Name}.AlarmLowLimit.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AI")}",
  259. Description = $"{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.Display")} Low Limit",
  260. Solution = "No information available. Press[Clear] to delete alarm message.",
  261. Explaination = "No information available.",
  262. AutoRecovery = false,
  263. Level = EventLevel.Alarm,
  264. Action = EventAction.Clear,
  265. Category = "TubeAlarm",
  266. }, () => { ResetAUXTrig(); return true; }),
  267. AlarmHighLimitEvent = SubscribeAlarm(new AlarmEventItem()
  268. {
  269. EventEnum = $"{Name}.AlarmHighLimit.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AI")}",
  270. Description = $"{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.Display")} High Limit",
  271. Solution = "No information available. Press[Clear] to delete alarm message.",
  272. Explaination = "No information available.",
  273. AutoRecovery = false,
  274. Level = EventLevel.Alarm,
  275. Action = EventAction.Clear,
  276. Category = "TubeAlarm",
  277. }, () => { ResetAUXTrig(); return true; }),
  278. };
  279. if (SC.ContainsItem($"PM1.RecipeEditParameter.AUX.{index}.IsInstalled") && SC.GetValue<bool>($"PM1.RecipeEditParameter.AUX.{index}.IsInstalled") == false)
  280. {
  281. aux.IsInstalled = false;
  282. }
  283. else
  284. {
  285. aux.IsInstalled = true;
  286. }
  287. if (SC.GetStringValue("System.SetUp.ToolType") == "ELK")
  288. {
  289. if (index <= 96)
  290. {
  291. if (aux.DisplayName.Length > 5)
  292. aux.Module = aux.DisplayName.Substring(0, 5).Replace("Unit", "GasLine");
  293. aux.IOName = $"{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AI")}";
  294. aux.AO = IO.AO[$"{aux.Module}.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AO")}"];
  295. aux.AISV = null;
  296. aux.AOAlarmHigher = IO.AO[$"{aux.Module}.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AO").Replace("SV", "AlarmHigherPoint")}"];
  297. aux.AOAlarmLower = IO.AO[$"{aux.Module}.{SC.GetStringValue($"PM1.RecipeEditParameter.AUX.{index}.AO").Replace("SV", "AlarmLowerPoint")}"];
  298. }
  299. }
  300. else
  301. {
  302. //需求: aux只需要gasline heater,Foline heater的alarm 不需要报警(序号68之后都是Foline heater)
  303. if (index >= 68)
  304. {
  305. aux.WarningLowLimitEvent = new AlarmEventItem();
  306. aux.WarningHighLimitEvent = new AlarmEventItem();
  307. aux.AlarmLowLimitEvent = new AlarmEventItem();
  308. aux.AlarmHighLimitEvent = new AlarmEventItem();
  309. }
  310. }
  311. auxs.Add(aux);
  312. }
  313. if (auxs.Any())
  314. _auxDic.Add(table, auxs);
  315. }
  316. _auxScaleDic = new Dictionary<string, float>()
  317. {
  318. { "AI_ForelineHeater1TempPV", 1},
  319. { "AI_ForelineHeater2TempPV", 1},
  320. { "AI_ForelineHeater3TempPV", 1},
  321. { "AI_ForelineHeater4TempPV", 1},
  322. { "AI_ForelineHeater5TempPV", 1},
  323. { "AI_ForelineHeater6TempPV", 1},
  324. { "AI_ForelineHeater7TempPV", 1},
  325. { "AI_ForelineHeater8TempPV", 1},
  326. { "AI_ForelineHeater9TempPV", 1},
  327. { "AI_ForelineHeater10TempPV", 1},
  328. { "AI_ForelineHeater11TempPV", 1},
  329. { "AI_ForelineHeater12TempPV", 1},
  330. { "AI_CapHeaterTempPV", 1},
  331. { "AI_APCExternalHeaterTempPV", 1},
  332. { "AI_APCRingHeaterTempPV", 1},
  333. { "AI_GaslineHeater1PV", 1},
  334. { "AI_GaslineHeater2PV", 1},
  335. { "AI_GaslineHeater3PV", 1},
  336. { "AI_GaslineHeater4PV", 1},
  337. { "AI_GaslineHeater5PV", 1},
  338. { "AI_GaslineHeater6PV", 1},
  339. { "AI_GaslineHeater7PV", 1},
  340. { "AI_GaslineHeater8PV", 1},
  341. { "AI_GaslineHeater9PV", 1},
  342. { "AI_GaslineHeater10PV", 1},
  343. { "AI_GaslineHeater11PV", 1},
  344. { "AI_GaslineHeater12PV", 1},
  345. { "AI_GaslineHeater13PV", 1},
  346. { "AI_GaslineHeater14PV", 1},
  347. { "AI_GaslineHeater15PV", 1},
  348. { "AI_GaslineHeater16PV", 1},
  349. { "AI_GaslineHeater17PV", 1},
  350. { "AI_GaslineHeater18PV", 1},
  351. { "AI_GaslineHeater19PV", 1},
  352. { "AI_GaslineHeater20PV", 1},
  353. { "AI_GaslineHeater21PV", 1},
  354. { "AI_GaslineHeater22PV", 1},
  355. { "AI_GaslineHeater23PV", 1},
  356. { "AI_GaslineHeater24PV", 1},
  357. { "AI_GaslineHeater25PV", 1},
  358. { "AI_GaslineHeater26PV", 1},
  359. { "AI_GaslineHeater27PV", 1},
  360. { "AI_GaslineHeater28PV", 1},
  361. { "AI_GaslineHeater29PV", 1},
  362. { "AI_GaslineHeater30PV", 1},
  363. { "AI_GaslineHeater31PV", 1},
  364. { "AI_GaslineHeater32PV", 1},
  365. { "AI_GaslineHeater33PV", 1},
  366. { "AI_GaslineHeater34PV", 1},
  367. { "AI_GaslineHeater35PV", 1},
  368. { "AI_GaslineHeater36PV", 1},
  369. { "AI_GaslineHeater37PV", 1},
  370. { "AI_GaslineHeater38PV", 1},
  371. { "AI_GaslineHeater39PV", 1},
  372. { "AI_GaslineHeater40PV", 1},
  373. { "AI_GaslineHeater44PV", 1},
  374. { "AI_GaslineHeater45PV", 1},
  375. { "AI_GaslineHeater49PV", 1},
  376. { "AI_GaslineHeater50PV", 1},
  377. { "AI_GaslineHeater51PV", 1},
  378. { "AI_GaslineHeater52PV", 1},
  379. { "AI_GaslineHeater53PV", 1},
  380. { "AI_GaslineHeater54PV", 1},
  381. { "AI_GaslineHeater55PV", 1},
  382. { "AI_GaslineHeater56PV", 1},
  383. { "AI_GaslineHeater57PV", 1},
  384. { "AI_GaslineHeater58PV", 1},
  385. { "AI_GaslineHeater59PV", 1},
  386. { "AI_GaslineHeater60PV", 1},
  387. { "AI_GaslineHeater61PV", 1},
  388. { "AI_GaslineHeater62PV", 1},
  389. { "AI_GaslineHeater63PV", 1},
  390. { "AI_GaslineHeater64PV", 1},
  391. };
  392. DATA.Subscribe($"{Module}.CurrentAuxData", () => GetCurrentAuxData());
  393. _initTimer.Start();
  394. }
  395. private void GetAuxNames()
  396. {
  397. for (int i = 52; i < 63; i++)
  398. {
  399. _auxNames.Add($"Gasline heater{i} PV");
  400. }
  401. }
  402. private void ResetAUXTrig()
  403. {
  404. if (_auxDic != null && _auxDic.ContainsKey(_currentAuxTable))
  405. {
  406. foreach (var item in _auxDic[_currentAuxTable])
  407. {
  408. if (item == null)
  409. continue;
  410. item.WarningLowLimitTrig.RST = true;
  411. item.WarningHighLimitTrig.RST = true;
  412. item.AlarmLowLimitTrig.RST = true;
  413. item.AlarmHighLimitTrig.RST = true;
  414. }
  415. }
  416. }
  417. private List<AITAuxData> GetCurrentAuxData()
  418. {
  419. var datas = new List<AITAuxData>();
  420. if (_auxDic != null && _auxDic.ContainsKey(_currentAuxTable))
  421. {
  422. foreach (var item in _auxDic[_currentAuxTable])
  423. {
  424. if (item == null)
  425. continue;
  426. var data = new AITAuxData();
  427. data.AlarmHighLimit = item.AlarmHighLimit;
  428. data.AlarmLowLimit = item.AlarmLowLimit;
  429. data.WarningLowLimit = item.WarningLowLimit;
  430. data.WarningHighLimit = item.WarningHighLimit;
  431. data.SetPoint = item.AISV != null ? item.AISV.FloatValue : item.SetPoint;
  432. data.DisplayName = item.DisplayName;
  433. data.IOName = item.IOName;
  434. data.Unit = item.Unit;
  435. data.Feedback = item.Feedback;
  436. data.Index = item.Index;
  437. data.IsInstalled = item.IsInstalled;
  438. datas.Add(data);
  439. }
  440. }
  441. return datas;
  442. }
  443. private void MonitorFfu()
  444. {
  445. _isCEXHOn = _fFUs != null && !_fFUs.Any(x => !x.IsEnable);
  446. }
  447. private void MonitorAux()
  448. {
  449. if (SC.ContainsItem("Minics.EnableMinics") && SC.GetValue<bool>("Minics.EnableMinics"))
  450. {
  451. if (_initTimer.IsRunning && _initTimer.ElapsedMilliseconds < 3000)
  452. {
  453. _initTimer.Stop();
  454. return;
  455. }
  456. if (IsHTR1Enable != SC.GetValue<bool>("PM1.IsHTR1Enable"))
  457. IsHTR1Enable = SC.GetValue<bool>("PM1.IsHTR1Enable");
  458. if (IsHTR2Enable != SC.GetValue<bool>("PM1.IsHTR2Enable"))
  459. IsHTR2Enable = SC.GetValue<bool>("PM1.IsHTR2Enable");
  460. if (IsHTR3Enable != SC.GetValue<bool>("PM1.IsHTR3Enable"))
  461. IsHTR3Enable = SC.GetValue<bool>("PM1.IsHTR3Enable");
  462. if (IsDEPOOn != SC.GetValue<bool>("PM1.IsDEPOOn"))
  463. IsDEPOOn = SC.GetValue<bool>("PM1.IsDEPOOn");
  464. //配方1 Prod 模式
  465. //Htr 1 on + Htr 2 on + Htr3 on + Dep on. (F2 cln Off & HF cln Off)
  466. //配方2 F2 Cln 模式
  467. //Htr 1 on + htr 2 off + htr 3 off + F2 Cln On(Dep off &HF cln Off)
  468. //配方3 HF Cln 模式(此台设备暂无HF 配置)
  469. //Htr 1 on + htr 2 on + htr 3 off + HF Cln On(Dep off &F2 cln Off)
  470. if (IsHTR1Enable && !IsHTR2Enable && !IsHTR3Enable && IsF2ClnOn)
  471. {
  472. var config2Name = SC.ContainsItem("Minics.Config2") ? SC.GetStringValue("Minics.Config2") : "";
  473. if (_currentTableName != config2Name)
  474. {
  475. Singleton<MinicsManager>.Instance.SelectMinicsConfig(config2Name);
  476. _currentTableName = config2Name;
  477. LOG.Write($"minics table switch to config2 {config2Name}");
  478. SC.SetItemValue($"Minics.PreConfigName", _currentTableName);
  479. return;
  480. }
  481. }
  482. else if (IsHTR1Enable && IsHTR2Enable && !IsHTR3Enable && IsHFClnOn)
  483. {
  484. var config3Name = SC.ContainsItem("Minics.Config3") ? SC.GetStringValue("Minics.Config3") : "";
  485. if (_currentTableName != config3Name)
  486. {
  487. Singleton<MinicsManager>.Instance.SelectMinicsConfig(config3Name);
  488. _currentTableName = config3Name;
  489. LOG.Write($"minics table switch to config3 {config3Name}");
  490. SC.SetItemValue($"Minics.PreConfigName", _currentTableName);
  491. return;
  492. }
  493. }
  494. else if (IsHTR1Enable && IsHTR2Enable && IsHTR3Enable && IsDEPOOn)
  495. {
  496. var config1Name = SC.ContainsItem("Minics.Config1") ? SC.GetStringValue("Minics.Config1") : "";
  497. if (_currentTableName != config1Name)
  498. {
  499. Singleton<MinicsManager>.Instance.SelectMinicsConfig(config1Name);
  500. _currentTableName = config1Name;
  501. LOG.Write($"minics table switch to config1 {config1Name}");
  502. SC.SetItemValue($"Minics.PreConfigName", _currentTableName);
  503. return;
  504. }
  505. }
  506. //else if (!IsHTR1Enable) {
  507. // var config1Name = SC.ContainsItem("Minics.Config1") ? SC.GetStringValue("Minics.Config1") : "";
  508. // if (_currentTableName != config1Name)
  509. // {
  510. // Singleton<MinicsManager>.Instance.SelectMinicsConfig(config1Name);
  511. // _currentTableName = config1Name;
  512. // LOG.Write($"minics table switch to config1 {config1Name}");
  513. // }
  514. //}
  515. //else if (!IsHTR2Enable)
  516. //{
  517. // var config1Name = SC.ContainsItem("Minics.Config1") ? SC.GetStringValue("Minics.Config1") : "";
  518. // if (_currentTableName != config1Name)
  519. // {
  520. // Singleton<MinicsManager>.Instance.SelectMinicsConfig(config1Name);
  521. // _currentTableName = config1Name;
  522. // LOG.Write($"minics table switch to config1 {config1Name}");
  523. // }
  524. //}
  525. //else if (!IsHTR3Enable)
  526. //{
  527. // var config1Name = SC.ContainsItem("Minics.Config1") ? SC.GetStringValue("Minics.Config1") : "";
  528. // if (_currentTableName != config1Name)
  529. // {
  530. // Singleton<MinicsManager>.Instance.SelectMinicsConfig(config1Name);
  531. // _currentTableName = config1Name;
  532. // LOG.Write($"minics table switch to config1 {config1Name}");
  533. // }
  534. //}
  535. return;
  536. }
  537. #region old
  538. if (_initTimer.IsRunning && _initTimer.ElapsedMilliseconds < 3000)
  539. {
  540. _initTimer.Stop();
  541. return;
  542. }
  543. if (IsHTR1Enable != SC.GetValue<bool>("PM1.IsHTR1Enable"))
  544. IsHTR1Enable = SC.GetValue<bool>("PM1.IsHTR1Enable");
  545. if (IsHTR2Enable != SC.GetValue<bool>("PM1.IsHTR2Enable"))
  546. IsHTR2Enable = SC.GetValue<bool>("PM1.IsHTR2Enable");
  547. if (IsHTR3Enable != SC.GetValue<bool>("PM1.IsHTR3Enable"))
  548. IsHTR3Enable = SC.GetValue<bool>("PM1.IsHTR3Enable");
  549. if (IsHTR1Enable && IsHTR2Enable && IsF2ClnOn)
  550. {
  551. if (_currentAuxTable != 2)
  552. {
  553. _currentAuxTable = 2;
  554. LOG.Write($"AUC table switch to {_currentAuxTable}");
  555. }
  556. }
  557. else if (IsHTR1Enable && IsHTR2Enable && IsHFClnOn)
  558. {
  559. if (_currentAuxTable != 3)
  560. {
  561. _currentAuxTable = 3;
  562. LOG.Write($"AUC table switch to {_currentAuxTable}");
  563. }
  564. }
  565. else if (IsHTR1Enable)
  566. {
  567. if (_currentAuxTable != 1)
  568. {
  569. _currentAuxTable = 1;
  570. LOG.Write($"AUC table switch to {_currentAuxTable}");
  571. }
  572. }
  573. if (TrigGasLine1PowerOn != null && IsHTR1Enable != TrigGasLine1PowerOn.Value)
  574. {
  575. TrigGasLine1PowerOn?.SetTrigger(IsHTR1Enable, out _);
  576. }
  577. if (TrigGasLine2PowerOn != null && IsHTR1Enable != TrigGasLine2PowerOn.Value)
  578. {
  579. TrigGasLine2PowerOn?.SetTrigger(IsHTR1Enable, out _);
  580. }
  581. if (TrigGasLine3PowerOn != null && IsHTR1Enable != TrigGasLine3PowerOn.Value)
  582. {
  583. TrigGasLine3PowerOn?.SetTrigger(IsHTR1Enable, out _);
  584. }
  585. if (TrigGasLine4PowerOn != null)
  586. {
  587. if (IsF2ClnOn || IsHTR2Enable)
  588. {
  589. TrigGasLine4PowerOn?.SetTrigger(true, out _);
  590. }
  591. else
  592. {
  593. TrigGasLine4PowerOn?.SetTrigger(false, out _);
  594. }
  595. }
  596. if (TrigGasLine6PowerOn != null)
  597. {
  598. if (IsF2ClnOn || IsHTR2Enable)
  599. {
  600. TrigGasLine6PowerOn?.SetTrigger(true, out _);
  601. }
  602. else
  603. {
  604. TrigGasLine6PowerOn?.SetTrigger(false, out _);
  605. }
  606. }
  607. if (TrigGasLine7PowerOn != null)
  608. {
  609. if (IsF2ClnOn || IsHTR2Enable)
  610. {
  611. TrigGasLine7PowerOn?.SetTrigger(true, out _);
  612. }
  613. else
  614. {
  615. TrigGasLine7PowerOn?.SetTrigger(false, out _);
  616. }
  617. }
  618. if (IsHTR1Enable || IsHTR2Enable || IsHTR3Enable)
  619. {
  620. if (IsHTR1Enable && IsF2ClnOn)
  621. {
  622. if (TrigGasLine1RecipeChange != null && TrigGasLine1RecipeChange.AOValue != 2)
  623. TrigGasLine1RecipeChange.SetAOTrigger(2, out _);
  624. if (TrigGasLine2RecipeChange != null && TrigGasLine2RecipeChange.AOValue != 2)
  625. TrigGasLine2RecipeChange.SetAOTrigger(2, out _);
  626. if (TrigGasLine3RecipeChange != null && TrigGasLine3RecipeChange.AOValue != 2)
  627. TrigGasLine3RecipeChange.SetAOTrigger(2, out _);
  628. if (TrigGasLine4RecipeChange != null && TrigGasLine4RecipeChange.AOValue != 2)
  629. TrigGasLine4RecipeChange.SetAOTrigger(2, out _);
  630. if (TrigGasLine6RecipeChange != null && TrigGasLine6RecipeChange.AOValue != 2)
  631. TrigGasLine6RecipeChange.SetAOTrigger(2, out _);
  632. if (TrigGasLine7RecipeChange != null && TrigGasLine7RecipeChange.AOValue != 2)
  633. TrigGasLine7RecipeChange.SetAOTrigger(2, out _);
  634. }
  635. else
  636. {
  637. if (TrigGasLine1RecipeChange != null && TrigGasLine1RecipeChange.AOValue != 1)
  638. {
  639. TrigGasLine1RecipeChange?.SetAOTrigger(1, out _);
  640. }
  641. if (TrigGasLine2RecipeChange != null && TrigGasLine2RecipeChange.AOValue != 1)
  642. {
  643. TrigGasLine2RecipeChange?.SetAOTrigger(1, out _);
  644. }
  645. if (TrigGasLine3RecipeChange != null && TrigGasLine3RecipeChange.AOValue != 1)
  646. {
  647. TrigGasLine3RecipeChange?.SetAOTrigger(1, out _);
  648. }
  649. if (TrigGasLine4RecipeChange != null && TrigGasLine4RecipeChange.AOValue != 1)
  650. {
  651. TrigGasLine4RecipeChange?.SetAOTrigger(1, out _);
  652. }
  653. if (TrigGasLine6RecipeChange != null && TrigGasLine6RecipeChange.AOValue != 1)
  654. {
  655. TrigGasLine6RecipeChange?.SetAOTrigger(1, out _);
  656. }
  657. if (TrigGasLine7RecipeChange != null && TrigGasLine7RecipeChange.AOValue != 1)
  658. {
  659. TrigGasLine7RecipeChange?.SetAOTrigger(1, out _);
  660. }
  661. }
  662. }
  663. else
  664. {
  665. if (TrigGasLine1RecipeChange != null && TrigGasLine1RecipeChange.AOValue != 0)
  666. TrigGasLine1RecipeChange.SetAOTrigger(0, out _);
  667. if (TrigGasLine2RecipeChange != null && TrigGasLine2RecipeChange.AOValue != 0)
  668. TrigGasLine2RecipeChange.SetAOTrigger(0, out _);
  669. if (TrigGasLine3RecipeChange != null && TrigGasLine3RecipeChange.AOValue != 0)
  670. TrigGasLine3RecipeChange.SetAOTrigger(0, out _);
  671. if (TrigGasLine4RecipeChange != null && TrigGasLine4RecipeChange.AOValue != 0)
  672. TrigGasLine4RecipeChange.SetAOTrigger(0, out _);
  673. if (TrigGasLine6RecipeChange != null && TrigGasLine6RecipeChange.AOValue != 0)
  674. TrigGasLine6RecipeChange.SetAOTrigger(0, out _);
  675. if (TrigGasLine7RecipeChange != null && TrigGasLine7RecipeChange.AOValue != 0)
  676. TrigGasLine7RecipeChange.SetAOTrigger(0, out _);
  677. }
  678. if (IsHTR1Enable && IsHTR2Enable && IsF2ClnOn)
  679. {
  680. if (TrigGasLineHeaterMemoryChange != null && TrigGasLineHeaterMemoryChange.AOValue != 2)
  681. TrigGasLineHeaterMemoryChange.SetAOTrigger(2, out _);
  682. }
  683. else if (IsHTR1Enable || IsHTR2Enable)
  684. {
  685. if (IsHTR1Enable)
  686. {
  687. if (TrigGasLineHeaterMemoryChange != null && TrigGasLineHeaterMemoryChange.AOValue != 1)
  688. {
  689. TrigGasLineHeaterMemoryChange.SetAOTrigger(1, out _);
  690. }
  691. }
  692. else
  693. {
  694. if (TrigGasLineHeaterMemoryChange != null && TrigGasLineHeaterMemoryChange.AOValue != 0)
  695. {
  696. TrigGasLineHeaterMemoryChange.SetAOTrigger(0, out _);
  697. }
  698. }
  699. }
  700. else
  701. {
  702. if (TrigGasLineHeaterMemoryChange != null && TrigGasLineHeaterMemoryChange.AOValue != 0)
  703. TrigGasLineHeaterMemoryChange.SetAOTrigger(0, out _);
  704. }
  705. if (_auxDic != null && _auxDic.ContainsKey(_currentAuxTable))
  706. {
  707. if (IsProcessing)
  708. {
  709. foreach (var item in _auxDic[_currentAuxTable])
  710. {
  711. if (item == null)
  712. continue;
  713. item.AlarmHighLimit = (float)item.AlarmHighLimitConfig.DoubleValue;
  714. item.AlarmLowLimit = (float)item.AlarmLowLimitConfig.DoubleValue;
  715. item.WarningHighLimit = (float)item.WarningHighLimitConfig.DoubleValue;
  716. item.WarningLowLimit = (float)item.WarningLowLimitConfig.DoubleValue;
  717. //item.SetPoint = (float)item.SetPointConfig.DoubleValue;
  718. item.Unit = item.UnitConfig.StringValue;
  719. item.DisplayName = item.DisplayNameConfig.StringValue;
  720. if (SC.GetStringValue("System.SetUp.ToolType") == "ELK" && item.Index <= 96)
  721. {
  722. item.Feedback = IO.AI[$"{item.Module}.{item.IOName}"] != null ? IO.AI[$"{item.Module}.{item.IOName}"].FloatValue : 0;
  723. item.SetPoint = item.AO != null ? item.AO.FloatValue : 0;
  724. }
  725. else
  726. {
  727. item.Feedback = IO.AI[$"{Module}.{item.IOName}"] != null ? IO.AI[$"{Module}.{item.IOName}"].FloatValue : 0;
  728. }
  729. if (item.AO != null && Math.Abs(item.AO.FloatValue - item.SetPoint) > 0.0001 && item.SetPoint > 0 && (item.IOName.Contains("ForelineHeater") || item.IOName.Contains("SiSource") || item.IOName.Contains("CSource")))//只有ForelineHeater需要写,GasLine heater之类不写
  730. {
  731. item.AO.FloatValue = item.SetPoint;//process 过程中,不写ao
  732. }
  733. if (item.AOAlarmHigher != null && Math.Abs(item.AOAlarmHigher.FloatValue - item.AlarmHighLimit) > 0.0001)
  734. {
  735. item.AOAlarmHigher.FloatValue = item.AlarmHighLimit;//process 过程中,不写ao
  736. }
  737. if (item.AOAlarmLower != null && Math.Abs(item.AOAlarmLower.FloatValue - item.AlarmLowLimit) > 0.0001)
  738. {
  739. item.AOAlarmLower.FloatValue = item.AlarmLowLimit;//process 过程中,不写ao
  740. }
  741. }
  742. }
  743. else
  744. {
  745. foreach (var item in _auxDic[_currentAuxTable])
  746. {
  747. if (item == null)
  748. continue;
  749. item.WarningHighLimit = (float)item.WarningHighLimitConfig.DoubleValue;
  750. item.WarningLowLimit = (float)item.WarningLowLimitConfig.DoubleValue;
  751. item.SetPoint = (float)item.SetPointConfig.DoubleValue;
  752. item.Unit = item.UnitConfig.StringValue;
  753. item.DisplayName = item.DisplayNameConfig.StringValue;
  754. item.AlarmHighLimit = (float)item.AlarmHighLimitConfig.DoubleValue;
  755. item.AlarmLowLimit = (float)item.AlarmLowLimitConfig.DoubleValue;
  756. if (SC.GetStringValue("System.SetUp.ToolType") == "ELK" && item.Index <= 96)
  757. {
  758. item.Feedback = IO.AI[$"{item.Module}.{item.IOName}"] != null ? IO.AI[$"{item.Module}.{item.IOName}"].FloatValue : 0;
  759. item.SetPoint = item.AO != null ? item.AO.FloatValue : 0;
  760. }
  761. else
  762. {
  763. item.Feedback = IO.AI[$"{Module}.{item.IOName}"] != null ? IO.AI[$"{Module}.{item.IOName}"].FloatValue : 0;
  764. }
  765. //item.Feedback = IO.AI[$"{Module}.{item.IOName}"] != null ? IO.AI[$"{Module}.{item.IOName}"].FloatValue : 0;
  766. if (item.AO != null && Math.Abs(item.AO.FloatValue - (float)item.SetPointConfig.DoubleValue) > 0.0001 && item.SetPoint > 0 && (item.IOName.Contains("ForelineHeater") || item.IOName.Contains("SiSource") || item.IOName.Contains("CSource")))//只有ForelineHeater需要写,GasLine heater之类不写 ELK除了GasLine需要设置
  767. {
  768. item.AO.FloatValue = (float)item.SetPointConfig.DoubleValue;
  769. }
  770. if (item.AOAlarmHigher != null && Math.Abs(item.AOAlarmHigher.FloatValue - item.AlarmHighLimit) > 0.0001)
  771. {
  772. item.AOAlarmHigher.FloatValue = item.AlarmHighLimit;
  773. }
  774. if (item.AOAlarmLower != null && Math.Abs(item.AOAlarmLower.FloatValue - item.AlarmLowLimit) > 0.0001)
  775. {
  776. item.AOAlarmLower.FloatValue = item.AlarmLowLimit;
  777. }
  778. if (item.Feedback > item.SetPoint + item.AlarmHighLimit)
  779. {
  780. //注释AUX报警
  781. //item.AlarmHighLimitTrig.CLK = true;
  782. //if (item.AlarmHighLimitTrig.Q)
  783. //{
  784. // var reason = $"{item.DisplayName} feedback={item.Feedback}, alarm high limit is {item.SetPoint + item.AlarmHighLimit}";
  785. // item.AlarmHighLimitEvent.Set(reason);
  786. //}
  787. }
  788. else if (item.Feedback < item.SetPoint - item.AlarmLowLimit)
  789. {
  790. //注释AUX报警
  791. //item.AlarmLowLimitTrig.CLK = true;
  792. //if (item.AlarmLowLimitTrig.Q)
  793. //{
  794. // var reason = $"{item.DisplayName} feedback={item.Feedback}, alarm low limit is {item.SetPoint - item.AlarmLowLimit}";
  795. // item.AlarmLowLimitEvent.Set(reason);
  796. //}
  797. }
  798. else if (item.Feedback > item.SetPoint + item.WarningHighLimit)
  799. {
  800. //注释AUX报警
  801. //item.WarningHighLimitTrig.CLK = true;
  802. //if (item.WarningHighLimitTrig.Q)
  803. //{
  804. // var reason = $"{item.DisplayName} feedback={item.Feedback}, warning high limit is {item.SetPoint + item.WarningHighLimit}";
  805. // item.AlarmHighLimitEvent.Set(reason);
  806. //}
  807. }
  808. else if (item.Feedback < item.SetPoint - item.WarningLowLimit)
  809. {
  810. //注释AUX报警
  811. //item.WarningLowLimitTrig.CLK = true;
  812. //if (item.WarningLowLimitTrig.Q)
  813. //{
  814. // var reason = $"{item.DisplayName} feedback={item.Feedback}, warning low limit is {item.SetPoint - item.WarningLowLimit}";
  815. // item.AlarmLowLimitEvent.Set(reason);
  816. //}
  817. }
  818. }
  819. }
  820. }
  821. #endregion
  822. }
  823. private void SetAUXParameters(object[] param)
  824. {
  825. if (SC.ContainsItem("Minics.EnableMinics") && SC.GetValue<bool>("Minics.EnableMinics"))
  826. return;
  827. if (param != null && param.Length > 0 &&
  828. _auxDic != null && _auxDic.ContainsKey(_currentAuxTable))
  829. {
  830. var array = param[0].ToString().Split(';');
  831. if (array != null && array.Length > 0)
  832. {
  833. for (int i = 0; i < array.Length; i++)
  834. {
  835. var auxItems = array[i].Split(',');
  836. if (auxItems == null || auxItems.Length < 6)
  837. continue;
  838. int.TryParse(auxItems[0], out int index);
  839. float.TryParse(auxItems[1], out float set);
  840. bool.TryParse(auxItems[2], out bool isCheck);
  841. float.TryParse(auxItems[3], out float checkHigh);
  842. float.TryParse(auxItems[4], out float checkLow);
  843. var checkUnit = auxItems[5];
  844. var aux = _auxDic[_currentAuxTable].SingleOrDefault(x => x.Index == index);
  845. if (aux != null)
  846. {
  847. if (checkUnit.ToLower() == "%sv")
  848. {
  849. checkHigh = set * checkHigh;
  850. checkLow = set * checkLow;
  851. }
  852. else if (checkUnit.ToLower() == "%fs")
  853. {
  854. checkHigh = (_auxScaleDic.ContainsKey(aux.IOName) ? _auxScaleDic[aux.IOName] : 1) * checkHigh;
  855. checkLow = (_auxScaleDic.ContainsKey(aux.IOName) ? _auxScaleDic[aux.IOName] : 1) * checkLow;
  856. }
  857. if (set > 0)
  858. aux.SetPoint = set;
  859. aux.IsWait = isCheck;
  860. aux.WaitHigh = checkHigh;
  861. aux.WaitLow = checkLow;
  862. }
  863. }
  864. }
  865. }
  866. }
  867. public bool CheckAUXWaitCondition(out string reason)
  868. {
  869. reason = "";
  870. bool allFinish = true;
  871. if (_auxDic != null && _auxDic.ContainsKey(_currentAuxTable))
  872. {
  873. foreach (var item in _auxDic[_currentAuxTable])
  874. {
  875. if (item == null)
  876. continue;
  877. if (!item.IsWait || item.WaitHigh == 0 || item.WaitLow == 0)
  878. continue;
  879. if (item.Feedback < item.SetPoint - item.WaitLow || item.Feedback > item.SetPoint + item.WaitHigh)
  880. {
  881. allFinish = false;
  882. reason += $"{item.DisplayName} feedback={item.Feedback}, limit is ({item.SetPoint - item.WaitLow}, {item.SetPoint + item.WaitHigh}) \n";
  883. }
  884. }
  885. }
  886. return allFinish;
  887. }
  888. private void SetVFD(bool setValue)
  889. {
  890. if (SC.ContainsItem("PM1.RHC.RHCVDFFrequency"))
  891. {
  892. if (setValue)
  893. {
  894. TrigVFD?.SetAOTrigger((float)SC.GetValue<double>("PM1.RHC.RHCVDFFrequency"), out _);
  895. }
  896. else
  897. {
  898. SC.SetItemValue("PM1.RHC.RHCVDFFrequency", 0.0d);
  899. TrigVFD?.SetAOTrigger((float)SC.GetValue<double>("PM1.RHC.RHCVDFFrequency"), out _);
  900. }
  901. }
  902. }
  903. private bool SetBWREnable(object[] param)
  904. {
  905. if (param != null && param.Length > 0)
  906. {
  907. bool.TryParse(param[0].ToString(), out bool isEnable);
  908. SetVFD(isEnable);
  909. }
  910. return true;
  911. }
  912. private bool SetF2ClnEnable(object[] param)
  913. {
  914. if (param != null && param.Length > 0)
  915. {
  916. bool.TryParse(param[0].ToString(), out bool isEnable);
  917. IsF2ClnOn = isEnable;
  918. }
  919. return true;
  920. }
  921. private bool SetHFClnEnable(object[] param)
  922. {
  923. if (param != null && param.Length > 0)
  924. {
  925. bool.TryParse(param[0].ToString(), out bool isEnable);
  926. IsHFClnOn = isEnable;
  927. }
  928. return true;
  929. }
  930. private bool SetDEPOEnable(object[] param)
  931. {
  932. if (param != null && param.Length > 0)
  933. {
  934. bool.TryParse(param[0].ToString(), out bool isEnable);
  935. IsDEPOOn = isEnable;
  936. }
  937. return true;
  938. }
  939. //private bool SetCREFEnable(object[] param)
  940. //{
  941. // if (param != null && param.Length > 0)
  942. // {
  943. // bool.TryParse(param[0].ToString(), out bool isEnable);
  944. // IsCREFOn = isEnable;
  945. // }
  946. // return true;
  947. //}
  948. //private bool SetSIREFEnable(object[] param)
  949. //{
  950. // if (param != null && param.Length > 0)
  951. // {
  952. // bool.TryParse(param[0].ToString(), out bool isEnable);
  953. // IsSIREFOn = isEnable;
  954. // }
  955. // return true;
  956. //}
  957. }
  958. }