LLEntity.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. using System;
  2. using Aitex.Core.Util;
  3. using Aitex.Core.RT.Fsm;
  4. using Aitex.Core.RT.Log;
  5. using MECF.Framework.Common.Equipment;
  6. using MECF.Framework.Common.SubstrateTrackings;
  7. using Venus_RT.Modules.TM;
  8. using Venus_RT.Devices;
  9. using Venus_Core;
  10. using Aitex.Core.RT.DataCenter;
  11. using Aitex.Core.RT.OperationCenter;
  12. using Aitex.Core.RT.Device;
  13. using Aitex.Core.RT.SCCore;
  14. using Aitex.Core.RT.Event;
  15. namespace Venus_RT.Modules
  16. {
  17. class LLEntity : Entity, IEntity, IModuleEntity
  18. {
  19. public enum LLStatus
  20. {
  21. Not_Ready,
  22. Ready_For_TM,
  23. Ready_For_EFEM,
  24. }
  25. public enum STATE
  26. {
  27. Unknown,
  28. Init,
  29. Initializing,
  30. Idle,
  31. Error,
  32. Pumping,
  33. Venting,
  34. Purging,
  35. LeakCheck,
  36. Prepare_For_TM,
  37. Prepare_For_EFEM,
  38. Ready_For_TM,
  39. Ready_For_EFEM,
  40. }
  41. public enum MSG
  42. {
  43. Home,
  44. Online,
  45. Offline,
  46. Pump,
  47. Vent,
  48. AutoPump,
  49. AutoVent,
  50. Purge,
  51. CyclePurge,
  52. LeakCheck,
  53. Prepare_TM,
  54. Prepare_EFEM,
  55. TM_Exchange_Ready,
  56. EFEM_Exchange_Ready,
  57. Error,
  58. Abort,
  59. }
  60. public ModuleName Module { get; private set; }
  61. public LLStatus Status { get; private set; }
  62. public bool Check(int msg, out string reason, params object[] args)
  63. {
  64. throw new NotImplementedException();
  65. }
  66. public bool IsIdle
  67. {
  68. get { return fsm.State == (int)STATE.Idle; }
  69. }
  70. public bool IsError
  71. {
  72. get { return fsm.State == (int)STATE.Error; }
  73. }
  74. public bool IsInit
  75. {
  76. get { return fsm.State == (int)STATE.Unknown || fsm.State == (int)STATE.Init; }
  77. }
  78. public bool IsBusy
  79. {
  80. get { return !IsInit && !IsError && !IsIdle; }
  81. }
  82. public bool IsOnline { get; internal set; }
  83. public bool IsInclude
  84. {
  85. get;
  86. private set;
  87. } = true;
  88. public bool IsVac { get { return _JetTM.IsModuleVaccum(Module); } }
  89. public bool IsATM { get { return _JetTM.IsModuleATM(Module); } }
  90. private readonly JetTM _JetTM;
  91. private readonly MFPumpRoutine _pumpingRoutine;
  92. private readonly MFVentRoutine _ventingRoutine;
  93. private readonly MFLeakCheckRoutine _leakCheckRoutine;
  94. private readonly MFPurgeRoutine _purgeRoutine;
  95. private readonly int _slotNumber = 4;
  96. private bool startControlPressureFlag = true;
  97. private int _controlPressureCheckPoint = 100;
  98. private int _controlPressureSetPoint = 90;
  99. private int _controlFlowSetPoint = 90;
  100. public LLEntity(ModuleName module)
  101. {
  102. Module = module;
  103. _JetTM = DEVICE.GetDevice<JetTM>("TM");
  104. _pumpingRoutine = new MFPumpRoutine(_JetTM, Module);
  105. _ventingRoutine = new MFVentRoutine(_JetTM, Module);
  106. _leakCheckRoutine = new MFLeakCheckRoutine(_JetTM, Module);
  107. _purgeRoutine = new MFPurgeRoutine(_JetTM, Module);
  108. _slotNumber = SC.GetValue<int>($"{module.ToString()}.SlotNumber");
  109. WaferManager.Instance.SubscribeLocation(Module, _slotNumber);
  110. InitFsmMap();
  111. }
  112. protected override bool Init()
  113. {
  114. OP.Subscribe($"{Module}.Home", (cmd, args) => CheckToPostMessage((int)MSG.Home));
  115. OP.Subscribe($"{Module}.{RtOperation.Pump}", (cmd, args) => CheckToPostMessage((int)MSG.Pump));
  116. OP.Subscribe($"{Module}.{RtOperation.Vent}", (cmd, args) => CheckToPostMessage((int)MSG.Vent));
  117. OP.Subscribe($"{Module}.{RtOperation.Purge}", (cmd, args) => CheckToPostMessage((int)MSG.Purge));
  118. OP.Subscribe($"{Module}.{RtOperation.Abort}", (cmd, args) => CheckToPostMessage((int)MSG.Abort));
  119. OP.Subscribe($"{Module}.{RtOperation.LeakCheck}", (cmd, args) => CheckToPostMessage((int)MSG.LeakCheck));
  120. OP.Subscribe($"{Module}.{RtOperation.Online}", (cmd, args) => CheckToPostMessage((int)MSG.Online));
  121. OP.Subscribe($"{Module}.{RtOperation.Offline}", (cmd, args) => CheckToPostMessage((int)MSG.Offline));
  122. OP.Subscribe($"{Module}.{RtOperation.Include}", (cmd, args) => FnSetInclude());
  123. OP.Subscribe($"{Module}.{RtOperation.Exclude}", (cmd, args) => FnSetExclude());
  124. DATA.Subscribe($"{Module}.FsmState", () => (((STATE)fsm.State).ToString()), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  125. DATA.Subscribe($"{Module}.FsmPrevState", () => (((PMState)fsm.PrevState).ToString()), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  126. DATA.Subscribe($"{Module}.FsmLastMessage", () => (((MSG)fsm.LastMsg).ToString()), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  127. DATA.Subscribe($"{Module}.IsOnline", () => IsOnline, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  128. DATA.Subscribe($"{Module}.IsInclude", () => IsInclude, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  129. return true;
  130. }
  131. private void InitFsmMap()
  132. {
  133. fsm = new StateMachine<LLEntity>(Module.ToString(), (int)STATE.Init, 50);
  134. fsm.EnableRepeatedMsg(true);
  135. EnterExitTransition<STATE, FSM_MSG>(STATE.Ready_For_TM, fnEnterTMReady, FSM_MSG.NONE, fnExitTMReady);
  136. EnterExitTransition<STATE, FSM_MSG>(STATE.Ready_For_EFEM, fnEnterEFEMReady, FSM_MSG.NONE, fnExitEFEMReady);
  137. //AnyStateTransition(FSM_MSG.TIMER, fnMonitor, FSM_STATE.SAME);
  138. AnyStateTransition(MSG.Error, fnError, STATE.Error);
  139. AnyStateTransition(MSG.Online, fnOnline, FSM_STATE.SAME);
  140. AnyStateTransition(MSG.Offline, fnOffline, FSM_STATE.SAME);
  141. AnyStateTransition(MSG.Home, fnHome, STATE.Initializing);
  142. // Home
  143. Transition(STATE.Initializing, FSM_MSG.TIMER, fnHoming, STATE.Idle);
  144. Transition(STATE.Idle, FSM_MSG.TIMER, fnMonitor, STATE.Idle);
  145. Transition(STATE.Init, FSM_MSG.TIMER, fnMonitor, STATE.Init);
  146. //vent sequence
  147. Transition(STATE.Idle, MSG.Vent, FnStartVent, STATE.Venting);
  148. Transition(STATE.Venting, FSM_MSG.TIMER, FnVentTimeout, STATE.Idle);
  149. Transition(STATE.Venting, MSG.Abort, FnAbortVent, STATE.Idle);
  150. //Pump sequence
  151. Transition(STATE.Idle, MSG.Pump, FnStartPump, STATE.Pumping);
  152. Transition(STATE.Pumping, FSM_MSG.TIMER, FnPumpTimeout, STATE.Idle);
  153. Transition(STATE.Pumping, MSG.Abort, FnAbortPump, STATE.Idle);
  154. // Purge sequence
  155. Transition(STATE.Idle, MSG.Purge, FnStartPurge, STATE.Purging);
  156. Transition(STATE.Purging, FSM_MSG.TIMER, FnPurgeTimeout, STATE.Idle);
  157. Transition(STATE.Purging, MSG.Abort, FnAbortPurge, STATE.Idle);
  158. // Leak check sequence
  159. Transition(STATE.Idle, MSG.LeakCheck, FnStartLeakCheck, STATE.LeakCheck);
  160. Transition(STATE.LeakCheck, FSM_MSG.TIMER, FnLeakCheckTimeout, STATE.Idle);
  161. Transition(STATE.LeakCheck, MSG.Abort, FnAbortLeakCheck, STATE.Idle);
  162. // Prepare TM Transfer
  163. Transition(STATE.Idle, MSG.Prepare_TM, FnStartPrepareTM, STATE.Prepare_For_TM);
  164. Transition(STATE.Prepare_For_TM, FSM_MSG.TIMER, FnPreparaTMTimeout, STATE.Ready_For_TM);
  165. Transition(STATE.Prepare_For_TM, MSG.Prepare_TM, null, STATE.Prepare_For_TM);
  166. Transition(STATE.Prepare_For_TM, MSG.Abort, FnAbortPreparaTM, STATE.Idle);
  167. Transition(STATE.Ready_For_TM, MSG.TM_Exchange_Ready, null, STATE.Idle);
  168. Transition(STATE.Ready_For_TM, MSG.Prepare_TM, null, STATE.Ready_For_TM);
  169. Transition(STATE.Ready_For_TM, MSG.Abort, null, STATE.Idle);
  170. Transition(STATE.Ready_For_TM, MSG.AutoVent, FnTryAutoVent, STATE.Venting);
  171. // Prepare EFEM Transfer
  172. Transition(STATE.Idle, MSG.Prepare_EFEM, FnStartPrepareEFEM, STATE.Prepare_For_EFEM);
  173. Transition(STATE.Prepare_For_EFEM, FSM_MSG.TIMER, FnPrepareEFEMTimeout, STATE.Ready_For_EFEM);
  174. Transition(STATE.Prepare_For_EFEM, MSG.Abort, FnAbortPrepareEFEM, STATE.Idle);
  175. Transition(STATE.Ready_For_EFEM, MSG.EFEM_Exchange_Ready, null, STATE.Idle);
  176. Transition(STATE.Ready_For_EFEM, MSG.Prepare_EFEM, null, STATE.Ready_For_EFEM);
  177. Transition(STATE.Ready_For_EFEM, MSG.Abort, null, STATE.Idle);
  178. Transition(STATE.Ready_For_EFEM, MSG.AutoPump, FnTryAutoPump, STATE.Pumping);
  179. //AnyStateTransition(FSM_MSG.TIMER, LLControlPressureTimer_Elapsed, FSM_STATE.SAME);
  180. Running = true;
  181. }
  182. public int Invoke(string function, params object[] args)
  183. {
  184. switch (function)
  185. {
  186. case "Home":
  187. CheckToPostMessage((int)MSG.Home);
  188. return (int)MSG.Home;
  189. }
  190. return (int)FSM_MSG.NONE;
  191. }
  192. public bool CheckAcked(int msg)
  193. {
  194. return fsm.CheckExecuted(msg);
  195. }
  196. public bool CheckToPostMessage(int msg, params object[] args)
  197. {
  198. if (!fsm.FindTransition(fsm.State, msg))
  199. {
  200. LOG.Write(eEvent.WARN_FSM_WARN, Module, $"{Module} is in {(STATE)fsm.State} state,can not do {(MSG)msg}");
  201. return false;
  202. }
  203. Running = true;
  204. fsm.PostMsg(msg, args);
  205. return true;
  206. }
  207. public (int processed, int unprocessed) GetWaferProcessStatus()
  208. {
  209. int processedCount = 0;
  210. int unprocessCount = 0;
  211. for (int i = 0; i < _slotNumber; i++)
  212. {
  213. var wafer = WaferManager.Instance.GetWafer(Module, i);
  214. if (!wafer.IsEmpty)
  215. {
  216. if (wafer.ProcessState == Aitex.Core.Common.EnumWaferProcessStatus.Completed)
  217. {
  218. processedCount++;
  219. }
  220. else
  221. {
  222. unprocessCount++;
  223. }
  224. }
  225. }
  226. return (processedCount, unprocessCount);
  227. }
  228. private bool fnEnterTMReady(object[] param)
  229. {
  230. if (RouteManager.IsATMMode)
  231. {
  232. Status = LLStatus.Ready_For_TM;
  233. return true;
  234. }
  235. startControlPressureFlag = false;
  236. _controlPressureCheckPoint = SC.GetValue<int>($"{Module}.ControlPressureCheckPoint");
  237. _controlPressureSetPoint = SC.GetValue<int>($"{Module}.ControlPressureSetPoint");
  238. _controlFlowSetPoint = SC.GetValue<int>($"{Module}.{Module}_MFC1.DefaultSetPoint");
  239. _JetTM.TurnFastPumpValve(Module, true);
  240. _JetTM.TurnPurgeValve(Module, true);
  241. if (Module == ModuleName.LLA)
  242. {
  243. _JetTM.SwitchLLAPressureMode(true);
  244. _JetTM.SetLLAPressure(_controlPressureSetPoint);
  245. }
  246. else if (Module == ModuleName.LLB)
  247. {
  248. _JetTM.SwitchLLBPressureMode(true);
  249. _JetTM.SetLLBPressure(_controlPressureSetPoint);
  250. }
  251. Status = LLStatus.Ready_For_TM;
  252. return true;
  253. }
  254. private bool fnExitTMReady(object[] param)
  255. {
  256. if (RouteManager.IsATMMode)
  257. {
  258. Status = LLStatus.Not_Ready;
  259. return true;
  260. }
  261. _JetTM.TurnFastPumpValve(Module, false);
  262. _JetTM.TurnPurgeValve(Module, false);
  263. if (Module == ModuleName.LLA)
  264. {
  265. _JetTM.SwitchLLAPressureMode(false);
  266. _JetTM.SetLLAPressure(0);
  267. }
  268. else if (Module == ModuleName.LLB)
  269. {
  270. _JetTM.SwitchLLBPressureMode(false);
  271. _JetTM.SetLLBPressure(0);
  272. }
  273. Status = LLStatus.Not_Ready;
  274. return true;
  275. }
  276. private bool fnEnterEFEMReady(object[] param)
  277. {
  278. Status = LLStatus.Ready_For_EFEM;
  279. return true;
  280. }
  281. private bool fnExitEFEMReady(object[] param)
  282. {
  283. Status = LLStatus.Not_Ready;
  284. return true;
  285. }
  286. private bool fnMonitor(object[] param)
  287. {
  288. _debugRoutine();
  289. return true;
  290. }
  291. private bool fnError(object[] param)
  292. {
  293. IsOnline = false;
  294. return true;
  295. }
  296. private bool fnOnline(object[] param)
  297. {
  298. IsOnline = true;
  299. return true;
  300. }
  301. private bool fnOffline(object[] param)
  302. {
  303. IsOnline = false;
  304. return true;
  305. }
  306. private bool FnSetInclude()
  307. {
  308. if (IsOnline == true)
  309. {
  310. LOG.Write(eEvent.WARN_LL, Module, $"{Module} is online,can not set Include");
  311. return false;
  312. }
  313. IsInclude = true;
  314. return true;
  315. }
  316. private bool FnSetExclude()
  317. {
  318. if (IsOnline == true)
  319. {
  320. LOG.Write(eEvent.WARN_LL, Module, $"{Module} is online,can not set Exclude");
  321. return false;
  322. }
  323. IsInclude = false;
  324. return true;
  325. }
  326. private bool fnAbort(object[] param)
  327. {
  328. return true;
  329. }
  330. private bool fnHome(object[] param)
  331. {
  332. IsOnline = true;
  333. return true;
  334. }
  335. private bool fnHoming(object[] param)
  336. {
  337. return true;
  338. }
  339. private bool FnStartVent(object[] param)
  340. {
  341. return _ventingRoutine.Start() == RState.Running;
  342. }
  343. private bool FnTryAutoVent(object[] param)
  344. {
  345. if (RouteManager.IsATMMode)
  346. {
  347. PostMsg(MSG.TM_Exchange_Ready);
  348. return false;
  349. }
  350. return _ventingRoutine.Start() == RState.Running;
  351. }
  352. private bool FnVentTimeout(object[] param)
  353. {
  354. RState ret = _ventingRoutine.Monitor();
  355. if (ret == RState.Failed || ret == RState.Timeout)
  356. {
  357. PostMsg(MSG.Error);
  358. return false;
  359. }
  360. return ret == RState.End;
  361. }
  362. private bool FnAbortVent(object[] param)
  363. {
  364. _ventingRoutine.Abort();
  365. return true;
  366. }
  367. private bool FnStartPump(object[] param)
  368. {
  369. return _pumpingRoutine.Start() == RState.Running;
  370. }
  371. private bool FnPumpTimeout(object[] param)
  372. {
  373. RState ret = _pumpingRoutine.Monitor();
  374. if (ret == RState.Failed || ret == RState.Timeout)
  375. {
  376. PostMsg(MSG.Error);
  377. return false;
  378. }
  379. return ret == RState.End;
  380. }
  381. private bool FnAbortPump(object[] param)
  382. {
  383. _pumpingRoutine.Abort();
  384. return true;
  385. }
  386. private bool FnTryAutoPump(object[] param)
  387. {
  388. if (_JetTM.LLPumpStatus != JetTM.LLPumpState.Idle || RouteManager.IsATMMode)
  389. {
  390. PostMsg(MSG.EFEM_Exchange_Ready);
  391. return false;
  392. }
  393. return _pumpingRoutine.Start() == RState.Running;
  394. }
  395. private bool FnStartPurge(object[] param)
  396. {
  397. return _purgeRoutine.Start() == RState.Running;
  398. }
  399. private bool FnPurgeTimeout(object[] param)
  400. {
  401. RState ret = _purgeRoutine.Monitor();
  402. if (ret == RState.Failed || ret == RState.Timeout)
  403. {
  404. PostMsg(MSG.Error);
  405. return false;
  406. }
  407. return ret == RState.End;
  408. }
  409. private bool FnAbortPurge(object[] param)
  410. {
  411. _purgeRoutine.Abort();
  412. return true;
  413. }
  414. private bool FnStartLeakCheck(object[] param)
  415. {
  416. return _leakCheckRoutine.Start() == RState.Running;
  417. }
  418. private bool FnLeakCheckTimeout(object[] param)
  419. {
  420. RState ret = _leakCheckRoutine.Monitor();
  421. if (ret == RState.Failed || ret == RState.Timeout)
  422. {
  423. PostMsg(MSG.Error);
  424. return false;
  425. }
  426. return ret == RState.End;
  427. }
  428. private bool FnAbortLeakCheck(object[] param)
  429. {
  430. _leakCheckRoutine.Abort();
  431. return true;
  432. }
  433. private bool FnStartPrepareTM(object[] param)
  434. {
  435. if (RouteManager.IsATMMode)
  436. return true;
  437. return _pumpingRoutine.Start() == RState.Running;
  438. }
  439. private bool FnPreparaTMTimeout(object[] param)
  440. {
  441. if (RouteManager.IsATMMode)
  442. {
  443. if (fsm.ElapsedTime > 10000)
  444. {
  445. LOG.Write(eEvent.ERR_TM, Module, $"Cannot transfer wafer as {Module} is not ATM.");
  446. PostMsg(MSG.Error);
  447. return true;
  448. }
  449. return _JetTM.IsModuleATM(Module);
  450. }
  451. RState ret = _pumpingRoutine.Monitor();
  452. if (ret == RState.Failed || ret == RState.Timeout)
  453. {
  454. PostMsg(MSG.Error);
  455. return false;
  456. }
  457. return ret == RState.End;
  458. }
  459. private bool FnAbortPreparaTM(object[] param)
  460. {
  461. _pumpingRoutine.Abort();
  462. return true;
  463. }
  464. private bool FnStartPrepareEFEM(object[] param)
  465. {
  466. if (RouteManager.IsATMMode)
  467. return true;
  468. return _ventingRoutine.Start() == RState.Running;
  469. }
  470. private bool FnPrepareEFEMTimeout(object[] param)
  471. {
  472. if (RouteManager.IsATMMode)
  473. {
  474. if (fsm.ElapsedTime > 10000)
  475. {
  476. LOG.Write(eEvent.ERR_TM, Module, $"Cannot transfer wafer as {Module} is not ATM.");
  477. PostMsg(MSG.Error);
  478. return true;
  479. }
  480. return _JetTM.IsModuleATM(Module);
  481. }
  482. RState ret = _ventingRoutine.Monitor();
  483. if (ret == RState.Failed || ret == RState.Timeout)
  484. {
  485. PostMsg(MSG.Error);
  486. return false;
  487. }
  488. return ret == RState.End;
  489. }
  490. private bool FnAbortPrepareEFEM(object[] param)
  491. {
  492. _ventingRoutine.Abort();
  493. return true;
  494. }
  495. private void _debugRoutine()
  496. {
  497. int flag = 0;
  498. // Test Home routine
  499. if (flag == 1)
  500. {
  501. PostMsg(MSG.Home);
  502. }
  503. else if (flag == 2)
  504. {
  505. PostMsg(MSG.Vent);
  506. }
  507. else if (flag == 3)
  508. {
  509. PostMsg(MSG.Pump);
  510. }
  511. //else if (flag == 4)
  512. //{
  513. // PostMsg(MSG.PumpLoadLock);
  514. //}
  515. //else if (flag == 5)
  516. //{
  517. // PostMsg(MSG.VentLoadLock);
  518. //}
  519. //else if (flag == 6)
  520. //{
  521. // PostMsg(MSG.PurgeLoadLock);
  522. //}
  523. //else if (flag == 7)
  524. //{
  525. // PostMsg(MSG.LaunchPump);
  526. //}
  527. //else if (flag == 8)
  528. //{
  529. // PostMsg(MSG.LaunchTurboPump);
  530. //}
  531. //else if (flag == 9)
  532. //{
  533. // PostMsg(MSG.LoadLockLeakCheck);
  534. //}
  535. else if (flag == 10)
  536. {
  537. PostMsg(MSG.CyclePurge);
  538. }
  539. //else if (flag == 11)
  540. //{
  541. // PostMsg(MSG.GasLinePurge);
  542. //}
  543. //else if (flag == 12)
  544. //{
  545. // PostMsg(MSG.LeakCheck);
  546. //}
  547. //else if (flag == 13)
  548. //{
  549. // PostMsg(MSG.GasLeakCheck);
  550. //}
  551. //else if (flag == 14)
  552. //{
  553. // PostMsg(MSG.LLPlace);
  554. //}
  555. //else if (flag == 15)
  556. //{
  557. // PostMsg(MSG.LLPick);
  558. //}
  559. //else if (flag == 16)
  560. //{
  561. // PostMsg(MSG.RunRecipe, "7777");
  562. //}
  563. //else if (flag == 17)
  564. //{
  565. // PostMsg(MSG.MFCVerification, "MFC2", (double)50, 10);
  566. //}
  567. }
  568. }
  569. }