123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <uc:ViewModelControl x:Class="Aitex.Sorter.UI.Controls.RobotControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:Aitex.Sorter.UI.Controls"
- xmlns:uc="clr-namespace:Aitex.Sorter.UI.Controls"
- xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=MECF.Framework.Common"
- xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
- xmlns:s="clr-namespace:System;assembly=mscorlib"
- xmlns:equipment="clr-namespace:MECF.Framework.Common.Equipment;assembly=MECF.Framework.Common"
- xmlns:common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
- xmlns:converter="clr-namespace:Aitex.Sorter.UI.Converter"
- xmlns:converters="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core"
- mc:Ignorable="d" x:Name="self"
- d:DesignHeight="560" d:DesignWidth="560">
- <UserControl.Resources>
- <s:Int32 x:Key="MoveOption" >0</s:Int32>
- <Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- </Style>
- <local:TargetSlotConverter x:Key="TargetSlotConverter" />
- <local:TargetKeyValueConverter x:Key="TargetKeyValueConverter"/>
- <converters:bool2VisibilityConverter x:Key="bool2VisibilityConvert"/>
- </UserControl.Resources>
- <Grid x:Name="root">
- <uc:HeaderPanel Grid.Row="0" Width="560" Height="560" HorizontalAlignment="left" VerticalAlignment="Top" Header="Robot">
- <Grid Height="600" ctrlCommon:GridHelper.Column0="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent" ctrlCommon:GridHelper.Column2="{StaticResource Table_BG_Title}" ctrlCommon:GridHelper.Column3="Transparent" VerticalAlignment="Top">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1.2*" />
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="1.2*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="1.2*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Content="{DynamicResource GlobalLableRobotStatus}" />
- <Label Content="{Binding Status}" Grid.Row="0" Grid.Column="1" />
- <Label Grid.Row="0" Grid.Column="2" Content="{DynamicResource GlobalLableRobotErrorCode}" />
- <Label Content="{Binding ErrorCode}" Grid.Row="0" Grid.Column="3" />
- <Label Grid.Row="1" Grid.Column="0" Content="{DynamicResource GlobalLableRobotBlade1Target}" />
- <Label Content="{Binding RobotBlade1Traget}" Grid.Row="1" Grid.Column="1" />
- <Label Grid.Row="1" Grid.Column="2" Content="{DynamicResource GlobalLableRobotBlade2Target}" />
- <Label Content="{Binding RobotBlade2Traget}" Grid.Row="1" Grid.Column="3" />
- <Grid Grid.Row="2" VerticalAlignment="Center" Grid.ColumnSpan="4">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="140,0,0,0">
- <Button Content="{DynamicResource GlobalBtnRobotHome}" Command="{Binding Command}"
- ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.RobotHome}"
- ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.Robot}" />
- <Button Content="{DynamicResource GlobalBtnRobotReset}" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.RobotReset}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.Robot}" />
- <Button Content="{DynamicResource GlobalBtnRobotStop}" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.RobotStop}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.Robot}"/>
- </StackPanel>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="140" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <ComboBox x:Name="cboGripHand" Margin="4" ItemsSource="{Binding Hands}"/>
- <StackPanel Grid.Column="1" Orientation="Horizontal">
- <Button Content="{DynamicResource GlobalBtnRobotGrip}" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.RobotGrip}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.Robot}" ctrlCommon:CommandHelper.Parameter1="{Binding SelectedIndex, ElementName=cboGripHand}"/>
- <Button Content="{DynamicResource GlobalBtnRobotUngrip}" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.RobotRelease}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.Robot}" ctrlCommon:CommandHelper.Parameter1="{Binding SelectedIndex, ElementName=cboGripHand}"/>
- </StackPanel>
- </Grid>
- </Grid>
- <Label Content="{DynamicResource GlobalLableRobotSpeed}" Grid.Row="3" Grid.Column="0"/>
- <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" >
- <Button Command="{Binding SetSpeedCommand}" ctrlCommon:CommandHelper.CommandName="{x:Static common:OperationName.SetSpeed}" ctrlCommon:CommandHelper.Parameter1="3"
- Margin="8,0,0,0" Content="{DynamicResource GlobalBtnRobotLow}" VerticalAlignment="Center" />
- <Button Command="{Binding SetSpeedCommand}" ctrlCommon:CommandHelper.CommandName="{x:Static common:OperationName.SetSpeed}" ctrlCommon:CommandHelper.Parameter1="2"
- Margin="8,0,0,0" Content="{DynamicResource GlobalBtnRobotMedium}" VerticalAlignment="Center" />
- <Button Command="{Binding SetSpeedCommand}" ctrlCommon:CommandHelper.CommandName="{x:Static common:OperationName.SetSpeed}" ctrlCommon:CommandHelper.Parameter1="1"
- Margin="8,0,0,0" Content="{DynamicResource GlobalBtnRobotHigh}" VerticalAlignment="Center"
- Visibility="{Binding ElementName=self, Path=EnableHighSpeed, Converter={StaticResource bool2VisibilityConvert}}"/>
- </StackPanel>
- <Grid Grid.Row="4" Grid.RowSpan="2" Grid.ColumnSpan="4">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <ComboBox x:Name="cboPickTarget" Grid.Row="0" Grid.Column="0" Margin="4" ItemsSource="{Binding Target}" DisplayMemberPath="Key" SelectedValuePath="Value"/>
- <ComboBox x:Name="cboPickSlot" DisplayMemberPath="Key" SelectedValuePath="Value" Grid.Row="0" Grid.Column="1" Margin="4" ItemsSource="{Binding SelectedValue, ElementName=cboPickTarget,Converter={StaticResource TargetSlotConverter}}" IsEnabled="{Binding SelectedItem, ElementName=cboPickTarget, Converter={StaticResource valueNotMatchConverter}}"/>
- <ComboBox x:Name="cboPickHand" Grid.Row="0" Grid.Column="2" Margin="4" ItemsSource="{Binding Hands}"/>
- <Button Grid.Row="0" Grid.Column="3" Content="{DynamicResource GlobalBtnRobotPick}" Command="{Binding OperationCommand}" ctrlCommon:CommandHelper.CommandName="{x:Static common:OperationName.MoveWafer}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.Robot}" ctrlCommon:CommandHelper.Parameter1="{x:Static Common:MoveType.Move}" ctrlCommon:CommandHelper.Parameter2="{StaticResource MoveOption}" ctrlCommon:CommandHelper.Parameter3="{Binding SelectedItem, ElementName=cboPickHand}" ctrlCommon:CommandHelper.Parameter4="{Binding SelectedItem, ElementName=cboPickTarget, Converter={StaticResource TargetKeyValueConverter}}" ctrlCommon:CommandHelper.Parameter5="{Binding SelectedValue ,ElementName=cboPickSlot}" ctrlCommon:CommandHelper.Parameter6="{x:Static equipment:ModuleName.Robot}" ctrlCommon:CommandHelper.Parameter7="{Binding SelectedIndex, ElementName=cboPickHand}"/>
- <ComboBox x:Name="cboPlaceTarget" Grid.Row="1" Grid.Column="0" Margin="4" ItemsSource="{Binding Target}" DisplayMemberPath="Key" SelectedValuePath="Value"/>
- <ComboBox x:Name="cboPlaceSlot" DisplayMemberPath="Key" SelectedValuePath="Value" Grid.Row="1" Grid.Column="1" Margin="4" ItemsSource="{Binding SelectedValue, ElementName=cboPlaceTarget,Converter={StaticResource TargetSlotConverter}}" IsEnabled="{Binding SelectedItem, ElementName=cboPlaceTarget, Converter={StaticResource valueNotMatchConverter}}"/>
- <ComboBox x:Name="cboPlaceHand" Grid.Row="1" Grid.Column="2" Margin="4" ItemsSource="{Binding Hands}"/>
- <Button Grid.Row="1" Grid.Column="3" Content="{DynamicResource GlobalBtnRobotPlace}" Command="{Binding OperationCommand}"
- ctrlCommon:CommandHelper.CommandName="{x:Static common:OperationName.MoveWafer}"
- ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.Robot}"
- ctrlCommon:CommandHelper.Parameter1="{x:Static Common:MoveType.Move}"
- ctrlCommon:CommandHelper.Parameter2="{StaticResource MoveOption}"
- ctrlCommon:CommandHelper.Parameter3="{Binding SelectedItem, ElementName=cboPlaceHand}"
- ctrlCommon:CommandHelper.Parameter4="{x:Static equipment:ModuleName.Robot}"
- ctrlCommon:CommandHelper.Parameter5="{Binding SelectedIndex, ElementName=cboPlaceHand}"
- ctrlCommon:CommandHelper.Parameter6="{Binding SelectedItem, ElementName=cboPlaceTarget, Converter={StaticResource TargetKeyValueConverter}}"
- ctrlCommon:CommandHelper.Parameter7="{Binding SelectedValue ,ElementName=cboPlaceSlot}"/>
- <!--<ComboBox x:Name="cboGotoTarget" Grid.Row="2" Grid.Column="0" Margin="4" ItemsSource="{Binding Target}" DisplayMemberPath="Key" SelectedValuePath="Value"/>
- <ComboBox x:Name="cboGotoSlot" DisplayMemberPath="Key" SelectedValuePath="Value" Grid.Row="2" Grid.Column="1" Margin="4" ItemsSource="{Binding SelectedValue, ElementName=cboGotoTarget,Converter={StaticResource TargetSlotConverter}}" IsEnabled="{Binding SelectedItem, ElementName=cboGotoTarget, Converter={StaticResource valueNotMatchConverter}}"/>
- <ComboBox x:Name="cboGotoHand" Grid.Row="2" Grid.Column="2" Margin="4" ItemsSource="{Binding Hands}"/>
- <Button Grid.Row="2" Grid.Column="3" Content="Go To" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static common:DeviceOperationName.RobotGoto}" ctrlCommon:CommandHelper.Target="{x:Static common:DeviceName.Robot}" ctrlCommon:CommandHelper.Parameter1="{Binding SelectedItem, ElementName=cboGotoTarget, Converter={StaticResource TargetKeyValueConverter}}" ctrlCommon:CommandHelper.Parameter2="{Binding SelectedValue ,ElementName=cboGotoSlot}" ctrlCommon:CommandHelper.Parameter3="{Binding SelectedItem, ElementName=cboGotoHand}" ctrlCommon:CommandHelper.Parameter4="0" ctrlCommon:CommandHelper.Parameter5="0" ctrlCommon:CommandHelper.Parameter6="0" ctrlCommon:CommandHelper.Parameter7="0"/>-->
- </Grid>
- </Grid>
- </uc:HeaderPanel>
- </Grid>
- </uc:ViewModelControl>
|