IoMfc.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. using System;
  2. using System.Diagnostics;
  3. using System.Xml;
  4. using Aitex.Core.Common.DeviceData;
  5. using Aitex.Core.RT.DataCenter;
  6. using Aitex.Core.RT.Device;
  7. using Aitex.Core.RT.Event;
  8. using Aitex.Core.RT.IOCore;
  9. using Aitex.Core.RT.OperationCenter;
  10. using Aitex.Core.RT.SCCore;
  11. using Aitex.Core.RT.Tolerance;
  12. using Aitex.Core.Util;
  13. using MECF.Framework.Common.DBCore;
  14. using Venus_RT.Modules;
  15. using Aitex.Core.RT.Log;
  16. using static Venus_RT.Modules.PMs.PMGasVerificationRoutine;
  17. using Venus_Core;
  18. namespace Venus_RT.Devices.IODevices
  19. {
  20. public enum MFCWriteMode
  21. {
  22. Flow,
  23. Percent
  24. }
  25. //will be upgrade later
  26. public class MfcBase1 : BaseDevice, IDevice
  27. {
  28. public virtual double SetPoint { get; set; }
  29. public virtual double FeedBack { get; set; }
  30. public virtual bool IsOutOfTolerance { get; }
  31. public virtual double Scale { set; get; }
  32. public virtual string DisplayName { set; get; }
  33. private float _percent10Calculate;
  34. private float _percent20Calculate;
  35. private float _percent30Calculate;
  36. private float _percent40Calculate;
  37. private float _percent50Calculate;
  38. private float _percent60Calculate;
  39. private float _percent70Calculate;
  40. private float _percent80Calculate;
  41. private float _percent90Calculate;
  42. private float _percent100Calculate;
  43. private float _verificationCalculate;
  44. private float _verificationSetpoint;
  45. private string _verificationResult = "";
  46. public MfcBase1()
  47. {
  48. }
  49. public virtual bool Initialize()
  50. {
  51. DATA.Subscribe($"{Module}.{Name}.VerificationResult", () => _verificationResult);
  52. DATA.Subscribe($"{Module}.{Name}.FeedBack", () => FeedBack);
  53. DATA.Subscribe($"{Module}.{Name}.SetPoint", () => SetPoint);
  54. return true;
  55. }
  56. public virtual void Monitor()
  57. {
  58. }
  59. public virtual void Reset()
  60. {
  61. }
  62. public virtual void Terminate()
  63. {
  64. }
  65. public virtual void Ramp(int time)
  66. {
  67. }
  68. public virtual void Ramp(double target, int time)
  69. {
  70. }
  71. public virtual void StopRamp()
  72. {
  73. }
  74. public virtual void SetVerificationResult(float setpoint, float calculateFlow, bool saveResult, double time, double deviation, bool result, int verifyMode)
  75. {
  76. if (verifyMode == 0)
  77. {
  78. MFCVerificationOnePointData data = new MFCVerificationOnePointData()
  79. {
  80. Module = Module,
  81. Name = Name,
  82. Setpoint = setpoint,
  83. Calculate = calculateFlow,
  84. };
  85. MFCVerificationDataRecorder.AddOnePointData(data);
  86. }
  87. //ten points
  88. var delta = Scale / 10;
  89. _verificationResult += $"{setpoint},{calculateFlow},{time},{deviation},{result};";
  90. if (delta - 0.1 < setpoint && delta + 0.1 > setpoint)
  91. {
  92. _percent10Calculate = calculateFlow;
  93. }
  94. else if (2 * delta - 0.1 < setpoint && 2 * delta + 0.1 > setpoint)
  95. {
  96. _percent20Calculate = calculateFlow;
  97. }
  98. else if (3 * delta - 0.1 < setpoint && 3 * delta + 0.1 > setpoint)
  99. {
  100. _percent30Calculate = calculateFlow;
  101. }
  102. else if (4 * delta - 0.1 < setpoint && 4 * delta + 0.1 > setpoint)
  103. {
  104. _percent40Calculate = calculateFlow;
  105. }
  106. else if (5 * delta - 0.1 < setpoint && 5 * delta + 0.1 > setpoint)
  107. {
  108. _percent50Calculate = calculateFlow;
  109. }
  110. else if (6 * delta - 0.1 < setpoint && 6 * delta + 0.1 > setpoint)
  111. {
  112. _percent60Calculate = calculateFlow;
  113. }
  114. else if (7 * delta - 0.1 < setpoint && 7 * delta + 0.1 > setpoint)
  115. {
  116. _percent70Calculate = calculateFlow;
  117. }
  118. else if (8 * delta - 0.1 < setpoint && 8 * delta + 0.1 > setpoint)
  119. {
  120. _percent80Calculate = calculateFlow;
  121. }
  122. else if (9 * delta - 0.1 < setpoint && 9 * delta + 0.1 > setpoint)
  123. {
  124. _percent90Calculate = calculateFlow;
  125. }
  126. else if (10 * delta - 0.1 < setpoint && 10 * delta + 0.1 > setpoint)
  127. {
  128. _percent100Calculate = calculateFlow;
  129. }
  130. else
  131. {
  132. _verificationCalculate = calculateFlow;
  133. _verificationSetpoint = setpoint;
  134. }
  135. if (saveResult)
  136. {
  137. SaveVerificationData(verifyMode);
  138. }
  139. }
  140. private void SaveVerificationData(int verifyMode)
  141. {
  142. var delta = (float)(Scale / 10);
  143. MFCVerificationData data = new MFCVerificationData()
  144. {
  145. Module = Module,
  146. Name = DisplayName,
  147. Percent10Setpoint = delta,
  148. Percent10Calculate = _percent10Calculate,
  149. Percent20Setpoint = delta * 2,
  150. Percent20Calculate = _percent20Calculate,
  151. Percent30Setpoint = delta * 3,
  152. Percent30Calculate = _percent30Calculate,
  153. Percent40Setpoint = delta * 4,
  154. Percent40Calculate = _percent40Calculate,
  155. Percent50Setpoint = delta * 5,
  156. Percent50Calculate = _percent50Calculate,
  157. Percent60Setpoint = delta * 6,
  158. Percent60Calculate = _percent60Calculate,
  159. Percent70Setpoint = delta * 7,
  160. Percent70Calculate = _percent70Calculate,
  161. Percent80Setpoint = delta * 8,
  162. Percent80Calculate = _percent80Calculate,
  163. Percent90Setpoint = delta * 9,
  164. Percent90Calculate = _percent90Calculate,
  165. Percent100Setpoint = delta * 10,
  166. Percent100Calculate = _percent100Calculate,
  167. Setpoint = _verificationSetpoint,
  168. Calculate = _verificationCalculate,
  169. };
  170. MFCVerificationDataRecorder.Add(data);
  171. if (verifyMode == 1)
  172. {
  173. MFCVerificationTenPointsData tenPointsdata = new MFCVerificationTenPointsData()
  174. {
  175. Module = Module,
  176. Name = Name,
  177. Percent10Setpoint = delta,
  178. Percent10Calculate = _percent10Calculate,
  179. Percent20Setpoint = delta * 2,
  180. Percent20Calculate = _percent20Calculate,
  181. Percent30Setpoint = delta * 3,
  182. Percent30Calculate = _percent30Calculate,
  183. Percent40Setpoint = delta * 4,
  184. Percent40Calculate = _percent40Calculate,
  185. Percent50Setpoint = delta * 5,
  186. Percent50Calculate = _percent50Calculate,
  187. Percent60Setpoint = delta * 6,
  188. Percent60Calculate = _percent60Calculate,
  189. Percent70Setpoint = delta * 7,
  190. Percent70Calculate = _percent70Calculate,
  191. Percent80Setpoint = delta * 8,
  192. Percent80Calculate = _percent80Calculate,
  193. Percent90Setpoint = delta * 9,
  194. Percent90Calculate = _percent90Calculate,
  195. Percent100Setpoint = delta * 10,
  196. Percent100Calculate = _percent100Calculate,
  197. };
  198. MFCVerificationDataRecorder.AddTenPointsData(tenPointsdata);
  199. }
  200. }
  201. public void ResetVerificationData()
  202. {
  203. _percent10Calculate = 0;
  204. _percent20Calculate = 0;
  205. _percent30Calculate = 0;
  206. _percent40Calculate = 0;
  207. _percent50Calculate = 0;
  208. _percent60Calculate = 0;
  209. _percent70Calculate = 0;
  210. _percent80Calculate = 0;
  211. _percent90Calculate = 0;
  212. _percent100Calculate = 0;
  213. _verificationCalculate = 0;
  214. _verificationSetpoint = 0;
  215. _verificationResult = "";
  216. }
  217. }
  218. public class IoMfc : MfcBase1
  219. {
  220. byte[] _buffer_1 = new byte[4];
  221. byte[] _buffer_2 = new byte[4];
  222. private MFCWriteMode _writeMode;
  223. public string Unit
  224. {
  225. get; set;
  226. }
  227. [Subscription(AITMfcDataPropertyName.Scale)]
  228. public override double Scale
  229. {
  230. get
  231. {
  232. if (_scN2Scale == null || _scScaleFactor == null)
  233. return 0;
  234. return _scN2Scale.IntValue * _scScaleFactor.DoubleValue;
  235. }
  236. }
  237. [Subscription(AITMfcDataPropertyName.SetPoint)]
  238. public override double SetPoint
  239. {
  240. get
  241. {
  242. if (_aoFlow != null)
  243. {
  244. byte[] high = BitConverter.GetBytes(_aoFlow.Buffer[_aoFlow.Index]);
  245. byte[] low = BitConverter.GetBytes(_aoFlow.Buffer[_aoFlow.Index + 1]);
  246. _buffer_1[0] = high[0];
  247. _buffer_1[1] = high[1];
  248. _buffer_1[2] = low[0];
  249. _buffer_1[3] = low[1];
  250. float flow = BitConverter.ToSingle(_buffer_1, 0);
  251. if (_writeMode == MFCWriteMode.Flow)
  252. {
  253. return flow * Scale / RtInstance.ANALOG_TRANS_RANGE;
  254. }
  255. else
  256. {
  257. return Math.Round(flow * Scale / 100, 2);
  258. }
  259. }
  260. return 0;
  261. }
  262. set
  263. {
  264. if (_aoFlow != null)
  265. {
  266. byte[] flow;
  267. if (_writeMode == MFCWriteMode.Flow)
  268. {
  269. flow = BitConverter.GetBytes((float)(value * RtInstance.ANALOG_TRANS_RANGE / Scale));
  270. }
  271. else
  272. {
  273. flow = BitConverter.GetBytes((float)(Math.Round(value / Scale * 100, 2)));
  274. }
  275. _aoFlow.Buffer[_aoFlow.Index] = BitConverter.ToInt16(flow, 0);
  276. _aoFlow.Buffer[_aoFlow.Index + 1] = BitConverter.ToInt16(flow, 2);
  277. }
  278. }
  279. }
  280. [Subscription(AITMfcDataPropertyName.DefaultSetPoint)]
  281. public double DefaultSetPoint
  282. {
  283. get
  284. {
  285. if (_scDefaultSetPoint != null)
  286. return _scDefaultSetPoint.IntValue;
  287. return 0;
  288. }
  289. }
  290. [Subscription(AITMfcDataPropertyName.FeedBack)]
  291. public override double FeedBack
  292. {
  293. get
  294. {
  295. if (_aiFlow != null)
  296. {
  297. byte[] high = BitConverter.GetBytes(_aiFlow.Buffer[_aiFlow.Index]);
  298. byte[] low = BitConverter.GetBytes(_aiFlow.Buffer[_aiFlow.Index + 1]);
  299. _buffer_2[0] = high[0];
  300. _buffer_2[1] = high[1];
  301. _buffer_2[2] = low[0];
  302. _buffer_2[3] = low[1];
  303. float flow = BitConverter.ToSingle(_buffer_2, 0);
  304. if (_writeMode == MFCWriteMode.Flow)
  305. {
  306. return (_scRegulationFactor != null && _scRegulationFactor.IntValue > 0) ? flow * Scale / RtInstance.ANALOG_TRANS_RANGE / _scRegulationFactor.IntValue
  307. : flow * Scale / RtInstance.ANALOG_TRANS_RANGE;
  308. }
  309. else
  310. {
  311. return flow * Scale / 100;
  312. }
  313. }
  314. return 0;
  315. }
  316. }
  317. [Subscription(AITMfcDataPropertyName.IsOutOfTolerance)]
  318. public override bool IsOutOfTolerance
  319. {
  320. get
  321. {
  322. return _toleranceChecker.Result;
  323. }
  324. }
  325. [Subscription(AITMfcDataPropertyName.IsEnableAlarm)]
  326. public bool EnableAlarm
  327. {
  328. get
  329. {
  330. if (_scEnableAlarm != null)
  331. return _scEnableAlarm.BoolValue;
  332. return false;
  333. }
  334. }
  335. [Subscription(AITMfcDataPropertyName.AlarmRange)]
  336. public double AlarmRange
  337. {
  338. get
  339. {
  340. if (_scAlarmRange != null)
  341. return _scAlarmRange.IntValue;
  342. return 0;
  343. }
  344. }
  345. [Subscription(AITMfcDataPropertyName.AlarmTime)]
  346. public double AlarmTime
  347. {
  348. get
  349. {
  350. if (_scAlarmTime != null)
  351. return _scAlarmTime.IntValue;
  352. return 0;
  353. }
  354. }
  355. [Subscription(AITMfcDataPropertyName.PressureAlarm)]
  356. public bool PressureAlarm
  357. {
  358. get { return _diPressureAlarm != null ? _diPressureAlarm.Value : true; }
  359. }
  360. [Subscription(AITMfcDataPropertyName.MfcAlarm)]
  361. public bool MfcAlarm
  362. {
  363. get
  364. {
  365. return _bMfcAlarm;
  366. }
  367. }
  368. [Subscription(AITMfcDataPropertyName.IsEnable)]
  369. public bool Enable
  370. {
  371. get
  372. {
  373. if (_scEnable != null)
  374. return _scEnable.BoolValue;
  375. return false;
  376. }
  377. }
  378. [Subscription(AITMfcDataPropertyName.IsOffline)]
  379. public bool IsOffline
  380. {
  381. get
  382. {
  383. if (_diOffline != null)
  384. return _diOffline.Value;
  385. return false;
  386. }
  387. }
  388. public override string DisplayName
  389. {
  390. get
  391. {
  392. if (_scGasName != null)
  393. return _scGasName.StringValue;
  394. return Display;
  395. }
  396. }
  397. private DeviceTimer rampTimer = new DeviceTimer();
  398. private double rampTarget;
  399. private double rampInitValue;
  400. private int rampTime;
  401. private bool _bMfcAlarm = false;
  402. private bool _bRamping = false;
  403. private ToleranceChecker _toleranceChecker = new ToleranceChecker();
  404. private AIAccessor _aiFlow;
  405. private AOAccessor _aoFlow;
  406. private AOAccessor _aoRange;
  407. private DIAccessor _diOffline;
  408. private DIAccessor _diPressureAlarm;
  409. private SCConfigItem _scGasName;
  410. private SCConfigItem _scEnable;
  411. private SCConfigItem _scN2Scale;
  412. private SCConfigItem _scScaleFactor;
  413. private SCConfigItem _scAlarmRange;
  414. private SCConfigItem _scEnableAlarm;
  415. private SCConfigItem _scAlarmTime;
  416. private SCConfigItem _scDefaultSetPoint;
  417. private SCConfigItem _scRegulationFactor;
  418. private R_TRIG _trigOffline = new R_TRIG();
  419. private R_TRIG _trigPressureAlarm = new R_TRIG();
  420. private string _uniqueName;
  421. private string GasFlowOutOfTolerance = "GasFlowOutOfTolerance";
  422. private JetChamber jetChamber = JetChamber.None;
  423. public IoMfc(string module, XmlElement node, string ioModule = "")
  424. {
  425. Unit = node.GetAttribute("unit");
  426. base.Module = module;
  427. base.Name = node.GetAttribute("id");
  428. base.Display = node.GetAttribute("display");
  429. base.DeviceID = node.GetAttribute("schematicId");
  430. _aoRange = ParseAoNode("aoRange", node, ioModule);
  431. _diOffline = ParseDiNode("diOffline", node, ioModule);
  432. _aiFlow = ParseAiNode("aiFlow", node, ioModule);
  433. _aoFlow = ParseAoNode("aoFlow", node, ioModule);
  434. _diPressureAlarm = ParseDiNode("diPressureAlarm", node, ioModule);
  435. _scGasName = SC.GetConfigItem($"{Module}.{Name}.GasName");
  436. _scEnable = SC.GetConfigItem($"{Module}.{Name}.Enable");
  437. _scN2Scale = SC.GetConfigItem($"{Module}.{Name}.MfcN2Scale");
  438. _scScaleFactor = SC.GetConfigItem($"{Module}.{Name}.MfcScaleFactor");
  439. _scAlarmRange = SC.GetConfigItem($"{Module}.{Name}.MfcAlarmRange");
  440. _scEnableAlarm = SC.GetConfigItem($"{Module}.{Name}.MfcEnableAlarm");
  441. _scAlarmTime = SC.GetConfigItem($"{Module}.{Name}.MfcAlarmTime");
  442. _scDefaultSetPoint = SC.GetConfigItem($"{Module}.{Name}.DefaultSetPoint");
  443. _scRegulationFactor = SC.GetConfigItem($"{module}.{Name}.FlowRegulationFactor");
  444. _uniqueName = $"{Module}.{Name}";
  445. //if (module.Contains("PM"))
  446. //{
  447. // jetChamber = (JetChamber)SC.GetValue<int>($"{module}.ChamberType");
  448. //}
  449. _writeMode = (MFCWriteMode)SC.GetValue<int>($"{module}.{Name}.MFCWriteMode");
  450. #if DEBUG
  451. //Debug.Assert(!string.IsNullOrWhiteSpace(_scGasName.StringValue));
  452. //Debug.Assert(null != _scN2Scale);
  453. //Debug.Assert(null != _aoFlow);
  454. //Debug.Assert(null != _aiFlow);
  455. #endif
  456. }
  457. public override bool Initialize()
  458. {
  459. EV.Subscribe(new EventItem("Event", GasFlowOutOfTolerance, "Gas Flow Out Of Tolerance", EventLevel.Alarm, EventType.HostNotification));
  460. DATA.Subscribe($"{Module}.{Name}", () =>
  461. {
  462. AITMfcData data = new AITMfcData
  463. {
  464. Type = "MFC",
  465. UniqueName = _uniqueName,
  466. DeviceName = Name,
  467. DeviceSchematicId = DeviceID,
  468. DisplayName = DisplayName,
  469. FeedBack = FeedBack,
  470. SetPoint = SetPoint,
  471. Scale = Scale,
  472. IsOffline = IsOffline,
  473. IsWarning = PressureAlarm
  474. };
  475. return data;
  476. }, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  477. OP.Subscribe($"{Module}.{Name}.{AITMfcOperation.Ramp}", (name, args) =>
  478. {
  479. double target = (double)args[0];
  480. target = Math.Min(target, Scale);
  481. target = Math.Max(target, 0);
  482. Ramp(target, 0);
  483. LOG.Write(eEvent.EV_DEVICE_INFO, Module, $"Ramp to {target}{Unit}");
  484. return true;
  485. });
  486. DEVICE.Register($"{Module}.{Name}.{AITMfcOperation.Ramp}", (out string reason, int time, object[] param) =>
  487. {
  488. double target = Convert.ToDouble((string)param[0]);
  489. target = Math.Min(target, Scale);
  490. target = Math.Max(target, 0);
  491. Ramp(target, time);
  492. reason = $"{Display} ramp to {target}{Unit}";
  493. return true;
  494. });
  495. OP.Subscribe($"{Module}.{Name}.SetPoint", (cmd, args) =>
  496. {
  497. SetPoint = Convert.ToDouble(args[0]);
  498. return true;
  499. });
  500. //@AAA use recipe
  501. DEVICE.Register($"{Module}.{Name}", (out string reason, int time, object[] param) =>
  502. {
  503. double target = Convert.ToDouble((string)param[0]);
  504. target = Math.Min(target, Scale);
  505. target = Math.Max(target, 0);
  506. Ramp(target, time);
  507. reason = $"{Display} ramp to {target}{Unit}";
  508. return true;
  509. });
  510. return base.Initialize();
  511. }
  512. public override void Monitor()
  513. {
  514. if (Enable)
  515. {
  516. Ramping();
  517. CheckTolerance();
  518. if (_aoRange != null)
  519. _aoRange.Value = (short)Scale;
  520. _trigOffline.CLK = IsOffline;
  521. if (_trigOffline.Q)
  522. {
  523. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, string.Format("{0} is offline", DisplayName));
  524. _bMfcAlarm = true;
  525. }
  526. _trigPressureAlarm.CLK = PressureAlarm == false;
  527. if (_trigPressureAlarm.Q)
  528. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, $"{Name}, {DisplayName} Pressure Alarm");
  529. if (PressureAlarm)
  530. {
  531. _trigPressureAlarm.RST = true;
  532. }
  533. }
  534. }
  535. public override void Reset()
  536. {
  537. _bMfcAlarm = false;
  538. _toleranceChecker.Reset(AlarmTime);
  539. _trigPressureAlarm.RST = true;
  540. _trigOffline.RST = true;
  541. }
  542. public override void Terminate()
  543. {
  544. _bRamping = false;
  545. Ramp(DefaultSetPoint, 0);
  546. }
  547. public override void Ramp(int time)
  548. {
  549. _bRamping = true;
  550. Ramp(DefaultSetPoint, time);
  551. }
  552. public override void Ramp(double target, int time)
  553. {
  554. _bRamping = true;
  555. target = Math.Max(0, target);
  556. target = Math.Min(Scale, target);
  557. rampInitValue = SetPoint; //ramp 初始值取当前设定值,而非实际读取值。零漂问题
  558. rampTime = time;
  559. rampTarget = target;
  560. rampTimer.Start(rampTime);
  561. }
  562. public override void StopRamp()
  563. {
  564. _bRamping = false;
  565. Ramp(SetPoint, 0);
  566. }
  567. private void Ramping()
  568. {
  569. if (_bRamping)
  570. {
  571. if (rampTimer.IsTimeout() || rampTime == 0)
  572. {
  573. SetPoint = rampTarget;
  574. _bRamping = false;
  575. }
  576. else
  577. {
  578. SetPoint = rampInitValue + (rampTarget - rampInitValue) * rampTimer.GetElapseTime() / rampTime;
  579. }
  580. }
  581. }
  582. private void CheckTolerance()
  583. {
  584. if (!EnableAlarm)
  585. return;
  586. // 流率检查
  587. _toleranceChecker.Monitor(FeedBack, SetPoint - Math.Abs(AlarmRange), SetPoint + Math.Abs(AlarmRange), AlarmTime);
  588. if (_toleranceChecker.Trig)
  589. {
  590. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, Display + $" 越界 in {AlarmTime:0} seconds");
  591. EV.Notify(GasFlowOutOfTolerance);
  592. }
  593. }
  594. }
  595. }