SiasunVCE.cs 24 KB

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