FoupListViewModelBase.cs 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883
  1. using Aitex.Core.Common;
  2. using Aitex.Core.UI.MVVM;
  3. using Aitex.Core.Util;
  4. using Aitex.Sorter.Common;
  5. using Aitex.Sorter.UI.Controls;
  6. using Aitex.Sorter.UI.Controls.Common;
  7. using MECF.Framework.Common.OperationCenter;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Collections.ObjectModel;
  11. using System.Linq;
  12. using System.Windows;
  13. using System.Windows.Input;
  14. using System.Windows.Threading;
  15. using Aitex.Core.RT.Log;
  16. using MECF.Framework.Common.DataCenter;
  17. using MECF.Framework.Common.Equipment;
  18. using System.Windows.Controls;
  19. namespace Aitex.Sorter.UI.ViewModel
  20. {
  21. public class FoupListViewModelBase : UIViewModelBase
  22. {
  23. public ObservableCollection<FoupListItem> FoupList { get; set; }
  24. public virtual void UpdateWafers(WaferInfo[] sourceWaferInfos, int index)
  25. {
  26. var wafers = UpdateWaferInfo(sourceWaferInfos.Reverse().ToArray());
  27. if (FoupList[index].WaferInfos == null)
  28. {
  29. FoupList[index].WaferInfos = wafers;
  30. }
  31. else
  32. {
  33. for (int i = 0; i < FoupList[index].WaferInfos.Length; i++)
  34. {
  35. FoupList[index].WaferInfos[i].Update(wafers[i]);
  36. }
  37. }
  38. }
  39. [Subscription(ParamName.IsAutoMode, SystemStateModule)]
  40. public bool IsAutoMode { get; set; }
  41. [Subscription("IsOnlineRemote", SystemStateModule)]
  42. public bool IsOnlineRemote { get; set; }
  43. [Subscription(ParamName.ModuleWaferList, "LP1")]
  44. public WaferInfo[] FoupAWaferInfo
  45. {
  46. get
  47. {
  48. return FoupList[0].WaferInfos;
  49. }
  50. set
  51. {
  52. UpdateWafers(value, 0);
  53. }
  54. }
  55. [Subscription(ParamName.ModuleWaferList, "LP2")]
  56. public WaferInfo[] FoupBWaferInfo
  57. {
  58. get
  59. {
  60. return FoupList[1].WaferInfos;
  61. }
  62. set
  63. {
  64. UpdateWafers(value, 1);
  65. }
  66. }
  67. [Subscription(ParamName.ModuleWaferList, "LP3")]
  68. public WaferInfo[] FoupCWaferInfo
  69. {
  70. get
  71. {
  72. return FoupList[2].WaferInfos;
  73. }
  74. set
  75. {
  76. UpdateWafers(value, 2);
  77. }
  78. }
  79. [Subscription(ParamName.ModuleWaferList, "LP4")]
  80. public WaferInfo[] FoupDWaferInfo
  81. {
  82. get
  83. {
  84. return FoupList[3].WaferInfos;
  85. }
  86. set
  87. {
  88. UpdateWafers(value, 3);
  89. }
  90. }
  91. [Subscription(ParamName.ModuleWaferList, "LP5")]
  92. public WaferInfo[] FoupEWaferInfo
  93. {
  94. get
  95. {
  96. return FoupList[4].WaferInfos;
  97. }
  98. set
  99. {
  100. UpdateWafers(value, 4);
  101. }
  102. }
  103. [Subscription(ParamName.ModuleWaferList, "LP6")]
  104. public WaferInfo[] FoupFWaferInfo
  105. {
  106. get
  107. {
  108. return FoupList[5].WaferInfos;
  109. }
  110. set
  111. {
  112. UpdateWafers(value, 5);
  113. }
  114. }
  115. [Subscription(ParamName.ModuleWaferList, "LP7")]
  116. public WaferInfo[] FoupGWaferInfo
  117. {
  118. get
  119. {
  120. return FoupList[6].WaferInfos;
  121. }
  122. set
  123. {
  124. UpdateWafers(value, 6);
  125. }
  126. }
  127. [Subscription(ParamName.ModuleWaferList, "LP8")]
  128. public WaferInfo[] FoupHWaferInfo
  129. {
  130. get
  131. {
  132. return FoupList[7].WaferInfos;
  133. }
  134. set
  135. {
  136. UpdateWafers(value, 7);
  137. }
  138. }
  139. [Subscription(ParamName.ModuleWaferList, "LP9")]
  140. public WaferInfo[] FoupIWaferInfo
  141. {
  142. get
  143. {
  144. return FoupList[8].WaferInfos;
  145. }
  146. set
  147. {
  148. UpdateWafers(value, 8);
  149. }
  150. }
  151. [Subscription(ParamName.ModuleWaferList, "LP10")]
  152. public WaferInfo[] FoupJWaferInfo
  153. {
  154. get
  155. {
  156. return FoupList[9].WaferInfos;
  157. }
  158. set
  159. {
  160. UpdateWafers(value, 9);
  161. }
  162. }
  163. [Subscription(ParamName.CarrierId, DeviceName.LP1)]
  164. public string FoupID1
  165. {
  166. get
  167. {
  168. return FoupList[0].FoupID;
  169. }
  170. set
  171. {
  172. FoupList[0].FoupID = value;
  173. }
  174. }
  175. [Subscription(ParamName.CarrierId, DeviceName.LP2)]
  176. public string FoupID2
  177. {
  178. get
  179. {
  180. return FoupList[1].FoupID;
  181. }
  182. set
  183. {
  184. FoupList[1].FoupID = value;
  185. }
  186. }
  187. [Subscription(ParamName.CarrierId, DeviceName.LP3)]
  188. public string FoupID3
  189. {
  190. get
  191. {
  192. return FoupList[2].FoupID;
  193. }
  194. set
  195. {
  196. FoupList[2].FoupID = value;
  197. }
  198. }
  199. [Subscription(ParamName.CarrierId, DeviceName.LP4)]
  200. public string FoupID4
  201. {
  202. get
  203. {
  204. return FoupList[3].FoupID;
  205. }
  206. set
  207. {
  208. FoupList[3].FoupID = value;
  209. }
  210. }
  211. [Subscription(ParamName.CarrierId, DeviceName.LP5)]
  212. public string FoupID5
  213. {
  214. get
  215. {
  216. return FoupList[4].FoupID;
  217. }
  218. set
  219. {
  220. FoupList[4].FoupID = value;
  221. }
  222. }
  223. [Subscription(ParamName.CarrierId, DeviceName.LP6)]
  224. public string FoupID6
  225. {
  226. get
  227. {
  228. return FoupList[5].FoupID;
  229. }
  230. set
  231. {
  232. FoupList[5].FoupID = value;
  233. }
  234. }
  235. [Subscription(ParamName.CarrierId, DeviceName.LP7)]
  236. public string FoupID7
  237. {
  238. get
  239. {
  240. return FoupList[6].FoupID;
  241. }
  242. set
  243. {
  244. FoupList[6].FoupID = value;
  245. }
  246. }
  247. [Subscription(ParamName.CarrierId, DeviceName.LP8)]
  248. public string FoupID8
  249. {
  250. get => FoupList[7].FoupID;
  251. set => FoupList[7].FoupID = value;
  252. }
  253. [Subscription(ParamName.CarrierId, DeviceName.LP9)]
  254. public string FoupID9
  255. {
  256. get => FoupList[8].FoupID;
  257. set => FoupList[8].FoupID = value;
  258. }
  259. [Subscription(ParamName.CarrierId, DeviceName.LP10)]
  260. public string FoupID10
  261. {
  262. get => FoupList[9].FoupID;
  263. set => FoupList[9].FoupID = value;
  264. }
  265. [Subscription("IsWaferProtrude", DeviceName.LP1)]
  266. public bool IsWaferProtrude1
  267. {
  268. get => FoupList[0].IsWaferProtrude;
  269. set => FoupList[0].IsWaferProtrude = value;
  270. }
  271. [Subscription("IsWaferProtrude", DeviceName.LP2)]
  272. public bool IsWaferProtrude2
  273. {
  274. get => FoupList[1].IsWaferProtrude;
  275. set => FoupList[1].IsWaferProtrude = value;
  276. }
  277. [Subscription(ParamName.IsPresent, DeviceName.LP1)]
  278. public bool Present1
  279. {
  280. get => FoupList[0].Present;
  281. set => FoupList[0].Present = value;
  282. }
  283. [Subscription(ParamName.IsPresent, DeviceName.LP2)]
  284. public bool Present2
  285. {
  286. get => FoupList[1].Present;
  287. set => FoupList[1].Present = value;
  288. }
  289. [Subscription(ParamName.IsPresent, DeviceName.LP3)]
  290. public bool Present3
  291. {
  292. get => FoupList[2].Present;
  293. set => FoupList[2].Present = value;
  294. }
  295. [Subscription(ParamName.IsPresent, DeviceName.LP4)]
  296. public bool Present4
  297. {
  298. get => FoupList[3].Present;
  299. set => FoupList[3].Present = value;
  300. }
  301. [Subscription(ParamName.IsPresent, DeviceName.LP5)]
  302. public bool Present5
  303. {
  304. get => FoupList[4].Present;
  305. set => FoupList[4].Present = value;
  306. }
  307. [Subscription(ParamName.IsPresent, DeviceName.LP6)]
  308. public bool Present6
  309. {
  310. get => FoupList[5].Present;
  311. set => FoupList[5].Present = value;
  312. }
  313. [Subscription(ParamName.IsPresent, DeviceName.LP7)]
  314. public bool Present7
  315. {
  316. get => FoupList[6].Present;
  317. set => FoupList[6].Present = value;
  318. }
  319. [Subscription(ParamName.IsPresent, DeviceName.LP8)]
  320. public bool Present8
  321. {
  322. get => FoupList[7].Present;
  323. set => FoupList[7].Present = value;
  324. }
  325. [Subscription(ParamName.IsPresent, DeviceName.LP9)]
  326. public bool Present9
  327. {
  328. get => FoupList[8].Present;
  329. set => FoupList[8].Present = value;
  330. }
  331. [Subscription(ParamName.IsPresent, DeviceName.LP10)]
  332. public bool Present10
  333. {
  334. get => FoupList[9].Present;
  335. set => FoupList[9].Present = value;
  336. }
  337. [Subscription(ParamName.IsPlaced, DeviceName.LP1)]
  338. public bool Placement1
  339. {
  340. get => FoupList[0].Placement;
  341. set => FoupList[0].Placement = value;
  342. }
  343. [Subscription(ParamName.IsPlaced, DeviceName.LP2)]
  344. public bool Placement2
  345. {
  346. get => FoupList[1].Placement;
  347. set => FoupList[1].Placement = value;
  348. }
  349. [Subscription(ParamName.IsPlaced, DeviceName.LP3)]
  350. public bool Placement3
  351. {
  352. get => FoupList[2].Placement;
  353. set => FoupList[2].Placement = value;
  354. }
  355. [Subscription(ParamName.IsPlaced, DeviceName.LP4)]
  356. public bool Placement4
  357. {
  358. get => FoupList[3].Placement;
  359. set => FoupList[3].Placement = value;
  360. }
  361. [Subscription(ParamName.IsPlaced, DeviceName.LP5)]
  362. public bool Placement5
  363. {
  364. get => FoupList[4].Placement;
  365. set => FoupList[4].Placement = value;
  366. }
  367. [Subscription(ParamName.IsPlaced, DeviceName.LP6)]
  368. public bool Placement6
  369. {
  370. get => FoupList[5].Placement;
  371. set => FoupList[5].Placement = value;
  372. }
  373. [Subscription(ParamName.IsPlaced, DeviceName.LP7)]
  374. public bool Placement7
  375. {
  376. get => FoupList[6].Placement;
  377. set => FoupList[6].Placement = value;
  378. }
  379. [Subscription(ParamName.IsPlaced, DeviceName.LP8)]
  380. public bool Placement8
  381. {
  382. get => FoupList[7].Placement;
  383. set => FoupList[7].Placement = value;
  384. }
  385. [Subscription(ParamName.IsPlaced, DeviceName.LP9)]
  386. public bool Placement9
  387. {
  388. get => FoupList[8].Placement;
  389. set => FoupList[8].Placement = value;
  390. }
  391. [Subscription(ParamName.IsPlaced, DeviceName.LP10)]
  392. public bool Placement10
  393. {
  394. get => FoupList[9].Placement;
  395. set => FoupList[9].Placement = value;
  396. }
  397. [Subscription("IsCarrierEnabled", DeviceName.LP1)]
  398. public bool IsCarrierEnabled1
  399. {
  400. get => FoupList[0].IsCarrierEnabled;
  401. set => FoupList[0].IsCarrierEnabled = value;
  402. }
  403. [Subscription("IsCarrierEnabled", DeviceName.LP2)]
  404. public bool IsCarrierEnabled2
  405. {
  406. get => FoupList[1].IsCarrierEnabled;
  407. set => FoupList[1].IsCarrierEnabled = value;
  408. }
  409. [Subscription("IsCarrierEnabled", DeviceName.LP3)]
  410. public bool IsCarrierEnabled3
  411. {
  412. get => FoupList[2].IsCarrierEnabled;
  413. set => FoupList[2].IsCarrierEnabled = value;
  414. }
  415. [Subscription("IsCarrierEnabled", DeviceName.LP4)]
  416. public bool IsCarrierEnabled4
  417. {
  418. get => FoupList[3].IsCarrierEnabled;
  419. set => FoupList[3].IsCarrierEnabled = value;
  420. }
  421. [Subscription("IsCarrierEnabled", DeviceName.LP5)]
  422. public bool IsCarrierEnabled5
  423. {
  424. get => FoupList[4].IsCarrierEnabled;
  425. set => FoupList[4].IsCarrierEnabled = value;
  426. }
  427. [Subscription("IsCarrierEnabled", DeviceName.LP6)]
  428. public bool IsCarrierEnabled6
  429. {
  430. get => FoupList[5].IsCarrierEnabled;
  431. set => FoupList[5].IsCarrierEnabled = value;
  432. }
  433. [Subscription("IsCarrierEnabled", DeviceName.LP7)]
  434. public bool IsCarrierEnabled7
  435. {
  436. get => FoupList[6].IsCarrierEnabled;
  437. set => FoupList[6].IsCarrierEnabled = value;
  438. }
  439. [Subscription("IsCarrierEnabled", DeviceName.LP8)]
  440. public bool IsCarrierEnabled8
  441. {
  442. get => FoupList[7].IsCarrierEnabled;
  443. set => FoupList[7].IsCarrierEnabled = value;
  444. }
  445. [Subscription("IsCarrierEnabled", DeviceName.LP9)]
  446. public bool IsCarrierEnabled9
  447. {
  448. get => FoupList[8].IsCarrierEnabled;
  449. set => FoupList[8].IsCarrierEnabled = value;
  450. }
  451. [Subscription("IsCarrierEnabled", DeviceName.LP10)]
  452. public bool IsCarrierEnabled10
  453. {
  454. get => FoupList[9].IsCarrierEnabled;
  455. set => FoupList[9].IsCarrierEnabled = value;
  456. }
  457. [Subscription(ParamName.LoadportState, DeviceName.LoadportA)]
  458. public string LoadportAState
  459. {
  460. get
  461. {
  462. return FoupList[0].LoadportState;
  463. }
  464. set
  465. {
  466. FoupList[0].LoadportState = value;
  467. }
  468. }
  469. [Subscription(ParamName.LoadportState, DeviceName.LoadportB)]
  470. public string LoadportBState
  471. {
  472. get
  473. {
  474. return FoupList[1].LoadportState;
  475. }
  476. set
  477. {
  478. FoupList[1].LoadportState = value;
  479. }
  480. }
  481. [Subscription(ParamName.LoadportState, DeviceName.LoadportC)]
  482. public string LoadportCState
  483. {
  484. get
  485. {
  486. return FoupList[2].LoadportState;
  487. }
  488. set
  489. {
  490. FoupList[2].LoadportState = value;
  491. }
  492. }
  493. [Subscription(ParamName.LoadportState, DeviceName.LoadportD)]
  494. public string LoadportDState
  495. {
  496. get
  497. {
  498. return FoupList[3].LoadportState;
  499. }
  500. set
  501. {
  502. FoupList[3].LoadportState = value;
  503. }
  504. }
  505. [Subscription(ParamName.CassetteState, DeviceName.LP1)]
  506. public LoadportCassetteState CassetteState1
  507. {
  508. get => FoupList[0].CassetteState;
  509. set => FoupList[0].CassetteState = value;
  510. }
  511. [Subscription(ParamName.CassetteState, DeviceName.LP2)]
  512. public LoadportCassetteState CassetteState2
  513. {
  514. get => FoupList[1].CassetteState;
  515. set => FoupList[1].CassetteState = value;
  516. }
  517. [Subscription(ParamName.CassetteState, DeviceName.LP3)]
  518. public LoadportCassetteState CassetteState3
  519. {
  520. get => FoupList[2].CassetteState;
  521. set => FoupList[2].CassetteState = value;
  522. }
  523. [Subscription(ParamName.CassetteState, DeviceName.LP4)]
  524. public LoadportCassetteState CassetteState4
  525. {
  526. get => FoupList[3].CassetteState;
  527. set => FoupList[3].CassetteState = value;
  528. }
  529. [Subscription(ParamName.CassetteState, DeviceName.LP5)]
  530. public LoadportCassetteState CassetteState5
  531. {
  532. get => FoupList[4].CassetteState;
  533. set => FoupList[4].CassetteState = value;
  534. }
  535. [Subscription(ParamName.CassetteState, DeviceName.LP6)]
  536. public LoadportCassetteState CassetteState6
  537. {
  538. get => FoupList[5].CassetteState;
  539. set => FoupList[5].CassetteState = value;
  540. }
  541. [Subscription(ParamName.CassetteState, DeviceName.LP7)]
  542. public LoadportCassetteState CassetteState7
  543. {
  544. get => FoupList[6].CassetteState;
  545. set => FoupList[6].CassetteState = value;
  546. }
  547. [Subscription(ParamName.CassetteState, DeviceName.LP8)]
  548. public LoadportCassetteState CassetteState8
  549. {
  550. get => FoupList[7].CassetteState;
  551. set => FoupList[7].CassetteState = value;
  552. }
  553. [Subscription(ParamName.CassetteState, DeviceName.LP9)]
  554. public LoadportCassetteState CassetteState9
  555. {
  556. get => FoupList[8].CassetteState;
  557. set => FoupList[8].CassetteState = value;
  558. }
  559. [Subscription(ParamName.CassetteState, DeviceName.LP10)]
  560. public LoadportCassetteState CassetteState10
  561. {
  562. get => FoupList[9].CassetteState;
  563. set => FoupList[9].CassetteState = value;
  564. }
  565. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP1)]
  566. public IndicatorState IndicatiorLoad1
  567. {
  568. get => FoupList[0].IndicatiorLoad;
  569. set => FoupList[0].IndicatiorLoad = value;
  570. }
  571. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP2)]
  572. public IndicatorState IndicatiorLoad2
  573. {
  574. get => FoupList[1].IndicatiorLoad;
  575. set => FoupList[1].IndicatiorLoad = value;
  576. }
  577. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP3)]
  578. public IndicatorState IndicatiorLoad3
  579. {
  580. get => FoupList[2].IndicatiorLoad;
  581. set => FoupList[2].IndicatiorLoad = value;
  582. }
  583. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP4)]
  584. public IndicatorState IndicatiorLoad4
  585. {
  586. get => FoupList[3].IndicatiorLoad;
  587. set => FoupList[3].IndicatiorLoad = value;
  588. }
  589. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP5)]
  590. public IndicatorState IndicatiorLoad5
  591. {
  592. get => FoupList[4].IndicatiorLoad;
  593. set => FoupList[4].IndicatiorLoad = value;
  594. }
  595. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP6)]
  596. public IndicatorState IndicatiorLoad6
  597. {
  598. get => FoupList[5].IndicatiorLoad;
  599. set => FoupList[5].IndicatiorLoad = value;
  600. }
  601. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP7)]
  602. public IndicatorState IndicatiorLoad7
  603. {
  604. get => FoupList[6].IndicatiorLoad;
  605. set => FoupList[6].IndicatiorLoad = value;
  606. }
  607. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP8)]
  608. public IndicatorState IndicatiorLoad8
  609. {
  610. get => FoupList[7].IndicatiorLoad;
  611. set => FoupList[7].IndicatiorLoad = value;
  612. }
  613. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP9)]
  614. public IndicatorState IndicatiorLoad9
  615. {
  616. get => FoupList[8].IndicatiorLoad;
  617. set => FoupList[8].IndicatiorLoad = value;
  618. }
  619. [Subscription(ParamName.IndicatiorLoad, DeviceName.LP10)]
  620. public IndicatorState IndicatiorLoad10
  621. {
  622. get => FoupList[9].IndicatiorLoad;
  623. set => FoupList[9].IndicatiorLoad = value;
  624. }
  625. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP1)]
  626. public IndicatorState IndicatiorUnload1
  627. {
  628. get => FoupList[0].IndicatiorUnload;
  629. set => FoupList[0].IndicatiorUnload = value;
  630. }
  631. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP2)]
  632. public IndicatorState IndicatiorUnload2
  633. {
  634. get => FoupList[1].IndicatiorUnload;
  635. set => FoupList[1].IndicatiorUnload = value;
  636. }
  637. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP3)]
  638. public IndicatorState IndicatiorUnload3
  639. {
  640. get => FoupList[2].IndicatiorUnload;
  641. set => FoupList[2].IndicatiorUnload = value;
  642. }
  643. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP4)]
  644. public IndicatorState IndicatiorUnload4
  645. {
  646. get => FoupList[3].IndicatiorUnload;
  647. set => FoupList[3].IndicatiorUnload = value;
  648. }
  649. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP5)]
  650. public IndicatorState IndicatiorUnload5
  651. {
  652. get => FoupList[4].IndicatiorUnload;
  653. set => FoupList[4].IndicatiorUnload = value;
  654. }
  655. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP6)]
  656. public IndicatorState IndicatiorUnload6
  657. {
  658. get => FoupList[5].IndicatiorUnload;
  659. set => FoupList[5].IndicatiorUnload = value;
  660. }
  661. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP7)]
  662. public IndicatorState IndicatiorUnload7
  663. {
  664. get => FoupList[6].IndicatiorUnload;
  665. set => FoupList[6].IndicatiorUnload = value;
  666. }
  667. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP8)]
  668. public IndicatorState IndicatiorUnload8
  669. {
  670. get => FoupList[7].IndicatiorUnload;
  671. set => FoupList[7].IndicatiorUnload = value;
  672. }
  673. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP9)]
  674. public IndicatorState IndicatiorUnload9
  675. {
  676. get => FoupList[8].IndicatiorUnload;
  677. set => FoupList[8].IndicatiorUnload = value;
  678. }
  679. [Subscription(ParamName.IndicatiorUnload, DeviceName.LP10)]
  680. public IndicatorState IndicatiorUnload10
  681. {
  682. get => FoupList[9].IndicatiorUnload;
  683. set => FoupList[9].IndicatiorUnload = value;
  684. }
  685. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP1)]
  686. public IndicatorState IndicatiorPresence1
  687. {
  688. get => FoupList[0].IndicatiorPresence;
  689. set => FoupList[0].IndicatiorPresence = value;
  690. }
  691. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP2)]
  692. public IndicatorState IndicatiorPresence2
  693. {
  694. get => FoupList[1].IndicatiorPresence;
  695. set => FoupList[1].IndicatiorPresence = value;
  696. }
  697. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP3)]
  698. public IndicatorState IndicatiorPresence3
  699. {
  700. get => FoupList[2].IndicatiorPresence;
  701. set => FoupList[2].IndicatiorPresence = value;
  702. }
  703. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP4)]
  704. public IndicatorState IndicatiorPresence4
  705. {
  706. get => FoupList[3].IndicatiorPresence;
  707. set => FoupList[3].IndicatiorPresence = value;
  708. }
  709. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP5)]
  710. public IndicatorState IndicatiorPresence5
  711. {
  712. get => FoupList[4].IndicatiorPresence;
  713. set => FoupList[4].IndicatiorPresence = value;
  714. }
  715. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP6)]
  716. public IndicatorState IndicatiorPresence6
  717. {
  718. get => FoupList[5].IndicatiorPresence;
  719. set => FoupList[5].IndicatiorPresence = value;
  720. }
  721. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP7)]
  722. public IndicatorState IndicatiorPresence7
  723. {
  724. get => FoupList[6].IndicatiorPresence;
  725. set => FoupList[6].IndicatiorPresence = value;
  726. }
  727. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP8)]
  728. public IndicatorState IndicatiorPresence8
  729. {
  730. get => FoupList[7].IndicatiorPresence;
  731. set => FoupList[7].IndicatiorPresence = value;
  732. }
  733. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP9)]
  734. public IndicatorState IndicatiorPresence9
  735. {
  736. get => FoupList[8].IndicatiorPresence;
  737. set => FoupList[8].IndicatiorPresence = value;
  738. }
  739. [Subscription(ParamName.IndicatiorPresence, DeviceName.LP10)]
  740. public IndicatorState IndicatiorPresence10
  741. {
  742. get => FoupList[9].IndicatiorPresence;
  743. set => FoupList[9].IndicatiorPresence = value;
  744. }
  745. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP1)]
  746. public IndicatorState IndicatiorPlacement1
  747. {
  748. get => FoupList[0].IndicatiorPlacement;
  749. set => FoupList[0].IndicatiorPlacement = value;
  750. }
  751. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP2)]
  752. public IndicatorState IndicatiorPlacement2
  753. {
  754. get => FoupList[1].IndicatiorPlacement;
  755. set => FoupList[1].IndicatiorPlacement = value;
  756. }
  757. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP3)]
  758. public IndicatorState IndicatiorPlacement3
  759. {
  760. get => FoupList[2].IndicatiorPlacement;
  761. set => FoupList[2].IndicatiorPlacement = value;
  762. }
  763. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP4)]
  764. public IndicatorState IndicatiorPlacement4
  765. {
  766. get => FoupList[3].IndicatiorPlacement;
  767. set => FoupList[3].IndicatiorPlacement = value;
  768. }
  769. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP5)]
  770. public IndicatorState IndicatiorPlacement5
  771. {
  772. get => FoupList[4].IndicatiorPlacement;
  773. set => FoupList[4].IndicatiorPlacement = value;
  774. }
  775. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP6)]
  776. public IndicatorState IndicatiorPlacement6
  777. {
  778. get => FoupList[5].IndicatiorPlacement;
  779. set => FoupList[5].IndicatiorPlacement = value;
  780. }
  781. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP7)]
  782. public IndicatorState IndicatiorPlacement7
  783. {
  784. get => FoupList[6].IndicatiorPlacement;
  785. set => FoupList[6].IndicatiorPlacement = value;
  786. }
  787. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP8)]
  788. public IndicatorState IndicatiorPlacement8
  789. {
  790. get => FoupList[7].IndicatiorPlacement;
  791. set => FoupList[7].IndicatiorPlacement = value;
  792. }
  793. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP9)]
  794. public IndicatorState IndicatiorPlacement9
  795. {
  796. get => FoupList[8].IndicatiorPlacement;
  797. set => FoupList[8].IndicatiorPlacement = value;
  798. }
  799. [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP10)]
  800. public IndicatorState IndicatiorPlacement10
  801. {
  802. get => FoupList[9].IndicatiorPlacement;
  803. set => FoupList[9].IndicatiorPlacement = value;
  804. }
  805. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP1)]
  806. public IndicatorState IndicatiorOpAccess1
  807. {
  808. get => FoupList[0].IndicatiorOpAccess;
  809. set => FoupList[0].IndicatiorOpAccess = value;
  810. }
  811. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP2)]
  812. public IndicatorState IndicatiorOpAccess2
  813. {
  814. get => FoupList[1].IndicatiorOpAccess;
  815. set => FoupList[1].IndicatiorOpAccess = value;
  816. }
  817. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP3)]
  818. public IndicatorState IndicatiorOpAccess3
  819. {
  820. get => FoupList[2].IndicatiorOpAccess;
  821. set => FoupList[2].IndicatiorOpAccess = value;
  822. }
  823. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP4)]
  824. public IndicatorState IndicatiorOpAccess4
  825. {
  826. get => FoupList[3].IndicatiorOpAccess;
  827. set => FoupList[3].IndicatiorOpAccess = value;
  828. }
  829. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP5)]
  830. public IndicatorState IndicatiorOpAccess5
  831. {
  832. get => FoupList[4].IndicatiorOpAccess;
  833. set => FoupList[4].IndicatiorOpAccess = value;
  834. }
  835. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP6)]
  836. public IndicatorState IndicatiorOpAccess6
  837. {
  838. get => FoupList[5].IndicatiorOpAccess;
  839. set => FoupList[5].IndicatiorOpAccess = value;
  840. }
  841. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP7)]
  842. public IndicatorState IndicatiorOpAccess7
  843. {
  844. get => FoupList[6].IndicatiorOpAccess;
  845. set => FoupList[6].IndicatiorOpAccess = value;
  846. }
  847. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP8)]
  848. public IndicatorState IndicatiorOpAccess8
  849. {
  850. get => FoupList[7].IndicatiorOpAccess;
  851. set => FoupList[7].IndicatiorOpAccess = value;
  852. }
  853. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP9)]
  854. public IndicatorState IndicatiorOpAccess9
  855. {
  856. get => FoupList[8].IndicatiorOpAccess;
  857. set => FoupList[8].IndicatiorOpAccess = value;
  858. }
  859. [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP10)]
  860. public IndicatorState IndicatiorOpAccess10
  861. {
  862. get => FoupList[9].IndicatiorOpAccess;
  863. set => FoupList[9].IndicatiorOpAccess = value;
  864. }
  865. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP1)]
  866. public IndicatorState IndicatiorAlarm1
  867. {
  868. get => FoupList[0].IndicatiorAlarm;
  869. set => FoupList[0].IndicatiorAlarm = value;
  870. }
  871. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP2)]
  872. public IndicatorState IndicatiorAlarm2
  873. {
  874. get => FoupList[1].IndicatiorAlarm;
  875. set => FoupList[1].IndicatiorAlarm = value;
  876. }
  877. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP3)]
  878. public IndicatorState IndicatiorAlarm3
  879. {
  880. get => FoupList[2].IndicatiorAlarm;
  881. set => FoupList[2].IndicatiorAlarm = value;
  882. }
  883. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP4)]
  884. public IndicatorState IndicatiorAlarm4
  885. {
  886. get => FoupList[3].IndicatiorAlarm;
  887. set => FoupList[3].IndicatiorAlarm = value;
  888. }
  889. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP5)]
  890. public IndicatorState IndicatiorAlarm5
  891. {
  892. get => FoupList[4].IndicatiorAlarm;
  893. set => FoupList[4].IndicatiorAlarm = value;
  894. }
  895. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP6)]
  896. public IndicatorState IndicatiorAlarm6
  897. {
  898. get => FoupList[5].IndicatiorAlarm;
  899. set => FoupList[5].IndicatiorAlarm = value;
  900. }
  901. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP7)]
  902. public IndicatorState IndicatiorAlarm7
  903. {
  904. get => FoupList[6].IndicatiorAlarm;
  905. set => FoupList[6].IndicatiorAlarm = value;
  906. }
  907. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP8)]
  908. public IndicatorState IndicatiorAlarm8
  909. {
  910. get => FoupList[7].IndicatiorAlarm;
  911. set => FoupList[7].IndicatiorAlarm = value;
  912. }
  913. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP9)]
  914. public IndicatorState IndicatiorAlarm9
  915. {
  916. get => FoupList[8].IndicatiorAlarm;
  917. set => FoupList[8].IndicatiorAlarm = value;
  918. }
  919. [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP10)]
  920. public IndicatorState IndicatiorAlarm10
  921. {
  922. get => FoupList[9].IndicatiorAlarm;
  923. set => FoupList[9].IndicatiorAlarm = value;
  924. }
  925. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP1)]
  926. public IndicatorState IndicatiorAccessAuto1
  927. {
  928. get => FoupList[0].IndicatiorAccessAuto;
  929. set => FoupList[0].IndicatiorAccessAuto = value;
  930. }
  931. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP2)]
  932. public IndicatorState IndicatiorAccessAuto2
  933. {
  934. get => FoupList[1].IndicatiorAccessAuto;
  935. set => FoupList[1].IndicatiorAccessAuto = value;
  936. }
  937. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP3)]
  938. public IndicatorState IndicatiorAccessAuto3
  939. {
  940. get => FoupList[2].IndicatiorAccessAuto;
  941. set => FoupList[2].IndicatiorAccessAuto = value;
  942. }
  943. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP4)]
  944. public IndicatorState IndicatiorAccessAuto4
  945. {
  946. get => FoupList[3].IndicatiorAccessAuto;
  947. set => FoupList[3].IndicatiorAccessAuto = value;
  948. }
  949. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP5)]
  950. public IndicatorState IndicatiorAccessAuto5
  951. {
  952. get => FoupList[4].IndicatiorAccessAuto;
  953. set => FoupList[4].IndicatiorAccessAuto = value;
  954. }
  955. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP6)]
  956. public IndicatorState IndicatiorAccessAuto6
  957. {
  958. get => FoupList[5].IndicatiorAccessAuto;
  959. set => FoupList[5].IndicatiorAccessAuto = value;
  960. }
  961. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP7)]
  962. public IndicatorState IndicatiorAccessAuto7
  963. {
  964. get => FoupList[6].IndicatiorAccessAuto;
  965. set => FoupList[6].IndicatiorAccessAuto = value;
  966. }
  967. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP8)]
  968. public IndicatorState IndicatiorAccessAuto8
  969. {
  970. get => FoupList[7].IndicatiorAccessAuto;
  971. set => FoupList[7].IndicatiorAccessAuto = value;
  972. }
  973. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP9)]
  974. public IndicatorState IndicatiorAccessAuto9
  975. {
  976. get => FoupList[8].IndicatiorAccessAuto;
  977. set => FoupList[8].IndicatiorAccessAuto = value;
  978. }
  979. [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP10)]
  980. public IndicatorState IndicatiorAccessAuto10
  981. {
  982. get => FoupList[9].IndicatiorAccessAuto;
  983. set => FoupList[9].IndicatiorAccessAuto = value;
  984. }
  985. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP1)]
  986. public IndicatorState IndicatiorAccessManual1
  987. {
  988. get => FoupList[0].IndicatiorAccessManual;
  989. set => FoupList[0].IndicatiorAccessManual = value;
  990. }
  991. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP2)]
  992. public IndicatorState IndicatiorAccessManual2
  993. {
  994. get => FoupList[1].IndicatiorAccessManual;
  995. set => FoupList[1].IndicatiorAccessManual = value;
  996. }
  997. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP3)]
  998. public IndicatorState IndicatiorAccessManual3
  999. {
  1000. get => FoupList[2].IndicatiorAccessManual;
  1001. set => FoupList[2].IndicatiorAccessManual = value;
  1002. }
  1003. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP4)]
  1004. public IndicatorState IndicatiorAccessManual4
  1005. {
  1006. get => FoupList[3].IndicatiorAccessManual;
  1007. set => FoupList[3].IndicatiorAccessManual = value;
  1008. }
  1009. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP5)]
  1010. public IndicatorState IndicatiorAccessManual5
  1011. {
  1012. get => FoupList[4].IndicatiorAccessManual;
  1013. set => FoupList[4].IndicatiorAccessManual = value;
  1014. }
  1015. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP6)]
  1016. public IndicatorState IndicatiorAccessManual6
  1017. {
  1018. get => FoupList[5].IndicatiorAccessManual;
  1019. set => FoupList[5].IndicatiorAccessManual = value;
  1020. }
  1021. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP7)]
  1022. public IndicatorState IndicatiorAccessManual7
  1023. {
  1024. get => FoupList[6].IndicatiorAccessManual;
  1025. set => FoupList[6].IndicatiorAccessManual = value;
  1026. }
  1027. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP8)]
  1028. public IndicatorState IndicatiorAccessManual8
  1029. {
  1030. get => FoupList[7].IndicatiorAccessManual;
  1031. set => FoupList[7].IndicatiorAccessManual = value;
  1032. }
  1033. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP9)]
  1034. public IndicatorState IndicatiorAccessManual9
  1035. {
  1036. get => FoupList[8].IndicatiorAccessManual;
  1037. set => FoupList[8].IndicatiorAccessManual = value;
  1038. }
  1039. [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP10)]
  1040. public IndicatorState IndicatiorAccessManual10
  1041. {
  1042. get => FoupList[9].IndicatiorAccessManual;
  1043. set => FoupList[9].IndicatiorAccessManual = value;
  1044. }
  1045. [Subscription(ParamName.LoadportState, DeviceName.LP1)]
  1046. public string Status1
  1047. {
  1048. get => FoupList[0].Status;
  1049. set => FoupList[0].Status = value;
  1050. }
  1051. [Subscription(ParamName.LoadportState, DeviceName.LP2)]
  1052. public string Status2
  1053. {
  1054. get => FoupList[1].Status;
  1055. set => FoupList[1].Status = value;
  1056. }
  1057. [Subscription(ParamName.LoadportState, DeviceName.LP3)]
  1058. public string Status3
  1059. {
  1060. get => FoupList[2].Status;
  1061. set => FoupList[2].Status = value;
  1062. }
  1063. [Subscription(ParamName.LoadportState, DeviceName.LP4)]
  1064. public string Status4
  1065. {
  1066. get => FoupList[3].Status;
  1067. set => FoupList[3].Status = value;
  1068. }
  1069. [Subscription(ParamName.LoadportState, DeviceName.LP5)]
  1070. public string Status5
  1071. {
  1072. get => FoupList[4].Status;
  1073. set => FoupList[4].Status = value;
  1074. }
  1075. [Subscription(ParamName.LoadportState, DeviceName.LP6)]
  1076. public string Status6
  1077. {
  1078. get => FoupList[5].Status;
  1079. set => FoupList[5].Status = value;
  1080. }
  1081. [Subscription(ParamName.LoadportState, DeviceName.LP7)]
  1082. public string Status7
  1083. {
  1084. get => FoupList[6].Status;
  1085. set => FoupList[6].Status = value;
  1086. }
  1087. [Subscription(ParamName.LoadportState, DeviceName.LP8)]
  1088. public string Status8
  1089. {
  1090. get => FoupList[7].Status;
  1091. set => FoupList[7].Status = value;
  1092. }
  1093. [Subscription(ParamName.LoadportState, DeviceName.LP9)]
  1094. public string Status9
  1095. {
  1096. get => FoupList[8].Status;
  1097. set => FoupList[8].Status = value;
  1098. }
  1099. [Subscription(ParamName.LoadportState, DeviceName.LP10)]
  1100. public string Status10
  1101. {
  1102. get => FoupList[9].Status;
  1103. set => FoupList[9].Status = value;
  1104. }
  1105. [Subscription(ParamName.FoupClampState, DeviceName.LP1)]
  1106. public FoupClampState ClampState1
  1107. {
  1108. get => FoupList[0].ClampState;
  1109. set => FoupList[0].ClampState = value;
  1110. }
  1111. [Subscription(ParamName.FoupClampState, DeviceName.LP2)]
  1112. public FoupClampState ClampState2
  1113. {
  1114. get => FoupList[1].ClampState;
  1115. set => FoupList[1].ClampState = value;
  1116. }
  1117. [Subscription(ParamName.FoupClampState, DeviceName.LP3)]
  1118. public FoupClampState ClampState3
  1119. {
  1120. get => FoupList[2].ClampState;
  1121. set => FoupList[2].ClampState = value;
  1122. }
  1123. [Subscription(ParamName.FoupClampState, DeviceName.LP4)]
  1124. public FoupClampState ClampState4
  1125. {
  1126. get => FoupList[3].ClampState;
  1127. set => FoupList[3].ClampState = value;
  1128. }
  1129. [Subscription(ParamName.FoupClampState, DeviceName.LP5)]
  1130. public FoupClampState ClampState5
  1131. {
  1132. get => FoupList[4].ClampState;
  1133. set => FoupList[4].ClampState = value;
  1134. }
  1135. [Subscription(ParamName.FoupClampState, DeviceName.LP6)]
  1136. public FoupClampState ClampState6
  1137. {
  1138. get => FoupList[5].ClampState;
  1139. set => FoupList[5].ClampState = value;
  1140. }
  1141. [Subscription(ParamName.FoupClampState, DeviceName.LP7)]
  1142. public FoupClampState ClampState7
  1143. {
  1144. get => FoupList[6].ClampState;
  1145. set => FoupList[6].ClampState = value;
  1146. }
  1147. [Subscription(ParamName.FoupClampState, DeviceName.LP8)]
  1148. public FoupClampState ClampState8
  1149. {
  1150. get => FoupList[7].ClampState;
  1151. set => FoupList[7].ClampState = value;
  1152. }
  1153. [Subscription(ParamName.FoupClampState, DeviceName.LP9)]
  1154. public FoupClampState ClampState9
  1155. {
  1156. get => FoupList[8].ClampState;
  1157. set => FoupList[8].ClampState = value;
  1158. }
  1159. [Subscription(ParamName.FoupClampState, DeviceName.LP10)]
  1160. public FoupClampState ClampState10
  1161. {
  1162. get => FoupList[9].ClampState;
  1163. set => FoupList[9].ClampState = value;
  1164. }
  1165. [Subscription(ParamName.FoupDoorState, DeviceName.LP1)]
  1166. public FoupDoorState DoorState1
  1167. {
  1168. get => FoupList[0].DoorState;
  1169. set => FoupList[0].DoorState = value;
  1170. }
  1171. [Subscription(ParamName.FoupDoorState, DeviceName.LP2)]
  1172. public FoupDoorState DoorState2
  1173. {
  1174. get => FoupList[1].DoorState;
  1175. set => FoupList[1].DoorState = value;
  1176. }
  1177. [Subscription(ParamName.FoupDoorState, DeviceName.LP3)]
  1178. public FoupDoorState DoorState3
  1179. {
  1180. get => FoupList[2].DoorState;
  1181. set => FoupList[2].DoorState = value;
  1182. }
  1183. [Subscription(ParamName.FoupDoorState, DeviceName.LP4)]
  1184. public FoupDoorState DoorState4
  1185. {
  1186. get => FoupList[3].DoorState;
  1187. set => FoupList[3].DoorState = value;
  1188. }
  1189. [Subscription(ParamName.FoupDoorState, DeviceName.LP5)]
  1190. public FoupDoorState DoorState5
  1191. {
  1192. get => FoupList[4].DoorState;
  1193. set => FoupList[4].DoorState = value;
  1194. }
  1195. [Subscription(ParamName.FoupDoorState, DeviceName.LP6)]
  1196. public FoupDoorState DoorState6
  1197. {
  1198. get => FoupList[5].DoorState;
  1199. set => FoupList[5].DoorState = value;
  1200. }
  1201. [Subscription(ParamName.FoupDoorState, DeviceName.LP7)]
  1202. public FoupDoorState DoorState7
  1203. {
  1204. get => FoupList[6].DoorState;
  1205. set => FoupList[6].DoorState = value;
  1206. }
  1207. [Subscription(ParamName.FoupDoorState, DeviceName.LP8)]
  1208. public FoupDoorState DoorState8
  1209. {
  1210. get => FoupList[7].DoorState;
  1211. set => FoupList[7].DoorState = value;
  1212. }
  1213. [Subscription(ParamName.FoupDoorState, DeviceName.LP9)]
  1214. public FoupDoorState DoorState9
  1215. {
  1216. get => FoupList[8].DoorState;
  1217. set => FoupList[8].DoorState = value;
  1218. }
  1219. [Subscription(ParamName.FoupDoorState, DeviceName.LP10)]
  1220. public FoupDoorState DoorState10
  1221. {
  1222. get => FoupList[9].DoorState;
  1223. set => FoupList[9].DoorState = value;
  1224. }
  1225. [Subscription("ValidSlotsNumber", DeviceName.LP1)]
  1226. public int ValidSlotsNumber1
  1227. {
  1228. get => FoupList[0].SlotCount;
  1229. set => FoupList[0].SlotCount = value;
  1230. }
  1231. [Subscription("ValidSlotsNumber", DeviceName.LP2)]
  1232. public int ValidSlotsNumber2
  1233. {
  1234. get => FoupList[1].SlotCount;
  1235. set => FoupList[1].SlotCount = value;
  1236. }
  1237. [Subscription("ValidSlotsNumber", DeviceName.LP3)]
  1238. public int ValidSlotsNumber3
  1239. {
  1240. get => FoupList[2].SlotCount;
  1241. set => FoupList[2].SlotCount = value;
  1242. }
  1243. [Subscription("ValidSlotsNumber", DeviceName.LP4)]
  1244. public int ValidSlotsNumber4
  1245. {
  1246. get => FoupList[3].SlotCount;
  1247. set => FoupList[3].SlotCount = value;
  1248. }
  1249. [Subscription("ValidSlotsNumber", DeviceName.LP5)]
  1250. public int ValidSlotsNumber5
  1251. {
  1252. get => FoupList[4].SlotCount;
  1253. set => FoupList[4].SlotCount = value;
  1254. }
  1255. [Subscription("ValidSlotsNumber", DeviceName.LP6)]
  1256. public int ValidSlotsNumber6
  1257. {
  1258. get => FoupList[5].SlotCount;
  1259. set => FoupList[5].SlotCount = value;
  1260. }
  1261. [Subscription("ValidSlotsNumber", DeviceName.LP7)]
  1262. public int ValidSlotsNumber7
  1263. {
  1264. get => FoupList[6].SlotCount;
  1265. set => FoupList[6].SlotCount = value;
  1266. }
  1267. [Subscription("ValidSlotsNumber", DeviceName.LP8)]
  1268. public int ValidSlotsNumber8
  1269. {
  1270. get => FoupList[7].SlotCount;
  1271. set => FoupList[7].SlotCount = value;
  1272. }
  1273. [Subscription("ValidSlotsNumber", DeviceName.LP9)]
  1274. public int ValidSlotsNumber9
  1275. {
  1276. get => FoupList[8].SlotCount;
  1277. set => FoupList[8].SlotCount = value;
  1278. }
  1279. [Subscription("ValidSlotsNumber", DeviceName.LP10)]
  1280. public int ValidSlotsNumber10
  1281. {
  1282. get => FoupList[9].SlotCount;
  1283. set => FoupList[9].SlotCount = value;
  1284. }
  1285. public ICommand LoadPortCommand
  1286. {
  1287. get; set;
  1288. }
  1289. private WaferInfo[] bufferWafers;
  1290. [Subscription(ParamName.ModuleWaferList, DeviceName.Buffer)]
  1291. public WaferInfo[] BufferWafers
  1292. {
  1293. get
  1294. {
  1295. return bufferWafers?.Reverse().ToArray();
  1296. }
  1297. set
  1298. {
  1299. bufferWafers = value;
  1300. }
  1301. }
  1302. public WaferInfo[] ll1wafers;
  1303. [Subscription(ParamName.ModuleWaferList, DeviceName.LL1)]
  1304. public WaferInfo[] LL1Wafers
  1305. {
  1306. get
  1307. {
  1308. return ll1wafers;
  1309. }
  1310. set
  1311. {
  1312. ll1wafers = value;
  1313. LL1Wafer = ll1wafers?[0];
  1314. }
  1315. }
  1316. public WaferInfo[] ll2wafers;
  1317. [Subscription(ParamName.ModuleWaferList, DeviceName.LL2)]
  1318. public WaferInfo[] LL2Wafers
  1319. {
  1320. get
  1321. {
  1322. return ll2wafers;
  1323. }
  1324. set
  1325. {
  1326. ll2wafers = value;
  1327. LL2Wafer = ll2wafers?[0];
  1328. }
  1329. }
  1330. public WaferInfo[] ll3wafers;
  1331. [Subscription(ParamName.ModuleWaferList, DeviceName.LL3)]
  1332. public WaferInfo[] LL3Wafers
  1333. {
  1334. get
  1335. {
  1336. return ll3wafers;
  1337. }
  1338. set
  1339. {
  1340. ll3wafers = value;
  1341. LL3Wafer = ll3wafers?[0];
  1342. }
  1343. }
  1344. public WaferInfo[] ll4wafers;
  1345. [Subscription(ParamName.ModuleWaferList, DeviceName.LL4)]
  1346. public WaferInfo[] LL4Wafers
  1347. {
  1348. get
  1349. {
  1350. return ll4wafers;
  1351. }
  1352. set
  1353. {
  1354. ll4wafers = value;
  1355. LL4Wafer = ll4wafers?[0];
  1356. }
  1357. }
  1358. public WaferInfo[] ll5wafers;
  1359. [Subscription(ParamName.ModuleWaferList, DeviceName.LL5)]
  1360. public WaferInfo[] LL5Wafers
  1361. {
  1362. get
  1363. {
  1364. return ll5wafers;
  1365. }
  1366. set
  1367. {
  1368. ll5wafers = value;
  1369. LL5Wafer = ll5wafers?[0];
  1370. }
  1371. }
  1372. public WaferInfo[] ll6wafers;
  1373. [Subscription(ParamName.ModuleWaferList, DeviceName.LL6)]
  1374. public WaferInfo[] LL6Wafers
  1375. {
  1376. get
  1377. {
  1378. return ll6wafers;
  1379. }
  1380. set
  1381. {
  1382. ll6wafers = value;
  1383. LL6Wafer = ll6wafers?[0];
  1384. }
  1385. }
  1386. public WaferInfo[] ll7wafers;
  1387. [Subscription(ParamName.ModuleWaferList, DeviceName.LL7)]
  1388. public WaferInfo[] LL7Wafers
  1389. {
  1390. get
  1391. {
  1392. return ll7wafers;
  1393. }
  1394. set
  1395. {
  1396. ll7wafers = value;
  1397. LL7Wafer = ll7wafers?[0];
  1398. }
  1399. }
  1400. public WaferInfo[] ll8wafers;
  1401. [Subscription(ParamName.ModuleWaferList, DeviceName.LL8)]
  1402. public WaferInfo[] LL8Wafers
  1403. {
  1404. get
  1405. {
  1406. return ll8wafers;
  1407. }
  1408. set
  1409. {
  1410. ll8wafers = value;
  1411. LL8Wafer = ll8wafers?[0];
  1412. }
  1413. }
  1414. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderA)]
  1415. public DeviceState RFIDReader1Status
  1416. {
  1417. get => FoupList[0 % FoupList.Count].RfidReaderStatus;
  1418. set => FoupList[0 % FoupList.Count].RfidReaderStatus = value;
  1419. }
  1420. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderB)]
  1421. public DeviceState RFIDReader2Status
  1422. {
  1423. get => FoupList[1 % FoupList.Count].RfidReaderStatus;
  1424. set => FoupList[1 % FoupList.Count].RfidReaderStatus = value;
  1425. }
  1426. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderC)]
  1427. public DeviceState RFIDReader3Status
  1428. {
  1429. get => FoupList[2 % FoupList.Count].RfidReaderStatus;
  1430. set => FoupList[2 % FoupList.Count].RfidReaderStatus = value;
  1431. }
  1432. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderD)]
  1433. public DeviceState RFIDReader4Status
  1434. {
  1435. get => FoupList[3 % FoupList.Count].RfidReaderStatus;
  1436. set => FoupList[3 % FoupList.Count].RfidReaderStatus = value;
  1437. }
  1438. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderE)]
  1439. public DeviceState RFIDReader5Status
  1440. {
  1441. get => FoupList[4 % FoupList.Count].RfidReaderStatus;
  1442. set => FoupList[4 % FoupList.Count].RfidReaderStatus = value;
  1443. }
  1444. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderF)]
  1445. public DeviceState RFIDReader6Status
  1446. {
  1447. get => FoupList[5 % FoupList.Count].RfidReaderStatus;
  1448. set => FoupList[5 % FoupList.Count].RfidReaderStatus = value;
  1449. }
  1450. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderG)]
  1451. public DeviceState RFIDReader7Status
  1452. {
  1453. get => FoupList[6 % FoupList.Count].RfidReaderStatus;
  1454. set => FoupList[6 % FoupList.Count].RfidReaderStatus = value;
  1455. }
  1456. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderH)]
  1457. public DeviceState RFIDReader8Status
  1458. {
  1459. get => FoupList[7 % FoupList.Count].RfidReaderStatus;
  1460. set => FoupList[7 % FoupList.Count].RfidReaderStatus = value;
  1461. }
  1462. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderI)]
  1463. public DeviceState RFIDReader9Status
  1464. {
  1465. get => FoupList[8 % FoupList.Count].RfidReaderStatus;
  1466. set => FoupList[8 % FoupList.Count].RfidReaderStatus = value;
  1467. }
  1468. [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderJ)]
  1469. public DeviceState RFIDReader10Status
  1470. {
  1471. get => FoupList[9 % FoupList.Count].RfidReaderStatus;
  1472. set => FoupList[9 % FoupList.Count].RfidReaderStatus = value;
  1473. }
  1474. public WaferInfo LL1Wafer
  1475. {
  1476. get;
  1477. set;
  1478. }
  1479. public WaferInfo LL2Wafer
  1480. {
  1481. get;
  1482. set;
  1483. }
  1484. public WaferInfo LL3Wafer
  1485. {
  1486. get;
  1487. set;
  1488. }
  1489. public WaferInfo LL4Wafer
  1490. {
  1491. get;
  1492. set;
  1493. }
  1494. public WaferInfo LL5Wafer
  1495. {
  1496. get;
  1497. set;
  1498. }
  1499. public WaferInfo LL6Wafer
  1500. {
  1501. get;
  1502. set;
  1503. }
  1504. public WaferInfo LL7Wafer
  1505. {
  1506. get;
  1507. set;
  1508. }
  1509. public WaferInfo LL8Wafer
  1510. {
  1511. get;
  1512. set;
  1513. }
  1514. protected readonly ModuleName[] loadportSet;
  1515. protected Dictionary<string, object> labelSCs;
  1516. protected Dictionary<string, object> modeSCs;
  1517. protected readonly string[] labelSCIDs;
  1518. protected readonly string[] modeSCIDs;
  1519. protected readonly int foupCount;
  1520. public FoupListViewModelBase(string vmName, int foupCount) : base(vmName)
  1521. {
  1522. this.foupCount = foupCount;
  1523. loadportSet = new ModuleName[] { ModuleName.LP1, ModuleName.LP2, ModuleName.LP3, ModuleName.LP4, ModuleName.LP5, ModuleName.LP6, ModuleName.LP7, ModuleName.LP8, ModuleName.LP9, ModuleName.LP10 };
  1524. //labelSCIDs = new string[] {
  1525. // SorterCommon.ScPathName.LoadPort_LoadPort1CarrierLabel,
  1526. // SorterCommon.ScPathName.LoadPort_LoadPort2CarrierLabel,
  1527. // SorterCommon.ScPathName.LoadPort_LoadPort3CarrierLabel,
  1528. // SorterCommon.ScPathName.LoadPort_LoadPort4CarrierLabel,
  1529. // SorterCommon.ScPathName.LoadPort_LoadPort5CarrierLabel,
  1530. // SorterCommon.ScPathName.LoadPort_LoadPort6CarrierLabel,
  1531. // SorterCommon.ScPathName.LoadPort_LoadPort7CarrierLabel,
  1532. // SorterCommon.ScPathName.LoadPort_LoadPort8CarrierLabel,
  1533. // SorterCommon.ScPathName.LoadPort_LoadPort9CarrierLabel,
  1534. // SorterCommon.ScPathName.LoadPort_LoadPort10CarrierLabel
  1535. //};
  1536. //labelSCs = QueryDataClient.Instance.Service.PollConfig(labelSCIDs);
  1537. //modeSCIDs = new string[] {
  1538. // SorterCommon.ScPathName.LoadPort_LoadPort1CarrierMode,
  1539. // SorterCommon.ScPathName.LoadPort_LoadPort2CarrierMode,
  1540. // SorterCommon.ScPathName.LoadPort_LoadPort3CarrierMode,
  1541. // SorterCommon.ScPathName.LoadPort_LoadPort4CarrierMode,
  1542. // SorterCommon.ScPathName.LoadPort_LoadPort5CarrierMode,
  1543. // SorterCommon.ScPathName.LoadPort_LoadPort6CarrierMode,
  1544. // SorterCommon.ScPathName.LoadPort_LoadPort7CarrierMode,
  1545. // SorterCommon.ScPathName.LoadPort_LoadPort8CarrierMode,
  1546. // SorterCommon.ScPathName.LoadPort_LoadPort9CarrierMode,
  1547. // SorterCommon.ScPathName.LoadPort_LoadPort10CarrierMode,
  1548. //};
  1549. //modeSCs = QueryDataClient.Instance.Service.PollConfig(modeSCIDs);
  1550. InitFoupList();
  1551. LoadPortCommand = new DelegateCommand<DependencyObject>(DoLoadPortCmd, x =>
  1552. {
  1553. if (x != null)
  1554. {
  1555. var target = CommandHelper.GetTarget(x);
  1556. if (target != null)
  1557. {
  1558. var loadport = FoupList.Single(l => l.DeviceName == target.ToString());
  1559. string cmdname = CommandHelper.GetCommandName(x);
  1560. //if (cmdname == "Scan")
  1561. // return loadport.Present && loadport.Placement;
  1562. if (x is TextBox)
  1563. {
  1564. return loadport.Present && loadport.Placement;
  1565. }
  1566. else
  1567. {
  1568. return loadport.Present && loadport.Placement && (!IsAutoMode || !IsOnlineRemote) && loadport.IsCarrierEnabled;
  1569. }
  1570. }
  1571. }
  1572. return false;
  1573. });
  1574. var timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) };
  1575. timer.Start();
  1576. timer.Tick += TimerOnTick;
  1577. }
  1578. private void TimerOnTick(object sender, EventArgs e)
  1579. {
  1580. try
  1581. {
  1582. //labelSCs = QueryDataClient.Instance.Service.PollConfig(labelSCIDs);
  1583. //modeSCs = QueryDataClient.Instance.Service.PollConfig(modeSCIDs);
  1584. for (int i = 0; i < foupCount; i++)
  1585. {
  1586. FoupList[i].CarrierName = $"LP{i + 1}";
  1587. // string.IsNullOrEmpty((string)labelSCs[labelSCIDs[i]])
  1588. // ? "Carrier " + (i + 1)
  1589. // : (string)labelSCs[labelSCIDs[i]];
  1590. //FoupList[i].CarrierMode = (LoadPortCarrierMode)modeSCs[modeSCIDs[i]];
  1591. }
  1592. }
  1593. catch (Exception)
  1594. {
  1595. LOG.Write("Can't connect to RT");
  1596. }
  1597. }
  1598. protected virtual void InitFoupList()
  1599. {
  1600. FoupList = new ObservableCollection<FoupListItem>();
  1601. bool lp1Enable = !(bool)QueryDataClient.Instance.Service.GetConfig("LoadPort.LP1.Disable");
  1602. bool lp2Enable = !(bool)QueryDataClient.Instance.Service.GetConfig("LoadPort.LP2.Disable");
  1603. int foupCount = (lp1Enable ? 1 : 0) + (lp2Enable ? 1 : 0);
  1604. for (int i = 0; i < foupCount; i++)
  1605. {
  1606. var foupListItem = new FoupListItem
  1607. {
  1608. DeviceName = "LP" + (i + 1),
  1609. CarrierName = "LP" + (i + 1), //string.IsNullOrEmpty((string)labelSCs[labelSCIDs[i]]) ? "Carrier " + (i + 1) : (string)labelSCs[labelSCIDs[i]],
  1610. CarrierMode = LoadPortCarrierMode.Loader,// (LoadPortCarrierMode)modeSCs[modeSCIDs[i]],
  1611. Station = loadportSet[i]
  1612. };
  1613. FoupList.Add(foupListItem);
  1614. }
  1615. }
  1616. protected virtual WaferInfo[] UpdateWaferInfo(WaferInfo[] waferInfos)
  1617. {
  1618. return waferInfos;
  1619. }
  1620. protected virtual void DoLoadPortCmd(DependencyObject sender)
  1621. {
  1622. var command = CommandHelper.GetCommandItem(sender);
  1623. var lstParameter = new List<object>
  1624. {
  1625. command.Target
  1626. };
  1627. if (sender is TextBox)
  1628. { ((TextBox)sender).Text = ""; }
  1629. lstParameter.AddRange(command.Parameters);
  1630. InvokeClient.Instance.Service.DoOperation(command.CommandName, lstParameter.ToArray());
  1631. }
  1632. }
  1633. }