RobotView.xaml 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045
  1. <UserControl x:Class="EfemUI.Views.Maintenance.RobotView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:uc="clr-namespace:Aitex.Sorter.UI.Controls;assembly=Aitex.Sorter.UI"
  7. xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  8. xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common;assembly=Aitex.Sorter.UI"
  9. xmlns:ctrl="clr-namespace:Aitex.Sorter.UI.Controls;assembly=Aitex.Sorter.UI"
  10. xmlns:s="clr-namespace:System;assembly=mscorlib"
  11. xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"
  12. xmlns:equipment="clr-namespace:MECF.Framework.Common.Equipment;assembly=MECF.Framework.Common"
  13. xmlns:controls1="clr-namespace:EfemUI.Controls"
  14. mc:Ignorable="d"
  15. d:DesignHeight="800" d:DesignWidth="1820">
  16. <UserControl.Resources>
  17. <s:Int32 x:Key="MoveOption" >0</s:Int32>
  18. <uc:TargetSlotConverter x:Key="TargetSlotConverter" />
  19. <uc:TargetKeyValueConverter x:Key="TargetKeyValueConverter"/>
  20. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  21. <Setter Property="VerticalAlignment" Value="Center" />
  22. <Setter Property="HorizontalAlignment" Value="Center" />
  23. </Style>
  24. </UserControl.Resources>
  25. <Grid IsEnabled="{Binding EnablePageControl}" Margin="0,0,-52,0">
  26. <Grid.ColumnDefinitions>
  27. <ColumnDefinition Width="auto" />
  28. <ColumnDefinition Width="*" />
  29. <ColumnDefinition Width="auto" />
  30. </Grid.ColumnDefinitions>
  31. <StackPanel Grid.Column="1" Width="296" Height="299" Margin="140,320,1436,0">
  32. <StackPanel.Background>
  33. <ImageBrush ImageSource="/Resources/Images/robot7.png" Stretch="Uniform"/>
  34. </StackPanel.Background>
  35. </StackPanel>
  36. <Border Grid.Column="1">
  37. <Canvas>
  38. <StackPanel Orientation="Vertical" Canvas.Left="10" Canvas.Top="410" Width="195" >
  39. <TextBox x:Name="LowArmDistance" Grid.Row="1" Grid.Column="1" Margin="8" IsEnabled="{Binding SelectedItem, Converter={StaticResource valueNotMatchConverter}, ElementName=cboGotoexTarget}"/>
  40. <Label Background="AliceBlue" HorizontalContentAlignment="Center" FontSize="20" Content="LowerArm Fwd(mm)" Width="220" Canvas.Left="300" Canvas.Top="200" Height="49"/>
  41. </StackPanel>
  42. <StackPanel Background="#d6f1ff" Orientation="Horizontal" Canvas.Left="200" Canvas.Top="282" Width="295" Height="128" >
  43. <Grid Width="295">
  44. <Grid.Resources>
  45. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  46. <Setter Property="VerticalAlignment" Value="Center" />
  47. <Setter Property="HorizontalAlignment" Value="Center" />
  48. </Style>
  49. </Grid.Resources>
  50. <Grid.RowDefinitions>
  51. <RowDefinition Height="40" />
  52. <RowDefinition Height="300" />
  53. </Grid.RowDefinitions>
  54. <Grid.ColumnDefinitions>
  55. <ColumnDefinition Width="*" />
  56. <ColumnDefinition Width="*" />
  57. <ColumnDefinition Width="*" />
  58. </Grid.ColumnDefinitions>
  59. <Label Content="Move Option" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  60. <Grid Grid.Row="1" Grid.ColumnSpan="3" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent" Margin="0,0,-0.333,212">
  61. <Grid.Resources>
  62. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  63. <Setter Property="VerticalAlignment" Value="Center" />
  64. <Setter Property="HorizontalAlignment" Value="Left" />
  65. <Setter Property="Margin" Value="10,0,0,0" />
  66. </Style>
  67. </Grid.Resources>
  68. <Grid.ColumnDefinitions>
  69. <ColumnDefinition Width="120" />
  70. <ColumnDefinition Width="35*" />
  71. <ColumnDefinition Width="121*"/>
  72. </Grid.ColumnDefinitions>
  73. <Grid.RowDefinitions>
  74. <RowDefinition Height="40" />
  75. <RowDefinition Height="40" />
  76. </Grid.RowDefinitions>
  77. <Label Grid.Row="0" Content="Move Base" Height="33" Margin="0,4" Width="120" />
  78. <ComboBox Grid.Row="0" Grid.Column="1" x:Name="cboMoveBaseType"
  79. ItemsSource="{Binding JelMoveBaseType}" SelectedValuePath="Value" Margin="5,5,6,5" Grid.ColumnSpan="2" />
  80. <Label Grid.Row="1" Content="Speed Type" Height="33" Margin="0,4" Width="120" />
  81. <ComboBox Grid.Row="1" Grid.Column="1" x:Name="cboMoveSpeedType"
  82. ItemsSource="{Binding JelMoveSpeedType}" SelectedValuePath="Value" Margin="5,5,6,5" Grid.ColumnSpan="2" />
  83. </Grid>
  84. </Grid>
  85. </StackPanel>
  86. <StackPanel Orientation="Vertical" Canvas.Left="70" Canvas.Top="282" >
  87. <Button Command="{Binding Command}"
  88. ctrlCommon:CommandHelper.CommandName="RobotMove"
  89. ctrlCommon:CommandHelper.Target="Robot"
  90. ctrlCommon:CommandHelper.Parameter1="1"
  91. ctrlCommon:CommandHelper.Parameter2="0"
  92. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=LowArmDistance}"
  93. ctrlCommon:CommandHelper.Parameter4="{Binding Text, ElementName=cboMoveBaseType}"
  94. ctrlCommon:CommandHelper.Parameter5="{Binding Text, ElementName=cboMoveSpeedType}"
  95. Margin="0,0,0,0" Width="60" Height="60" VerticalAlignment="Center" >
  96. <WrapPanel>
  97. <Image Width="56" Height="56" Source="/Resources/Images/Previous_32x32.png"></Image>
  98. </WrapPanel>
  99. </Button>
  100. <Button Command="{Binding Command}"
  101. ctrlCommon:CommandHelper.CommandName="RobotMove"
  102. ctrlCommon:CommandHelper.Target="Robot"
  103. ctrlCommon:CommandHelper.Parameter1="1"
  104. ctrlCommon:CommandHelper.Parameter2="1"
  105. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=LowArmDistance}"
  106. ctrlCommon:CommandHelper.Parameter4="{Binding Text, ElementName=cboMoveBaseType}"
  107. ctrlCommon:CommandHelper.Parameter5="{Binding Text, ElementName=cboMoveSpeedType}"
  108. Margin="0,8,0,0" Width="60" Height="60" VerticalAlignment="Center" >
  109. <WrapPanel>
  110. <Image Width="56" Height="56" Source="/Resources/Images/Next_32x32.png"></Image>
  111. </WrapPanel>
  112. </Button>
  113. </StackPanel>
  114. <StackPanel Orientation="Vertical" Canvas.Left="470" Canvas.Top="410" Width="195" >
  115. <TextBox x:Name="UpperArmDistance" Grid.Row="1" Grid.Column="1" Margin="8" IsEnabled="{Binding SelectedItem, Converter={StaticResource valueNotMatchConverter}, ElementName=cboGotoexTarget}"/>
  116. <Label Background="AliceBlue" HorizontalContentAlignment="Center" FontSize="20" Content="UpperArm Fwd(mm)" Width="220" Canvas.Left="300" Canvas.Top="200" Height="49"/>
  117. </StackPanel>
  118. <StackPanel Orientation="Vertical" Canvas.Left="540" Canvas.Top="282" >
  119. <Button Command="{Binding Command}"
  120. ctrlCommon:CommandHelper.CommandName="RobotMove"
  121. ctrlCommon:CommandHelper.Target="Robot"
  122. ctrlCommon:CommandHelper.Parameter1="2"
  123. ctrlCommon:CommandHelper.Parameter2="0"
  124. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=UpperArmDistance}"
  125. ctrlCommon:CommandHelper.Parameter4="{Binding Text, ElementName=cboMoveBaseType}"
  126. ctrlCommon:CommandHelper.Parameter5="{Binding Text, ElementName=cboMoveSpeedType}"
  127. Margin="0,0,0,0" Width="60" Height="60" VerticalAlignment="Center" >
  128. <WrapPanel>
  129. <Image Width="56" Height="56" Source="/Resources/Images/Previous_32x32.png"></Image>
  130. </WrapPanel>
  131. </Button>
  132. <Button Command="{Binding Command}"
  133. ctrlCommon:CommandHelper.CommandName="RobotMove"
  134. ctrlCommon:CommandHelper.Target="Robot"
  135. ctrlCommon:CommandHelper.Parameter1="2"
  136. ctrlCommon:CommandHelper.Parameter2="1"
  137. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=UpperArmDistance}"
  138. ctrlCommon:CommandHelper.Parameter4="{Binding Text, ElementName=cboMoveBaseType}"
  139. ctrlCommon:CommandHelper.Parameter5="{Binding Text, ElementName=cboMoveSpeedType}"
  140. Margin="0,8,0,0" Width="60" Height="60" VerticalAlignment="Center" >
  141. <WrapPanel>
  142. <Image Width="56" Height="56" Source="/Resources/Images/Next_32x32.png"></Image>
  143. </WrapPanel>
  144. </Button>
  145. </StackPanel>
  146. <StackPanel Orientation="Vertical" Canvas.Left="10" Canvas.Top="660" Width="195" >
  147. <TextBox x:Name="RotateDegree" Grid.Row="1" Grid.Column="1" Margin="8" IsEnabled="{Binding SelectedItem, Converter={StaticResource valueNotMatchConverter}, ElementName=cboGotoexTarget}"/>
  148. <Label Background="AliceBlue" HorizontalContentAlignment="Center" FontSize="20" Content="Rotate(deg)" Width="220" Canvas.Left="300" Canvas.Top="200" Height="49"/>
  149. </StackPanel>
  150. <StackPanel Orientation="Horizontal" Canvas.Left="40" Canvas.Top="600" >
  151. <Button Command="{Binding Command}"
  152. ctrlCommon:CommandHelper.CommandName="RobotMove"
  153. ctrlCommon:CommandHelper.Target="Robot"
  154. ctrlCommon:CommandHelper.Parameter1="4"
  155. ctrlCommon:CommandHelper.Parameter2="0"
  156. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=RotateDegree}"
  157. ctrlCommon:CommandHelper.Parameter4="{Binding Text, ElementName=cboMoveBaseType}"
  158. ctrlCommon:CommandHelper.Parameter5="{Binding Text, ElementName=cboMoveSpeedType}"
  159. Margin="0,0,0,0" Width="60" Height="60" VerticalAlignment="Center" >
  160. <WrapPanel>
  161. <Image Width="56" Height="56" Source="/Resources/Images/Left.png"></Image>
  162. </WrapPanel>
  163. </Button>
  164. <Button Command="{Binding Command}"
  165. ctrlCommon:CommandHelper.CommandName="RobotMove"
  166. ctrlCommon:CommandHelper.Target="Robot"
  167. ctrlCommon:CommandHelper.Parameter1="4"
  168. ctrlCommon:CommandHelper.Parameter2="1"
  169. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=RotateDegree}"
  170. ctrlCommon:CommandHelper.Parameter4="{Binding Text, ElementName=cboMoveBaseType}"
  171. ctrlCommon:CommandHelper.Parameter5="{Binding Text, ElementName=cboMoveSpeedType}"
  172. Margin="8,0,0,0" Width="60" Height="60" VerticalAlignment="Center" >
  173. <WrapPanel>
  174. <Image Width="56" Height="56" Source="/Resources/Images/right.png"></Image>
  175. </WrapPanel>
  176. </Button>
  177. </StackPanel>
  178. <StackPanel Orientation="Vertical" Canvas.Left="470" Canvas.Top="660" Width="195" >
  179. <TextBox x:Name="ZDistance" Grid.Row="1" Grid.Column="1" Margin="8" IsEnabled="{Binding SelectedItem, Converter={StaticResource valueNotMatchConverter}, ElementName=cboGotoexTarget}"/>
  180. <Label Background="AliceBlue" HorizontalContentAlignment="Center" FontSize="20" Content="Z Distance(mm)" Width="220" Canvas.Left="300" Canvas.Top="200" Height="49"/>
  181. </StackPanel>
  182. <StackPanel Orientation="Vertical" Canvas.Left="540" Canvas.Top="532" >
  183. <Button Command="{Binding Command}"
  184. ctrlCommon:CommandHelper.CommandName="RobotMove"
  185. ctrlCommon:CommandHelper.Target="Robot"
  186. ctrlCommon:CommandHelper.Parameter1="3"
  187. ctrlCommon:CommandHelper.Parameter2="0"
  188. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=ZDistance}"
  189. ctrlCommon:CommandHelper.Parameter4="{Binding Text, ElementName=cboMoveBaseType}"
  190. ctrlCommon:CommandHelper.Parameter5="{Binding Text, ElementName=cboMoveSpeedType}"
  191. Margin="0,0,0,0" Width="60" Height="60" VerticalAlignment="Center" >
  192. <WrapPanel>
  193. <Image Width="56" Height="56" Source="/Resources/Images/Previous_32x32.png"></Image>
  194. </WrapPanel>
  195. </Button>
  196. <Button Command="{Binding Command}"
  197. ctrlCommon:CommandHelper.CommandName="RobotMove"
  198. ctrlCommon:CommandHelper.Target="Robot"
  199. ctrlCommon:CommandHelper.Parameter1="3"
  200. ctrlCommon:CommandHelper.Parameter2="1"
  201. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=ZDistance}"
  202. ctrlCommon:CommandHelper.Parameter4="{Binding Text, ElementName=cboMoveBaseType}"
  203. ctrlCommon:CommandHelper.Parameter5="{Binding Text, ElementName=cboMoveSpeedType}"
  204. Margin="0,8,0,0" Width="60" Height="60" VerticalAlignment="Center" >
  205. <WrapPanel>
  206. <Image Width="56" Height="56" Source="/Resources/Images/Next_32x32.png"></Image>
  207. </WrapPanel>
  208. </Button>
  209. </StackPanel>
  210. <DockPanel Background="#d6f1ff" Canvas.Left="10" Canvas.Top="10" Height="246">
  211. <Grid>
  212. <Grid.Resources>
  213. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  214. <Setter Property="VerticalAlignment" Value="Center" />
  215. <Setter Property="HorizontalAlignment" Value="Center" />
  216. </Style>
  217. </Grid.Resources>
  218. <Grid.RowDefinitions>
  219. <RowDefinition Height="40" />
  220. <RowDefinition Height="200" />
  221. </Grid.RowDefinitions>
  222. <Grid.ColumnDefinitions>
  223. <ColumnDefinition Width="*" />
  224. <ColumnDefinition Width="*" />
  225. <ColumnDefinition Width="*" />
  226. </Grid.ColumnDefinitions>
  227. <Label Content="Robot Position" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  228. <Grid Grid.Row="5" Grid.ColumnSpan="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  229. <Grid.Resources>
  230. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  231. <Setter Property="VerticalAlignment" Value="Center" />
  232. <Setter Property="HorizontalAlignment" Value="Left" />
  233. <Setter Property="Margin" Value="10,0,0,0" />
  234. </Style>
  235. </Grid.Resources>
  236. <Grid.ColumnDefinitions>
  237. <ColumnDefinition Width="210" />
  238. <ColumnDefinition />
  239. </Grid.ColumnDefinitions>
  240. <Grid.RowDefinitions>
  241. <RowDefinition Height="38" />
  242. <RowDefinition Height="38" />
  243. <RowDefinition Height="38" />
  244. <RowDefinition Height="38" />
  245. <RowDefinition Height="40" />
  246. </Grid.RowDefinitions>
  247. <Label Grid.Row="0" Content="Left Arm(mm)" Height="33" Margin="10,4,0,4" Width="131" />
  248. <Label Grid.Row="0" Grid.Column="1" Content="{Binding RobotPositionX}" />
  249. <Label Grid.Row="1" Content="Right Arm(mm)" Height="33" Margin="10,4,0,4" Width="144" />
  250. <Label Grid.Row="1" Grid.Column="1" Content="{Binding RobotPositionY}" />
  251. <Label Grid.Row="2" Content="Z Axios(mm)" Height="33" Margin="10,4,0,4" Width="122" />
  252. <Label Grid.Row="2" Grid.Column="1" Content="{Binding RobotPositionZ}" />
  253. <Label Grid.Row="3" Content="Theta Axis(degree)" Height="33" Margin="10,4,0,4" Width="195" />
  254. <Label Grid.Row="3" Grid.Column="1" Content="{Binding RobotPositionW}" />
  255. <Button Grid.Row="4" Grid.Column="1" Command="{Binding Command}"
  256. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  257. ctrlCommon:CommandHelper.Target="Robot"
  258. ctrlCommon:CommandHelper.Parameter1="CurrentPositionData"
  259. Margin="0,5,10,0" Width="180" Content="Read Position" VerticalAlignment="Center" Height="35"/>
  260. </Grid>
  261. </Grid>
  262. </DockPanel>
  263. <DockPanel Background="#d6f1ff" Canvas.Right="430" Canvas.Top="10" Height="558" Canvas.Left="1090" Width="395" >
  264. <Grid>
  265. <Grid.Resources>
  266. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  267. <Setter Property="VerticalAlignment" Value="Center" />
  268. <Setter Property="HorizontalAlignment" Value="Center" />
  269. </Style>
  270. </Grid.Resources>
  271. <Grid.RowDefinitions>
  272. <RowDefinition Height="40" />
  273. <RowDefinition Height="610" />
  274. </Grid.RowDefinitions>
  275. <Grid.ColumnDefinitions>
  276. <ColumnDefinition Width="*" />
  277. <ColumnDefinition Width="*" />
  278. <ColumnDefinition Width="*" />
  279. </Grid.ColumnDefinitions>
  280. <Label Content="Robot Status" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  281. <Grid Grid.Row="1" Grid.ColumnSpan="3" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent" Margin="0,0,-0.333,100">
  282. <Grid.Resources>
  283. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  284. <Setter Property="VerticalAlignment" Value="Center" />
  285. <Setter Property="HorizontalAlignment" Value="Left" />
  286. <Setter Property="Margin" Value="10,0,0,0" />
  287. </Style>
  288. </Grid.Resources>
  289. <Grid.ColumnDefinitions>
  290. <ColumnDefinition Width="232" />
  291. <ColumnDefinition Width="*"/>
  292. <ColumnDefinition />
  293. </Grid.ColumnDefinitions>
  294. <Grid.RowDefinitions>
  295. <RowDefinition Height="38" />
  296. <RowDefinition Height="38" />
  297. <RowDefinition Height="38" />
  298. <RowDefinition Height="38" />
  299. <RowDefinition Height="38" />
  300. <RowDefinition Height="38" />
  301. <RowDefinition Height="38" />
  302. <RowDefinition Height="38" />
  303. <RowDefinition Height="38" />
  304. <RowDefinition Height="40" />
  305. <RowDefinition Height="38" />
  306. <RowDefinition Height="38" />
  307. <RowDefinition Height="40" />
  308. </Grid.RowDefinitions>
  309. <Label Grid.Row="0" Content="State(State Machine)" Height="32" Margin="10,3,0,3" Width="198"/>
  310. <Label Grid.Row="0" Grid.Column="1" Content="{Binding RobotState}" Margin="0,0,0,0" Grid.ColumnSpan="2" />
  311. <Label Grid.Row="1" Content="Left and Z Status" Height="32" Margin="10,3,0,3" Width="162" />
  312. <Label Grid.Row="1" Grid.Column="1" Content="{Binding LeftarmAndZaxisStatus}" Margin="0,0,0,0" Grid.ColumnSpan="2" />
  313. <Label Grid.Row="2" Content="Right and Theta Status" Height="32" Margin="10,3,0,3" Width="214" />
  314. <Label Grid.Row="2" Grid.Column="1" Content="{Binding RightarmAndThetaarmStatus}" Margin="0,0,0,0" Grid.ColumnSpan="2" />
  315. <Label Grid.Row="3" Content="Pressure Sensor(Right)" Height="32" Margin="10,3,0,3" Width="218"/>
  316. <Label Grid.Row="3" Grid.Column="1" Content="{Binding IsRightArmPressureSensorON}" Margin="0,0,0,0" Grid.ColumnSpan="2" />
  317. <Label Grid.Row="4" Content="Pressure Sensor(Left)" Height="32" Margin="10,3,0,3" Width="206"/>
  318. <Label Grid.Row="4" Grid.Column="1" Content="{Binding IsLeftArmPressureSensorON}" Margin="0,0,0,0" Grid.ColumnSpan="2" />
  319. <Label Grid.Row="5" Content="Compaund State" Height="32" Margin="10,3,0,3" Width="206" />
  320. <Label Grid.Row="5" Grid.Column="1" Content="{Binding CurrentCompoundCommandStatus}" Margin="0,0,0,0" Grid.ColumnSpan="2" />
  321. <Label Grid.Row="6" Content="Current Bank NO" Height="32" Margin="10,3,0,3" Width="206"/>
  322. <Label Grid.Row="6" Grid.Column="1" Content="{Binding ReadBankNumber}" Margin="5,0" Height="37" Width="80" />
  323. <TextBox x:Name="txtBankNo" Grid.Row="6" Grid.Column="2" Margin="5,2,5,2" IsEnabled="True" Height="Auto"/>
  324. <Label Grid.Row="7" Content="Current Cassette NO" Height="32" Margin="10,3,0,3" Width="206"/>
  325. <Label Grid.Row="7" Grid.Column="1" Content="{Binding ReadCassetNumber}" Margin="5,0" Height="39" Width="80"/>
  326. <TextBox x:Name="txtCassetteNo" Grid.Row="7" Grid.Column="2" Margin="5,2,5,2" IsEnabled="True" Height="Auto"/>
  327. <Label Grid.Row="8" Content="Current Slots Number" Height="32" Margin="10,3,0,3" Width="206"/>
  328. <Label Grid.Row="8" Grid.Column="1" Content="{Binding ReadSlotNumber}" Margin="5,0" Height="39" Width="80" />
  329. <TextBox x:Name="txtSlotNo" Grid.Row="8" Grid.Column="2" Margin="5,2,5,2" IsEnabled="True" Height="Auto"/>
  330. <StackPanel Grid.Row="9" Grid.Column="0" Grid.ColumnSpan ="3" Orientation="Horizontal" >
  331. <Button Content="Home" Command="{Binding Command}"
  332. ctrlCommon:CommandHelper.CommandName="RobotHome"
  333. ctrlCommon:CommandHelper.Target="Robot" Width="70" Margin="5,2,4,0" Height="35"
  334. ctrlCommon:CommandHelper.Parameter1="{Binding Text,ElementName=cboMoveSpeedType}"/>
  335. <Button Content="Reset" Command="{Binding Command}"
  336. ctrlCommon:CommandHelper.CommandName="RobotReset"
  337. ctrlCommon:CommandHelper.Target="Robot" Margin="5,2,4,0" Height="35" Width="70" />
  338. <Button Content="Stop" Command="{Binding Command}"
  339. ctrlCommon:CommandHelper.CommandName="RobotStop"
  340. ctrlCommon:CommandHelper.Target="Robot" Margin="5,2,4,0" Height="35" Width="70" />
  341. <Button Command="{Binding Command}"
  342. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  343. ctrlCommon:CommandHelper.Target ="Robot"
  344. ctrlCommon:CommandHelper.Parameter1="CurrentStatus"
  345. Content="Read" Margin="5,1,4,2" Width="70" Height="35" VerticalAlignment="Stretch" />
  346. <Button Command="{Binding Command}"
  347. ctrlCommon:CommandHelper.CommandName="SetParameter"
  348. ctrlCommon:CommandHelper.Target="Robot"
  349. ctrlCommon:CommandHelper.Parameter1="BankNumber"
  350. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtBankNo}"
  351. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtCassetteNo}"
  352. ctrlCommon:CommandHelper.Parameter4="{Binding Text,ElementName=txtSlotNo}"
  353. Content="Set" Margin="5,0,4,2" Width="70" Height="35" VerticalAlignment="Stretch" />
  354. </StackPanel>
  355. <Label Grid.Row="10" Content="A Data NO(0-999)" Height="32" Margin="10,3,0,3" Width="214"/>
  356. <TextBox x:Name="txtADataNO" Grid.Row="10" Grid.Column="1" Margin="5,2,5,2" IsEnabled="True" Height="Auto" Grid.ColumnSpan="2"/>
  357. <Label Grid.Row="11" Grid.Column="0" Content="A Data Content" Height="36" Margin="14,1,0,1" Width="158" />
  358. <Label Grid.Row="11" Content="{Binding CurrentReadAData}" Margin="5,2,5,2" Grid.Column="1" Width="80" Height="39"/>
  359. <TextBox x:Name="txtADataSetValue" Grid.Row="11" Grid.Column="2" Margin="5,0" IsEnabled="True" Height="Auto"/>
  360. <StackPanel Grid.Row="12" Grid.Column="0" Grid.ColumnSpan ="3" Orientation="Horizontal" HorizontalAlignment="Right" Width="396" Margin="-1,0,0,0" >
  361. <Button Command="{Binding Command}"
  362. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  363. ctrlCommon:CommandHelper.Target="Robot"
  364. ctrlCommon:CommandHelper.Parameter1="AData"
  365. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtADataNO}"
  366. Margin="5,0" VerticalAlignment="Center" Width="90" Content="Read" Height="35"/>
  367. <Button Command="{Binding Command}"
  368. ctrlCommon:CommandHelper.CommandName="SetParameter"
  369. ctrlCommon:CommandHelper.Target="Robot"
  370. ctrlCommon:CommandHelper.Parameter1="AData"
  371. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtADataNO}"
  372. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtADataSetValue}"
  373. Margin="5,0" VerticalAlignment="Center" Width="85" Content="Set" Height="35"/>
  374. <Button Command="{Binding Command}"
  375. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  376. ctrlCommon:CommandHelper.Target="Robot"
  377. ctrlCommon:CommandHelper.Parameter1="EPData"
  378. ctrlCommon:CommandHelper.Parameter2="AData"
  379. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtADataNO}"
  380. Margin="5,0" VerticalAlignment="Center" Width="90" Height="35" Content="LoadEP"/>
  381. <Button Command="{Binding Command}"
  382. ctrlCommon:CommandHelper.CommandName="SetParameter"
  383. ctrlCommon:CommandHelper.Target="Robot"
  384. ctrlCommon:CommandHelper.Parameter1="EPData"
  385. ctrlCommon:CommandHelper.Parameter2="AData"
  386. Margin="5,0" VerticalAlignment="Center" Width="90" Height="35" Content="SaveEP"/>
  387. </StackPanel>
  388. </Grid>
  389. </Grid>
  390. </DockPanel>
  391. <DockPanel Background="#d6f1ff" Height="252" Canvas.Left="675" Canvas.Top="10" Width="400">
  392. <Grid>
  393. <Grid.Resources>
  394. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  395. <Setter Property="VerticalAlignment" Value="Center" />
  396. <Setter Property="HorizontalAlignment" Value="Center" />
  397. </Style>
  398. </Grid.Resources>
  399. <Grid.RowDefinitions>
  400. <RowDefinition Height="40" />
  401. <RowDefinition Height="200" />
  402. </Grid.RowDefinitions>
  403. <Grid.ColumnDefinitions>
  404. <ColumnDefinition Width="*" />
  405. <ColumnDefinition Width="*" />
  406. <ColumnDefinition Width="*" />
  407. </Grid.ColumnDefinitions>
  408. <Label Content="Parameters" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  409. <Grid Grid.ColumnSpan="3" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent" Height="200" VerticalAlignment="Bottom" Margin="0,-18,0,0" Grid.RowSpan="2">
  410. <Grid.Resources>
  411. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  412. <Setter Property="VerticalAlignment" Value="Center" />
  413. <Setter Property="HorizontalAlignment" Value="Left" />
  414. <Setter Property="Margin" Value="10,0,0,0" />
  415. </Style>
  416. </Grid.Resources>
  417. <Grid.ColumnDefinitions>
  418. <ColumnDefinition Width="180" />
  419. <ColumnDefinition Width="100" />
  420. <ColumnDefinition />
  421. </Grid.ColumnDefinitions>
  422. <Grid.RowDefinitions>
  423. <RowDefinition Height="38" />
  424. <RowDefinition Height="38" />
  425. <RowDefinition Height="38" />
  426. <RowDefinition Height="38" />
  427. <RowDefinition Height="40" />
  428. </Grid.RowDefinitions>
  429. <Label Grid.Row="0" Content="Parameter NO." Height="32" Margin="10,4,0,4" Width="144" />
  430. <TextBox x:Name="txtExtParaNO" Grid.Row="0" Grid.Column="1" Margin="5,2" IsEnabled="True" Height="Auto" Grid.ColumnSpan="2"/>
  431. <Label Grid.Row="1" Content="Parameter Min." Height="32" Margin="10,4,0,4" Width="147" />
  432. <Label Grid.Row="1" Content="{Binding ReadParameterMin}" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center"/>
  433. <Label Grid.Row="2" Content="Parameter Max." Height="32" Margin="10,4,0,4" Width="152" />
  434. <Label Grid.Row="2" Content="{Binding ReadParameterMax}" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center"/>
  435. <Label Grid.Row="3" Content="Value" Height="32" Margin="10,4,0,4" Width="60" />
  436. <Label Grid.Row="3" Grid.Column="1" Content="{Binding ReadParameterValue}" Height="32" Margin="5,4,0,4" Width="85" />
  437. <TextBox x:Name="txtExtParaSetValue" Grid.Row="3" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  438. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.ColumnSpan="3" Margin="0,0,0,-13" >
  439. <Button Command="{Binding Command}"
  440. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  441. ctrlCommon:CommandHelper.Target="Robot"
  442. ctrlCommon:CommandHelper.Parameter1="RobotParameter"
  443. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtExtParaNO}"
  444. Margin="13,2,5,0" VerticalAlignment="Center" Width="180" Height="35" Content="Read"/>
  445. <Button Grid.Row="2" Grid.Column="1" Command="{Binding Command}"
  446. ctrlCommon:CommandHelper.CommandName="SetParameter"
  447. ctrlCommon:CommandHelper.Target="Robot"
  448. ctrlCommon:CommandHelper.Parameter1="RobotParameter"
  449. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtExtParaNO}"
  450. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtExtParaSetValue}"
  451. Margin="5" VerticalAlignment="Center" Width="180" Height="35" Content="Set"/>
  452. </StackPanel>
  453. </Grid>
  454. </Grid>
  455. </DockPanel>
  456. <DockPanel Background="#d6f1ff" Canvas.Right="10" Canvas.Top="10" Canvas.Left="1500" Width="395" >
  457. <Grid>
  458. <Grid.Resources>
  459. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  460. <Setter Property="VerticalAlignment" Value="Center" />
  461. <Setter Property="HorizontalAlignment" Value="Center" />
  462. </Style>
  463. </Grid.Resources>
  464. <Grid.RowDefinitions>
  465. <RowDefinition Height="40" />
  466. <RowDefinition Height="403" />
  467. </Grid.RowDefinitions>
  468. <Grid.ColumnDefinitions>
  469. <ColumnDefinition Width="*" />
  470. <ColumnDefinition Width="*" />
  471. <ColumnDefinition Width="*" />
  472. </Grid.ColumnDefinitions>
  473. <Label Content="Robot Point Positin" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  474. <Grid Grid.Row="5" Grid.ColumnSpan="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  475. <Grid.Resources>
  476. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  477. <Setter Property="VerticalAlignment" Value="Center" />
  478. <Setter Property="HorizontalAlignment" Value="Left" />
  479. <Setter Property="Margin" Value="10,0,0,0" />
  480. </Style>
  481. </Grid.Resources>
  482. <Grid.ColumnDefinitions>
  483. <ColumnDefinition Width="165" />
  484. <ColumnDefinition Width="115" />
  485. <ColumnDefinition />
  486. </Grid.ColumnDefinitions>
  487. <Grid.RowDefinitions>
  488. <RowDefinition Height="38" />
  489. <RowDefinition Height="38" />
  490. <RowDefinition Height="38" />
  491. <RowDefinition Height="38" />
  492. <RowDefinition Height="38" />
  493. <RowDefinition Height="40" />
  494. <RowDefinition Height="40" />
  495. <RowDefinition Height="40" />
  496. <RowDefinition Height="40" />
  497. <RowDefinition Height="40" />
  498. </Grid.RowDefinitions>
  499. <Label Grid.Row="0" Content="Position NO." Height="33" Margin="10,4,0,4" Width="122" />
  500. <TextBox x:Name="txtPOSNO" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,3,5,3" IsEnabled="True" Height="Auto"/>
  501. <Label Grid.Row="1" Content="Left Arm(um)" Margin="10,5,0,4" Width="155" Height="32" />
  502. <Label Grid.Row="1" Grid.Column="1" Content="{Binding RobotReadXPosition}" Height="37" Margin="0,0,0,0" Width="115" />
  503. <TextBox x:Name="txtSetValue_X" Grid.Row="1" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  504. <Label Grid.Row="2" Content="Right Arm(um)" Height="33" Margin="10,4,0,4" Width="139" />
  505. <Label Grid.Row="2" Grid.Column="1" Content="{Binding RobotReadYPosition}" Height="36" Margin="0,0,0,0" Width="115" />
  506. <TextBox x:Name="txtSetValue_Y" Grid.Row="2" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  507. <Label Grid.Row="3" Content="Z Postion(um)" Margin="10,5,0,4" Width="145" Height="32" />
  508. <Label Grid.Row="3" Grid.Column="1" Content="{Binding RobotReadZPosition}" Height="35" Margin="0" Width="95" />
  509. <TextBox x:Name="txtSetValue_Z" Grid.Row="3" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  510. <Label Grid.Row="4" Content="Theta(0.001deg)" Margin="0,4,0,5" Width="156" Height="32" />
  511. <Label Grid.Row="4" Grid.Column="1" Content="{Binding RobotReadWPosition}" Margin="0" />
  512. <TextBox x:Name="txtSetValue_W" Grid.Row="4" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  513. <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.ColumnSpan="3" Margin="0,0,0,28" Grid.RowSpan="2" >
  514. <Button Command="{Binding Command}"
  515. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  516. ctrlCommon:CommandHelper.Target="Robot"
  517. ctrlCommon:CommandHelper.Parameter1="PositionData"
  518. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtPOSNO}"
  519. Margin="13,6,5,14" VerticalAlignment="Center" Width="113" Content="Read" Height="34"/>
  520. <Button Grid.ColumnSpan="1"
  521. Command="{Binding Command}"
  522. ctrlCommon:CommandHelper.CommandName="SetParameter"
  523. ctrlCommon:CommandHelper.Target="Robot"
  524. ctrlCommon:CommandHelper.Parameter1="PositionData"
  525. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtPOSNO}"
  526. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtSetValue_Y}"
  527. ctrlCommon:CommandHelper.Parameter4="{Binding Text,ElementName=txtSetValue_W}"
  528. ctrlCommon:CommandHelper.Parameter5="{Binding Text,ElementName=txtSetValue_X}"
  529. ctrlCommon:CommandHelper.Parameter6="{Binding Text,ElementName=txtSetValue_Z}"
  530. Margin="5,6,5,14" VerticalAlignment="Center" Width="113" Content="Write Position" Height="34"/>
  531. <Button Grid.ColumnSpan="1"
  532. Command="{Binding Command}"
  533. ctrlCommon:CommandHelper.CommandName="SetParameter"
  534. ctrlCommon:CommandHelper.Target="Robot"
  535. ctrlCommon:CommandHelper.Parameter1="CurrentPositionData"
  536. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtPOSNO}"
  537. Margin="5,6,5,14" VerticalAlignment="Center" Width="113" Content="Write Current" Height="34"/>
  538. </StackPanel>
  539. <StackPanel Grid.Row="6" Grid.Column="0" Grid.ColumnSpan ="3" Orientation="Horizontal" >
  540. <ComboBox x:Name="cboGripHand" ItemsSource="{Binding RobotArmSelected}" Width="165" Margin="5,10,5,1"/>
  541. <Button Content="Hold" Command="{Binding Command}"
  542. ctrlCommon:CommandHelper.CommandName="RobotGrip"
  543. ctrlCommon:CommandHelper.Target="Robot"
  544. ctrlCommon:CommandHelper.Parameter1="{Binding Text,ElementName=cboGripHand}"
  545. Grid.RowSpan="2" Margin="5,2,5,0" Height="35" VerticalAlignment="Stretch" />
  546. <Button Content="Release" Command="{Binding Command}"
  547. ctrlCommon:CommandHelper.CommandName="RobotRelease"
  548. ctrlCommon:CommandHelper.Target="Robot"
  549. ctrlCommon:CommandHelper.Parameter1="{Binding Text,ElementName=cboGripHand}"
  550. Grid.RowSpan="2" Margin="5,2,5,0" Height="35" Width="95" />
  551. </StackPanel>
  552. <StackPanel Grid.Row="7" Grid.Column="0" Grid.ColumnSpan ="3" Orientation="Horizontal" HorizontalAlignment="Right" Width="396" >
  553. <ComboBox x:Name="cboPickTarget"
  554. ItemsSource="{Binding RobotTargetStation}" SelectedValuePath="Value" Margin="5,5,5,5" Width="90" />
  555. <ComboBox x:Name="cboPickSlot" SelectedValuePath="Value"
  556. ItemsSource="{Binding RobotSelectSlot}"
  557. Margin="5" Width="85" />
  558. <ComboBox x:Name="cboPickHand" ItemsSource="{Binding RobotArmSelected}" Margin="5,5,5,5" Width="100" />
  559. <Button Content="Pick" Command="{Binding Command}" Margin="5,2,5,0"
  560. ctrlCommon:CommandHelper.CommandName="RobotPick"
  561. ctrlCommon:CommandHelper.Target="Robot"
  562. ctrlCommon:CommandHelper.Parameter1="{Binding Text,ElementName=cboPickTarget}"
  563. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cboPickSlot}"
  564. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=cboPickHand}"
  565. Width="75" Height="35"/>
  566. </StackPanel>
  567. <StackPanel Grid.Row="8" Grid.Column="0" Grid.ColumnSpan ="3" Orientation="Horizontal" HorizontalAlignment="Right" Width="396" >
  568. <ComboBox x:Name="cboPlaceTarget"
  569. ItemsSource="{Binding RobotTargetStation}" SelectedValuePath="Value" Width="90" Margin="5,5,5,5"/>
  570. <ComboBox x:Name="cboPlaceSlot" SelectedValuePath="Value"
  571. ItemsSource="{Binding RobotSelectSlot}"
  572. IsEnabled="True" Margin="5,5,5,5" Width="85"/>
  573. <ComboBox x:Name="cboPlaceHand" ItemsSource="{Binding RobotArmSelected}" Margin="5,5,5,5" Width="100" />
  574. <Button Content="Place" Command="{Binding Command}" Margin="5,2,5,0"
  575. ctrlCommon:CommandHelper.CommandName="RobotPlace"
  576. ctrlCommon:CommandHelper.Target="Robot"
  577. ctrlCommon:CommandHelper.Parameter1="{Binding Text, ElementName=cboPlaceTarget}"
  578. ctrlCommon:CommandHelper.Parameter2="{Binding Text ,ElementName=cboPlaceSlot}"
  579. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=cboPlaceHand}"
  580. Width="75" Height="35" VerticalAlignment="Stretch"
  581. />
  582. </StackPanel>
  583. <StackPanel Grid.Row="9" Grid.Column="0" Grid.ColumnSpan ="3" Orientation="Horizontal" HorizontalAlignment="Right" Width="396" >
  584. <ComboBox x:Name="cboSwapTarget"
  585. ItemsSource="{Binding RobotTargetStation}" SelectedValuePath="Value" Width="90" Margin="5,5,5,5"/>
  586. <ComboBox x:Name="cboSwapSlot" SelectedValuePath="Value"
  587. ItemsSource="{Binding RobotSelectSlot}"
  588. IsEnabled="True" Width="85" Margin="5,5,5,5" />
  589. <ComboBox x:Name="cboSwapPickHand" Grid.Row="16" ItemsSource="{Binding RobotArmSelected}" Grid.ColumnSpan="2" Margin="5,5,5,5" Width="100"/>
  590. <Button Grid.Row="16" Grid.Column="1" Content="Swap" Command="{Binding Command}" Margin="5,2,5,0"
  591. ctrlCommon:CommandHelper.CommandName="RobotExchange"
  592. ctrlCommon:CommandHelper.Target="Robot"
  593. ctrlCommon:CommandHelper.Parameter1="{Binding Text, ElementName=cboSwapTarget}"
  594. ctrlCommon:CommandHelper.Parameter2="{Binding Text ,ElementName=cboSwapSlot}"
  595. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=cboSwapPickHand}"
  596. Width="75" Height="35" />
  597. </StackPanel>
  598. </Grid>
  599. </Grid>
  600. </DockPanel>
  601. <DockPanel Background="#d6f1ff" Canvas.Right="10" Canvas.Top="460" Height="326" Canvas.Left="1500" Width="395" >
  602. <Grid>
  603. <Grid.Resources>
  604. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  605. <Setter Property="VerticalAlignment" Value="Center" />
  606. <Setter Property="HorizontalAlignment" Value="Center" />
  607. </Style>
  608. </Grid.Resources>
  609. <Grid.RowDefinitions>
  610. <RowDefinition Height="40" />
  611. <RowDefinition Height="300" />
  612. </Grid.RowDefinitions>
  613. <Grid.ColumnDefinitions>
  614. <ColumnDefinition Width="*" />
  615. <ColumnDefinition Width="*" />
  616. <ColumnDefinition Width="*" />
  617. </Grid.ColumnDefinitions>
  618. <Label Content="Compaund Command Editor" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  619. <Grid Grid.Row="5" Grid.ColumnSpan="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  620. <Grid.Resources>
  621. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  622. <Setter Property="VerticalAlignment" Value="Center" />
  623. <Setter Property="HorizontalAlignment" Value="Left" />
  624. <Setter Property="Margin" Value="10,0,0,0" />
  625. </Style>
  626. </Grid.Resources>
  627. <Grid.ColumnDefinitions>
  628. <ColumnDefinition Width="180" />
  629. <ColumnDefinition Width="100" />
  630. <ColumnDefinition Width="*" />
  631. </Grid.ColumnDefinitions>
  632. <Grid.RowDefinitions>
  633. <RowDefinition Height="40" />
  634. <RowDefinition Height="186" />
  635. <RowDefinition Height="40" />
  636. </Grid.RowDefinitions>
  637. <Label Grid.Row="0" Content="Routine Selection" />
  638. <ComboBox Grid.Row="0" Grid.Column="1" x:Name="cboRoutineSelection"
  639. ItemsSource="{Binding JelCompaundCommandType}" SelectedValuePath="Value" Margin="5,5,5,5" Width="90" />
  640. <TextBox x:Name="txtCompaundCommandNO" Grid.Row="0" Grid.Column="2" Margin="5,2" IsEnabled="True"/>
  641. <Label Grid.Row="1" Content ="Routine Content" Height="38" Margin="12,10,0,153" />
  642. <TextBlock Grid.Row="1" Text ="(Main routine NO is from 1-139, subrountine is from 1-F)" FontSize="15" TextWrapping="Wrap" Height="113" Margin="10,60,3,0" Width="167" />
  643. <TextBox Text="{Binding CurrentReadRoutine,Mode=TwoWay}" TextWrapping="Wrap" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,10,5,98" IsEnabled="True" Height="Auto"/>
  644. <TextBox x:Name="txtCompaundCommandSet" TextWrapping="Wrap" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,98,5,10" IsEnabled="True" Height="Auto"/>
  645. <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="3" Margin="0,0,0,-13" >
  646. <Button Command="{Binding Command}" IsEnabled="True"
  647. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  648. ctrlCommon:CommandHelper.Target="Robot"
  649. ctrlCommon:CommandHelper.Parameter1="CompaundCommand"
  650. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cboRoutineSelection}"
  651. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtCompaundCommandNO}"
  652. Margin="13,2,5,0" VerticalAlignment="Center" Width="180" Height="35" Content="Read"/>
  653. <Button Command="{Binding Command}"
  654. ctrlCommon:CommandHelper.CommandName="SetParameter"
  655. ctrlCommon:CommandHelper.Target="Robot"
  656. ctrlCommon:CommandHelper.Parameter1="CompaundCommand"
  657. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cboRoutineSelection}"
  658. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtCompaundCommandNO}"
  659. ctrlCommon:CommandHelper.Parameter4="{Binding Text,ElementName=txtCompaundCommandSet}"
  660. Margin="5,2,5,0" VerticalAlignment="Center" Width="180" Height="35" Content="Write"/>
  661. </StackPanel>
  662. </Grid>
  663. </Grid>
  664. </DockPanel>
  665. <DockPanel Background="#d6f1ff" Canvas.Top="575" Height="210" Canvas.Left="1090" Width="395" >
  666. <Grid>
  667. <Grid.Resources>
  668. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  669. <Setter Property="VerticalAlignment" Value="Center" />
  670. <Setter Property="HorizontalAlignment" Value="Center" />
  671. </Style>
  672. </Grid.Resources>
  673. <Grid.RowDefinitions>
  674. <RowDefinition Height="40" />
  675. <RowDefinition Height="170" />
  676. </Grid.RowDefinitions>
  677. <Grid.ColumnDefinitions>
  678. <ColumnDefinition Width="*" />
  679. <ColumnDefinition Width="*" />
  680. <ColumnDefinition Width="*" />
  681. </Grid.ColumnDefinitions>
  682. <Label Content="Speed Configuration" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  683. <Grid Grid.Row="5" Grid.ColumnSpan="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  684. <Grid.Resources>
  685. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  686. <Setter Property="VerticalAlignment" Value="Center" />
  687. <Setter Property="HorizontalAlignment" Value="Left" />
  688. <Setter Property="Margin" Value="10,0,0,0" />
  689. </Style>
  690. </Grid.Resources>
  691. <Grid.ColumnDefinitions>
  692. <ColumnDefinition Width="180" />
  693. <ColumnDefinition Width="*" />
  694. </Grid.ColumnDefinitions>
  695. <Grid.RowDefinitions>
  696. <RowDefinition Height="38" />
  697. <RowDefinition Height="38" />
  698. <RowDefinition Height="38" />
  699. <RowDefinition Height="40" />
  700. </Grid.RowDefinitions>
  701. <Label Grid.Row="0" Content="Read Speed" Margin="10,4,0,4" />
  702. <TextBox x:Name="txtABWSpeed" Text="{Binding CurrentReadSpeedData}" Grid.Row="0" Grid.Column="1" Margin="5,2" IsEnabled="True" Height="Auto" />
  703. <Label Grid.Row="1" Content="Set Speed" Margin="10,4,0,4" />
  704. <TextBox x:Name="txtZSpeed" Grid.Row="1" Grid.Column="1" Margin="5,2" IsEnabled="True" Height="Auto" />
  705. <Button Grid.Row="3" Grid.Column="0" Content="Read Speed" Command="{Binding Command}"
  706. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  707. ctrlCommon:CommandHelper.Target="Robot"
  708. ctrlCommon:CommandHelper.Parameter1="RobotSpeed"
  709. Grid.ColumnSpan="2"
  710. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cboSpeedType}"
  711. Margin="13,5,202,-4" Width="180" Height="35"/>
  712. <Button Grid.Row="3" Grid.Column="1" Content="Set Speed" Command="{Binding Command}"
  713. ctrlCommon:CommandHelper.CommandName="SetParameter"
  714. ctrlCommon:CommandHelper.Target="Robot"
  715. ctrlCommon:CommandHelper.Parameter1="RobotSpeed"
  716. ctrlCommon:CommandHelper.Parameter2=""
  717. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=txtZSpeed}"
  718. Margin="18,5,18,-4" Width="180" Height="35" Grid.ColumnSpan="2"/>
  719. </Grid>
  720. </Grid>
  721. </DockPanel>
  722. <DockPanel Background="#d6f1ff" Canvas.Top="269" Width="400" Height="518" Canvas.Left="675" >
  723. <Grid>
  724. <Grid.Resources>
  725. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  726. <Setter Property="VerticalAlignment" Value="Center" />
  727. <Setter Property="HorizontalAlignment" Value="Center" />
  728. </Style>
  729. </Grid.Resources>
  730. <Grid.RowDefinitions>
  731. <RowDefinition Height="40" />
  732. <RowDefinition Height="460" />
  733. </Grid.RowDefinitions>
  734. <Grid.ColumnDefinitions>
  735. <ColumnDefinition Width="*" />
  736. <ColumnDefinition Width="*" />
  737. <ColumnDefinition Width="*" />
  738. </Grid.ColumnDefinitions>
  739. <Label Content="Mapping Paramter" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  740. <Grid Grid.Row="1" Grid.ColumnSpan="3" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent" Margin="0,0,0,-23">
  741. <Grid.Resources>
  742. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  743. <Setter Property="VerticalAlignment" Value="Center" />
  744. <Setter Property="HorizontalAlignment" Value="Left" />
  745. <Setter Property="Margin" Value="10,0,0,0" />
  746. </Style>
  747. </Grid.Resources>
  748. <Grid.ColumnDefinitions>
  749. <ColumnDefinition Width="180" />
  750. <ColumnDefinition Width="100" />
  751. <ColumnDefinition />
  752. </Grid.ColumnDefinitions>
  753. <Grid.RowDefinitions>
  754. <RowDefinition Height="38" />
  755. <RowDefinition Height="38" />
  756. <RowDefinition Height="38" />
  757. <RowDefinition Height="38" />
  758. <RowDefinition Height="38" />
  759. <RowDefinition Height="38" />
  760. <RowDefinition Height="38" />
  761. <RowDefinition Height="38" />
  762. <RowDefinition Height="38" />
  763. <RowDefinition Height="38" />
  764. <RowDefinition Height="38" />
  765. <RowDefinition Height="40" />
  766. </Grid.RowDefinitions>
  767. <Label Grid.Row="0" Content="1st Slot Pos" Margin="10,4,0,5" Height="32" Width="117"/>
  768. <Label Grid.Column="1" Content="{Binding MappingFirstSlotPosition}" Grid.Row="0" Height="32" Margin="5,4,0,5" Width="85" />
  769. <TextBox x:Name="txtSetValue_MappingFirstSlotPosition" Grid.Row="0" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  770. <Label Grid.Row="1" Content="Top Slot Pos" Margin="10,5,0,4" Height="32" Width="122"/>
  771. <Label Grid.Column="1" Content="{Binding MappingTopSlotPostion}" Grid.Row="1" Height="32" Margin="5,4,0,5" Width="85" />
  772. <TextBox x:Name="txtSetValue_MappingTopSlotPostion" Grid.Row="1" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  773. <Label Grid.Row="2" Content="Slots Number" Margin="10,4,0,5" Height="32" Width="170"/>
  774. <Label Grid.Row="2" Grid.Column="1"
  775. Content="{Binding MappingSlotsNumber}" Height="32" Margin="5,4,0,5" Width="85" />
  776. <TextBox x:Name="txtSetValue_MappingSlotsNumber" Grid.Row="2" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  777. <Label Grid.Row="3" Content="Min detect width" Margin="10,5,0,4" Height="32" Width="155" />
  778. <Label Grid.Row="3" Grid.Column="1" Content="{Binding MappingMinDetectWidth}" Height="32" Margin="5,4,0,5" Width="85" />
  779. <TextBox x:Name="txtSetValue_MappingMinDetectWidth"
  780. Grid.Row="3" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto"/>
  781. <Label Grid.Row="4" Content="Max detect width" Margin="10,4,0,5" Width="160" Height="31"/>
  782. <Label Grid.Row="4" Grid.Column="1"
  783. Content="{Binding MappingMaxDetectWidth}" Height="32" Margin="5,4,0,4" Width="85" />
  784. <TextBox x:Name="txtSetValue_MappingMaxDetectWidth" Grid.Row="4" Grid.Column="2"
  785. Margin="5,3,5,2" IsEnabled="True" Height="Auto"/>
  786. <Label Grid.Row="5" Content="Gate Width" Margin="10,4,0,4" Height="32" Width="160"/>
  787. <Label Grid.Row="5" Grid.Column="1"
  788. Content="{Binding MappingGateWidth}" Height="32" Margin="5,4,0,4" Width="85" />
  789. <TextBox x:Name="txtSetValue_MappingGateWidth" Grid.Row="5" Grid.Column="2"
  790. Margin="5,3,5,2" IsEnabled="True" Height="Auto"/>
  791. <Label Grid.Row="6" Content="Stop Pos" Margin="10,4,0,4" Height="32" Width="91" />
  792. <Label Grid.Row="6" Grid.Column="1" Content="{Binding MappingStopPostion}" Height="32" Margin="5,4,0,4" Width="85" />
  793. <TextBox x:Name="txtSetValue_MappingStopPostion" Grid.Row="6" Grid.Column="2"
  794. Margin="5,3,5,2" IsEnabled="True" Height="Auto"/>
  795. <Label Grid.Row="7" Content="Search Speed" Margin="10,4,0,4" Height="32" Width="137" />
  796. <Label Grid.Row="7" Grid.Column="1" Content="{Binding MappingSpeed}" Height="32" Margin="5,4,0,4" Width="85" />
  797. <TextBox x:Name="txtSetValue_MappingSpeed" Grid.Row="7" Grid.Column="2"
  798. Margin="5,3,5,2" IsEnabled="True" Height="Auto"/>
  799. <Label Grid.Row="8" Content="Mapping Sensor" Margin="10,4,0,5" Width="170" Height="31" />
  800. <Label Grid.Row="8" Grid.Column="1" Content="{Binding IsMappingSensorON}" Grid.ColumnSpan="2" Height="32" Margin="5,4,0,4" Width="210" />
  801. <Label Grid.Row="9" Content="Wafer Result" Margin="10,4,0,5" Width="170" Height="31" />
  802. <Label Grid.Row="9" Grid.Column="1" Content="{Binding MappingWaferResult}" Grid.ColumnSpan="2" Height="32" Margin="5,4,0,4" Width="210" />
  803. <Label Grid.Row="10" Content="Width Result" Margin="10,4,0,5" Width="170" Height="31" />
  804. <Label Grid.Row="10" Grid.Column="1" Content="{Binding MappingWidthResult}" Grid.ColumnSpan="2" Height="32" Margin="5,4,0,4" Width="210" />
  805. <StackPanel Orientation="Horizontal" Grid.Row="11" Grid.ColumnSpan="3" Margin="0,0,0,-13" >
  806. <Button Command="{Binding Command}"
  807. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  808. ctrlCommon:CommandHelper.Target="Robot"
  809. ctrlCommon:CommandHelper.Parameter1="MappingData"
  810. Margin="12,6,5,0" Content="Read" VerticalAlignment="Top" Width="113" Height="35"/>
  811. <Button
  812. Command="{Binding Command}"
  813. ctrlCommon:CommandHelper.CommandName="SetParameter"
  814. ctrlCommon:CommandHelper.Target="Robot"
  815. ctrlCommon:CommandHelper.Parameter1="MappingData"
  816. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtSetValue_MappingFirstSlotPosition}"
  817. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtSetValue_MappingTopSlotPostion}"
  818. ctrlCommon:CommandHelper.Parameter4="{Binding Text,ElementName=txtSetValue_MappingSlotsNumber}"
  819. ctrlCommon:CommandHelper.Parameter5="{Binding Text,ElementName=txtSetValue_MappingMinDetectWidth}"
  820. ctrlCommon:CommandHelper.Parameter6="{Binding Text,ElementName=txtSetValue_MappingMaxDetectWidth}"
  821. ctrlCommon:CommandHelper.Parameter7="{Binding Text,ElementName=txtSetValue_MappingGateWidth}"
  822. ctrlCommon:CommandHelper.Parameter8="{Binding Text,ElementName=txtSetValue_MappingStopPostion}"
  823. ctrlCommon:CommandHelper.Parameter9="{Binding Text,ElementName=txtSetValue_MappingSpeed}"
  824. Margin="5,6,5,0" Content="Set" VerticalAlignment="Top" Width="113" Height="35"/>
  825. <Button
  826. Command="{Binding Command}"
  827. ctrlCommon:CommandHelper.CommandName="SetParameter"
  828. ctrlCommon:CommandHelper.Target="Robot"
  829. ctrlCommon:CommandHelper.Parameter1="MappingCommand"
  830. Margin="5,6,5,0" Content="Execute" VerticalAlignment="Top" Width="135" Height="35"/>
  831. </StackPanel>
  832. </Grid>
  833. </Grid>
  834. </DockPanel>
  835. <!--StackPanel Orientation="Horizontal" Canvas.Left="290" Canvas.Top="760" >
  836. <ComboBox x:Name="cbo_LPOption" ItemsSource="{Binding LoadPortList}" SelectedValuePath="Value" Width="125"/>
  837. <ComboBox x:Name="cbo_MdataOption" ItemsSource="{Binding MappingParameterType}" SelectedValuePath="Value" Width="100"/>
  838. <Button Command="{Binding Command}"
  839. ctrlCommon:CommandHelper.CommandName="SetParameter"
  840. ctrlCommon:CommandHelper.Target="Robot"
  841. ctrlCommon:CommandHelper.Parameter1="MappingDataForLP"
  842. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cbo_LPOption}"
  843. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=cbo_MdataOption}"
  844. ctrlCommon:CommandHelper.Parameter4="WS4"
  845. Margin="8,0,0,0" Width="67" Height="30" Content="4'" VerticalAlignment="Center" />
  846. <Button Command="{Binding Command}"
  847. ctrlCommon:CommandHelper.CommandName="SetParameter"
  848. ctrlCommon:CommandHelper.Target="Robot"
  849. ctrlCommon:CommandHelper.Parameter1="MappingDataForLP"
  850. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cbo_LPOption}"
  851. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=cbo_MdataOption}"
  852. ctrlCommon:CommandHelper.Parameter4="WS6"
  853. Margin="8,0,0,0" Width="67" Height="30" Content="6'" VerticalAlignment="Center" />
  854. </-->
  855. </Canvas>
  856. </Border>
  857. </Grid>
  858. </UserControl>