RobotView.xaml 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957
  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" VerticalContentAlignment="Center" 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" FontSize="18" FontWeight="Bold" 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" VerticalContentAlignment="Center" 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" VerticalContentAlignment="Center" 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" VerticalContentAlignment="Center" 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" FontSize="18" FontWeight="Bold" 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}" Template="{StaticResource realism_button}"
  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" FontSize="18" FontWeight="Bold" 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}" Template="{StaticResource realism_button}"
  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}" Template="{StaticResource realism_button}"
  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}" Template="{StaticResource realism_button}"
  339. ctrlCommon:CommandHelper.CommandName="RobotStop"
  340. ctrlCommon:CommandHelper.Target="Robot" Margin="5,2,4,0" Height="35" Width="70" />
  341. <Button Command="{Binding Command}" Template="{StaticResource realism_button}"
  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}" Template="{StaticResource realism_button}"
  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="69" 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}" Template="{StaticResource realism_button}"
  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}" Template="{StaticResource realism_button}"
  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}" Template="{StaticResource realism_button}"
  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}" Template="{StaticResource realism_button}"
  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="91" 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" FontSize="18" FontWeight="Bold" 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}" Template="{StaticResource realism_button}"
  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}" Template="{StaticResource realism_button}"
  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" FontSize="18" FontWeight="Bold" 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,0" Grid.RowSpan="1">
  514. <Button Command="{Binding Command}" Template="{StaticResource realism_button}"
  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,0,5,0" VerticalAlignment="Center" Width="114" Content="Read" Height="34" />
  520. <Button Grid.ColumnSpan="1" Template="{StaticResource realism_button}"
  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="8,0,5,0" VerticalAlignment="Center" Width="116" Content="Write Position" Height="34" />
  531. <Button Grid.ColumnSpan="1" Template="{StaticResource realism_button}"
  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="8,0,5,0" VerticalAlignment="Center" Width="116" 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,5,5,5" />
  541. <Button Content="Hold" Command="{Binding Command}" Template="{StaticResource realism_button}"
  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,2" Height="35" VerticalAlignment="Center" />
  546. <Button Content="Release" Command="{Binding Command}" Template="{StaticResource realism_button}"
  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,2" Height="35" Width="95" VerticalAlignment="Center"/>
  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" Template="{StaticResource realism_button}"
  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" Template="{StaticResource realism_button}"
  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. </StackPanel>
  582. <StackPanel Grid.Row="9" Grid.Column="0" Grid.ColumnSpan ="3" Orientation="Horizontal" HorizontalAlignment="Right" Width="396">
  583. <ComboBox x:Name="cboSwapTarget"
  584. ItemsSource="{Binding RobotTargetStation}" SelectedValuePath="Value" Width="90" Margin="5,5,5,5" />
  585. <ComboBox x:Name="cboSwapSlot" SelectedValuePath="Value"
  586. ItemsSource="{Binding RobotSelectSlot}"
  587. IsEnabled="True" Width="85" Margin="5,5,5,5" />
  588. <ComboBox x:Name="cboSwapPickHand" Grid.Row="16" ItemsSource="{Binding RobotArmSelected}" Grid.ColumnSpan="2" Margin="5,5,5,5" Width="100" />
  589. <Button Grid.Row="16" Grid.Column="1" Content="Swap" Command="{Binding Command}" Margin="5,2,5,0" Template="{StaticResource realism_button}"
  590. ctrlCommon:CommandHelper.CommandName="RobotExchange"
  591. ctrlCommon:CommandHelper.Target="Robot"
  592. ctrlCommon:CommandHelper.Parameter1="{Binding Text, ElementName=cboSwapTarget}"
  593. ctrlCommon:CommandHelper.Parameter2="{Binding Text ,ElementName=cboSwapSlot}"
  594. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=cboSwapPickHand}"
  595. Width="75" Height="35" />
  596. </StackPanel>
  597. </Grid>
  598. </Grid>
  599. </DockPanel>
  600. <DockPanel Background="#d6f1ff" Canvas.Right="10" Canvas.Top="460" Height="326" Canvas.Left="1500" Width="395">
  601. <Grid>
  602. <Grid.Resources>
  603. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  604. <Setter Property="VerticalAlignment" Value="Center" />
  605. <Setter Property="HorizontalAlignment" Value="Center" />
  606. </Style>
  607. </Grid.Resources>
  608. <Grid.RowDefinitions>
  609. <RowDefinition Height="40" />
  610. <RowDefinition Height="300" />
  611. </Grid.RowDefinitions>
  612. <Grid.ColumnDefinitions>
  613. <ColumnDefinition Width="*" />
  614. <ColumnDefinition Width="*" />
  615. <ColumnDefinition Width="*" />
  616. </Grid.ColumnDefinitions>
  617. <Label Content="Compaund Command Editor" FontSize="18" FontWeight="Bold" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  618. <Grid Grid.Row="5" Grid.ColumnSpan="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  619. <Grid.Resources>
  620. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  621. <Setter Property="VerticalAlignment" Value="Center" />
  622. <Setter Property="HorizontalAlignment" Value="Left" />
  623. <Setter Property="Margin" Value="10,0,0,0" />
  624. </Style>
  625. </Grid.Resources>
  626. <Grid.ColumnDefinitions>
  627. <ColumnDefinition Width="180" />
  628. <ColumnDefinition Width="100" />
  629. <ColumnDefinition Width="*" />
  630. </Grid.ColumnDefinitions>
  631. <Grid.RowDefinitions>
  632. <RowDefinition Height="40" />
  633. <RowDefinition Height="186" />
  634. <RowDefinition Height="40" />
  635. </Grid.RowDefinitions>
  636. <Label Grid.Row="0" Content="Routine Selection" />
  637. <ComboBox Grid.Row="0" Grid.Column="1" x:Name="cboRoutineSelection"
  638. ItemsSource="{Binding JelCompaundCommandType}" SelectedValuePath="Value" Margin="5,5,5,5" Width="90" />
  639. <TextBox x:Name="txtCompaundCommandNO" Grid.Row="0" Grid.Column="2" Margin="5,2" IsEnabled="True" />
  640. <Label Grid.Row="1" Content ="Routine Content" Height="38" Margin="12,10,0,153" />
  641. <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" />
  642. <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" />
  643. <TextBox x:Name="txtCompaundCommandSet" TextWrapping="Wrap" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,98,5,10" IsEnabled="True" Height="Auto" />
  644. <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="3" Margin="0,0,0,-13">
  645. <Button Command="{Binding Command}" IsEnabled="True" Template="{StaticResource realism_button}"
  646. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  647. ctrlCommon:CommandHelper.Target="Robot"
  648. ctrlCommon:CommandHelper.Parameter1="CompaundCommand"
  649. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cboRoutineSelection}"
  650. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtCompaundCommandNO}"
  651. Margin="17,2,5,0" VerticalAlignment="Center" Width="170" Height="35" Content="Read" />
  652. <Button Command="{Binding Command}" Template="{StaticResource realism_button}"
  653. ctrlCommon:CommandHelper.CommandName="SetParameter"
  654. ctrlCommon:CommandHelper.Target="Robot"
  655. ctrlCommon:CommandHelper.Parameter1="CompaundCommand"
  656. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cboRoutineSelection}"
  657. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtCompaundCommandNO}"
  658. ctrlCommon:CommandHelper.Parameter4="{Binding Text,ElementName=txtCompaundCommandSet}"
  659. Margin="15,2,5,0" VerticalAlignment="Center" Width="170" Height="35" Content="Write" />
  660. </StackPanel>
  661. </Grid>
  662. </Grid>
  663. </DockPanel>
  664. <DockPanel Background="#d6f1ff" Canvas.Top="575" Height="210" Canvas.Left="1090" Width="395">
  665. <Grid>
  666. <Grid.Resources>
  667. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  668. <Setter Property="VerticalAlignment" Value="Center" />
  669. <Setter Property="HorizontalAlignment" Value="Center" />
  670. </Style>
  671. </Grid.Resources>
  672. <Grid.RowDefinitions>
  673. <RowDefinition Height="40" />
  674. <RowDefinition Height="170" />
  675. </Grid.RowDefinitions>
  676. <Grid.ColumnDefinitions>
  677. <ColumnDefinition Width="*" />
  678. <ColumnDefinition Width="*" />
  679. <ColumnDefinition Width="*" />
  680. </Grid.ColumnDefinitions>
  681. <Label Content="Speed Configuration" FontSize="18" FontWeight="Bold" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  682. <Grid Grid.Row="5" Grid.ColumnSpan="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  683. <Grid.Resources>
  684. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  685. <Setter Property="VerticalAlignment" Value="Center" />
  686. <Setter Property="HorizontalAlignment" Value="Left" />
  687. <Setter Property="Margin" Value="10,0,0,0" />
  688. </Style>
  689. </Grid.Resources>
  690. <Grid.ColumnDefinitions>
  691. <ColumnDefinition Width="180" />
  692. <ColumnDefinition Width="*" />
  693. </Grid.ColumnDefinitions>
  694. <Grid.RowDefinitions>
  695. <RowDefinition Height="38" />
  696. <RowDefinition Height="38" />
  697. <RowDefinition Height="38" />
  698. <RowDefinition Height="40" />
  699. </Grid.RowDefinitions>
  700. <Label Grid.Row="0" Content="Read Speed" Margin="10,4,0,4" />
  701. <TextBox x:Name="txtABWSpeed" Text="{Binding CurrentReadSpeedData}" Grid.Row="0" Grid.Column="1" Margin="5,2" IsEnabled="True" Height="Auto" />
  702. <Label Grid.Row="1" Content="Set Speed" Margin="10,4,0,4" />
  703. <TextBox x:Name="txtZSpeed" Grid.Row="1" Grid.Column="1" Margin="5,2" IsEnabled="True" Height="Auto" />
  704. <Button Grid.Row="3" Grid.Column="0" Content="Read Speed" Command="{Binding Command}" Template="{StaticResource realism_button}"
  705. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  706. ctrlCommon:CommandHelper.Target="Robot"
  707. ctrlCommon:CommandHelper.Parameter1="RobotSpeed"
  708. Grid.ColumnSpan="2"
  709. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cboSpeedType}"
  710. Margin="13,5,202,-4" Width="170" Height="35" />
  711. <Button Grid.Row="3" Grid.Column="1" Content="Set Speed" Command="{Binding Command}" Template="{StaticResource realism_button}"
  712. ctrlCommon:CommandHelper.CommandName="SetParameter"
  713. ctrlCommon:CommandHelper.Target="Robot"
  714. ctrlCommon:CommandHelper.Parameter1="RobotSpeed"
  715. ctrlCommon:CommandHelper.Parameter2=""
  716. ctrlCommon:CommandHelper.Parameter3="{Binding Text, ElementName=txtZSpeed}"
  717. Margin="18,5,18,-4" Width="170" Height="35" Grid.ColumnSpan="2" />
  718. </Grid>
  719. </Grid>
  720. </DockPanel>
  721. <DockPanel Background="#d6f1ff" Canvas.Top="269" Width="400" Height="518" Canvas.Left="675">
  722. <Grid>
  723. <Grid.Resources>
  724. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  725. <Setter Property="VerticalAlignment" Value="Center" />
  726. <Setter Property="HorizontalAlignment" Value="Center" />
  727. </Style>
  728. </Grid.Resources>
  729. <Grid.RowDefinitions>
  730. <RowDefinition Height="40" />
  731. <RowDefinition Height="460" />
  732. </Grid.RowDefinitions>
  733. <Grid.ColumnDefinitions>
  734. <ColumnDefinition Width="*" />
  735. <ColumnDefinition Width="*" />
  736. <ColumnDefinition Width="*" />
  737. </Grid.ColumnDefinitions>
  738. <Label Content="Mapping Paramter" FontSize="18" FontWeight="Bold" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Width="400" Style="{StaticResource label}" />
  739. <Grid Grid.Row="1" Grid.ColumnSpan="3" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent" Margin="0,0,0,-23">
  740. <Grid.Resources>
  741. <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
  742. <Setter Property="VerticalAlignment" Value="Center" />
  743. <Setter Property="HorizontalAlignment" Value="Left" />
  744. <Setter Property="Margin" Value="10,0,0,0" />
  745. </Style>
  746. </Grid.Resources>
  747. <Grid.ColumnDefinitions>
  748. <ColumnDefinition Width="180" />
  749. <ColumnDefinition Width="100" />
  750. <ColumnDefinition />
  751. </Grid.ColumnDefinitions>
  752. <Grid.RowDefinitions>
  753. <RowDefinition Height="38" />
  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="40" />
  765. </Grid.RowDefinitions>
  766. <Label Grid.Row="0" Content="1st Slot Pos" Margin="10,4,0,5" Height="32" Width="117" />
  767. <Label Grid.Column="1" Content="{Binding MappingFirstSlotPosition}" Grid.Row="0" Height="32" Margin="5,4,0,5" Width="85" />
  768. <TextBox x:Name="txtSetValue_MappingFirstSlotPosition" Grid.Row="0" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto" />
  769. <Label Grid.Row="1" Content="Top Slot Pos" Margin="10,5,0,4" Height="32" Width="122" />
  770. <Label Grid.Column="1" Content="{Binding MappingTopSlotPostion}" Grid.Row="1" Height="32" Margin="5,4,0,5" Width="85" />
  771. <TextBox x:Name="txtSetValue_MappingTopSlotPostion" Grid.Row="1" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto" />
  772. <Label Grid.Row="2" Content="Slots Number" Margin="10,4,0,5" Height="32" Width="170" />
  773. <Label Grid.Row="2" Grid.Column="1"
  774. Content="{Binding MappingSlotsNumber}" Height="32" Margin="5,4,0,5" Width="85" />
  775. <TextBox x:Name="txtSetValue_MappingSlotsNumber" Grid.Row="2" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto" />
  776. <Label Grid.Row="3" Content="Min detect width" Margin="10,5,0,4" Height="32" Width="155" />
  777. <Label Grid.Row="3" Grid.Column="1" Content="{Binding MappingMinDetectWidth}" Height="32" Margin="5,4,0,5" Width="85" />
  778. <TextBox x:Name="txtSetValue_MappingMinDetectWidth"
  779. Grid.Row="3" Grid.Column="2" Margin="5,3" IsEnabled="True" Height="Auto" />
  780. <Label Grid.Row="4" Content="Max detect width" Margin="10,4,0,5" Width="160" Height="31" />
  781. <Label Grid.Row="4" Grid.Column="1"
  782. Content="{Binding MappingMaxDetectWidth}" Height="32" Margin="5,4,0,4" Width="85" />
  783. <TextBox x:Name="txtSetValue_MappingMaxDetectWidth" Grid.Row="4" Grid.Column="2"
  784. Margin="5,3,5,2" IsEnabled="True" Height="Auto" />
  785. <Label Grid.Row="5" Content="Gate Width" Margin="10,4,0,4" Height="32" Width="160" />
  786. <Label Grid.Row="5" Grid.Column="1"
  787. Content="{Binding MappingGateWidth}" Height="32" Margin="5,4,0,4" Width="85" />
  788. <TextBox x:Name="txtSetValue_MappingGateWidth" Grid.Row="5" Grid.Column="2"
  789. Margin="5,3,5,2" IsEnabled="True" Height="Auto" />
  790. <Label Grid.Row="6" Content="Stop Pos" Margin="10,4,0,4" Height="32" Width="91" />
  791. <Label Grid.Row="6" Grid.Column="1" Content="{Binding MappingStopPostion}" Height="32" Margin="5,4,0,4" Width="85" />
  792. <TextBox x:Name="txtSetValue_MappingStopPostion" Grid.Row="6" Grid.Column="2"
  793. Margin="5,3,5,2" IsEnabled="True" Height="Auto" />
  794. <Label Grid.Row="7" Content="Search Speed" Margin="10,4,0,4" Height="32" Width="137" />
  795. <Label Grid.Row="7" Grid.Column="1" Content="{Binding MappingSpeed}" Height="32" Margin="5,4,0,4" Width="85" />
  796. <TextBox x:Name="txtSetValue_MappingSpeed" Grid.Row="7" Grid.Column="2"
  797. Margin="5,3,5,2" IsEnabled="True" Height="Auto" />
  798. <Label Grid.Row="8" Content="Mapping Sensor" Margin="10,4,0,5" Width="170" Height="31" />
  799. <Label Grid.Row="8" Grid.Column="1" Content="{Binding IsMappingSensorON}" Grid.ColumnSpan="2" Height="32" Margin="5,4,0,4" Width="210" />
  800. <Label Grid.Row="9" Content="Wafer Result" Margin="10,4,0,5" Width="170" Height="31" />
  801. <Label Grid.Row="9" Grid.Column="1" Content="{Binding MappingWaferResult}" Grid.ColumnSpan="2" Height="32" Margin="5,4,0,4" Width="210" />
  802. <Label Grid.Row="10" Content="Width Result" Margin="10,4,0,5" Width="170" Height="31" />
  803. <Label Grid.Row="10" Grid.Column="1" Content="{Binding MappingWidthResult}" Grid.ColumnSpan="2" Height="32" Margin="5,4,0,4" Width="210" />
  804. <StackPanel Orientation="Horizontal" Grid.Row="11" Grid.ColumnSpan="3" Margin="0,0,0,-13">
  805. <Button Command="{Binding Command}" Template="{StaticResource realism_button}"
  806. ctrlCommon:CommandHelper.CommandName="ReadParameter"
  807. ctrlCommon:CommandHelper.Target="Robot"
  808. ctrlCommon:CommandHelper.Parameter1="MappingData"
  809. Margin="12,6,5,0" Content="Read" VerticalAlignment="Top" Width="113" Height="35" />
  810. <Button
  811. Command="{Binding Command}" Template="{StaticResource realism_button}"
  812. ctrlCommon:CommandHelper.CommandName="SetParameter"
  813. ctrlCommon:CommandHelper.Target="Robot"
  814. ctrlCommon:CommandHelper.Parameter1="MappingData"
  815. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=txtSetValue_MappingFirstSlotPosition}"
  816. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=txtSetValue_MappingTopSlotPostion}"
  817. ctrlCommon:CommandHelper.Parameter4="{Binding Text,ElementName=txtSetValue_MappingSlotsNumber}"
  818. ctrlCommon:CommandHelper.Parameter5="{Binding Text,ElementName=txtSetValue_MappingMinDetectWidth}"
  819. ctrlCommon:CommandHelper.Parameter6="{Binding Text,ElementName=txtSetValue_MappingMaxDetectWidth}"
  820. ctrlCommon:CommandHelper.Parameter7="{Binding Text,ElementName=txtSetValue_MappingGateWidth}"
  821. ctrlCommon:CommandHelper.Parameter8="{Binding Text,ElementName=txtSetValue_MappingStopPostion}"
  822. ctrlCommon:CommandHelper.Parameter9="{Binding Text,ElementName=txtSetValue_MappingSpeed}"
  823. Margin="12,6,5,0" Content="Set" VerticalAlignment="Top" Width="113" Height="35" />
  824. <Button
  825. Command="{Binding Command}" Template="{StaticResource realism_button}"
  826. ctrlCommon:CommandHelper.CommandName="SetParameter"
  827. ctrlCommon:CommandHelper.Target="Robot"
  828. ctrlCommon:CommandHelper.Parameter1="MappingCommand"
  829. Margin="12,6,5,0" Content="Execute" VerticalAlignment="Top" Width="113" Height="35" />
  830. </StackPanel>
  831. </Grid>
  832. </Grid>
  833. </DockPanel>
  834. <!--StackPanel Orientation="Horizontal" Canvas.Left="290" Canvas.Top="760">
  835. <ComboBox x:Name="cbo_LPOption" ItemsSource="{Binding LoadPortList}" SelectedValuePath="Value" Width="125" />
  836. <ComboBox x:Name="cbo_MdataOption" ItemsSource="{Binding MappingParameterType}" SelectedValuePath="Value" Width="100" />
  837. <Button Command="{Binding Command}"
  838. ctrlCommon:CommandHelper.CommandName="SetParameter"
  839. ctrlCommon:CommandHelper.Target="Robot"
  840. ctrlCommon:CommandHelper.Parameter1="MappingDataForLP"
  841. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cbo_LPOption}"
  842. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=cbo_MdataOption}"
  843. ctrlCommon:CommandHelper.Parameter4="WS4"
  844. Margin="8,0,0,0" Width="67" Height="30" Content="4'" VerticalAlignment="Center" />
  845. <Button Command="{Binding Command}"
  846. ctrlCommon:CommandHelper.CommandName="SetParameter"
  847. ctrlCommon:CommandHelper.Target="Robot"
  848. ctrlCommon:CommandHelper.Parameter1="MappingDataForLP"
  849. ctrlCommon:CommandHelper.Parameter2="{Binding Text,ElementName=cbo_LPOption}"
  850. ctrlCommon:CommandHelper.Parameter3="{Binding Text,ElementName=cbo_MdataOption}"
  851. ctrlCommon:CommandHelper.Parameter4="WS6"
  852. Margin="8,0,0,0" Width="67" Height="30" Content="6'" VerticalAlignment="Center" />
  853. </-->
  854. </Canvas>
  855. </Border>
  856. </Grid>
  857. </UserControl>