You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
224 lines
20 KiB
224 lines
20 KiB
<UserControl x:Class="Gumming.ControlHPManualView"
|
|
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"
|
|
mc:Ignorable="d"
|
|
xmlns:local="clr-namespace:Gumming"
|
|
xmlns:tool="clr-namespace:GummingCommon;assembly=GummingCommon"
|
|
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
|
d:DesignHeight="700" d:DesignWidth="1000"
|
|
Background="Transparent"
|
|
x:Name="rootControl">
|
|
<UserControl.Resources>
|
|
<tool:IsOpenConverter x:Key="IsOpenConverter"/>
|
|
<tool:RadioButtonConverter x:Key="RadioConverter"/>
|
|
<tool:BooleanToOpacityConverter x:Key="OpacityConverter"/>
|
|
<tool:EditorTextConverter x:Key="TextBrushConverter"/>
|
|
<tool:EditorBorderConverter x:Key="BorderBrushConverter"/>
|
|
<tool:PathTypeToThemeConverter x:Key="PathTypeConverter"/>
|
|
<tool:StepStyleConverter x:Key="StepStyleConverter"/>
|
|
<tool:TagStyleConverter x:Key="TagStyleConverter"/>
|
|
<tool:ValveImageConverter x:Key="ValveImageConverter"/>
|
|
<tool:DingImageConverter x:Key="DingImageConverter"/>
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="400"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Image Source="/Gumming;component/Resource/ControlHP.png" Stretch="Fill" Width="400" Height="400">
|
|
</Image>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="330"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="70"></RowDefinition>
|
|
<RowDefinition Height="45"></RowDefinition>
|
|
<RowDefinition Height="295"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Image Grid.Row="2" Grid.Column="1" Source="{Binding Path=DingZhenStatus,Converter={StaticResource DingImageConverter}}" Stretch="Fill" Width="330" Height="45"></Image>
|
|
</Grid>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="40"></ColumnDefinition>
|
|
<ColumnDefinition Width="40"></ColumnDefinition>
|
|
<ColumnDefinition Width="40"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="260"></RowDefinition>
|
|
<RowDefinition Height="0"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="100"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="顶针" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<Image Grid.Row="2" Grid.Column="2" Source="{Binding Path=DingZhenStatus,Converter={StaticResource ValveImageConverter}}" Stretch="Fill" Width="30" Height="20"></Image>
|
|
<TextBlock Text="遮挡" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<Image Grid.Row="3" Grid.Column="2" Source="{Binding Path=WindowStatus,Converter={StaticResource ValveImageConverter}}" Stretch="Fill" Width="30" Height="20"></Image>
|
|
<TextBlock Text="真空" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<Image Grid.Row="4" Grid.Column="2" Source="{Binding Path=AttractIOStatus,Converter={StaticResource ValveImageConverter}}" Stretch="Fill" Width="30" Height="20"></Image>
|
|
<TextBlock Text="氮气" Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<Image Grid.Row="5" Grid.Column="2" Source="{Binding Path=BrowN2Status,Converter={StaticResource ValveImageConverter}}" Stretch="Fill" Width="30" Height="20"></Image>
|
|
</Grid>
|
|
<Grid Grid.Column="2">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="160"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="160"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="45"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="45"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="45"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="温度控制" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="设定温度" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="报警偏差" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="6" Grid.Column="0" Text="温度偏移" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBox Grid.Row="2" Grid.Column="2" Text="{Binding MainAxisRPM}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" IsReadOnly="True"></TextBox>
|
|
<local:FloatBox Grid.Row="2" Grid.Column="2" Text="{Binding HPSV, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" LostFocus="HPSV_LostFocus"></local:FloatBox>
|
|
<local:FloatBox Grid.Row="4" Grid.Column="2" Text="{Binding HPAlmOffset, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" LostFocus="HPAlmOffset_LostFocus"></local:FloatBox>
|
|
<local:FloatBox Grid.Row="6" Grid.Column="2" Text="{Binding HPOffset, UpdateSourceTrigger=LostFocus, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" LostFocus="HPOffset_LostFocus"></local:FloatBox>
|
|
<Button Grid.Row="2" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=DMTSetStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding DMTSetStatus}" Command="{Binding DMTSetCommand}" Content="自整定"></Button>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="2" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1.2*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="顶针速度mm/s" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="0" Grid.Column="2" Text="原点偏移mm" HorizontalAlignment="Left" VerticalAlignment="Stretch" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="0" Grid.Column="4" Text="零位位置mm" HorizontalAlignment="Left" VerticalAlignment="Stretch" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="0" Grid.Column="6" Text="当前位置mm" HorizontalAlignment="Left" VerticalAlignment="Stretch" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<local:FloatBox Grid.Row="2" Grid.Column="0" Text="{Binding MainAxisSpeed, UpdateSourceTrigger=LostFocus, StringFormat=F1}" ToolTip="{Binding MainAxisSpeed}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" LostFocus="MainAxisSpeed_LostFocus"></local:FloatBox>
|
|
<local:FloatBox Grid.Row="2" Grid.Column="2" Text="{Binding HOMEPosition, UpdateSourceTrigger=LostFocus, StringFormat=F1}" ToolTip="{Binding HOMEPosition}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" LostFocus="HOMEPosition_LostFocus"></local:FloatBox>
|
|
<local:FloatBox Grid.Row="2" Grid.Column="4" Text="{Binding MainAxisTopPosition, UpdateSourceTrigger=LostFocus, StringFormat=F1}" ToolTip="{Binding MainAxisTopPosition}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" LostFocus="MainAxisTopPosition_LostFocus"></local:FloatBox>
|
|
<TextBox Grid.Row="2" Grid.Column="6" Text="{Binding CurPosition, StringFormat=F1}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="14" IsReadOnly="True"></TextBox>
|
|
<Button IsEnabled="{Binding ProgressEnabled}" Grid.Row="4" Grid.Column="0" FontSize="15" Style="{Binding Path=ForwardStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding ForwardStatus}" Command="{Binding JogForwardCommand}" Content="JOG上升" PreviewMouseDown="JogForward_PreviewMouseDown" PreviewMouseUp="JogForward_PreviewMouseUp"></Button>
|
|
<Button IsEnabled="{Binding ProgressEnabled}" Grid.Row="4" Grid.Column="2" FontSize="15" Style="{Binding Path=BackStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding BackStatus}" Command="{Binding JogBackCommand}" Content="JOG下降" PreviewMouseDown="JogBack_PreviewMouseDown" PreviewMouseUp="JogBack_PreviewMouseUp"></Button>
|
|
<Button IsEnabled="{Binding ProgressEnabled}" Grid.Row="4" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=HOMEStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding HOMEStatus}" Command="{Binding HOMECommand}" Content="HOME"></Button>
|
|
<Button IsEnabled="{Binding ProgressEnabled}" Grid.Row="4" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=MainAxisTopStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding MainAxisTopStatus}" Command="{Binding MainAxisTopCommand}" Content="零位"></Button>
|
|
<Grid Grid.Row="14" Grid.Column="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="40"></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Text="正向:" VerticalAlignment="Center" FontSize="10" TextTrimming="CharacterEllipsis"></TextBlock>
|
|
<Rectangle Grid.Column="1" Fill="{Binding Path=IsSub3Open,Converter={StaticResource IsOpenConverter}}" RadiusX="5" RadiusY="5" Width="10" Height="10"></Rectangle>
|
|
</Grid>
|
|
<Grid Grid.Row="14" Grid.Column="4">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="40"></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Text="原点:" VerticalAlignment="Center" FontSize="10" TextTrimming="CharacterEllipsis"></TextBlock>
|
|
<Rectangle Grid.Column="1" Fill="{Binding Path=IsSub1Open,Converter={StaticResource IsOpenConverter}}" RadiusX="5" RadiusY="5" Width="10" Height="10"></Rectangle>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="4" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="气缸控制" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=WindowStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding WindowStatus}" Command="{Binding WindowCommand}" Content="顶针" IsEnabled="{Binding ProgressEnabled}"></Button>
|
|
<Button Grid.Row="0" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=WindowStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding WindowStatus}" Command="{Binding WindowCommand}" Content="遮挡罩" IsEnabled="{Binding ProgressEnabled}"></Button>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="6" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
|
|
<Grid Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="阀控制" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<!--<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=AttractIOStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding AttractIOStatus}" Command="{Binding AttractCommand}" Content="吸片真空" IsEnabled="{Binding ProgressEnabled}"></Button>-->
|
|
<Button Grid.Row="4" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=BrowN2Status,Converter={StaticResource TagStyleConverter}}" Tag="{Binding BrowN2Status}" Command="{Binding BrowN2Command}" Content="氮气" IsEnabled="{Binding ProgressEnabled}"></Button>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="8" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
|
|
<Grid Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="10"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="工位操作" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=PrepareStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding PrepareStatus}" Command="{Binding PrepareCommand}" IsEnabled="{Binding ProgressEnabled}" Content="准备"></Button>
|
|
<Button Grid.Row="0" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=TerminateStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding TerminateStatus}" Command="{Binding TerminateCommand}" Content="中止"></Button>
|
|
<Button Grid.Row="0" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=TerminateStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding TerminateStatus}" Command="{Binding TerminateCommand}" Content="初始化"></Button>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|