ServerModule.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  1. using Aitex.Core.Common;
  2. using Aitex.Core.RT.Device;
  3. using Aitex.Core.RT.Device.Unit;
  4. using Aitex.Core.RT.SCCore;
  5. using Aitex.Core.Util;
  6. using Aitex.Sorter.Common;
  7. using Efem.Protocol;
  8. using EFEM.RT.Devices.Aligner;
  9. using EFEM.RT.Modules;
  10. using MECF.Framework.Common.Equipment;
  11. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.BufferStations;
  12. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.LoadPorts.LoadPortBase;
  13. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot;
  14. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.RobotBase;
  15. using System;
  16. using System.Collections.Generic;
  17. using System.Text.RegularExpressions;
  18. using System.Threading;
  19. namespace EFEM.RT.Tasks
  20. {
  21. public interface IData
  22. {
  23. bool Error { get; }
  24. bool IsLinkOk { get; }
  25. bool Busy { get; }
  26. //bool Moving { get; }
  27. bool Disabled { get; set; }
  28. bool Initialized { get; set; }
  29. bool OriginSearched { get; set; }
  30. bool InUsed { get; set; }
  31. }
  32. public interface IFunction
  33. {
  34. bool Reset(out string reason);
  35. bool Init(out string reason);
  36. bool Home(out string reason);
  37. }
  38. public interface IServerModule : IData, IFunction
  39. {
  40. string Name { get; set; }
  41. }
  42. public class SystemServerModule : IServerModule
  43. {
  44. //public bool Communication { get { return Singleton<EfemManager>.Instance.IsConnected; } set { } }
  45. public string Name { get; set; }
  46. public bool Busy
  47. { get { return Singleton<RouteManager>.Instance.IsRunning; } }
  48. public bool Moving { get; set; }
  49. public bool Error
  50. {
  51. get { return Singleton<RouteManager>.Instance.IsError; }
  52. }
  53. public bool IsLinkOk
  54. {
  55. get { return Singleton<EfemEntity>.Instance.IsCommunicationOk; }
  56. }
  57. public bool Disabled { get; set; }
  58. public bool Initialized { get; set; }
  59. public bool OriginSearched { get; set; }
  60. public bool InUsed { get; set; }
  61. private Dictionary<EfemEventType, EfemEventValue> _dicEventStatus = new Dictionary<EfemEventType, EfemEventValue>();
  62. public SystemServerModule(string name)
  63. {
  64. Name = name;
  65. foreach (var value in Enum.GetValues(typeof(EfemEventType)))
  66. {
  67. _dicEventStatus[(EfemEventType)value] = EfemEventValue.ON;
  68. }
  69. }
  70. public bool Reset(out string reason)
  71. {
  72. reason = string.Empty;
  73. if (!Singleton<RouteManager>.Instance.CheckToPostMsg(RouteManager.MSG.RESET))
  74. {
  75. reason = "BUSY";
  76. return false;
  77. }
  78. Thread.Sleep(100);//can not remove
  79. //Initialized = true;
  80. return true;
  81. }
  82. public bool Init(out string reason)
  83. {
  84. reason = string.Empty;
  85. if (!Singleton<RouteManager>.Instance.CheckToPostMsg(RouteManager.MSG.HOME))
  86. {
  87. reason = "BUSY";
  88. return false;
  89. }
  90. Thread.Sleep(100);//can not remove
  91. Initialized = true;
  92. return true;
  93. }
  94. public bool Home(out string reason)
  95. {
  96. reason = string.Empty;
  97. if (!Singleton<RouteManager>.Instance.CheckToPostMsg(RouteManager.MSG.HOME))
  98. {
  99. reason = "BUSY";
  100. return false;
  101. }
  102. Initialized = true;
  103. return true;
  104. }
  105. public bool MapWafer(string device, out string reason)
  106. {
  107. reason = string.Empty;
  108. if (!Singleton<RouteManager>.Instance.CheckToPostMsg(RouteManager.MSG.MapWafer, device))
  109. {
  110. reason = "BUSY";
  111. return false;
  112. }
  113. return true;
  114. }
  115. public bool SetEvent(EfemEventType type, EfemEventValue value)
  116. {
  117. _dicEventStatus[type] = value;
  118. return true;
  119. }
  120. public bool IsEventEnabled(EfemEventType type)
  121. {
  122. return _dicEventStatus[type] == EfemEventValue.ON;
  123. }
  124. public bool Hold()
  125. {
  126. return true;
  127. }
  128. public bool Resume()
  129. {
  130. return true;
  131. }
  132. public bool Abort()
  133. {
  134. return true;
  135. }
  136. public bool Stop()
  137. {
  138. return true;
  139. }
  140. public bool ClearError()
  141. {
  142. //InvokeClient.Instance.Service.DoOperation("System.Reset");
  143. //Singleton<EventManager>.Instance.ClearAlarmEvent();
  144. if (Singleton<RouteManager>.Instance.IsError || (DEVICE.GetDevice<LoadPortBaseDevice>(ModuleName.LP1.ToString()) != null && DEVICE.GetDevice<LoadPortBaseDevice>(ModuleName.LP1.ToString()).State == DeviceState.Error) || (DEVICE.GetDevice<LoadPortBaseDevice>(ModuleName.LP2.ToString()) != null && DEVICE.GetDevice<LoadPortBaseDevice>(ModuleName.LP2.ToString()).State == DeviceState.Error))
  145. {
  146. // Singleton<RouteManager>.Instance.Invoke("Reset");
  147. //OP.DoOperation("System.Reset");
  148. //Thread.Sleep(1000);
  149. Singleton<RouteManager>.Instance.ClearEventLogEnable = true;
  150. //Singleton<EventManager>.Instance.ClearAlarmEvent();
  151. }
  152. return true;
  153. }
  154. public string GetLastError()
  155. {
  156. return string.Empty;
  157. }
  158. }
  159. public class AlignerServerModule : IServerModule
  160. {
  161. public bool IsLinkOk
  162. {
  163. get { return _aligner != null && _aligner.Communication; }
  164. }
  165. public bool Busy
  166. {
  167. get { return _aligner.Busy; }
  168. }
  169. public bool Moving
  170. {
  171. get { return _aligner.Moving; }
  172. }
  173. public bool Error
  174. {
  175. get { return _aligner.Error; }
  176. }
  177. public string Name { get; set; }
  178. public bool Disabled { get; set; }
  179. public bool Initialized { get; set; }
  180. public bool OriginSearched { get; set; }
  181. public bool InUsed { get; set; }
  182. private double _angle = 0;
  183. public Aligner GetDevice()
  184. {
  185. return _aligner;
  186. }
  187. protected Aligner _aligner = null;
  188. public AlignerServerModule(string name)
  189. {
  190. Name = name;
  191. _aligner = DEVICE.GetDevice<Aligner>(DeviceName.Aligner);
  192. }
  193. public bool Init(out string reason)
  194. {
  195. return _aligner.Init(out reason);
  196. }
  197. public bool Home(out string reason)
  198. {
  199. return _aligner.Home(out reason);
  200. }
  201. public bool Align(out string reason)
  202. {
  203. return _aligner.Align(_angle, out reason);
  204. }
  205. public bool SetAlign(string target, out string reason)
  206. {
  207. reason = string.Empty;
  208. if (target.StartsWith("P1"))
  209. {
  210. _angle = 0;
  211. }
  212. else if (target.StartsWith("P2"))
  213. {
  214. _angle = 0;
  215. }
  216. else if (target.StartsWith("P3"))
  217. {
  218. _angle = 0;
  219. }
  220. else if (target.StartsWith("P4"))
  221. {
  222. _angle = 0;
  223. }
  224. else if (target.StartsWith("LLA"))
  225. {
  226. _angle = 0;
  227. }
  228. else if (target.StartsWith("LLB"))
  229. {
  230. _angle = 0;
  231. }
  232. else
  233. {
  234. target = target.Replace("D", "");//D***.**, ***.** is angle. (0 to 360.00°)
  235. if (!double.TryParse(target, out _angle))
  236. {
  237. return false;
  238. }
  239. }
  240. return true;
  241. }
  242. bool IFunction.Reset(out string reason)
  243. {
  244. reason = string.Empty;
  245. return true;
  246. }
  247. }
  248. public class RobotServerModule : IServerModule
  249. {
  250. public bool IsLinkOk
  251. {
  252. get { return _robot != null; }
  253. }
  254. public bool Busy
  255. {
  256. get { return _robot.IsBusy; }
  257. }
  258. //public bool Moving
  259. //{
  260. // get { return _robot.Moving; }
  261. //}
  262. public bool Error
  263. {
  264. get { return _robot.IsError; }
  265. }
  266. public bool Disabled { get; set; }
  267. public bool Initialized { get; set; }
  268. public bool OriginSearched { get; set; }
  269. public bool InUsed { get; set; }
  270. public string Name { get; set; }
  271. public RobotBaseDevice GetDevice()
  272. {
  273. return _robot;
  274. }
  275. protected RobotBaseDevice _robot = null;
  276. public RobotServerModule(string name)
  277. {
  278. Name = name;
  279. _robot = DEVICE.GetDevice<RobotBaseDevice>(DeviceName.Robot);
  280. }
  281. public bool Reset(out string reason)
  282. {
  283. reason = null;
  284. return _robot.RobotReset();
  285. }
  286. public bool Init(out string reason)
  287. {
  288. reason = null;
  289. return _robot.Init(null);
  290. }
  291. public bool Home(out string reason)
  292. {
  293. reason = null;
  294. return _robot.Home(null);
  295. }
  296. }
  297. public class LoadPortServerModule : IServerModule
  298. {
  299. public bool IsLinkOk
  300. {
  301. get { return _loadport != null; }
  302. }
  303. public bool Busy
  304. {
  305. get { return _loadport.IsBusy; }
  306. }
  307. //public bool Moving
  308. //{
  309. // get { return _loadport.IsMoving; }
  310. //}
  311. public bool Error
  312. {
  313. get { return _loadport.IsError; }
  314. }
  315. public FoupDockState DockState
  316. {
  317. get { return _loadport.DockState; }
  318. }
  319. public bool Disabled { get; set; }
  320. public bool Initialized { get; set; }
  321. public bool OriginSearched { get; set; }
  322. public bool InUsed { get; set; }
  323. public string Name { get; set; }
  324. public string SlotMap => _loadport.SlotMap;
  325. public LoadPortBaseDevice GetDevice()
  326. {
  327. return _loadport;
  328. }
  329. protected LoadPortBaseDevice _loadport = null;
  330. public LoadPortServerModule(string name)
  331. {
  332. Name = name;
  333. _loadport = DEVICE.GetDevice<LoadPortBaseDevice>(name);
  334. }
  335. public bool Reset(out string reason)
  336. {
  337. return _loadport.LoadportReset(out reason);
  338. }
  339. public bool Init(out string reason)
  340. {
  341. return _loadport.Home(out reason);
  342. }
  343. public bool Home(out string reason)
  344. {
  345. return _loadport.Home(out reason);
  346. }
  347. public bool Lock(out string reason)
  348. {
  349. return _loadport.Clamp(out reason);
  350. }
  351. public bool Unlock(out string reason)
  352. {
  353. return _loadport.Unclamp(out reason);
  354. }
  355. public bool Dock(out string reason)
  356. {
  357. return _loadport.Dock(out reason);
  358. }
  359. public bool Undock(out string reason)
  360. {
  361. return _loadport.Undock(out reason);
  362. }
  363. public bool OpenDoor(out string reason)
  364. {
  365. return _loadport.OpenDoor(out reason);
  366. }
  367. public bool CloseDoor(out string reason)
  368. {
  369. return _loadport.CloseDoor(out reason);
  370. }
  371. public bool Open(out string reason)
  372. {
  373. return _loadport.Load(out reason);
  374. }
  375. public bool Read(out string reason)
  376. {
  377. reason = null;
  378. return _loadport.ReadCarrierID(0, 16);
  379. }
  380. public bool Read()
  381. {
  382. return _loadport.ReadCarrierID();
  383. }
  384. public bool Read(string type, out string reason)
  385. {
  386. reason = null;
  387. string filename = "LCDFILE.TXT";
  388. if (type == "LID") filename = "LCDFILE.TXT";
  389. if (type == "CID") filename = "CARRIER.TXT";
  390. return _loadport.ReadCarrierID(new object[] { filename });
  391. }
  392. public bool Write(string cid)
  393. {
  394. return _loadport.WriteCarrierID(cid, 0, 16, "", out _);
  395. }
  396. public bool Write(string cid, out string reason)
  397. {
  398. reason = null;
  399. return SC.GetValue<Boolean>("System.OnlyLotId") ? _loadport.WriteCarrierIDByIndex(cid, 0, 16, 0) : _loadport.WriteCarrierID(cid, 0, 16);
  400. }
  401. public bool Close(out string reason)
  402. {
  403. return _loadport.Unload(out reason);
  404. }
  405. public bool QueryWaferMap(out string reason)
  406. {
  407. return _loadport.QueryWaferMap(out reason);
  408. }
  409. }
  410. public class BufferServerModule : IServerModule
  411. {
  412. public bool IsLinkOk
  413. {
  414. get { return _buffer != null; }
  415. }
  416. public bool Busy
  417. {
  418. get { return _buffer.Busy; }
  419. }
  420. //public bool Moving
  421. //{
  422. // get { return _buffer.Moving; }
  423. //}
  424. public bool Error
  425. {
  426. get { return _buffer.Error; }
  427. }
  428. public bool Disabled { get; set; }
  429. public bool Initialized { get; set; }
  430. public bool OriginSearched { get; set; }
  431. public bool InUsed { get; set; }
  432. public string Name { get; set; }
  433. public IoCoolingBuffer GetDevice()
  434. {
  435. return _buffer;
  436. }
  437. protected IoCoolingBuffer _buffer = null;
  438. public BufferServerModule(string name)
  439. {
  440. Name = name;
  441. _buffer = DEVICE.GetDevice<IoCoolingBuffer>(name);
  442. }
  443. public bool Init(out string reason)
  444. {
  445. return _buffer.Home(out reason);
  446. }
  447. public bool Home(out string reason)
  448. {
  449. return _buffer.Home(out reason);
  450. }
  451. public bool LiftUp(WaferSize size, out string reason)
  452. {
  453. return _buffer.Move(size, true, out reason);
  454. }
  455. public bool LiftDown(WaferSize size, out string reason)
  456. {
  457. return _buffer.Move(size, false, out reason);
  458. }
  459. public bool Align(WaferSize size, out string reason)
  460. {
  461. return _buffer.Move(size, false, out reason);
  462. }
  463. public bool Reset(out string reason)
  464. {
  465. reason = string.Empty;
  466. return true;
  467. }
  468. }
  469. public class BufferStationServerModule : IServerModule
  470. {
  471. public bool IsLinkOk
  472. {
  473. get { return _buffer != null; }
  474. }
  475. public bool Busy
  476. {
  477. get { return false; }
  478. }
  479. public bool Error
  480. {
  481. get { return false; }
  482. }
  483. public bool Disabled { get; set; }
  484. public bool Initialized { get; set; }
  485. public bool OriginSearched { get; set; }
  486. public bool InUsed { get; set; }
  487. public string Name { get; set; }
  488. public BufferStation GetDevice()
  489. {
  490. return _buffer;
  491. }
  492. protected BufferStation _buffer = null;
  493. public BufferStationServerModule(string name)
  494. {
  495. OriginSearched = true;
  496. Initialized = true;
  497. Name = name;
  498. _buffer = DEVICE.GetDevice<BufferStation>(name);
  499. }
  500. public bool Init(out string reason)
  501. {
  502. reason = string.Empty;
  503. return true;
  504. }
  505. public bool Home(out string reason)
  506. {
  507. reason = string.Empty;
  508. return true;
  509. }
  510. public bool Reset(out string reason)
  511. {
  512. reason = string.Empty;
  513. return true;
  514. }
  515. }
  516. public class MechanicalAlignerServerModule : IServerModule
  517. {
  518. public bool IsLinkOk
  519. {
  520. get { return _mechanicalAligner != null; }
  521. }
  522. public bool Busy
  523. {
  524. get { return false; }
  525. }
  526. public bool Error
  527. {
  528. get { return false; }
  529. }
  530. public bool Disabled { get; set; }
  531. public bool Initialized { get; set; }
  532. public bool OriginSearched { get; set; }
  533. public bool InUsed { get; set; }
  534. public string Name { get; set; }
  535. public MechanicalAligner GetDevice()
  536. {
  537. return _mechanicalAligner;
  538. }
  539. protected MechanicalAligner _mechanicalAligner = null;
  540. public MechanicalAlignerServerModule(string name)
  541. {
  542. OriginSearched = true;
  543. Initialized = true;
  544. Name = name;
  545. _mechanicalAligner = DEVICE.GetDevice<MechanicalAligner>(name);
  546. }
  547. public bool Init(out string reason)
  548. {
  549. reason = string.Empty;
  550. return true;
  551. }
  552. public bool Home(out string reason)
  553. {
  554. reason = string.Empty;
  555. return true;
  556. }
  557. public bool Reset(out string reason)
  558. {
  559. reason = string.Empty;
  560. return true;
  561. }
  562. }
  563. public class EntityFactory
  564. {
  565. private SystemServerModule _system = null;
  566. private AlignerServerModule _aligner = null;
  567. private RobotServerModule _robot = null;
  568. private LoadPortServerModule _loadportA = null;
  569. private LoadPortServerModule _loadportB = null;
  570. private LoadPortServerModule _loadportC = null;
  571. private LoadPortServerModule _loadportD = null;
  572. private LoadPortServerModule _loadportE = null;
  573. private LoadPortServerModule _loadportF = null;
  574. private LoadPortServerModule _loadportG = null;
  575. private LoadPortServerModule _loadportH = null;
  576. private LoadPortServerModule _loadportI = null;
  577. private LoadPortServerModule _loadportJ = null;
  578. private BufferServerModule _buffer1 = null;
  579. private BufferServerModule _buffer2 = null;
  580. private BufferServerModule _aligner1 = null;
  581. private BufferServerModule _aligner2 = null;
  582. private MechanicalAlignerServerModule _mechanicalAligner1 = null;
  583. private MechanicalAlignerServerModule _mechanicalAligner2 = null;
  584. private BufferStationServerModule _bufferStation = null;
  585. private BufferStationServerModule _bufferStation1 = null;
  586. private BufferStationServerModule _bufferStation2 = null;
  587. public EntityFactory()
  588. {
  589. _system = new SystemServerModule(DeviceName.System);
  590. _aligner = new AlignerServerModule(DeviceName.Aligner);
  591. _robot = new RobotServerModule(DeviceName.Robot);
  592. _loadportA = new LoadPortServerModule(DeviceName.LP1);
  593. _loadportB = new LoadPortServerModule(DeviceName.LP2);
  594. _loadportC = new LoadPortServerModule(DeviceName.LP3);
  595. _loadportD = new LoadPortServerModule(DeviceName.LP4);
  596. _loadportE = new LoadPortServerModule(DeviceName.LP5);
  597. _loadportF = new LoadPortServerModule(DeviceName.LP6);
  598. _loadportG = new LoadPortServerModule(DeviceName.LP7);
  599. _loadportH = new LoadPortServerModule(DeviceName.LP8);
  600. _loadportI = new LoadPortServerModule(DeviceName.LP9);
  601. _loadportJ = new LoadPortServerModule(DeviceName.LP10);
  602. _aligner1 = new BufferServerModule(DeviceName.Aligner1);
  603. _aligner2 = new BufferServerModule(DeviceName.Aligner2);
  604. _mechanicalAligner1 = new MechanicalAlignerServerModule(DeviceName.Aligner1);
  605. _mechanicalAligner2 = new MechanicalAlignerServerModule(DeviceName.Aligner2);
  606. _buffer1 = new BufferServerModule(DeviceName.CoolingBuffer1);
  607. _buffer2 = new BufferServerModule(DeviceName.CoolingBuffer2);
  608. _bufferStation = new BufferStationServerModule(DeviceName.Buffer);
  609. _bufferStation1 = new BufferStationServerModule(DeviceName.Buffer1);
  610. _bufferStation2 = new BufferStationServerModule(DeviceName.Buffer2);
  611. }
  612. public IServerModule GetEntity(string name)
  613. {
  614. if (string.IsNullOrEmpty(name))
  615. return null;
  616. if (ModuleHelper.IsLoadPort((ModuleName)Enum.Parse(typeof(ModuleName), name)))
  617. {
  618. string pattern = "[1-9]\\d*";
  619. Regex rgx = new Regex(pattern);
  620. var match = int.Parse(rgx.Match(name).ToString());
  621. if (match > DeviceDefineManager.Instance.GetValue<int>("LoadPortQuantity"))
  622. {
  623. return null;
  624. }
  625. }
  626. switch (name)
  627. {
  628. case DeviceName.System:
  629. return _system;
  630. case DeviceName.Aligner:
  631. return _aligner;
  632. case DeviceName.Robot:
  633. return _robot;
  634. case DeviceName.LP1:
  635. return _loadportA;
  636. case DeviceName.LP2:
  637. return _loadportB;
  638. case DeviceName.LP3:
  639. return _loadportC;
  640. case DeviceName.LP4:
  641. return _loadportD;
  642. case DeviceName.LP5:
  643. return _loadportE;
  644. case DeviceName.LP6:
  645. return _loadportF;
  646. case DeviceName.LP7:
  647. return _loadportG;
  648. case DeviceName.LP8:
  649. return _loadportH;
  650. case DeviceName.LP9:
  651. return _loadportI;
  652. case DeviceName.LP10:
  653. return _loadportJ;
  654. case DeviceName.Aligner1:
  655. if (SC.ContainsItem("Aligner.AlignerType") && SC.GetValue<int>("Aligner.AlignerType") == 1)
  656. {
  657. return _aligner1;
  658. }
  659. else
  660. {
  661. return _mechanicalAligner1;
  662. }
  663. case DeviceName.Aligner2:
  664. if (SC.ContainsItem("Aligner.AlignerType") && SC.GetValue<int>("Aligner.AlignerType") == 1)
  665. {
  666. return _aligner2;
  667. }
  668. else
  669. {
  670. return _mechanicalAligner2;
  671. }
  672. case DeviceName.Aligner3:
  673. return _aligner1;
  674. case DeviceName.Aligner4:
  675. return _aligner2;
  676. case DeviceName.CoolingBuffer1:
  677. return _buffer1;
  678. case DeviceName.CoolingBuffer2:
  679. return _buffer2;
  680. case DeviceName.Buffer1:
  681. return _bufferStation1;
  682. case DeviceName.Buffer2:
  683. return _bufferStation2;
  684. case DeviceName.Buffer:
  685. return _bufferStation;
  686. }
  687. return null;
  688. }
  689. }
  690. }