PMLeakCheck.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  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.ParameterCenter;
  9. using Aitex.Core.RT.SCCore;
  10. using Aitex.Core.Util;
  11. using FurnaceRT.Devices;
  12. using FurnaceRT.Equipments.Systems;
  13. using MECF.Framework.Common.CommonData.EnumData;
  14. using MECF.Framework.Common.Device;
  15. using MECF.Framework.Common.Equipment;
  16. using MECF.Framework.Common.Event;
  17. using MECF.Framework.Common.FAServices;
  18. using MECF.Framework.Common.OperationCenter;
  19. using System;
  20. using System.Collections;
  21. using System.Collections.Generic;
  22. using System.Diagnostics;
  23. using System.Linq;
  24. using System.Windows.Shell;
  25. using System.Xml;
  26. namespace FurnaceRT.Equipments.PMs
  27. {
  28. public partial class PMModule
  29. {
  30. private string _currentLeakCheckFileName = "";
  31. private Dictionary<int, LeakCheckTableParameter> _leakCheckDic;
  32. private int _currentRetryCount = 0;
  33. private int _currentLeakCheckIndex = -1;
  34. private double _basePressure = -1;
  35. private double _leakCheckDelayStartPressure = 0;
  36. private double _leakCheckDelayMonitorPressure = 0;
  37. private double _leakCheckStartPressure = 0;
  38. private double _leakCheckMonitorPressure = 0;
  39. private double _leakCheckActualLeak = 0;
  40. private bool _isLeakCheckFinished = false;
  41. private Stopwatch _leakCheckDelayTimer = new Stopwatch();
  42. private Stopwatch _leakCheckTimer = new Stopwatch();
  43. private int _leakCheckStatus = (int)LeakCheckStatusEnum.None;
  44. private LeakCheckTableParameter _leakCheckTableParameter = null;
  45. private void InitLeakCheckData()
  46. {
  47. DATA.Subscribe($"{Module}.LeakCheckPressureSensorName", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.PressureSensorName : "");
  48. DATA.Subscribe($"{Module}.LeakCheckTable", () => _leakCheckTableParameter != null ? $"{_leakCheckTableParameter.No}:{_leakCheckTableParameter.Name}" : "0:Not Select");
  49. DATA.Subscribe($"{Module}.LeakCheckHightLimitCommand", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.HightLimitCommand : "None");
  50. DATA.Subscribe($"{Module}.LeakCheckLowLimitCommand", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.LowLimitCommand : "None");
  51. DATA.Subscribe($"{Module}.LeakCheckBasePressureLimitCommand", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.BasePressureLimitCommand : "None");
  52. DATA.Subscribe($"{Module}.LeakCheckErrorCommand", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.ErrorCommand : "None");
  53. DATA.Subscribe($"{Module}.LeakCheckRetryOverCommand", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.RetryOverCommand : "None");
  54. DATA.Subscribe($"{Module}.LeakCheckHighLimit", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.HighLimit : 0.0f);
  55. DATA.Subscribe($"{Module}.LeakCheckLowLimit", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.LowLimit : 0.0f);
  56. DATA.Subscribe($"{Module}.LeakCheckBasePressureLimit", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.BasePressureLimit : 0.0f);
  57. DATA.Subscribe($"{Module}.LeakCheckDelayTime", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.DelayTime : 0.0f);
  58. DATA.Subscribe($"{Module}.LeakCheckDelayElapseTime", () => (_leakCheckTableParameter != null && _leakCheckStatus == (int)LeakCheckStatusEnum.LeakCheckDelay && _leakCheckDelayTimer.IsRunning) ? _leakCheckDelayTimer.ElapsedMilliseconds / 1000 : 0.0f);
  59. DATA.Subscribe($"{Module}.LeakCheckCheckTime", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.CheckTime : 0.0f);
  60. DATA.Subscribe($"{Module}.LeakCheckElapseTime", () => _leakCheckTableParameter != null && _leakCheckStatus != (int)LeakCheckStatusEnum.None && _leakCheckTimer.IsRunning ? _leakCheckTimer.ElapsedMilliseconds / 1000 : 0.0f);
  61. DATA.Subscribe($"{Module}.LeakCheckBasePressure", () => _leakCheckTableParameter != null ? _basePressure : 0.0f);
  62. DATA.Subscribe($"{Module}.LeakCheckLeakLimit", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.LeakLimit : 0.0f);
  63. DATA.Subscribe($"{Module}.LeakCheckDelayMonitorPressure", () => _leakCheckTableParameter != null ? (float)_leakCheckDelayMonitorPressure : 0.0f);
  64. DATA.Subscribe($"{Module}.LeakCheckDelayStartPressure", () => _leakCheckTableParameter != null ? (float)_leakCheckDelayStartPressure : 0.0f);
  65. DATA.Subscribe($"{Module}.LeakCheckMonitorPressure", () => _leakCheckTableParameter != null ? (float)_leakCheckMonitorPressure : 0.0f);
  66. DATA.Subscribe($"{Module}.LeakCheckStartPressure", () => _leakCheckTableParameter != null ? (float)_leakCheckStartPressure : 0.0f);
  67. DATA.Subscribe($"{Module}.LeakCheckActualLeak", () => (float)_leakCheckActualLeak);
  68. DATA.Subscribe($"{Module}.LeakCheckRetryCurrentCount", () => _currentRetryCount);
  69. DATA.Subscribe($"{Module}.LeakCheckRetryLimit", () => _leakCheckTableParameter != null ? _leakCheckTableParameter.RetryLimit : 0);
  70. DATA.Subscribe($"{Module}.LeakCheckStatus", () => _leakCheckStatus);
  71. }
  72. public void SetLeakCheckTableIndex(int index)
  73. {
  74. _leakCheckDelayStartPressure = 0;
  75. _currentLeakCheckIndex = -1;
  76. _basePressure = -1;
  77. _isLeakCheckFinished = false;
  78. _leakCheckActualLeak = 0;
  79. _leakCheckDelayMonitorPressure = 0;
  80. _leakCheckStartPressure = 0;
  81. _leakCheckMonitorPressure = 0;
  82. if (_leakCheckDic == null)
  83. return;
  84. var ret = _leakCheckDic.TryGetValue(index, out _leakCheckTableParameter);
  85. if (!ret)
  86. return;
  87. _leakCheckStatus = (int)LeakCheckStatusEnum.BasePressureCheck;
  88. _currentLeakCheckIndex = index;
  89. _basePressure = _leakCheckTableParameter.PressureSensor.Value;
  90. if (_basePressure > _leakCheckTableParameter.HighLimit && _leakCheckTableParameter.HighLimit > 0)
  91. {
  92. LeakCheckAlarm.Set($"Leak check alarm: PH={_leakCheckTableParameter.HighLimit} < BP={_basePressure}");
  93. ProcessLeakCheckErrorCommand(_leakCheckTableParameter.HightLimitCommand);
  94. return;
  95. }
  96. if (_basePressure > _leakCheckTableParameter.LowLimit && _leakCheckTableParameter.LowLimit > 0 &&
  97. _basePressure <= _leakCheckTableParameter.HighLimit)
  98. {
  99. LeakCheckAlarm.Set($"Leak check alarm: PL={_leakCheckTableParameter.LowLimit} < BP={_basePressure} <= PH={_leakCheckTableParameter.HighLimit}");
  100. ProcessLeakCheckErrorCommand(_leakCheckTableParameter.LowLimitCommand);
  101. return;
  102. }
  103. if (_basePressure < _leakCheckTableParameter.BasePressureLimit && _leakCheckTableParameter.BasePressureLimit > 0)
  104. {
  105. LeakCheckAlarm.Set($"Leak check alarm: BP={_basePressure} < BPLIMIT={_leakCheckTableParameter.BasePressureLimit}");
  106. ProcessLeakCheckErrorCommand(_leakCheckTableParameter.BasePressureLimitCommand);
  107. return;
  108. }
  109. _leakCheckDelayStartPressure = _leakCheckTableParameter.PressureSensor.Value;
  110. _leakCheckDelayTimer.Stop();
  111. _leakCheckDelayStartPressure = _leakCheckTableParameter.PressureSensor.Value;
  112. _leakCheckTimer.Stop();
  113. }
  114. public void InitLeakCheck(string fileName)
  115. {
  116. _leakCheckStatus = (int)LeakCheckStatusEnum.None;
  117. _currentRetryCount = 0;
  118. if (string.IsNullOrEmpty(fileName))
  119. {
  120. return;
  121. }
  122. _currentLeakCheckFileName = fileName;
  123. var content = ParameterFileManager.Instance.LoadParameter("Parameter\\LeakCheckCondition", fileName, false);
  124. if (string.IsNullOrEmpty(content))
  125. {
  126. return;
  127. }
  128. var doc = new XmlDocument();
  129. doc.LoadXml(content);
  130. XmlNodeList nodeSteps = doc.SelectNodes($"Aitex/TableParameterData/Module[@Name='']/Step");
  131. if (nodeSteps == null)
  132. nodeSteps = doc.SelectNodes($"Aitex/TableParameterData/Step");
  133. if (nodeSteps == null)
  134. {
  135. EV.PostWarningLog(ModuleName.PM1.ToString(), $"Invalid leak check file {fileName}");
  136. return;
  137. }
  138. _leakCheckDic = new Dictionary<int, LeakCheckTableParameter>();
  139. for (int i = 0; i < nodeSteps.Count; i++)
  140. {
  141. var step = nodeSteps[i];
  142. XmlElement stepNode = step as XmlElement;
  143. int tableIndex = i + 1;
  144. LeakCheckTableParameter table = new LeakCheckTableParameter();
  145. foreach (XmlAttribute att in stepNode.Attributes)
  146. {
  147. switch (att.Name)
  148. {
  149. case "StepNo":
  150. int.TryParse(att.Value, out int no);
  151. table.No = no;
  152. break;
  153. case "Name":
  154. table.Name = att.Value;
  155. break;
  156. case "PressSensor":
  157. table.PressureSensor = DEVICE.GetDevice<IoPressureMeter>($"{Module}.VG13");//给一个默认值,防止LeakCheck没有选择导致报错
  158. if (!string.IsNullOrEmpty(att.Value))
  159. {
  160. var paras = att.Value.Split(':');
  161. if (paras.Length > 1)
  162. {
  163. table.PressureSensor = DEVICE.GetDevice<IoPressureMeter>($"{Module}.{paras[1]}");
  164. }
  165. }
  166. table.PressureSensorName = att.Value;
  167. break;
  168. case "PHHighLimit":
  169. if (!string.IsNullOrEmpty(att.Value))
  170. {
  171. float.TryParse(att.Value, out float value);
  172. table.HighLimit = value;
  173. }
  174. break;
  175. case "PLLowLimit":
  176. if (!string.IsNullOrEmpty(att.Value))
  177. {
  178. float.TryParse(att.Value, out float value);
  179. table.LowLimit = value;
  180. }
  181. break;
  182. case "BPLimit":
  183. if (!string.IsNullOrEmpty(att.Value))
  184. {
  185. float.TryParse(att.Value, out float value);
  186. table.BasePressureLimit = value;
  187. }
  188. break;
  189. case "DelayTime":
  190. if (!string.IsNullOrEmpty(att.Value))
  191. {
  192. float.TryParse(att.Value, out float value);
  193. table.DelayTime = value;
  194. }
  195. break;
  196. case "CheckTime":
  197. if (!string.IsNullOrEmpty(att.Value))
  198. {
  199. float.TryParse(att.Value, out float value);
  200. table.CheckTime = value;
  201. }
  202. break;
  203. case "LeakLimit":
  204. if (!string.IsNullOrEmpty(att.Value))
  205. {
  206. float.TryParse(att.Value, out float value);
  207. table.LeakLimit = value;
  208. }
  209. break;
  210. case "RetryLimit":
  211. if (!string.IsNullOrEmpty(att.Value))
  212. {
  213. int.TryParse(att.Value, out int value);
  214. table.RetryLimit = value;
  215. }
  216. break;
  217. case "HightLimitCommand":
  218. table.HightLimitCommand = att.Value;
  219. break;
  220. case "LowLimitCommand":
  221. table.LowLimitCommand = att.Value;
  222. break;
  223. case "BasePressureLimitCommand":
  224. table.BasePressureLimitCommand = att.Value;
  225. break;
  226. case "ErrorCommand":
  227. table.ErrorCommand = att.Value;
  228. break;
  229. case "RetryOverCommand":
  230. table.RetryOverCommand = att.Value;
  231. break;
  232. }
  233. }
  234. _leakCheckDic.Add(tableIndex, table);
  235. }
  236. }
  237. public bool CheckLeakCheckFinish()
  238. {
  239. if (_leakCheckDic == null || _currentLeakCheckIndex < 0)
  240. return true;
  241. if (_leakCheckStatus == (int)LeakCheckStatusEnum.None)
  242. {
  243. StopLeakCheckTimer();
  244. return true;
  245. }
  246. var ret = _leakCheckDic.TryGetValue(_currentLeakCheckIndex, out var leakCheckParameter);
  247. if (!ret)
  248. return true;
  249. if (!_leakCheckDelayTimer.IsRunning && !_leakCheckTimer.IsRunning)
  250. {
  251. _leakCheckDelayStartPressure = leakCheckParameter.PressureSensor.Value;
  252. _leakCheckDelayTimer.Restart();
  253. }
  254. if (_leakCheckDelayTimer.IsRunning && _leakCheckDelayTimer.ElapsedMilliseconds >= leakCheckParameter.DelayTime * 1000)
  255. {
  256. _leakCheckStatus = (int)LeakCheckStatusEnum.LeakCheck;
  257. if (!_leakCheckTimer.IsRunning)
  258. {
  259. _leakCheckDelayMonitorPressure = leakCheckParameter.PressureSensor.Value;
  260. _leakCheckStartPressure = leakCheckParameter.PressureSensor.Value;
  261. _leakCheckTimer.Restart();
  262. }
  263. _leakCheckDelayTimer.Stop();
  264. }
  265. else
  266. {
  267. if (!_leakCheckTimer.IsRunning)
  268. {
  269. _leakCheckDelayMonitorPressure = leakCheckParameter.PressureSensor.Value;
  270. _leakCheckStatus = (int)LeakCheckStatusEnum.LeakCheckDelay;
  271. }
  272. }
  273. if (!_leakCheckDelayTimer.IsRunning && _leakCheckTimer.IsRunning)
  274. {
  275. _leakCheckMonitorPressure = leakCheckParameter.PressureSensor.Value;
  276. _leakCheckStartPressure = _leakCheckDelayMonitorPressure;
  277. _leakCheckDelayTimer.Reset();
  278. }
  279. if (_leakCheckTimer.IsRunning && _leakCheckTimer.ElapsedMilliseconds >= leakCheckParameter.CheckTime * 1000)
  280. {
  281. _leakCheckMonitorPressure = leakCheckParameter.PressureSensor.Value;
  282. _leakCheckActualLeak = leakCheckParameter.PressureSensor.Value - _leakCheckStartPressure;
  283. if (_leakCheckActualLeak > leakCheckParameter.LeakLimit)
  284. {
  285. if (leakCheckParameter.RetryLimit > 0)
  286. {
  287. if (_currentRetryCount < leakCheckParameter.RetryLimit)
  288. {
  289. _currentRetryCount++;
  290. _processRoutine.LeakCheckRetry();
  291. LOG.Write($"Leak check retry {_currentRetryCount}/{leakCheckParameter.RetryLimit}");
  292. }
  293. else
  294. {
  295. LeakCheckAlarm.Set($"Leak check alarm: already retry count={_currentRetryCount} >= retry limit={leakCheckParameter.RetryLimit}");
  296. _currentRetryCount = 0;
  297. ProcessLeakCheckErrorCommand(leakCheckParameter.RetryOverCommand);
  298. }
  299. }
  300. else
  301. {
  302. LeakCheckAlarm.Set($"Leak check alarm: actual leak={_leakCheckActualLeak} > leak limit={leakCheckParameter.LeakLimit}");
  303. _currentRetryCount = 0;
  304. ProcessLeakCheckErrorCommand(leakCheckParameter.ErrorCommand);
  305. }
  306. return false;
  307. }
  308. else
  309. {
  310. _isLeakCheckFinished = true;
  311. _currentRetryCount = 0;
  312. _leakCheckStatus = (int)LeakCheckStatusEnum.None;
  313. _leakCheckTimer.Stop();
  314. _leakCheckDelayTimer.Stop();
  315. LOG.Write($"Leak check completed, leak rate={_leakCheckActualLeak}, delay time={leakCheckParameter.DelayTime}, check time={leakCheckParameter.CheckTime}, leak limit={leakCheckParameter.LeakLimit}, retry info={_currentRetryCount}/{leakCheckParameter.RetryLimit}");
  316. }
  317. }
  318. return _isLeakCheckFinished;
  319. }
  320. public void AbortLeakCheck()
  321. {
  322. _currentRetryCount = 0;
  323. StopLeakCheckTimer();
  324. }
  325. public void StopLeakCheckTimer()
  326. {
  327. _leakCheckStatus = (int)LeakCheckStatusEnum.None;
  328. if (_leakCheckDelayTimer.IsRunning)
  329. _leakCheckDelayTimer.Stop();
  330. if (_leakCheckTimer.IsRunning)
  331. _leakCheckTimer.Stop();
  332. }
  333. private void ProcessLeakCheckErrorCommand(string command)
  334. {
  335. _isLeakCheckFinished = true;
  336. _leakCheckStatus = (int)LeakCheckStatusEnum.None;
  337. var recipe = "";
  338. var recipeType = "";
  339. var recipeTable = "";
  340. switch (command)
  341. {
  342. case "Reset":
  343. recipe = SC.GetStringValue("System.Recipe.Reset Recipe");
  344. recipeType = "Reset";
  345. RecipeExecEntryEnumValue = RecipeExecEntryEnum.LeakCheckTrigger;
  346. CheckToPostMessage((int)MSG.RunOtherRecipe, recipe, recipeType);
  347. LOG.Write($"Leak check: command={command} recipe={recipe}");
  348. _processRoutine.FACallBack(ConstantsCommon.LeakCheckTrigger, UniversalEvents.LeakCheckTriggerReset, Module, RecipeRunningInfo.RecipeName, RecipeRunningInfo.StepNumber.ToString(), recipe);
  349. break;
  350. case "End":
  351. //因为要跳到执行最后一步,所以stepNumber需要减一
  352. var jumpStep = RecipeRunningInfo.RecipeStepList.Count - 1;
  353. _processRoutine.JumpCurrentRecipeStep(jumpStep, RecipeRunningInfo.RecipeStepList[RecipeRunningInfo.RecipeStepList.Count - 1].StepName);
  354. LOG.Write($"Leak check: command={command} step name={RecipeRunningInfo.RecipeStepList[RecipeRunningInfo.RecipeStepList.Count - 1].StepName}");
  355. _processRoutine.FACallBack(ConstantsCommon.LeakCheckTrigger, UniversalEvents.LeakCheckTriggerEnd, Module, RecipeRunningInfo.RecipeName, RecipeRunningInfo.StepNumber.ToString(), jumpStep.ToString());
  356. break;
  357. case "Hold":
  358. _processRoutine.PauseRecipe();
  359. LOG.Write($"Leak check: command={command}");
  360. _processRoutine.FACallBack(ConstantsCommon.LeakCheckTrigger, UniversalEvents.LeakCheckTriggerHold, Module, RecipeRunningInfo.RecipeName, RecipeRunningInfo.StepNumber.ToString());
  361. break;
  362. case "Monitor":
  363. LOG.Write($"Leak check: command={command}");
  364. break;
  365. case "Buzzer":
  366. Singleton<EquipmentManager>.Instance.IsAlarmConditionBuzzerOn = true;
  367. LOG.Write($"Leak check: command={command}");
  368. break;
  369. default:
  370. if (command.StartsWith("JUMP"))
  371. {
  372. //Jump step
  373. //Jump 1:
  374. var stepName = command.Replace("JUMP ", "");
  375. var jumpStepNumber = RecipeRunningInfo.RecipeStepList.FindIndex(x => x.StepName == stepName);
  376. if (jumpStepNumber > 0)
  377. {
  378. _processRoutine.JumpCurrentRecipeStep(jumpStepNumber, stepName);
  379. _processRoutine.FACallBack(ConstantsCommon.LeakCheckTrigger, UniversalEvents.LeakCheckTriggerJumpStep, Module, RecipeRunningInfo.RecipeName, RecipeRunningInfo.StepNumber.ToString(), jumpStepNumber.ToString());
  380. }
  381. LOG.Write($"Leak check: command={command} step name={stepName}");
  382. }
  383. else if (command.StartsWith("CALL"))
  384. {
  385. //call Alarm recipe
  386. //Call 1:
  387. var paras = command.Split(':');
  388. if (paras.Length > 0)
  389. {
  390. RecipeExecEntryEnumValue = RecipeExecEntryEnum.LeakCheckTrigger;
  391. recipe = RecipeRunningInfo.Head.AlarmRecipe;
  392. recipeType = "Alarm";
  393. recipeTable = paras[0].Replace("CALL", "").Replace(" ", "").Replace(":", "").Replace(":", "");
  394. CheckToPostMessage((int)MSG.RunOtherRecipe, recipe, recipeType, recipeTable);
  395. _processRoutine.FACallBack(ConstantsCommon.LeakCheckTrigger, UniversalEvents.LeakCheckTriggerCallAlarmRecipe, Module, RecipeRunningInfo.RecipeName, RecipeRunningInfo.StepNumber.ToString(), string.Empty, recipe);
  396. LOG.Write($"Leak check: command={command} recipe={recipe}");
  397. }
  398. }
  399. else if (command.StartsWith("ABORT"))
  400. {
  401. //call Abort recipe
  402. //Abort 1:
  403. var paras = command.Split(':');
  404. if (paras.Length > 0)
  405. {
  406. RecipeExecEntryEnumValue = RecipeExecEntryEnum.LeakCheckTrigger;
  407. recipe = RecipeRunningInfo.Head.AbortRecipe;
  408. recipeType = "Abort";
  409. recipeTable = paras[0].Replace("ABORT", "").Replace(" ", "").Replace(":", "").Replace(":", "");
  410. CheckToPostMessage((int)MSG.RunOtherRecipe, recipe, recipeType, recipeTable);
  411. _processRoutine.FACallBack(ConstantsCommon.LeakCheckTrigger, UniversalEvents.LeakCheckTriggerCallAbortRecipe, Module, RecipeRunningInfo.RecipeName, RecipeRunningInfo.StepNumber.ToString(), string.Empty, recipe);
  412. LOG.Write($"Leak check: command={command} recipe={recipe}");
  413. }
  414. }
  415. break;
  416. }
  417. }
  418. class LeakCheckTableParameter
  419. {
  420. public int No { get; set; }
  421. public string Name { get; set; }
  422. public string PressureSensorName { get; set; }
  423. public IoPressureMeter PressureSensor { get; set; }
  424. public float HighLimit { get; set; } = 0;
  425. public float LowLimit { get; set; } = 0;
  426. public float BasePressureLimit { get; set; } = 0;
  427. public float DelayTime { get; set; } = 0;
  428. public float CheckTime { get; set; } = 0;
  429. public float LeakLimit { get; set; } = 0;
  430. public int RetryLimit { get; set; }
  431. public string HightLimitCommand { get; set; }
  432. public string LowLimitCommand { get; set; }
  433. public string BasePressureLimitCommand { get; set; }
  434. public string ErrorCommand { get; set; }
  435. public string RetryOverCommand { get; set; }
  436. }
  437. }
  438. }