SiasunVCE.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO.Ports;
  4. using System.Linq;
  5. using Aitex.Core.Common.DeviceData;
  6. using Aitex.Core.RT.DataCenter;
  7. using Aitex.Core.RT.Device;
  8. using Aitex.Core.RT.Device.Unit;
  9. using Aitex.Core.RT.Event;
  10. using Aitex.Core.RT.Log;
  11. using Aitex.Core.RT.OperationCenter;
  12. using Aitex.Core.RT.SCCore;
  13. using Aitex.Core.Util;
  14. using MECF.Framework.Common.Communications;
  15. using MECF.Framework.Common.Device.Bases;
  16. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Common;
  17. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.LoadPorts.TDK;
  18. using Newtonsoft.Json;
  19. namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.VCE.SiasunVCEII
  20. {
  21. //SiasunVCE II只有Z轴,没有R轴X轴
  22. public class SiasunVCE : VCEBase, IConnection
  23. {
  24. private SiasunVCEConnection _connection;
  25. private bool _isIdle;
  26. private R_TRIG _trigError = new R_TRIG();
  27. private R_TRIG _trigCommunicationError = new R_TRIG();
  28. private R_TRIG _trigRetryConnect = new R_TRIG();
  29. private PeriodicJob _thread;
  30. private LinkedList<HandlerBase> _lstHandler = new LinkedList<HandlerBase>();
  31. private LinkedList<HandlerBase> _lstMonitorHandler = new LinkedList<HandlerBase>();
  32. public Dictionary<string, string> ErrorCodeReference;
  33. private object _locker = new object();
  34. private SCConfigItem _scHomeTimeout;
  35. private SCConfigItem _scMappingTimeout;
  36. private SCConfigItem _scMotionTimeout;
  37. private bool _enableLog;
  38. private string _scRoot;
  39. private string _portName;
  40. private DeviceTimer _QueryTimer = new DeviceTimer();
  41. private readonly int _QueryInterval = 2000;
  42. private RD_TRIG _trigDoorOpen = new RD_TRIG();
  43. public string Address => _connection.Address;
  44. public override bool IsConnected => _connection.IsConnected && !_connection.IsCommunicationError;
  45. public string PortStatus { get; set; } = "Closed";
  46. public override bool IsIdle
  47. {
  48. get => _isIdle && _lstHandler.Count == 0 && !IsAlarm && !_connection.IsCommunicationError;
  49. set => _isIdle = value;
  50. }
  51. public string Error { get; private set; }
  52. public string ArmRPosition { get; private set; }
  53. public string CommunicationMode { get; private set; }
  54. public string ZAxisPosition { get; private set; }
  55. public bool LoadCompleted { get; private set; }
  56. public bool LoadPosition { get; private set; }
  57. public bool RetractPosition { get; private set; }
  58. public bool Picked { get; private set; }
  59. public bool Placed { get; private set; }
  60. public bool ExtendPosition { get; private set; }
  61. public bool Unloaded { get; private set; }
  62. public string MovedPosition { get; private set; }
  63. public string ArmZPosition { get; private set; }
  64. public string CurrentCommunicationMode { get; private set; }
  65. public string CurrentErrorStatus { get; private set; }
  66. public SiasunVCE(string module, string name, string scRoot) : base(module, name)
  67. {
  68. _scRoot = scRoot;
  69. }
  70. public bool Connect()
  71. {
  72. return _connection.Connect();
  73. }
  74. public bool Disconnect()
  75. {
  76. return _connection.Disconnect();
  77. }
  78. //private string _address = "00";
  79. public override bool Initialize()
  80. {
  81. base.Initialize();
  82. if (_connection != null && _connection.IsConnected)
  83. return true;
  84. if (string.IsNullOrEmpty(_scRoot))
  85. {
  86. _portName = SC.GetStringValue($"{Module}.Address");
  87. _enableLog = SC.GetValue<bool>($"{Module}.EnableLogMessage");
  88. _scHomeTimeout = SC.GetConfigItem($"{Module}.HomeTimeout");
  89. _scMappingTimeout = SC.GetConfigItem($"{Module}.MappingTimeout");
  90. _scMotionTimeout = SC.GetConfigItem($"{Module}.MotionTimeout");
  91. }
  92. else
  93. {
  94. _portName = SC.GetStringValue($"{_scRoot}.Address");
  95. _enableLog = SC.GetValue<bool>($"{_scRoot}.EnableLogMessage");
  96. _scHomeTimeout = SC.GetConfigItem($"{_scRoot}.HomeTimeout");
  97. _scMappingTimeout = SC.GetConfigItem($"{_scRoot}.MappingTimeout");
  98. _scMotionTimeout = SC.GetConfigItem($"{_scRoot}.MotionTimeout");
  99. }
  100. _connection = new SiasunVCEConnection(_portName);
  101. _connection.EnableLog(_enableLog);
  102. if (_connection.Connect())
  103. {
  104. PortStatus = "Open";
  105. EV.PostInfoLog(Module, $"{Module}.{Name} connected");
  106. }
  107. _thread = new PeriodicJob(100, OnTimer, $"{Module}.{Name} MonitorHandler", true);
  108. //_lstMonitorHandler.AddLast(new SiasunVCERequestWaferSlideOutHandler(this)); // R,SO
  109. //_lstMonitorHandler.AddLast(new SiasunVCERequestCassettePresentHandler(this)); // R,W2
  110. //_lstMonitorHandler.AddLast(new SiasunVCERequestDoorStatusHandler(this)); // R,STAT,DOOR
  111. //_lstMonitorHandler.AddLast(new SiasunVCERequestArmPositionHandler(this)); // R,STAT,ATM
  112. _QueryTimer.Start(_QueryInterval);
  113. DATA.Subscribe($"{Module}.IsConnected", () => IsConnected);
  114. DATA.Subscribe($"{Module}.IsMapped", () => IsMapped);
  115. DATA.Subscribe($"{Module}.Address", () => Address);
  116. DATA.Subscribe($"{Module}.IsDoorOpened", () => IsDoorOpened);
  117. DATA.Subscribe($"{Module}.IsDoorClosed", () => IsDoorClosed);
  118. DATA.Subscribe($"{Module}.IsCassettePresent", () => IsCassettePresent);
  119. OP.Subscribe($"{Module}.Reconnect", (string cmd, object[] args) => {
  120. Disconnect();
  121. Connect();
  122. return true;
  123. });
  124. ErrorCodeReference = new Dictionary<string, string>()
  125. {
  126. { "40","E2PROM initialize hardware fail"},
  127. { "E2","E2PROM initialize hardware fail"},
  128. { "41","VCE is busy"},
  129. { "C10","VCE is busy"},
  130. { "42","Illegal command type"},
  131. { "A37","Illegal command type"},
  132. { "43","Illegal request command"},
  133. { "A38","Illegal request command"},
  134. { "44","Illegal set parameter command"},
  135. { "A39","Illegal set parameter command"},
  136. { "45","Illegal save parameter command"},
  137. { "A40","Illegal save parameter command"},
  138. { "46","Illegal action command"},
  139. { "A41","Illegal action command"},
  140. { "47","Command string error"},
  141. { "A42","Command string error"},
  142. { "48","Bad command parameter"},
  143. { "50","Z axis move position is exceeded"},
  144. { "Z02","Z axis move position is exceeded"},
  145. { "51","Z axis current position is exceeded"},
  146. { "Z03","Z axis current position is exceeded"},
  147. { "52","Z axis limit"},
  148. { "Z04","Z axis limit"},
  149. { "54","Z axis is not homed"},
  150. { "Z06","Z axis is not homed"},
  151. { "55","Door is opened"},
  152. { "Z07","Door is opened"},
  153. { "56","Cassette is not present"},
  154. { "Z08","Cassette is not present"},
  155. { "63","Door motion is obstructed"},
  156. { "D01","Door motion is obstructed"},
  157. { "64","Door motion timeout"},
  158. { "D02","Door motion timeout"},
  159. { "66","Emergency stop"},
  160. { "M10","Emergency stop"},
  161. { "67","Motor motion error"},
  162. { "M26","Motor motion error"},
  163. { "68","Motion is collided"},
  164. { "M27","Motion is collided"},
  165. { "69","Mapping failed, for the result is non-integral multiple"},
  166. { "M28","Mapping failed, for the result is non-integral multiple"},
  167. { "71","Z axis motion timeout"},
  168. { "T02","Z axis motion timeout"},
  169. { "72","CAN open failed for illegal frame"},
  170. { "CTX","CAN open failed for illegal frame"},
  171. { "73","CAN open failed for Emcy error"},
  172. { "CEM","CAN open failed for Emcy error"},
  173. { "74","CAN open failed for sdo error"},
  174. { "CSD","CAN open failed for sdo error"},
  175. { "WOT","Wafer slide out"},
  176. { "75","Wafer slide out"},
  177. };
  178. if(SC.ContainsItem($"{Module}.StatusPersistence"))
  179. {
  180. var sPersistentStatus = SC.GetStringValue($"{Module}.StatusPersistence");
  181. if (sPersistentStatus.ToString().ToUpper() == "LOADED")
  182. {
  183. IsMapped = true;
  184. }
  185. }
  186. return true;
  187. }
  188. private bool OnTimer()
  189. {
  190. try
  191. {
  192. //return true;
  193. _connection.MonitorTimeout();
  194. if (!_connection.IsConnected || _connection.IsCommunicationError)
  195. {
  196. lock (_locker)
  197. {
  198. _lstHandler.Clear();
  199. }
  200. _trigRetryConnect.CLK = !_connection.IsConnected;
  201. if (_trigRetryConnect.Q)
  202. {
  203. _connection.SetPortAddress(_portName);
  204. if (!_connection.Connect())
  205. {
  206. EV.PostAlarmLog(Module, $"Can not connect with {_connection.Address}, {Module}.{Name}");
  207. }
  208. }
  209. return true;
  210. }
  211. HandlerBase handler = null;
  212. if (!_connection.IsBusy)
  213. {
  214. lock (_locker)
  215. {
  216. if (_lstHandler.Count == 0 && _QueryTimer.IsTimeout())
  217. {
  218. foreach (var monitorHandler in _lstMonitorHandler)
  219. {
  220. _lstHandler.AddLast(monitorHandler);
  221. }
  222. _QueryTimer.Start(_QueryInterval);
  223. }
  224. if (_lstHandler.Count > 0)
  225. {
  226. handler = _lstHandler.First.Value;
  227. _lstHandler.RemoveFirst();
  228. }
  229. }
  230. if (handler != null)
  231. {
  232. _connection.Execute(handler);
  233. }
  234. }
  235. }
  236. catch (Exception ex)
  237. {
  238. LOG.Write(ex);
  239. }
  240. return true;
  241. }
  242. internal void NoteZAxisPosition(string pos)
  243. {
  244. ZAxisPosition = pos;
  245. }
  246. internal void NoteHomed(bool homed)
  247. {
  248. IsHomed = homed;
  249. }
  250. internal void NoteMoveResult(string position)
  251. {
  252. MovedPosition = position;
  253. }
  254. public override void Monitor()
  255. {
  256. try
  257. {
  258. //_connection.EnableLog(_enableLog);
  259. _trigDoorOpen.CLK = this.IsDoorOpened;
  260. if (_trigDoorOpen.R)
  261. {
  262. _lstMonitorHandler.AddLast(new SiasunVCERequestCassettePresentHandler(this));
  263. }
  264. if (_trigDoorOpen.T)
  265. {
  266. _lstMonitorHandler.RemoveLast();
  267. }
  268. _trigCommunicationError.CLK = _connection.IsCommunicationError;
  269. if (_trigCommunicationError.Q)
  270. {
  271. EV.PostAlarmLog(Module, $"{Module}.{Name} communication error, {_connection.LastCommunicationError}");
  272. }
  273. }
  274. catch (Exception ex)
  275. {
  276. LOG.Write(ex);
  277. }
  278. }
  279. public override void Reset()
  280. {
  281. _trigError.RST = true;
  282. _connection.SetCommunicationError(false, "");
  283. _trigCommunicationError.RST = true;
  284. //_enableLog = SC.GetValue<bool>($"{ScBasePath}.{Name}.EnableLogMessage");
  285. _trigRetryConnect.RST = true;
  286. if (IsAlarm)
  287. {
  288. lock (_locker)
  289. {
  290. _lstHandler.AddLast(new SiasunVCEResetErrorHandler(this));
  291. }
  292. }
  293. IsAlarm = false;
  294. base.Reset();
  295. }
  296. public override void Terminate()
  297. {
  298. SC.SetItemValue($"{Module}.StatusPersistence", $"{(IsMapped ? "Loaded" : "Unloaded")}");
  299. }
  300. public void PerformRawCommand(string commandType)
  301. {
  302. lock (_locker)
  303. {
  304. _lstHandler.AddLast(new SiasunVCERawCommandHandler(this, commandType, ""));
  305. }
  306. }
  307. public void PerformRawCommand(string commandType, string command)
  308. {
  309. lock (_locker)
  310. {
  311. _lstHandler.AddLast(new SiasunVCERawCommandHandler(this, commandType, command));
  312. }
  313. }
  314. internal void NoteCurrentCommunicationMode(string data)
  315. {
  316. CurrentCommunicationMode = data;
  317. }
  318. public void PerformRawCommand(string commandType, string command, string comandArgument)
  319. {
  320. lock (_locker)
  321. {
  322. _lstHandler.AddLast(new SiasunVCERawCommandHandler(this, commandType, command, comandArgument));
  323. }
  324. }
  325. public void MonitorRawCommand(bool isSelected, string commandType, string command, string comandArgument)
  326. {
  327. lock (_locker)
  328. {
  329. string msg = comandArgument == null ? $"{command}\r" : $"{command} {comandArgument}\r";//??
  330. var existHandlers = _lstMonitorHandler
  331. .Where(handler => handler.GetType() == typeof(SiasunVCERawCommandHandler) && ((SiasunVCERawCommandHandler)handler)
  332. .IsSendText(commandType, command, comandArgument));
  333. if (isSelected)
  334. {
  335. if (!existHandlers.Any())
  336. _lstMonitorHandler.AddFirst(new SiasunVCERawCommandHandler(this, commandType, command, comandArgument));
  337. }
  338. else
  339. {
  340. if (existHandlers.Any())
  341. {
  342. _lstMonitorHandler.Remove(existHandlers.First());
  343. }
  344. }
  345. }
  346. }
  347. internal void NoteCurrentErrorStatus(string data)
  348. {
  349. CurrentErrorStatus = data;
  350. }
  351. internal void NoteCurrentMappingInfo(string data)
  352. {
  353. SlotMap = data;
  354. }
  355. public void RequestErrorStatus(bool isSelected)
  356. {
  357. lock (_locker)
  358. {
  359. var existHandlers = _lstMonitorHandler.Where(handler => handler.GetType() == typeof(SiasunVCERequestErrorInfoHandler));
  360. if (isSelected)
  361. {
  362. if (!existHandlers.Any())
  363. _lstMonitorHandler.AddFirst(new SiasunVCERequestErrorInfoHandler(this));
  364. }
  365. else
  366. {
  367. if (existHandlers.Any())
  368. {
  369. _lstMonitorHandler.Remove(existHandlers.First());
  370. }
  371. }
  372. }
  373. }
  374. public void RequestMappingInfo(bool isSelected)
  375. {
  376. lock (_locker)
  377. {
  378. var existHandlers = _lstMonitorHandler.Where(handler => handler.GetType() == typeof(SiasunVCERequestMappingInfoHandler));
  379. if (isSelected)
  380. {
  381. if (!existHandlers.Any())
  382. _lstMonitorHandler.AddFirst(new SiasunVCERequestMappingInfoHandler(this));
  383. }
  384. else
  385. {
  386. if (existHandlers.Any())
  387. {
  388. _lstMonitorHandler.Remove(existHandlers.First());
  389. }
  390. }
  391. }
  392. }
  393. public override bool QuerySlotMap(out string reason)
  394. {
  395. reason = string.Empty;
  396. SlotMap = "";
  397. lock (_locker)
  398. {
  399. _lstHandler.AddLast(new SiasunVCERequestMappingInfoHandler(this));
  400. }
  401. return true;
  402. }
  403. public override bool CheckCassettePresent(bool isCheckPresent, out string reason)
  404. {
  405. reason = string.Empty;
  406. lock (_locker)
  407. {
  408. _lstHandler.AddLast(new SiasunVCERequestCassettePresentHandler(this));
  409. }
  410. IsIdle = false;
  411. return true;
  412. }
  413. public override bool CheckWaferSlideOutStatus( out string reason)
  414. {
  415. reason = string.Empty;
  416. lock (_locker)
  417. {
  418. _lstHandler.AddLast(new SiasunVCERequestWaferSlideOutHandler( this));
  419. }
  420. return true;
  421. }
  422. public override void Abort()
  423. {
  424. lock (_locker)
  425. {
  426. _lstHandler.Clear();
  427. }
  428. }
  429. public override bool MoveToSlot(int slot, out string reason)
  430. {
  431. reason = string.Empty;
  432. IsIdle = false;
  433. ZAxisAtSlot = -1;
  434. lock (_locker)
  435. {
  436. _lstHandler.AddLast(new SiasunVCEZAxisGotoSlotHandler(this, slot, _scMotionTimeout.IntValue));
  437. _lstHandler.AddLast(new SiasunVCERequestArmPositionHandler(this));
  438. }
  439. return true;
  440. }
  441. public override bool MoveToLoadPositon(out string reason)
  442. {
  443. reason = string.Empty;
  444. IsZAxisAtLoadPostion = false;
  445. IsIdle = false;
  446. lock (_locker)
  447. {
  448. _lstHandler.AddLast(new SiasunVCEZAxisMoveToLoadPositionHandler(this, _scMotionTimeout.IntValue));
  449. _lstHandler.AddLast(new SiasunVCERequestArmPositionHandler(this));
  450. }
  451. return true;
  452. }
  453. public override bool PlatformIn(out string reason)
  454. {
  455. reason = string.Empty;
  456. IsIdle = false;
  457. IsPlatformIn = false;
  458. IsPlatformOut = false;
  459. lock (_locker)
  460. {
  461. _lstHandler.AddLast(new SiasunVCEPlatformInHandler(this, _scMotionTimeout.IntValue));
  462. }
  463. return true;
  464. }
  465. public override bool PlatformOut(out string reason)
  466. {
  467. reason = string.Empty;
  468. IsIdle = false;
  469. IsPlatformIn = false;
  470. IsPlatformOut = false;
  471. lock (_locker)
  472. {
  473. _lstHandler.AddLast(new SiasunVCEPlatformOutHandler(this, _scMotionTimeout.IntValue));
  474. }
  475. return true;
  476. }
  477. public override bool CheckOutsideDoorStatus()
  478. {
  479. lock (_locker)
  480. {
  481. _lstHandler.AddLast(new SiasunVCERequestDoorStatusHandler(this));
  482. }
  483. IsIdle = false;
  484. return true;
  485. }
  486. public override bool CloseDoor(out string reason)
  487. {
  488. reason = string.Empty;
  489. IsIdle = false;
  490. IsDoorOpened = false;
  491. IsDoorClosed = false;
  492. lock (_locker)
  493. {
  494. _lstHandler.AddLast(new SiasunVCECloseDoorHandler(this, _scMotionTimeout.IntValue));
  495. //_lstHandler.AddLast(new SiasunVCERequestDoorStatusHandler(this));
  496. }
  497. return true;
  498. }
  499. public override bool OpenDoor(out string reason)
  500. {
  501. reason = string.Empty;
  502. IsIdle = false;
  503. IsDoorOpened = false;
  504. IsDoorClosed = false;
  505. lock (_locker)
  506. {
  507. _lstHandler.AddLast(new SiasunVCEOpenDoorHandler(this, _scMotionTimeout.IntValue));
  508. //_lstHandler.AddLast(new SiasunVCERequestDoorStatusHandler(this));
  509. }
  510. return true;
  511. }
  512. public override bool MapCassette(out string reason)
  513. {
  514. reason = string.Empty;
  515. IsMapped = false;
  516. IsIdle = false;
  517. lock (_locker)
  518. {
  519. _lstHandler.AddLast(new SiasunVCESetMappingTeachFlagHandler(this, false));
  520. _lstHandler.AddLast(new SiasunVCEMappingHandler(this, _scMappingTimeout.IntValue));
  521. }
  522. return true;
  523. }
  524. public void Move(string axis, string type, string value)
  525. {
  526. lock (_locker)
  527. {
  528. _lstHandler.AddLast(new SiasunVCEMoveHandler(this, axis, type, value));
  529. }
  530. }
  531. public override bool Home(out string reason)
  532. {
  533. IsHomed = false;
  534. IsIdle = false;
  535. reason = string.Empty;
  536. lock (_locker)
  537. {
  538. _lstHandler.AddLast(new SiasunVCEResetErrorHandler(this)); // S,ER
  539. _lstHandler.AddLast(new SiasunVCEDoorInterlockHandler(this, false)); // S,ZD,N
  540. _lstHandler.AddLast(new SiasunVCECloseDoorHandler(this, _scMotionTimeout.IntValue));// A,DC
  541. _lstHandler.AddLast(new SiasunVCECassetteInterlockHandler(this, false)); // S,CE,N
  542. _lstHandler.AddLast(new SiasunVCEHomeZAxisHandler(this, _scHomeTimeout.IntValue)); // A,HM,Z
  543. _lstHandler.AddLast(new SiasunVCEZAxisMoveToLoadPositionHandler(this, _scMotionTimeout.IntValue)); // A,LP
  544. //_lstHandler.AddLast(new SiasunVCECassetteInterlockHandler(this, true)); // S,CE,Y
  545. }
  546. return true;
  547. }
  548. private R_TRIG _trigWarningMessage = new R_TRIG();
  549. public void NoteError(string reason)
  550. {
  551. if (reason != null)
  552. {
  553. IsAlarm = true;
  554. var content = reason;
  555. if (ErrorCodeReference.ContainsKey(reason))
  556. content = ErrorCodeReference[reason];
  557. _trigWarningMessage.CLK = true;
  558. if (_trigWarningMessage.Q)
  559. {
  560. EV.PostWarningLog(Module, $"{Module}.{Name} error, {reason} {content}");
  561. }
  562. Error = reason;
  563. }
  564. else
  565. {
  566. Error = null;
  567. }
  568. }
  569. internal void NoteRawCommandInfo(string commandType, string command, string data)
  570. {
  571. //var curIOResponse = IOResponseList.Find(res => res.SourceCommandName == command);
  572. //if (curIOResponse != null)
  573. //{
  574. // IOResponseList.Remove(curIOResponse);
  575. //}
  576. //IOResponseList.Add(new IOResponse() { SourceCommandType = commandType, SourceCommand = command, ResonseContent = data, ResonseRecievedTime = DateTime.Now });
  577. }
  578. internal void NoteArmRPositon(string armRPosition)
  579. {
  580. ArmRPosition = armRPosition;
  581. }
  582. internal void NoteArmZPositon(string armPosition)
  583. {
  584. ArmZPosition = armPosition;
  585. }
  586. }
  587. }