EFEMBase.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. using Aitex.Core.Common;
  2. using Aitex.Core.UI.MVVM;
  3. using Aitex.Core.Util;
  4. using Aitex.Sorter.Common;
  5. using MECF.Framework.Common.OperationCenter;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Input;
  12. using MECF.Framework.Common.Equipment;
  13. namespace Aitex.Sorter.UI.Controls
  14. {
  15. public class EFEMBase : ViewModelControl
  16. {
  17. [Subscription(ParamName.CassetteState, DeviceName.LP1)]
  18. public LoadportCassetteState LPACassetteState
  19. {
  20. get;
  21. set;
  22. }
  23. [Subscription(ParamName.FoupDoorState, DeviceName.LP1)]
  24. public FoupDoorState LPADoorState
  25. {
  26. get;
  27. set;
  28. }
  29. [Subscription(ParamName.CassetteState, DeviceName.LP2)]
  30. public LoadportCassetteState LPBCassetteState
  31. {
  32. get;
  33. set;
  34. }
  35. [Subscription(ParamName.FoupDoorState, DeviceName.LP2)]
  36. public FoupDoorState LPBDoorState
  37. {
  38. get;
  39. set;
  40. }
  41. [Subscription(ParamName.CassetteState, DeviceName.LP3)]
  42. public LoadportCassetteState LPCCassetteState
  43. {
  44. get;
  45. set;
  46. }
  47. [Subscription(ParamName.FoupDoorState, DeviceName.LP3)]
  48. public FoupDoorState LPCDoorState
  49. {
  50. get;
  51. set;
  52. }
  53. [Subscription(ParamName.CassetteState, DeviceName.LP4)]
  54. public LoadportCassetteState LPDCassetteState
  55. {
  56. get;
  57. set;
  58. }
  59. [Subscription(ParamName.FoupDoorState, DeviceName.LP4)]
  60. public FoupDoorState LPDDoorState
  61. {
  62. get;
  63. set;
  64. }
  65. [Subscription(ParamName.CassetteState, DeviceName.LP5)]
  66. public LoadportCassetteState LPECassetteState
  67. {
  68. get;
  69. set;
  70. }
  71. [Subscription(ParamName.FoupDoorState, DeviceName.LP5)]
  72. public FoupDoorState LPEDoorState
  73. {
  74. get;
  75. set;
  76. }
  77. [Subscription(ParamName.CassetteState, DeviceName.LP6)]
  78. public LoadportCassetteState LPFCassetteState
  79. {
  80. get;
  81. set;
  82. }
  83. [Subscription(ParamName.FoupDoorState, DeviceName.LP6)]
  84. public FoupDoorState LPFDoorState
  85. {
  86. get;
  87. set;
  88. }
  89. [Subscription(ParamName.CassetteState, DeviceName.LP7)]
  90. public LoadportCassetteState LPGCassetteState
  91. {
  92. get;
  93. set;
  94. }
  95. [Subscription(ParamName.FoupDoorState, DeviceName.LP7)]
  96. public FoupDoorState LPGDoorState
  97. {
  98. get;
  99. set;
  100. }
  101. [Subscription(ParamName.CassetteState, DeviceName.LP8)]
  102. public LoadportCassetteState LPHCassetteState
  103. {
  104. get;
  105. set;
  106. }
  107. [Subscription(ParamName.FoupDoorState, DeviceName.LP8)]
  108. public FoupDoorState LPHDoorState
  109. {
  110. get;
  111. set;
  112. }
  113. [Subscription(ParamName.CassetteState, DeviceName.LP9)]
  114. public LoadportCassetteState LPICassetteState
  115. {
  116. get;
  117. set;
  118. }
  119. [Subscription(ParamName.FoupDoorState, DeviceName.LP9)]
  120. public FoupDoorState LPIDoorState
  121. {
  122. get;
  123. set;
  124. }
  125. [Subscription(ParamName.CassetteState, DeviceName.LP10)]
  126. public LoadportCassetteState LPJCassetteState
  127. {
  128. get;
  129. set;
  130. }
  131. [Subscription(ParamName.FoupDoorState, DeviceName.LP10)]
  132. public FoupDoorState LPJDoorState
  133. {
  134. get;
  135. set;
  136. }
  137. [Subscription(ParamName.IsDocked, DeviceName.LP1)]
  138. public bool LP1IsDockState { get; set; }
  139. [Subscription(ParamName.IsDocked, DeviceName.LP2)]
  140. public bool LP2IsDockState { get; set; }
  141. [Subscription(ParamName.IsDocked, DeviceName.LP3)]
  142. public bool LP3IsDockState { get; set; }
  143. [Subscription(ParamName.IsDocked, DeviceName.LP4)]
  144. public bool LP4IsDockState { get; set; }
  145. [Subscription(ParamName.IsDocked, DeviceName.LP5)]
  146. public bool LP5IsDockState { get; set; }
  147. [Subscription(ParamName.IsDocked, DeviceName.LP6)]
  148. public bool LP6IsDockState { get; set; }
  149. [Subscription(ParamName.IsDocked, DeviceName.LP7)]
  150. public bool LP7IsDockState { get; set; }
  151. [Subscription(ParamName.IsDocked, DeviceName.LP8)]
  152. public bool LP8IsDockState { get; set; }
  153. [Subscription(ParamName.IsDocked, DeviceName.LP9)]
  154. public bool LP9IsDockState { get; set; }
  155. [Subscription(ParamName.IsDocked, DeviceName.LP10)]
  156. public bool LP10IsDockState { get; set; }
  157. [Subscription(ParamName.ModuleWaferList, DeviceName.Buffer)]
  158. public WaferInfo[] BufferWafers
  159. {
  160. get;
  161. set;
  162. }
  163. public WaferInfo BufferWafer
  164. {
  165. get
  166. {
  167. if (BufferWafers != null)
  168. {
  169. return BufferWafers[0];
  170. }
  171. else
  172. {
  173. return null;
  174. }
  175. }
  176. }
  177. [Subscription(ParamName.ModuleWaferList, DeviceName.Buffer1)]
  178. public WaferInfo[] Buffer1Wafers
  179. {
  180. get;
  181. set;
  182. }
  183. public WaferInfo Buffer1Wafer
  184. {
  185. get
  186. {
  187. if (Buffer1Wafers != null)
  188. {
  189. return Buffer1Wafers[0];
  190. }
  191. else
  192. {
  193. return null;
  194. }
  195. }
  196. }
  197. [Subscription(ParamName.ModuleWaferList, DeviceName.Aligner)]
  198. public WaferInfo[] AlignerWafers
  199. {
  200. get;
  201. set;
  202. }
  203. [Subscription(ParamName.ModuleWaferList, DeviceName.Aligner2)]
  204. public WaferInfo[] Aligner2Wafers
  205. {
  206. get;
  207. set;
  208. }
  209. public WaferInfo AlignerWafer
  210. {
  211. get
  212. {
  213. if (AlignerWafers != null)
  214. {
  215. return AlignerWafers[0];
  216. }
  217. else
  218. {
  219. return null;
  220. }
  221. }
  222. }
  223. public WaferInfo Aligner2Wafer
  224. {
  225. get
  226. {
  227. if (Aligner2Wafers != null)
  228. {
  229. return Aligner2Wafers[0];
  230. }
  231. else
  232. {
  233. return null;
  234. }
  235. }
  236. }
  237. [Subscription(ParamName.ModuleWaferList, DeviceName.LL1)]
  238. public WaferInfo[] LL1Wafers
  239. {
  240. get;
  241. set;
  242. }
  243. public WaferInfo Loadlock1Wafer
  244. {
  245. get
  246. {
  247. if (LL1Wafers != null)
  248. {
  249. return LL1Wafers[0];
  250. }
  251. else
  252. {
  253. return null;
  254. }
  255. }
  256. }
  257. [Subscription(ParamName.ModuleWaferList, DeviceName.LL2)]
  258. public WaferInfo[] LL2Wafers
  259. {
  260. get;
  261. set;
  262. }
  263. public WaferInfo Loadlock2Wafer
  264. {
  265. get
  266. {
  267. if (LL2Wafers != null)
  268. {
  269. return LL2Wafers[0];
  270. }
  271. else
  272. {
  273. return null;
  274. }
  275. }
  276. }
  277. [Subscription(ParamName.ModuleWaferList, DeviceName.LL3)]
  278. public WaferInfo[] LL3Wafers
  279. {
  280. get;
  281. set;
  282. }
  283. public WaferInfo Loadlock3Wafer
  284. {
  285. get
  286. {
  287. if (LL3Wafers != null)
  288. {
  289. return LL3Wafers[0];
  290. }
  291. else
  292. {
  293. return null;
  294. }
  295. }
  296. }
  297. [Subscription(ParamName.ModuleWaferList, DeviceName.LL4)]
  298. public WaferInfo[] LL4Wafers
  299. {
  300. get;
  301. set;
  302. }
  303. public WaferInfo Loadlock4Wafer
  304. {
  305. get
  306. {
  307. if (LL4Wafers != null)
  308. {
  309. return LL4Wafers[0];
  310. }
  311. else
  312. {
  313. return null;
  314. }
  315. }
  316. }
  317. [Subscription(ParamName.ModuleWaferList, DeviceName.TurnOverStation)]
  318. public WaferInfo[] TurnOverStationWafers
  319. {
  320. get;
  321. set;
  322. }
  323. public WaferInfo TurnOverStationWafer
  324. {
  325. get
  326. {
  327. if (TurnOverStationWafers != null)
  328. {
  329. return TurnOverStationWafers[0];
  330. }
  331. else
  332. {
  333. return null;
  334. }
  335. }
  336. }
  337. public ICommand DeviceOperationCommand
  338. {
  339. get;
  340. private set;
  341. }
  342. public ICommand WaferTransferOptionCommand { get; set; }
  343. private WaferInfo[] robotWafers;
  344. [Subscription(ParamName.ModuleWaferList, DeviceName.Robot)]
  345. public WaferInfo[] RobotWafers
  346. {
  347. get
  348. {
  349. return robotWafers;
  350. }
  351. set
  352. {
  353. robotWafers = value;
  354. RobotWafer1 = value[0];
  355. RobotWafer2 = value[1];
  356. }
  357. }
  358. public WaferInfo RobotWafer1
  359. {
  360. get;
  361. set;
  362. }
  363. public WaferInfo RobotWafer2
  364. {
  365. get;
  366. set;
  367. }
  368. [Subscription(ParamName.RobotBlade1Traget, DeviceName.Robot)]
  369. public ModuleName RobotBladeTarget
  370. {
  371. get;
  372. set;
  373. }
  374. [Subscription(ParamName.RobotBlade2Traget, DeviceName.Robot)]
  375. public ModuleName RobotBlade2Target
  376. {
  377. get;
  378. set;
  379. }
  380. public virtual Dictionary<string, StationPosition> StationPosition
  381. {
  382. get;
  383. }
  384. public EFEMBase()
  385. {
  386. DeviceOperationCommand = new DelegateCommand<object>(DeviceOperation);
  387. WaferTransferOptionCommand = new DelegateCommand<WaferTransferOption>(DoWaferTransferOption);
  388. }
  389. protected virtual void DoWaferTransferOption(WaferTransferOption obj)
  390. {
  391. }
  392. void DeviceOperation(object param)
  393. {
  394. InvokeClient.Instance.Service.DoOperation(OperationName.DeviceOperation.ToString(), (object[])param);
  395. }
  396. }
  397. }