EFEM1LPJet.xaml.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. using Aitex.Core.Common;
  2. using Aitex.Core.Util;
  3. using Aitex.Sorter.UI.Controls;
  4. using EfemUI.Controls.Common;
  5. using MECF.Framework.Common.CommonData;
  6. using System.Collections.Generic;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. namespace EfemUI.Controls
  10. {
  11. /// <summary>
  12. /// EFEM2LPJet.xaml 的交互逻辑
  13. /// </summary>
  14. public partial class EFEM1LPJet : EFEMBase
  15. {
  16. public EFEM1LPJet()
  17. {
  18. InitializeComponent();
  19. root.DataContext = this;
  20. }
  21. public WaferInfo Aligner1Wafer
  22. {
  23. get { return (WaferInfo)GetValue(Aligner1WaferProperty); }
  24. set { SetValue(Aligner1WaferProperty, value); }
  25. }
  26. // Using a DependencyProperty as the backing store for Aligner1Wafer. This enables animation, styling, binding, etc...
  27. public static readonly DependencyProperty Aligner1WaferProperty =
  28. DependencyProperty.Register("Aligner1Wafer", typeof(WaferInfo), typeof(EFEM1LPJet), new PropertyMetadata(null));
  29. public WaferInfo Aligner2Wafer
  30. {
  31. get { return (WaferInfo)GetValue(Aligner2WaferProperty); }
  32. set { SetValue(Aligner2WaferProperty, value); }
  33. }
  34. // Using a DependencyProperty as the backing store for Aligner2Wafer. This enables animation, styling, binding, etc...
  35. public static readonly DependencyProperty Aligner2WaferProperty =
  36. DependencyProperty.Register("Aligner2Wafer", typeof(WaferInfo), typeof(EFEM1LPJet), new PropertyMetadata(null));
  37. public WaferInfo CoolingBuffer1Wafer
  38. {
  39. get { return (WaferInfo)GetValue(CoolingBuffer1WaferProperty); }
  40. set { SetValue(CoolingBuffer1WaferProperty, value); }
  41. }
  42. // Using a DependencyProperty as the backing store for CoolingBuffer1Wafer. This enables animation, styling, binding, etc...
  43. public static readonly DependencyProperty CoolingBuffer1WaferProperty =
  44. DependencyProperty.Register("CoolingBuffer1Wafer", typeof(WaferInfo), typeof(EFEM1LPJet), new PropertyMetadata(null));
  45. public WaferInfo CoolingBuffer2Wafer
  46. {
  47. get { return (WaferInfo)GetValue(CoolingBuffer2WaferProperty); }
  48. set { SetValue(CoolingBuffer2WaferProperty, value); }
  49. }
  50. // Using a DependencyProperty as the backing store for CoolingBuffer2Wafer. This enables animation, styling, binding, etc...
  51. public static readonly DependencyProperty CoolingBuffer2WaferProperty =
  52. DependencyProperty.Register("CoolingBuffer2Wafer", typeof(WaferInfo), typeof(EFEM1LPJet), new PropertyMetadata(null));
  53. [Subscription("CoolingBuffer1Disable", "System")]
  54. public bool CoolingBuffer1Disable
  55. {
  56. get;
  57. set;
  58. }
  59. [Subscription("CoolingBuffer2Disable", "System")]
  60. public bool CoolingBuffer2Disable
  61. {
  62. get;
  63. set;
  64. }
  65. [Subscription("Aligner1Disable", "System")]
  66. public bool Aligner1Disable
  67. {
  68. get;
  69. set;
  70. }
  71. [Subscription("Aligner2Disable", "System")]
  72. public bool Aligner2Disable
  73. {
  74. get;
  75. set;
  76. }
  77. [Subscription("RobotMoveInfo", "Robot")]
  78. public RobotMoveInfo RobotMoveInfo
  79. {
  80. get;
  81. set;
  82. }
  83. public override Dictionary<string, StationPosition> StationPosition
  84. {
  85. get
  86. {
  87. return new Dictionary<string, StationPosition>
  88. {
  89. { "ArmA.System",new StationPosition()
  90. {
  91. StartPosition= new RobotPosition()
  92. {
  93. X=0,
  94. Root=155,
  95. Arm=240,
  96. Hand=236
  97. },
  98. EndPosition= new RobotPosition()
  99. {
  100. Root=155,
  101. Arm=240,
  102. Hand=236
  103. }
  104. }
  105. },
  106. { "ArmB.System",new StationPosition()
  107. {
  108. StartPosition= new RobotPosition()
  109. {
  110. X=0,
  111. Root=25,
  112. Arm=120,
  113. Hand=484
  114. },
  115. EndPosition= new RobotPosition()
  116. {
  117. Root=25,
  118. Arm=120,
  119. Hand=484
  120. }
  121. }
  122. },
  123. { "ArmA.LP1",new StationPosition()
  124. {
  125. //StartPosition= new RobotPosition()
  126. // {
  127. // X=0,
  128. // Root=178,
  129. // Arm=215,
  130. // Hand=57
  131. // },
  132. // EndPosition= new RobotPosition()
  133. // {
  134. // X=0,
  135. // Root=238,
  136. // Arm=180,
  137. // Hand=32
  138. // }
  139. StartPosition= new RobotPosition()
  140. {
  141. X=0,
  142. Root=178,
  143. Arm=158,
  144. Hand=113
  145. },
  146. EndPosition= new RobotPosition()
  147. {
  148. Root=168,
  149. Arm=215,
  150. Hand=67
  151. }
  152. }
  153. },
  154. { "ArmB.LP1",new StationPosition()
  155. {
  156. StartPosition= new RobotPosition()
  157. {
  158. X=0,
  159. Root=2,
  160. Arm=205,
  161. Hand=243
  162. },
  163. EndPosition= new RobotPosition()
  164. {
  165. Root=10,
  166. Arm=145,
  167. Hand=293
  168. }
  169. }
  170. },
  171. { "ArmA.LP2",new StationPosition()
  172. {
  173. StartPosition= new RobotPosition()
  174. {
  175. X=0,
  176. Root=152,
  177. Arm=187,
  178. Hand=93
  179. },
  180. EndPosition= new RobotPosition()
  181. {
  182. Root=140,
  183. Arm=227,
  184. Hand=61
  185. }
  186. }
  187. },
  188. { "ArmB.LP2",new StationPosition()
  189. {
  190. StartPosition= new RobotPosition()
  191. {
  192. X=0,
  193. Root=-40,
  194. Arm=178,
  195. Hand=286
  196. },
  197. EndPosition= new RobotPosition()
  198. {
  199. Root=-12,
  200. Arm=140,
  201. Hand=301
  202. }
  203. }
  204. },
  205. { "ArmA.CoolingBuffer1",new StationPosition()
  206. {
  207. StartPosition= new RobotPosition()
  208. {
  209. X=0,
  210. Root=252,
  211. Arm=189,
  212. Hand=81
  213. },
  214. EndPosition= new RobotPosition()
  215. {
  216. Root=235,
  217. Arm=230,
  218. Hand=58
  219. }
  220. }
  221. },
  222. { "ArmB.CoolingBuffer1",new StationPosition()
  223. {
  224. StartPosition= new RobotPosition()
  225. {
  226. X=0,
  227. Root=81,
  228. Arm=158,
  229. Hand=276
  230. },
  231. EndPosition= new RobotPosition()
  232. {
  233. Root=98,
  234. Arm=112,
  235. Hand=312
  236. }
  237. }
  238. },
  239. { "ArmA.CoolingBuffer2",new StationPosition()
  240. {
  241. StartPosition= new RobotPosition()
  242. {
  243. X=0,
  244. Root=286,
  245. Arm=187,
  246. Hand=88
  247. },
  248. EndPosition= new RobotPosition()
  249. {
  250. Root=272,
  251. Arm=230,
  252. Hand=58
  253. }
  254. }
  255. },
  256. { "ArmB.CoolingBuffer2",new StationPosition()
  257. {
  258. StartPosition= new RobotPosition()
  259. {
  260. X=0,
  261. Root=82,
  262. Arm=166,
  263. Hand=307
  264. },
  265. EndPosition= new RobotPosition()
  266. {
  267. Root=124,
  268. Arm=117,
  269. Hand=318
  270. }
  271. }
  272. },
  273. { "ArmA.Aligner1",new StationPosition()
  274. {
  275. StartPosition= new RobotPosition()
  276. {
  277. X=0,
  278. Root=100,
  279. Arm=202,
  280. Hand=83
  281. },
  282. EndPosition= new RobotPosition()
  283. {
  284. Root=82,
  285. Arm=243,
  286. Hand=56
  287. }
  288. }
  289. },
  290. { "ArmB.Aligner1",new StationPosition()
  291. {
  292. StartPosition= new RobotPosition()
  293. {
  294. X=0,
  295. Root=-77,
  296. Arm=171,
  297. Hand=285
  298. },
  299. EndPosition= new RobotPosition()
  300. {
  301. Root=-60,
  302. Arm=132,
  303. Hand=307
  304. }
  305. }
  306. },
  307. { "ArmA.Aligner2",new StationPosition()
  308. {
  309. StartPosition= new RobotPosition()
  310. {
  311. X=0,
  312. Root=90,
  313. Arm=198,
  314. Hand=55
  315. },
  316. EndPosition= new RobotPosition()
  317. {
  318. Root=53,
  319. Arm=243,
  320. Hand=48
  321. }
  322. }
  323. },
  324. { "ArmB.Aligner2",new StationPosition()
  325. {
  326. StartPosition= new RobotPosition()
  327. {
  328. X=0,
  329. Root=-114,
  330. Arm=173,
  331. Hand=278
  332. },
  333. EndPosition= new RobotPosition()
  334. {
  335. Root=-97,
  336. Arm=132,
  337. Hand=307
  338. }
  339. }
  340. },
  341. { "ArmA.LL1",new StationPosition()
  342. {
  343. StartPosition= new RobotPosition()
  344. {
  345. X=0,
  346. Root=195,
  347. Arm=195,
  348. Hand=240
  349. },
  350. EndPosition= new RobotPosition()
  351. {
  352. Root=203,
  353. Arm=128,
  354. Hand=298
  355. }
  356. }
  357. },
  358. { "ArmB.LL1",new StationPosition()
  359. {
  360. StartPosition= new RobotPosition()
  361. {
  362. X=0,
  363. Root=-13,
  364. Arm=165,
  365. Hand=478
  366. },
  367. EndPosition= new RobotPosition()
  368. { Root=-23,
  369. Arm=232,
  370. Hand=422
  371. }
  372. }
  373. },
  374. { "ArmA.LL2",new StationPosition()
  375. {
  376. StartPosition= new RobotPosition()
  377. {
  378. X=0,
  379. Root=436,
  380. Arm=229,
  381. Hand=-34
  382. },
  383. EndPosition= new RobotPosition()
  384. {
  385. Root=375,
  386. Arm=256,
  387. Hand=0
  388. }
  389. }
  390. },
  391. { "ArmB.LL2",new StationPosition()
  392. {
  393. StartPosition= new RobotPosition()
  394. {
  395. X=0,
  396. Root=264,
  397. Arm=146,
  398. Hand=221
  399. },
  400. EndPosition= new RobotPosition()
  401. {
  402. Root=242,
  403. Arm=115,
  404. Hand=273
  405. }
  406. }
  407. }
  408. };
  409. }
  410. }
  411. }
  412. }