ReservoirEntity.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. using Aitex.Core.RT.DataCenter;
  2. using Aitex.Core.RT.Device;
  3. using Aitex.Core.RT.Fsm;
  4. using Aitex.Core.RT.Log;
  5. using Aitex.Core.RT.OperationCenter;
  6. using Aitex.Core.RT.RecipeCenter;
  7. using Aitex.Core.Util;
  8. using MECF.Framework.Common.Equipment;
  9. using MECF.Framework.Common.Persistent.Reservoirs;
  10. using MECF.Framework.Common.RecipeCenter;
  11. using MECF.Framework.Common.ToolLayout;
  12. using System;
  13. using System.Collections.Generic;
  14. using System.Linq;
  15. using System.Text;
  16. using System.Threading.Tasks;
  17. using Aitex.Core.Utilities;
  18. using MECF.Framework.Common.ProcessCell;
  19. using System.Windows;
  20. using Aitex.Core.RT.SCCore;
  21. using SecsGem.Core.ItemModel;
  22. using CyberX8_Core;
  23. using CyberX8_RT.Devices.Metal;
  24. using CyberX8_RT.Devices.PowerSupplier;
  25. using CyberX8_RT.Devices.Temperature;
  26. using CyberX8_RT.Modules.Metal;
  27. using CyberX8_RT.Modules.Reservoir;
  28. using CyberX8_RT.Modules;
  29. namespace CyberX8_RT.Modules.Reservoir
  30. {
  31. public class ReservoirEntity : Entity, IEntity, IModuleEntity
  32. {
  33. #region 常量
  34. private const string STRATUS = "Stratus";
  35. private const string AUTO = "Auto";
  36. private const string MANUAL = "Manual";
  37. private const string DISABLED = "Disabled";
  38. private const string ENGINEERING = "Engineering";
  39. private const string PRODUCTION = "Production";
  40. #endregion
  41. #region 内部变量
  42. /// <summary>
  43. /// 持久化数值
  44. /// </summary>
  45. private ReservoirsPersistentValue _persistentValue;
  46. /// <summary>
  47. /// S$H Initialize Routine
  48. /// </summary>
  49. private StandardHotReservoirInitializeRoutine _shInitializeRoutine;
  50. /// <summary>
  51. /// C&HInitialize Routine
  52. /// </summary>
  53. private CompactEmbranceInitializeRoutine _cmInitializeRoutine;
  54. /// <summary>
  55. /// DosingSystem Initialize Routine
  56. /// </summary>
  57. private DosingSystemInitializeRoutine _dosingSystemInitializeRoutine;
  58. /// <summary>
  59. /// Metal 集合
  60. /// </summary>
  61. private List<MetalCellDevice> _metalDevices = new List<MetalCellDevice>();
  62. /// <summary>
  63. /// 电源
  64. /// </summary>
  65. private CellPowerSupplier _powerSupplier;
  66. /// <summary>
  67. /// 温度控制设备
  68. /// </summary>
  69. private TemperatureController _temperatureController;
  70. /// <summary>
  71. /// Reservoir项
  72. /// </summary>
  73. private ReservoirItem _reservoirItem;
  74. #endregion
  75. #region 属性
  76. /// <summary>
  77. /// 模块名称
  78. /// </summary>
  79. public ModuleName Module { get; private set; }
  80. /// <summary>
  81. /// 是否Init
  82. /// </summary>
  83. public bool IsInit
  84. {
  85. get { return fsm.State == (int)ReservoirState.Init; }
  86. }
  87. /// <summary>
  88. /// 是否Idle
  89. /// </summary>
  90. public bool IsIdle
  91. {
  92. get
  93. {
  94. return fsm.State == (int)ReservoirState.Idle;
  95. }
  96. }
  97. /// <summary>
  98. /// 是否错误
  99. /// </summary>
  100. public bool IsError
  101. {
  102. get { return fsm.State == (int)ReservoirState.Error; }
  103. }
  104. /// <summary>
  105. /// 正在忙碌
  106. /// </summary>
  107. public bool IsBusy
  108. {
  109. get { return fsm.State == (int)ReservoirState.Initializing; }
  110. }
  111. /// <summary>
  112. /// 化学液
  113. /// </summary>
  114. public string Chemistry
  115. {
  116. get { return CurrentRecipe != null ? CurrentRecipe.Metal : ""; }
  117. }
  118. /// <summary>
  119. /// 是否禁用
  120. /// </summary>
  121. public bool IsDisable { get { return _persistentValue == null || _persistentValue.OperatingMode == DISABLED; } }
  122. /// <summary>
  123. /// 自动模式
  124. /// </summary>
  125. public bool IsAuto { get { return _persistentValue != null && _persistentValue.OperatingMode == AUTO; } }
  126. /// <summary>
  127. /// 自动模式
  128. /// </summary>
  129. public bool IsManual { get { return _persistentValue != null && _persistentValue.OperatingMode == MANUAL; } }
  130. /// <summary>
  131. /// 是否为工程模式
  132. /// </summary>
  133. public bool IsEngineering { get { return _persistentValue != null && _persistentValue.RecipeOperatingMode == ENGINEERING; } }
  134. /// <summary>
  135. /// 是否为产品模式
  136. /// </summary>
  137. public bool IsProduction { get { return _persistentValue != null && _persistentValue.RecipeOperatingMode == PRODUCTION; } }
  138. /// <summary>
  139. /// 状态机状态
  140. /// </summary>
  141. public ReservoirState State { get { return (ReservoirState)fsm.State; } }
  142. /// <summary>
  143. /// 是否初始化完成
  144. /// </summary>
  145. public bool IsInitialized { get { return fsm.State >= (int)ReservoirState.Initialized; } }
  146. /// <summary>
  147. /// 当前Recipe
  148. /// </summary>
  149. public ResRecipe CurrentRecipe { get { return LoadCurrentRecipe(); } }
  150. /// <summary>
  151. /// 用量
  152. /// </summary>
  153. public ReservoirUsage ReservoirUsage { get { return ReservoirUsageManager.Instance.GetReservoirUsage(Module.ToString()); } }
  154. /// <summary>
  155. /// Metals是否有Busy
  156. /// </summary>
  157. public bool IsMetalBusy
  158. {
  159. get
  160. {
  161. if (_metalDevices == null) return false;
  162. foreach (var item in _metalDevices)
  163. {
  164. MetalEntity metalEntity = Singleton<RouteManager>.Instance.GetModule<MetalEntity>(item.Module.ToString());
  165. if (metalEntity != null && metalEntity.IsBusy) return true;
  166. };
  167. return false;
  168. }
  169. }
  170. #endregion
  171. /// <summary>
  172. /// 构造函数
  173. /// </summary>
  174. /// <param name="module"></param>
  175. public ReservoirEntity(ModuleName module)
  176. {
  177. this.Module = module;
  178. InitializeParameter();
  179. InitialFsm();
  180. }
  181. /// <summary>
  182. /// 初始化
  183. /// </summary>
  184. /// <returns></returns>
  185. protected override bool Init()
  186. {
  187. InitializeRoutine();
  188. InitialDATA();
  189. InitializeOperation();
  190. return true;
  191. }
  192. /// <summary>
  193. /// 初始化参数
  194. /// </summary>
  195. private void InitializeParameter()
  196. {
  197. _persistentValue = ReservoirsPersistentManager.Instance.GetReservoirsPersistentValue(Module.ToString());
  198. if (_persistentValue == null)
  199. {
  200. LOG.WriteLog(eEvent.ERR_RESERVOIR, Module.ToString(), "Persistent Value Object is not exist");
  201. }
  202. LoadAllComponents();
  203. }
  204. /// <summary>
  205. /// 加载当前recipe
  206. /// </summary>
  207. /// <returns></returns>
  208. private ResRecipe LoadCurrentRecipe()
  209. {
  210. if (_persistentValue != null && !string.IsNullOrEmpty(_persistentValue.Recipe))
  211. {
  212. return RecipeFileManager.Instance.LoadGenericityRecipe<ResRecipe>(_persistentValue.Recipe);
  213. }
  214. return null;
  215. }
  216. /// <summary>
  217. /// 加载Metals
  218. /// </summary>
  219. private void LoadAllComponents()
  220. {
  221. _reservoirItem = ReservoirItemManager.Instance.GetReservoirItem(Module.ToString());
  222. if (_reservoirItem != null)
  223. {
  224. List<MetalItem> metalItems = _reservoirItem.MetalCells;
  225. if (metalItems != null && metalItems.Count > 0)
  226. {
  227. foreach (MetalItem metalItem in metalItems)
  228. {
  229. MetalCellDevice metalDevice = DEVICE.GetDevice<MetalCellDevice>(metalItem.ModuleName);
  230. if (metalDevice != null)
  231. {
  232. _metalDevices.Add(metalDevice);
  233. }
  234. }
  235. }
  236. if (!string.IsNullOrEmpty(_reservoirItem.CMMSupplyID))
  237. {
  238. _powerSupplier = DEVICE.GetDevice<CellPowerSupplier>(_reservoirItem.CMMSupplyID);
  239. }
  240. if (!string.IsNullOrEmpty(_reservoirItem.TCID))
  241. {
  242. _temperatureController = DEVICE.GetDevice<TemperatureController>(_reservoirItem.TCID);
  243. }
  244. }
  245. }
  246. /// 初始化状态机
  247. /// </summary>
  248. private void InitialFsm()
  249. {
  250. fsm = new StateMachine<ReservoirEntity>(Module.ToString(), (int)ReservoirState.Init, 100);
  251. fsm.EnableRepeatedMsg(true);
  252. AnyStateTransition(ReservoirMsg.Error, NullFunc, ReservoirState.Error);
  253. //Initialized
  254. Transition(ReservoirState.Error, ReservoirMsg.Initialize, InitializeAll, ReservoirState.Initializing);
  255. Transition(ReservoirState.Init, ReservoirMsg.Initialize, InitializeAll, ReservoirState.Initializing);
  256. Transition(ReservoirState.Idle, ReservoirMsg.Initialize, InitializeAll, ReservoirState.Initializing);
  257. Transition(ReservoirState.Initializing, FSM_MSG.TIMER, InitializeAllMonitor, ReservoirState.Idle);
  258. //直接进入Idle
  259. Transition(ReservoirState.Initialized, FSM_MSG.TIMER, NullFunc, ReservoirState.Idle);
  260. //Enter Init
  261. Transition(ReservoirState.Idle, ReservoirMsg.Init, NullFunc, ReservoirState.Init);
  262. EnumLoop<ReservoirState>.ForEach((item) => { fsm.MapState((int)item, item.ToString()); });
  263. EnumLoop<ReservoirMsg>.ForEach((item) => { fsm.MapMessage((int)item, item.ToString()); });
  264. }
  265. /// <summary>
  266. /// 初始化数据
  267. /// </summary>
  268. private void InitialDATA()
  269. {
  270. InitializeSVID();
  271. DATA.Subscribe($"{Module}.FsmState", () => ((ReservoirState)fsm.State).ToString(), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  272. DATA.Subscribe($"{Module}.IsIdle", () => IsIdle, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  273. DATA.Subscribe($"{Module}.IsInit", () => IsInit, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  274. DATA.Subscribe($"{Module}.IsDisable", () => IsDisable, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  275. DATA.Subscribe($"{Module}.IsBusy", () => IsBusy, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  276. DATA.Subscribe($"{Module}.IsError", () => IsError, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  277. DATA.Subscribe($"{Module}.Metals", () => _metalDevices.Select(O => O.Name).ToList(), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  278. DATA.Subscribe($"{Module}.TemperatureControllerData", () => _temperatureController == null ? null : _temperatureController.TemperatureData, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  279. DATA.Subscribe($"{Module}.CmmPowerSupplierData", () => _powerSupplier == null ? null : _powerSupplier.PowerSupplierData, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  280. DATA.Subscribe($"{Module}.ReservoirUsage", () => ReservoirUsage, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  281. DATA.Subscribe($"{Module}.IsCMMInstalled", () => ReservoirItemManager.Instance.GetReservoirItem(Module.ToString()).CMMType == "Standard" ? true : false, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  282. }
  283. /// <summary>
  284. /// 初始化SVID
  285. /// </summary>
  286. private void InitializeSVID()
  287. {
  288. DATA.Subscribe($"{Module}.State", () => ((ReservoirState)fsm.State).ToString(), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  289. DATA.Subscribe($"{Module}.OperatingMode", () => _persistentValue != null ? _persistentValue.OperatingMode : "None", SubscriptionAttribute.FLAG.IgnoreSaveDB);
  290. DATA.Subscribe($"{Module}.ReservoirTotalAmpHours", () => ReservoirUsage != null ? ReservoirUsage.TotalUsage : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  291. DATA.Subscribe($"{Module}.ReservoirTotalAmpHours.WarningLimit", () => SC.GetValue<double>($"Reservoir.{Module}.ReservoirTotalAmpHoursWarningLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  292. DATA.Subscribe($"{Module}.ReservoirTotalAmpHours.FaultLimit", () => SC.GetValue<double>($"Reservoir.{Module}.ReservoirTotalAmpHoursFaultLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  293. DATA.Subscribe($"{Module}.BathTotalAmpHours", () => ReservoirUsage != null ? ReservoirUsage.BathUsage : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  294. DATA.Subscribe($"{Module}.BathTotalAmpHours.WarningLimit", () => SC.GetValue<double>($"Reservoir.{Module}.BathTotalAmpHoursWarningLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  295. DATA.Subscribe($"{Module}.BathTotalAmpHours.FaultLimit", () => SC.GetValue<double>($"Reservoir.{Module}.BathTotalAmpHoursFaultLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  296. DATA.Subscribe($"{Module}.ANBathTotalAmpHours", () => ReservoirUsage != null ? ReservoirUsage.AnodeUsage : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  297. //if (ReservoirItemManager.Instance.GetReservoirItem(Module.ToString()).CMMType != "Standard")
  298. //{
  299. // DATA.Subscribe($"{Module}.ANBathTotalAmpHours.WarningLimit", () => SC.GetValue<double>($"Reservoir.{Module}.ANBathTotalAmpHoursWarningLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  300. // DATA.Subscribe($"{Module}.ANBathTotalAmpHours.FaultLimit", () => SC.GetValue<double>($"Reservoir.{Module}.ANBathTotalAmpHoursFaultLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  301. //}
  302. DATA.Subscribe($"{Module}.MembraneTotalAmpHours", () => ReservoirUsage != null ? ReservoirUsage.MembranceUsage : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  303. DATA.Subscribe($"{Module}.MembraneTotalAmpHours.WarningLimit", () => SC.GetValue<double>($"Reservoir.{Module}.MembraneTotalAmpHoursWarningLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  304. DATA.Subscribe($"{Module}.MembraneTotalAmpHours.FaultLimit", () => SC.GetValue<double>($"Reservoir.{Module}.MembraneTotalAmpHoursFaultLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  305. DATA.Subscribe($"{Module}.BathTotalDays", () => ReservoirUsage != null ? ReservoirUsage.BathUsageDays : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  306. DATA.Subscribe($"{Module}.BathTotalDays.WarningLimit", () => SC.GetValue<int>($"Reservoir.{Module}.BathTotalDaysWarningLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  307. DATA.Subscribe($"{Module}.BathTotalDays.FaultLimit", () => SC.GetValue<int>($"Reservoir.{Module}.BathTotalDaysFaultLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  308. DATA.Subscribe($"{Module}.ReservoirTotalWafers", () => ReservoirUsage != null ? ReservoirUsage.TotalWafers : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  309. DATA.Subscribe($"{Module}.ReservoirTotalWafers.WarningLimit", () => SC.GetValue<int>($"Reservoir.{Module}.ReservoirTotalWafersWarningLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  310. DATA.Subscribe($"{Module}.ReservoirTotalWafers.FaultLimit", () => SC.GetValue<int>($"Reservoir.{Module}.ReservoirTotalWafersFaultLimit"), SubscriptionAttribute.FLAG.IgnoreSaveDB);
  311. DATA.Subscribe($"{Module}.Temperature", () => _temperatureController != null ? _temperatureController.TemperatureData.ReserviorTemperature : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  312. DATA.Subscribe($"{Module}.Temperature.ID", () => _temperatureController != null ? _temperatureController.Module : "", SubscriptionAttribute.FLAG.IgnoreSaveDB);
  313. DATA.Subscribe($"{Module}.Temperature.Status", () => _temperatureController != null ? _temperatureController.TemperatureData.Status : "", SubscriptionAttribute.FLAG.IgnoreSaveDB);
  314. DATA.Subscribe($"{Module}.Temperature.TargetTemperature", () => _temperatureController != null ? _temperatureController.TemperatureData.TargetTemperature : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  315. DATA.Subscribe($"{Module}.Temperature.Alarm", () => _temperatureController != null ? _temperatureController.TemperatureData.Alarm : "", SubscriptionAttribute.FLAG.IgnoreSaveDB);
  316. DATA.Subscribe($"{Module}.Temperature.HeatExchangerTemperature", () => _temperatureController != null ? _temperatureController.TemperatureData.HeatExchangerTemperature : 0, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  317. }
  318. /// <summary>
  319. /// 初始化Routine
  320. /// </summary>
  321. private void InitializeRoutine()
  322. {
  323. _shInitializeRoutine = new StandardHotReservoirInitializeRoutine(Module.ToString());
  324. _cmInitializeRoutine = new CompactEmbranceInitializeRoutine(Module.ToString());
  325. _dosingSystemInitializeRoutine = new DosingSystemInitializeRoutine(Module.ToString());
  326. }
  327. /// <summary>
  328. /// 初始化Operation
  329. /// </summary>
  330. private void InitializeOperation()
  331. {
  332. OP.Subscribe($"{Module}.UpdateReservoirUsage", UpdateReservoirUsageAction);
  333. OP.Subscribe($"{Module}.InitializeAll", (cmd, args) => { return CheckToPostMessage<ReservoirState, ReservoirMsg>(eEvent.ERR_RESERVOIR, Module.ToString(), (int)ReservoirMsg.Initialize); });
  334. }
  335. /// <summary>
  336. /// EnterInit
  337. /// </summary>
  338. public void EnterInit()
  339. {
  340. if ((ReservoirState)fsm.State != ReservoirState.Idle) return;
  341. else
  342. {
  343. CheckToPostMessage<ReservoirState, ReservoirMsg>(eEvent.ERR_RESERVOIR, Module.ToString(), (int)ReservoirMsg.Init);
  344. }
  345. }
  346. /// <summary>
  347. /// UpdateReservoirUsageAction
  348. /// </summary>
  349. /// <param name="cmd"></param>
  350. /// <param name="param"></param>
  351. /// <returns></returns>
  352. private bool UpdateReservoirUsageAction(string cmd, object[] args)
  353. {
  354. if (args.Length > 2)
  355. {
  356. ReservoirUsageManager.Instance.UpdateReservoirUsageByManualOperation(args[0].ToString(), args[1].ToString(), args[2].ToString());
  357. LOG.WriteLog(eEvent.INFO_RESERVOIR, Module.ToString(), $"New {args[1].ToString()} value {args[2].ToString()} was input");
  358. }
  359. return true;
  360. }
  361. #region InitializeAll
  362. /// <summary>
  363. /// Initialize
  364. /// </summary>
  365. /// <param name="param"></param>
  366. /// <returns></returns>
  367. private bool InitializeAll(object[] param)
  368. {
  369. if (_metalDevices == null || _metalDevices.Count == 0)
  370. {
  371. LOG.WriteLog(eEvent.ERR_RESERVOIR, Module.ToString(), "metal device is empty");
  372. return false;
  373. }
  374. if (_persistentValue == null)
  375. {
  376. LOG.WriteLog(eEvent.ERR_RESERVOIR, Module.ToString(), "persistent is null");
  377. return false;
  378. }
  379. if (_reservoirItem.SubType == STRATUS)
  380. {
  381. return _shInitializeRoutine.Start(_metalDevices, _powerSupplier, _temperatureController) == RState.Running;
  382. }
  383. else
  384. {
  385. return _cmInitializeRoutine.Start(_metalDevices, _temperatureController) == RState.Running;
  386. }
  387. }
  388. /// <summary>
  389. /// Initialize 监控
  390. /// </summary>
  391. /// <param name="param"></param>
  392. /// <returns></returns>
  393. private bool InitializeAllMonitor(object[] param)
  394. {
  395. RState ret = RState.Init;
  396. if (_reservoirItem.SubType == STRATUS)
  397. {
  398. ret = _shInitializeRoutine.Monitor();
  399. }
  400. else
  401. {
  402. ret = _cmInitializeRoutine.Monitor();
  403. }
  404. if (ret == RState.Failed || ret == RState.Timeout)
  405. {
  406. PostMsg(ReservoirMsg.Error);
  407. return false;
  408. }
  409. return ret == RState.End;
  410. }
  411. #endregion
  412. public bool Check(int msg, out string reason, params object[] args)
  413. {
  414. reason = "";
  415. return true;
  416. }
  417. public bool CheckAcked(int msg)
  418. {
  419. return true;
  420. }
  421. public int Invoke(string function, params object[] args)
  422. {
  423. switch (function)
  424. {
  425. case "HomeAll":
  426. if (IsIdle)
  427. {
  428. return (int)ReservoirMsg.Initialize;
  429. }
  430. if (CheckToPostMessage<ReservoirState, ReservoirMsg>(eEvent.ERR_RESERVOIR, Module.ToString(), (int)ReservoirMsg.Initialize))
  431. {
  432. return (int)ReservoirMsg.Initialize;
  433. }
  434. else
  435. {
  436. return (int)FSM_MSG.NONE;
  437. }
  438. }
  439. return (int)FSM_MSG.NONE;
  440. }
  441. }
  442. }