12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883 |
- using Aitex.Core.Common;
- using Aitex.Core.UI.MVVM;
- using Aitex.Core.Util;
- using Aitex.Sorter.Common;
- using Aitex.Sorter.UI.Controls;
- using Aitex.Sorter.UI.Controls.Common;
- using MECF.Framework.Common.OperationCenter;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Windows;
- using System.Windows.Input;
- using System.Windows.Threading;
- using Aitex.Core.RT.Log;
- using MECF.Framework.Common.DataCenter;
- using MECF.Framework.Common.Equipment;
- using System.Windows.Controls;
- namespace Aitex.Sorter.UI.ViewModel
- {
- public class FoupListViewModelBase : UIViewModelBase
- {
- public ObservableCollection<FoupListItem> FoupList { get; set; }
- public virtual void UpdateWafers(WaferInfo[] sourceWaferInfos, int index)
- {
- var wafers = UpdateWaferInfo(sourceWaferInfos.Reverse().ToArray());
- if (FoupList[index].WaferInfos == null)
- {
- FoupList[index].WaferInfos = wafers;
- }
- else
- {
- for (int i = 0; i < FoupList[index].WaferInfos.Length; i++)
- {
- FoupList[index].WaferInfos[i].Update(wafers[i]);
- }
- }
- }
- [Subscription(ParamName.IsAutoMode, SystemStateModule)]
- public bool IsAutoMode { get; set; }
- [Subscription("IsOnlineRemote", SystemStateModule)]
- public bool IsOnlineRemote { get; set; }
- [Subscription(ParamName.ModuleWaferList, "LP1")]
- public WaferInfo[] FoupAWaferInfo
- {
- get
- {
- return FoupList[0].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 0);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP2")]
- public WaferInfo[] FoupBWaferInfo
- {
- get
- {
- return FoupList[1].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 1);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP3")]
- public WaferInfo[] FoupCWaferInfo
- {
- get
- {
- return FoupList[2].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 2);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP4")]
- public WaferInfo[] FoupDWaferInfo
- {
- get
- {
- return FoupList[3].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 3);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP5")]
- public WaferInfo[] FoupEWaferInfo
- {
- get
- {
- return FoupList[4].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 4);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP6")]
- public WaferInfo[] FoupFWaferInfo
- {
- get
- {
- return FoupList[5].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 5);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP7")]
- public WaferInfo[] FoupGWaferInfo
- {
- get
- {
- return FoupList[6].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 6);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP8")]
- public WaferInfo[] FoupHWaferInfo
- {
- get
- {
- return FoupList[7].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 7);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP9")]
- public WaferInfo[] FoupIWaferInfo
- {
- get
- {
- return FoupList[8].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 8);
- }
- }
- [Subscription(ParamName.ModuleWaferList, "LP10")]
- public WaferInfo[] FoupJWaferInfo
- {
- get
- {
- return FoupList[9].WaferInfos;
- }
- set
- {
- UpdateWafers(value, 9);
- }
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP1)]
- public string FoupID1
- {
- get
- {
- return FoupList[0].FoupID;
- }
- set
- {
- FoupList[0].FoupID = value;
- }
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP2)]
- public string FoupID2
- {
- get
- {
- return FoupList[1].FoupID;
- }
- set
- {
- FoupList[1].FoupID = value;
- }
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP3)]
- public string FoupID3
- {
- get
- {
- return FoupList[2].FoupID;
- }
- set
- {
- FoupList[2].FoupID = value;
- }
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP4)]
- public string FoupID4
- {
- get
- {
- return FoupList[3].FoupID;
- }
- set
- {
- FoupList[3].FoupID = value;
- }
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP5)]
- public string FoupID5
- {
- get
- {
- return FoupList[4].FoupID;
- }
- set
- {
- FoupList[4].FoupID = value;
- }
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP6)]
- public string FoupID6
- {
- get
- {
- return FoupList[5].FoupID;
- }
- set
- {
- FoupList[5].FoupID = value;
- }
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP7)]
- public string FoupID7
- {
- get
- {
- return FoupList[6].FoupID;
- }
- set
- {
- FoupList[6].FoupID = value;
- }
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP8)]
- public string FoupID8
- {
- get => FoupList[7].FoupID;
- set => FoupList[7].FoupID = value;
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP9)]
- public string FoupID9
- {
- get => FoupList[8].FoupID;
- set => FoupList[8].FoupID = value;
- }
- [Subscription(ParamName.CarrierId, DeviceName.LP10)]
- public string FoupID10
- {
- get => FoupList[9].FoupID;
- set => FoupList[9].FoupID = value;
- }
- [Subscription("IsWaferProtrude", DeviceName.LP1)]
- public bool IsWaferProtrude1
- {
- get => FoupList[0].IsWaferProtrude;
- set => FoupList[0].IsWaferProtrude = value;
- }
- [Subscription("IsWaferProtrude", DeviceName.LP2)]
- public bool IsWaferProtrude2
- {
- get => FoupList[1].IsWaferProtrude;
- set => FoupList[1].IsWaferProtrude = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP1)]
- public bool Present1
- {
- get => FoupList[0].Present;
- set => FoupList[0].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP2)]
- public bool Present2
- {
- get => FoupList[1].Present;
- set => FoupList[1].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP3)]
- public bool Present3
- {
- get => FoupList[2].Present;
- set => FoupList[2].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP4)]
- public bool Present4
- {
- get => FoupList[3].Present;
- set => FoupList[3].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP5)]
- public bool Present5
- {
- get => FoupList[4].Present;
- set => FoupList[4].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP6)]
- public bool Present6
- {
- get => FoupList[5].Present;
- set => FoupList[5].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP7)]
- public bool Present7
- {
- get => FoupList[6].Present;
- set => FoupList[6].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP8)]
- public bool Present8
- {
- get => FoupList[7].Present;
- set => FoupList[7].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP9)]
- public bool Present9
- {
- get => FoupList[8].Present;
- set => FoupList[8].Present = value;
- }
- [Subscription(ParamName.IsPresent, DeviceName.LP10)]
- public bool Present10
- {
- get => FoupList[9].Present;
- set => FoupList[9].Present = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP1)]
- public bool Placement1
- {
- get => FoupList[0].Placement;
- set => FoupList[0].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP2)]
- public bool Placement2
- {
- get => FoupList[1].Placement;
- set => FoupList[1].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP3)]
- public bool Placement3
- {
- get => FoupList[2].Placement;
- set => FoupList[2].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP4)]
- public bool Placement4
- {
- get => FoupList[3].Placement;
- set => FoupList[3].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP5)]
- public bool Placement5
- {
- get => FoupList[4].Placement;
- set => FoupList[4].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP6)]
- public bool Placement6
- {
- get => FoupList[5].Placement;
- set => FoupList[5].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP7)]
- public bool Placement7
- {
- get => FoupList[6].Placement;
- set => FoupList[6].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP8)]
- public bool Placement8
- {
- get => FoupList[7].Placement;
- set => FoupList[7].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP9)]
- public bool Placement9
- {
- get => FoupList[8].Placement;
- set => FoupList[8].Placement = value;
- }
- [Subscription(ParamName.IsPlaced, DeviceName.LP10)]
- public bool Placement10
- {
- get => FoupList[9].Placement;
- set => FoupList[9].Placement = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP1)]
- public bool IsCarrierEnabled1
- {
- get => FoupList[0].IsCarrierEnabled;
- set => FoupList[0].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP2)]
- public bool IsCarrierEnabled2
- {
- get => FoupList[1].IsCarrierEnabled;
- set => FoupList[1].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP3)]
- public bool IsCarrierEnabled3
- {
- get => FoupList[2].IsCarrierEnabled;
- set => FoupList[2].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP4)]
- public bool IsCarrierEnabled4
- {
- get => FoupList[3].IsCarrierEnabled;
- set => FoupList[3].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP5)]
- public bool IsCarrierEnabled5
- {
- get => FoupList[4].IsCarrierEnabled;
- set => FoupList[4].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP6)]
- public bool IsCarrierEnabled6
- {
- get => FoupList[5].IsCarrierEnabled;
- set => FoupList[5].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP7)]
- public bool IsCarrierEnabled7
- {
- get => FoupList[6].IsCarrierEnabled;
- set => FoupList[6].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP8)]
- public bool IsCarrierEnabled8
- {
- get => FoupList[7].IsCarrierEnabled;
- set => FoupList[7].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP9)]
- public bool IsCarrierEnabled9
- {
- get => FoupList[8].IsCarrierEnabled;
- set => FoupList[8].IsCarrierEnabled = value;
- }
- [Subscription("IsCarrierEnabled", DeviceName.LP10)]
- public bool IsCarrierEnabled10
- {
- get => FoupList[9].IsCarrierEnabled;
- set => FoupList[9].IsCarrierEnabled = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LoadportA)]
- public string LoadportAState
- {
- get
- {
- return FoupList[0].LoadportState;
- }
- set
- {
- FoupList[0].LoadportState = value;
- }
- }
- [Subscription(ParamName.LoadportState, DeviceName.LoadportB)]
- public string LoadportBState
- {
- get
- {
- return FoupList[1].LoadportState;
- }
- set
- {
- FoupList[1].LoadportState = value;
- }
- }
- [Subscription(ParamName.LoadportState, DeviceName.LoadportC)]
- public string LoadportCState
- {
- get
- {
- return FoupList[2].LoadportState;
- }
- set
- {
- FoupList[2].LoadportState = value;
- }
- }
- [Subscription(ParamName.LoadportState, DeviceName.LoadportD)]
- public string LoadportDState
- {
- get
- {
- return FoupList[3].LoadportState;
- }
- set
- {
- FoupList[3].LoadportState = value;
- }
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP1)]
- public LoadportCassetteState CassetteState1
- {
- get => FoupList[0].CassetteState;
- set => FoupList[0].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP2)]
- public LoadportCassetteState CassetteState2
- {
- get => FoupList[1].CassetteState;
- set => FoupList[1].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP3)]
- public LoadportCassetteState CassetteState3
- {
- get => FoupList[2].CassetteState;
- set => FoupList[2].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP4)]
- public LoadportCassetteState CassetteState4
- {
- get => FoupList[3].CassetteState;
- set => FoupList[3].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP5)]
- public LoadportCassetteState CassetteState5
- {
- get => FoupList[4].CassetteState;
- set => FoupList[4].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP6)]
- public LoadportCassetteState CassetteState6
- {
- get => FoupList[5].CassetteState;
- set => FoupList[5].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP7)]
- public LoadportCassetteState CassetteState7
- {
- get => FoupList[6].CassetteState;
- set => FoupList[6].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP8)]
- public LoadportCassetteState CassetteState8
- {
- get => FoupList[7].CassetteState;
- set => FoupList[7].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP9)]
- public LoadportCassetteState CassetteState9
- {
- get => FoupList[8].CassetteState;
- set => FoupList[8].CassetteState = value;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP10)]
- public LoadportCassetteState CassetteState10
- {
- get => FoupList[9].CassetteState;
- set => FoupList[9].CassetteState = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP1)]
- public IndicatorState IndicatiorLoad1
- {
- get => FoupList[0].IndicatiorLoad;
- set => FoupList[0].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP2)]
- public IndicatorState IndicatiorLoad2
- {
- get => FoupList[1].IndicatiorLoad;
- set => FoupList[1].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP3)]
- public IndicatorState IndicatiorLoad3
- {
- get => FoupList[2].IndicatiorLoad;
- set => FoupList[2].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP4)]
- public IndicatorState IndicatiorLoad4
- {
- get => FoupList[3].IndicatiorLoad;
- set => FoupList[3].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP5)]
- public IndicatorState IndicatiorLoad5
- {
- get => FoupList[4].IndicatiorLoad;
- set => FoupList[4].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP6)]
- public IndicatorState IndicatiorLoad6
- {
- get => FoupList[5].IndicatiorLoad;
- set => FoupList[5].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP7)]
- public IndicatorState IndicatiorLoad7
- {
- get => FoupList[6].IndicatiorLoad;
- set => FoupList[6].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP8)]
- public IndicatorState IndicatiorLoad8
- {
- get => FoupList[7].IndicatiorLoad;
- set => FoupList[7].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP9)]
- public IndicatorState IndicatiorLoad9
- {
- get => FoupList[8].IndicatiorLoad;
- set => FoupList[8].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorLoad, DeviceName.LP10)]
- public IndicatorState IndicatiorLoad10
- {
- get => FoupList[9].IndicatiorLoad;
- set => FoupList[9].IndicatiorLoad = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP1)]
- public IndicatorState IndicatiorUnload1
- {
- get => FoupList[0].IndicatiorUnload;
- set => FoupList[0].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP2)]
- public IndicatorState IndicatiorUnload2
- {
- get => FoupList[1].IndicatiorUnload;
- set => FoupList[1].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP3)]
- public IndicatorState IndicatiorUnload3
- {
- get => FoupList[2].IndicatiorUnload;
- set => FoupList[2].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP4)]
- public IndicatorState IndicatiorUnload4
- {
- get => FoupList[3].IndicatiorUnload;
- set => FoupList[3].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP5)]
- public IndicatorState IndicatiorUnload5
- {
- get => FoupList[4].IndicatiorUnload;
- set => FoupList[4].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP6)]
- public IndicatorState IndicatiorUnload6
- {
- get => FoupList[5].IndicatiorUnload;
- set => FoupList[5].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP7)]
- public IndicatorState IndicatiorUnload7
- {
- get => FoupList[6].IndicatiorUnload;
- set => FoupList[6].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP8)]
- public IndicatorState IndicatiorUnload8
- {
- get => FoupList[7].IndicatiorUnload;
- set => FoupList[7].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP9)]
- public IndicatorState IndicatiorUnload9
- {
- get => FoupList[8].IndicatiorUnload;
- set => FoupList[8].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorUnload, DeviceName.LP10)]
- public IndicatorState IndicatiorUnload10
- {
- get => FoupList[9].IndicatiorUnload;
- set => FoupList[9].IndicatiorUnload = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP1)]
- public IndicatorState IndicatiorPresence1
- {
- get => FoupList[0].IndicatiorPresence;
- set => FoupList[0].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP2)]
- public IndicatorState IndicatiorPresence2
- {
- get => FoupList[1].IndicatiorPresence;
- set => FoupList[1].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP3)]
- public IndicatorState IndicatiorPresence3
- {
- get => FoupList[2].IndicatiorPresence;
- set => FoupList[2].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP4)]
- public IndicatorState IndicatiorPresence4
- {
- get => FoupList[3].IndicatiorPresence;
- set => FoupList[3].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP5)]
- public IndicatorState IndicatiorPresence5
- {
- get => FoupList[4].IndicatiorPresence;
- set => FoupList[4].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP6)]
- public IndicatorState IndicatiorPresence6
- {
- get => FoupList[5].IndicatiorPresence;
- set => FoupList[5].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP7)]
- public IndicatorState IndicatiorPresence7
- {
- get => FoupList[6].IndicatiorPresence;
- set => FoupList[6].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP8)]
- public IndicatorState IndicatiorPresence8
- {
- get => FoupList[7].IndicatiorPresence;
- set => FoupList[7].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP9)]
- public IndicatorState IndicatiorPresence9
- {
- get => FoupList[8].IndicatiorPresence;
- set => FoupList[8].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPresence, DeviceName.LP10)]
- public IndicatorState IndicatiorPresence10
- {
- get => FoupList[9].IndicatiorPresence;
- set => FoupList[9].IndicatiorPresence = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP1)]
- public IndicatorState IndicatiorPlacement1
- {
- get => FoupList[0].IndicatiorPlacement;
- set => FoupList[0].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP2)]
- public IndicatorState IndicatiorPlacement2
- {
- get => FoupList[1].IndicatiorPlacement;
- set => FoupList[1].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP3)]
- public IndicatorState IndicatiorPlacement3
- {
- get => FoupList[2].IndicatiorPlacement;
- set => FoupList[2].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP4)]
- public IndicatorState IndicatiorPlacement4
- {
- get => FoupList[3].IndicatiorPlacement;
- set => FoupList[3].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP5)]
- public IndicatorState IndicatiorPlacement5
- {
- get => FoupList[4].IndicatiorPlacement;
- set => FoupList[4].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP6)]
- public IndicatorState IndicatiorPlacement6
- {
- get => FoupList[5].IndicatiorPlacement;
- set => FoupList[5].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP7)]
- public IndicatorState IndicatiorPlacement7
- {
- get => FoupList[6].IndicatiorPlacement;
- set => FoupList[6].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP8)]
- public IndicatorState IndicatiorPlacement8
- {
- get => FoupList[7].IndicatiorPlacement;
- set => FoupList[7].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP9)]
- public IndicatorState IndicatiorPlacement9
- {
- get => FoupList[8].IndicatiorPlacement;
- set => FoupList[8].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorPlacement, DeviceName.LP10)]
- public IndicatorState IndicatiorPlacement10
- {
- get => FoupList[9].IndicatiorPlacement;
- set => FoupList[9].IndicatiorPlacement = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP1)]
- public IndicatorState IndicatiorOpAccess1
- {
- get => FoupList[0].IndicatiorOpAccess;
- set => FoupList[0].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP2)]
- public IndicatorState IndicatiorOpAccess2
- {
- get => FoupList[1].IndicatiorOpAccess;
- set => FoupList[1].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP3)]
- public IndicatorState IndicatiorOpAccess3
- {
- get => FoupList[2].IndicatiorOpAccess;
- set => FoupList[2].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP4)]
- public IndicatorState IndicatiorOpAccess4
- {
- get => FoupList[3].IndicatiorOpAccess;
- set => FoupList[3].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP5)]
- public IndicatorState IndicatiorOpAccess5
- {
- get => FoupList[4].IndicatiorOpAccess;
- set => FoupList[4].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP6)]
- public IndicatorState IndicatiorOpAccess6
- {
- get => FoupList[5].IndicatiorOpAccess;
- set => FoupList[5].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP7)]
- public IndicatorState IndicatiorOpAccess7
- {
- get => FoupList[6].IndicatiorOpAccess;
- set => FoupList[6].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP8)]
- public IndicatorState IndicatiorOpAccess8
- {
- get => FoupList[7].IndicatiorOpAccess;
- set => FoupList[7].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP9)]
- public IndicatorState IndicatiorOpAccess9
- {
- get => FoupList[8].IndicatiorOpAccess;
- set => FoupList[8].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorOpAccess, DeviceName.LP10)]
- public IndicatorState IndicatiorOpAccess10
- {
- get => FoupList[9].IndicatiorOpAccess;
- set => FoupList[9].IndicatiorOpAccess = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP1)]
- public IndicatorState IndicatiorAlarm1
- {
- get => FoupList[0].IndicatiorAlarm;
- set => FoupList[0].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP2)]
- public IndicatorState IndicatiorAlarm2
- {
- get => FoupList[1].IndicatiorAlarm;
- set => FoupList[1].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP3)]
- public IndicatorState IndicatiorAlarm3
- {
- get => FoupList[2].IndicatiorAlarm;
- set => FoupList[2].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP4)]
- public IndicatorState IndicatiorAlarm4
- {
- get => FoupList[3].IndicatiorAlarm;
- set => FoupList[3].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP5)]
- public IndicatorState IndicatiorAlarm5
- {
- get => FoupList[4].IndicatiorAlarm;
- set => FoupList[4].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP6)]
- public IndicatorState IndicatiorAlarm6
- {
- get => FoupList[5].IndicatiorAlarm;
- set => FoupList[5].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP7)]
- public IndicatorState IndicatiorAlarm7
- {
- get => FoupList[6].IndicatiorAlarm;
- set => FoupList[6].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP8)]
- public IndicatorState IndicatiorAlarm8
- {
- get => FoupList[7].IndicatiorAlarm;
- set => FoupList[7].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP9)]
- public IndicatorState IndicatiorAlarm9
- {
- get => FoupList[8].IndicatiorAlarm;
- set => FoupList[8].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAlarm, DeviceName.LP10)]
- public IndicatorState IndicatiorAlarm10
- {
- get => FoupList[9].IndicatiorAlarm;
- set => FoupList[9].IndicatiorAlarm = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP1)]
- public IndicatorState IndicatiorAccessAuto1
- {
- get => FoupList[0].IndicatiorAccessAuto;
- set => FoupList[0].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP2)]
- public IndicatorState IndicatiorAccessAuto2
- {
- get => FoupList[1].IndicatiorAccessAuto;
- set => FoupList[1].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP3)]
- public IndicatorState IndicatiorAccessAuto3
- {
- get => FoupList[2].IndicatiorAccessAuto;
- set => FoupList[2].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP4)]
- public IndicatorState IndicatiorAccessAuto4
- {
- get => FoupList[3].IndicatiorAccessAuto;
- set => FoupList[3].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP5)]
- public IndicatorState IndicatiorAccessAuto5
- {
- get => FoupList[4].IndicatiorAccessAuto;
- set => FoupList[4].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP6)]
- public IndicatorState IndicatiorAccessAuto6
- {
- get => FoupList[5].IndicatiorAccessAuto;
- set => FoupList[5].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP7)]
- public IndicatorState IndicatiorAccessAuto7
- {
- get => FoupList[6].IndicatiorAccessAuto;
- set => FoupList[6].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP8)]
- public IndicatorState IndicatiorAccessAuto8
- {
- get => FoupList[7].IndicatiorAccessAuto;
- set => FoupList[7].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP9)]
- public IndicatorState IndicatiorAccessAuto9
- {
- get => FoupList[8].IndicatiorAccessAuto;
- set => FoupList[8].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessAuto, DeviceName.LP10)]
- public IndicatorState IndicatiorAccessAuto10
- {
- get => FoupList[9].IndicatiorAccessAuto;
- set => FoupList[9].IndicatiorAccessAuto = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP1)]
- public IndicatorState IndicatiorAccessManual1
- {
- get => FoupList[0].IndicatiorAccessManual;
- set => FoupList[0].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP2)]
- public IndicatorState IndicatiorAccessManual2
- {
- get => FoupList[1].IndicatiorAccessManual;
- set => FoupList[1].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP3)]
- public IndicatorState IndicatiorAccessManual3
- {
- get => FoupList[2].IndicatiorAccessManual;
- set => FoupList[2].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP4)]
- public IndicatorState IndicatiorAccessManual4
- {
- get => FoupList[3].IndicatiorAccessManual;
- set => FoupList[3].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP5)]
- public IndicatorState IndicatiorAccessManual5
- {
- get => FoupList[4].IndicatiorAccessManual;
- set => FoupList[4].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP6)]
- public IndicatorState IndicatiorAccessManual6
- {
- get => FoupList[5].IndicatiorAccessManual;
- set => FoupList[5].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP7)]
- public IndicatorState IndicatiorAccessManual7
- {
- get => FoupList[6].IndicatiorAccessManual;
- set => FoupList[6].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP8)]
- public IndicatorState IndicatiorAccessManual8
- {
- get => FoupList[7].IndicatiorAccessManual;
- set => FoupList[7].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP9)]
- public IndicatorState IndicatiorAccessManual9
- {
- get => FoupList[8].IndicatiorAccessManual;
- set => FoupList[8].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.IndicatiorAccessManual, DeviceName.LP10)]
- public IndicatorState IndicatiorAccessManual10
- {
- get => FoupList[9].IndicatiorAccessManual;
- set => FoupList[9].IndicatiorAccessManual = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP1)]
- public string Status1
- {
- get => FoupList[0].Status;
- set => FoupList[0].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP2)]
- public string Status2
- {
- get => FoupList[1].Status;
- set => FoupList[1].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP3)]
- public string Status3
- {
- get => FoupList[2].Status;
- set => FoupList[2].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP4)]
- public string Status4
- {
- get => FoupList[3].Status;
- set => FoupList[3].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP5)]
- public string Status5
- {
- get => FoupList[4].Status;
- set => FoupList[4].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP6)]
- public string Status6
- {
- get => FoupList[5].Status;
- set => FoupList[5].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP7)]
- public string Status7
- {
- get => FoupList[6].Status;
- set => FoupList[6].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP8)]
- public string Status8
- {
- get => FoupList[7].Status;
- set => FoupList[7].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP9)]
- public string Status9
- {
- get => FoupList[8].Status;
- set => FoupList[8].Status = value;
- }
- [Subscription(ParamName.LoadportState, DeviceName.LP10)]
- public string Status10
- {
- get => FoupList[9].Status;
- set => FoupList[9].Status = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP1)]
- public FoupClampState ClampState1
- {
- get => FoupList[0].ClampState;
- set => FoupList[0].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP2)]
- public FoupClampState ClampState2
- {
- get => FoupList[1].ClampState;
- set => FoupList[1].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP3)]
- public FoupClampState ClampState3
- {
- get => FoupList[2].ClampState;
- set => FoupList[2].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP4)]
- public FoupClampState ClampState4
- {
- get => FoupList[3].ClampState;
- set => FoupList[3].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP5)]
- public FoupClampState ClampState5
- {
- get => FoupList[4].ClampState;
- set => FoupList[4].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP6)]
- public FoupClampState ClampState6
- {
- get => FoupList[5].ClampState;
- set => FoupList[5].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP7)]
- public FoupClampState ClampState7
- {
- get => FoupList[6].ClampState;
- set => FoupList[6].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP8)]
- public FoupClampState ClampState8
- {
- get => FoupList[7].ClampState;
- set => FoupList[7].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP9)]
- public FoupClampState ClampState9
- {
- get => FoupList[8].ClampState;
- set => FoupList[8].ClampState = value;
- }
- [Subscription(ParamName.FoupClampState, DeviceName.LP10)]
- public FoupClampState ClampState10
- {
- get => FoupList[9].ClampState;
- set => FoupList[9].ClampState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP1)]
- public FoupDoorState DoorState1
- {
- get => FoupList[0].DoorState;
- set => FoupList[0].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP2)]
- public FoupDoorState DoorState2
- {
- get => FoupList[1].DoorState;
- set => FoupList[1].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP3)]
- public FoupDoorState DoorState3
- {
- get => FoupList[2].DoorState;
- set => FoupList[2].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP4)]
- public FoupDoorState DoorState4
- {
- get => FoupList[3].DoorState;
- set => FoupList[3].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP5)]
- public FoupDoorState DoorState5
- {
- get => FoupList[4].DoorState;
- set => FoupList[4].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP6)]
- public FoupDoorState DoorState6
- {
- get => FoupList[5].DoorState;
- set => FoupList[5].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP7)]
- public FoupDoorState DoorState7
- {
- get => FoupList[6].DoorState;
- set => FoupList[6].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP8)]
- public FoupDoorState DoorState8
- {
- get => FoupList[7].DoorState;
- set => FoupList[7].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP9)]
- public FoupDoorState DoorState9
- {
- get => FoupList[8].DoorState;
- set => FoupList[8].DoorState = value;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP10)]
- public FoupDoorState DoorState10
- {
- get => FoupList[9].DoorState;
- set => FoupList[9].DoorState = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP1)]
- public int ValidSlotsNumber1
- {
- get => FoupList[0].SlotCount;
- set => FoupList[0].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP2)]
- public int ValidSlotsNumber2
- {
- get => FoupList[1].SlotCount;
- set => FoupList[1].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP3)]
- public int ValidSlotsNumber3
- {
- get => FoupList[2].SlotCount;
- set => FoupList[2].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP4)]
- public int ValidSlotsNumber4
- {
- get => FoupList[3].SlotCount;
- set => FoupList[3].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP5)]
- public int ValidSlotsNumber5
- {
- get => FoupList[4].SlotCount;
- set => FoupList[4].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP6)]
- public int ValidSlotsNumber6
- {
- get => FoupList[5].SlotCount;
- set => FoupList[5].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP7)]
- public int ValidSlotsNumber7
- {
- get => FoupList[6].SlotCount;
- set => FoupList[6].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP8)]
- public int ValidSlotsNumber8
- {
- get => FoupList[7].SlotCount;
- set => FoupList[7].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP9)]
- public int ValidSlotsNumber9
- {
- get => FoupList[8].SlotCount;
- set => FoupList[8].SlotCount = value;
- }
- [Subscription("ValidSlotsNumber", DeviceName.LP10)]
- public int ValidSlotsNumber10
- {
- get => FoupList[9].SlotCount;
- set => FoupList[9].SlotCount = value;
- }
- public ICommand LoadPortCommand
- {
- get; set;
- }
- private WaferInfo[] bufferWafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.Buffer)]
- public WaferInfo[] BufferWafers
- {
- get
- {
- return bufferWafers?.Reverse().ToArray();
- }
- set
- {
- bufferWafers = value;
- }
- }
- public WaferInfo[] ll1wafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL1)]
- public WaferInfo[] LL1Wafers
- {
- get
- {
- return ll1wafers;
- }
- set
- {
- ll1wafers = value;
- LL1Wafer = ll1wafers?[0];
- }
- }
- public WaferInfo[] ll2wafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL2)]
- public WaferInfo[] LL2Wafers
- {
- get
- {
- return ll2wafers;
- }
- set
- {
- ll2wafers = value;
- LL2Wafer = ll2wafers?[0];
- }
- }
- public WaferInfo[] ll3wafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL3)]
- public WaferInfo[] LL3Wafers
- {
- get
- {
- return ll3wafers;
- }
- set
- {
- ll3wafers = value;
- LL3Wafer = ll3wafers?[0];
- }
- }
- public WaferInfo[] ll4wafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL4)]
- public WaferInfo[] LL4Wafers
- {
- get
- {
- return ll4wafers;
- }
- set
- {
- ll4wafers = value;
- LL4Wafer = ll4wafers?[0];
- }
- }
- public WaferInfo[] ll5wafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL5)]
- public WaferInfo[] LL5Wafers
- {
- get
- {
- return ll5wafers;
- }
- set
- {
- ll5wafers = value;
- LL5Wafer = ll5wafers?[0];
- }
- }
- public WaferInfo[] ll6wafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL6)]
- public WaferInfo[] LL6Wafers
- {
- get
- {
- return ll6wafers;
- }
- set
- {
- ll6wafers = value;
- LL6Wafer = ll6wafers?[0];
- }
- }
- public WaferInfo[] ll7wafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL7)]
- public WaferInfo[] LL7Wafers
- {
- get
- {
- return ll7wafers;
- }
- set
- {
- ll7wafers = value;
- LL7Wafer = ll7wafers?[0];
- }
- }
- public WaferInfo[] ll8wafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL8)]
- public WaferInfo[] LL8Wafers
- {
- get
- {
- return ll8wafers;
- }
- set
- {
- ll8wafers = value;
- LL8Wafer = ll8wafers?[0];
- }
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderA)]
- public DeviceState RFIDReader1Status
- {
- get => FoupList[0 % FoupList.Count].RfidReaderStatus;
- set => FoupList[0 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderB)]
- public DeviceState RFIDReader2Status
- {
- get => FoupList[1 % FoupList.Count].RfidReaderStatus;
- set => FoupList[1 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderC)]
- public DeviceState RFIDReader3Status
- {
- get => FoupList[2 % FoupList.Count].RfidReaderStatus;
- set => FoupList[2 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderD)]
- public DeviceState RFIDReader4Status
- {
- get => FoupList[3 % FoupList.Count].RfidReaderStatus;
- set => FoupList[3 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderE)]
- public DeviceState RFIDReader5Status
- {
- get => FoupList[4 % FoupList.Count].RfidReaderStatus;
- set => FoupList[4 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderF)]
- public DeviceState RFIDReader6Status
- {
- get => FoupList[5 % FoupList.Count].RfidReaderStatus;
- set => FoupList[5 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderG)]
- public DeviceState RFIDReader7Status
- {
- get => FoupList[6 % FoupList.Count].RfidReaderStatus;
- set => FoupList[6 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderH)]
- public DeviceState RFIDReader8Status
- {
- get => FoupList[7 % FoupList.Count].RfidReaderStatus;
- set => FoupList[7 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderI)]
- public DeviceState RFIDReader9Status
- {
- get => FoupList[8 % FoupList.Count].RfidReaderStatus;
- set => FoupList[8 % FoupList.Count].RfidReaderStatus = value;
- }
- [Subscription(ParamName.RIDReaderState, DeviceName.RFIDReaderJ)]
- public DeviceState RFIDReader10Status
- {
- get => FoupList[9 % FoupList.Count].RfidReaderStatus;
- set => FoupList[9 % FoupList.Count].RfidReaderStatus = value;
- }
- public WaferInfo LL1Wafer
- {
- get;
- set;
- }
- public WaferInfo LL2Wafer
- {
- get;
- set;
- }
- public WaferInfo LL3Wafer
- {
- get;
- set;
- }
- public WaferInfo LL4Wafer
- {
- get;
- set;
- }
- public WaferInfo LL5Wafer
- {
- get;
- set;
- }
- public WaferInfo LL6Wafer
- {
- get;
- set;
- }
- public WaferInfo LL7Wafer
- {
- get;
- set;
- }
- public WaferInfo LL8Wafer
- {
- get;
- set;
- }
- protected readonly ModuleName[] loadportSet;
- protected Dictionary<string, object> labelSCs;
- protected Dictionary<string, object> modeSCs;
- protected readonly string[] labelSCIDs;
- protected readonly string[] modeSCIDs;
- protected readonly int foupCount;
- public FoupListViewModelBase(string vmName, int foupCount) : base(vmName)
- {
- this.foupCount = foupCount;
- loadportSet = new ModuleName[] { ModuleName.LP1, ModuleName.LP2, ModuleName.LP3, ModuleName.LP4, ModuleName.LP5, ModuleName.LP6, ModuleName.LP7, ModuleName.LP8, ModuleName.LP9, ModuleName.LP10 };
- //labelSCIDs = new string[] {
- // SorterCommon.ScPathName.LoadPort_LoadPort1CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort2CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort3CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort4CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort5CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort6CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort7CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort8CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort9CarrierLabel,
- // SorterCommon.ScPathName.LoadPort_LoadPort10CarrierLabel
- //};
- //labelSCs = QueryDataClient.Instance.Service.PollConfig(labelSCIDs);
- //modeSCIDs = new string[] {
- // SorterCommon.ScPathName.LoadPort_LoadPort1CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort2CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort3CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort4CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort5CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort6CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort7CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort8CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort9CarrierMode,
- // SorterCommon.ScPathName.LoadPort_LoadPort10CarrierMode,
- //};
- //modeSCs = QueryDataClient.Instance.Service.PollConfig(modeSCIDs);
- InitFoupList();
- LoadPortCommand = new DelegateCommand<DependencyObject>(DoLoadPortCmd, x =>
- {
- if (x != null)
- {
- var target = CommandHelper.GetTarget(x);
- if (target != null)
- {
- var loadport = FoupList.Single(l => l.DeviceName == target.ToString());
- string cmdname = CommandHelper.GetCommandName(x);
- //if (cmdname == "Scan")
- // return loadport.Present && loadport.Placement;
- if (x is TextBox)
- {
- return loadport.Present && loadport.Placement;
- }
- else
- {
- return loadport.Present && loadport.Placement && (!IsAutoMode || !IsOnlineRemote) && loadport.IsCarrierEnabled;
- }
- }
- }
- return false;
- });
- var timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) };
- timer.Start();
- timer.Tick += TimerOnTick;
- }
- private void TimerOnTick(object sender, EventArgs e)
- {
- try
- {
- //labelSCs = QueryDataClient.Instance.Service.PollConfig(labelSCIDs);
- //modeSCs = QueryDataClient.Instance.Service.PollConfig(modeSCIDs);
- for (int i = 0; i < foupCount; i++)
- {
- FoupList[i].CarrierName = $"LP{i + 1}";
- // string.IsNullOrEmpty((string)labelSCs[labelSCIDs[i]])
- // ? "Carrier " + (i + 1)
- // : (string)labelSCs[labelSCIDs[i]];
- //FoupList[i].CarrierMode = (LoadPortCarrierMode)modeSCs[modeSCIDs[i]];
- }
- }
- catch (Exception)
- {
- LOG.Write("Can't connect to RT");
- }
- }
- protected virtual void InitFoupList()
- {
- FoupList = new ObservableCollection<FoupListItem>();
- bool lp1Enable = !(bool)QueryDataClient.Instance.Service.GetConfig("LoadPort.LP1.Disable");
- bool lp2Enable = !(bool)QueryDataClient.Instance.Service.GetConfig("LoadPort.LP2.Disable");
- int foupCount = (lp1Enable ? 1 : 0) + (lp2Enable ? 1 : 0);
- for (int i = 0; i < foupCount; i++)
- {
- var foupListItem = new FoupListItem
- {
- DeviceName = "LP" + (i + 1),
- CarrierName = "LP" + (i + 1), //string.IsNullOrEmpty((string)labelSCs[labelSCIDs[i]]) ? "Carrier " + (i + 1) : (string)labelSCs[labelSCIDs[i]],
- CarrierMode = LoadPortCarrierMode.Loader,// (LoadPortCarrierMode)modeSCs[modeSCIDs[i]],
- Station = loadportSet[i]
- };
- FoupList.Add(foupListItem);
- }
- }
- protected virtual WaferInfo[] UpdateWaferInfo(WaferInfo[] waferInfos)
- {
- return waferInfos;
- }
- protected virtual void DoLoadPortCmd(DependencyObject sender)
- {
- var command = CommandHelper.GetCommandItem(sender);
- var lstParameter = new List<object>
- {
- command.Target
- };
- if (sender is TextBox)
- { ((TextBox)sender).Text = ""; }
- lstParameter.AddRange(command.Parameters);
- InvokeClient.Instance.Service.DoOperation(command.CommandName, lstParameter.ToArray());
- }
- }
- }
|