|
|
@@ -139,6 +139,7 @@
|
|
|
<ColumnDefinition Width="auto" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<DockPanel Grid.Column="0">
|
|
|
+ <!--选项列表-->
|
|
|
<ListBox Height="80"
|
|
|
DockPanel.Dock="Top"
|
|
|
SelectedIndex="{Binding SelectedIndex}"
|
|
|
@@ -221,31 +222,58 @@
|
|
|
<TextBlock Text="复检点位" />
|
|
|
</ListBoxItem>
|
|
|
</ListBox>
|
|
|
-
|
|
|
+ <!--点位列表操作按钮面板-->
|
|
|
<StackPanel DockPanel.Dock="Bottom"
|
|
|
Orientation="Horizontal">
|
|
|
<Button Content="添加点"
|
|
|
Margin="5,2"
|
|
|
MinWidth="80"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
Command="{Binding AddPointCommand}" />
|
|
|
<Button Content="删除点"
|
|
|
Margin="5,2"
|
|
|
MinWidth="80"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
Command="{Binding DeletePointCommand}" />
|
|
|
<Button Content="上移"
|
|
|
Margin="5,2"
|
|
|
MinWidth="80"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
Command="{Binding MovePointUpCommand}" />
|
|
|
<Button Content="下移"
|
|
|
Margin="5,2"
|
|
|
MinWidth="80"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
Command="{Binding MovePointDownCommand}" />
|
|
|
<Button Content="CAD导入点位"
|
|
|
Margin="5,2"
|
|
|
MinWidth="80"
|
|
|
- Command="{Binding ImportCadPointCommand}" />
|
|
|
+ d:Visibility="Visible"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
+ Command="{Binding ImportCadPointCommand}">
|
|
|
+ <Button.Style>
|
|
|
+ <Style TargetType="Button" BasedOn="{StaticResource MaterialDesignRaisedDarkButton}">
|
|
|
+ <Setter Property="Visibility"
|
|
|
+ Value="Collapsed" />
|
|
|
+ <Style.Triggers>
|
|
|
+ <!-- 当 SelectedIndex == 0 时显示此面板 -->
|
|
|
+ <DataTrigger Binding="{Binding SelectedIndex}"
|
|
|
+ Value="4">
|
|
|
+ <Setter Property="Visibility"
|
|
|
+ Value="Visible" />
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
</StackPanel>
|
|
|
+ <Border BorderBrush="LightGray"
|
|
|
+ BorderThickness="1"
|
|
|
+ Height="1"
|
|
|
+ DockPanel.Dock="Bottom" />
|
|
|
+
|
|
|
<DockPanel>
|
|
|
+ <!--不同点位类型的操作面板-->
|
|
|
<StackPanel DockPanel.Dock="Bottom"
|
|
|
Orientation="Vertical">
|
|
|
<!--取料拍照点位面板-->
|
|
|
@@ -348,10 +376,274 @@
|
|
|
</StackPanel>
|
|
|
</ScrollViewer>
|
|
|
</StackPanel>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ <!--锁付拍照面板-->
|
|
|
+ <StackPanel x:Name="LockCameraPanel"
|
|
|
+ Orientation="Vertical"
|
|
|
+ d:Visibility="Visible">
|
|
|
+ <StackPanel.Style>
|
|
|
+ <Style TargetType="StackPanel">
|
|
|
+ <Setter Property="Visibility"
|
|
|
+ Value="Collapsed" />
|
|
|
+ <Style.Triggers>
|
|
|
+ <!-- 当 SelectedIndex == 4 时显示此面板 -->
|
|
|
+ <DataTrigger Binding="{Binding SelectedIndex}"
|
|
|
+ Value="3">
|
|
|
+ <Setter Property="Visibility"
|
|
|
+ Value="Visible" />
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </StackPanel.Style>
|
|
|
+ <ScrollViewer HorizontalScrollBarVisibility="Auto"
|
|
|
+ VerticalScrollBarVisibility="Disabled">
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+ <TextBlock Text="拍1锁多时,相机拍照位置对应的产品坐标系中位置" />
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Left">
|
|
|
+
|
|
|
+ <TextBlock Text="拍照1:"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+
|
|
|
+ <TextBlock Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="X:" />
|
|
|
+ <TextBox MinWidth="60"
|
|
|
+ Text="{Binding SelectProduct.ScrewCameraLocalPos1.X_Position, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
+ <TextBlock Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="Y:" />
|
|
|
+ <TextBox MinWidth="60"
|
|
|
+ Text="{Binding SelectProduct.ScrewCameraLocalPos1.Y_Position, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Left">
|
|
|
+
|
|
|
+ <TextBlock Text="拍照2:"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+
|
|
|
+ <TextBlock Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="X:" />
|
|
|
+ <TextBox MinWidth="60"
|
|
|
+ Text="{Binding SelectProduct.ScrewCameraLocalPos2.X_Position, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
+ <TextBlock Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="Y:" />
|
|
|
+ <TextBox MinWidth="60"
|
|
|
+ Text="{Binding SelectProduct.ScrewCameraLocalPos2.Y_Position, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
+ </StackPanel>
|
|
|
+ <!--通过CAD导入点位按钮-->
|
|
|
+ <Button Content="通过CAD导入点位"
|
|
|
+ Margin="0,5,0,0"
|
|
|
+ MinWidth="100"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
+ Command="{Binding ImportCadLockCameraPointCommand}" />
|
|
|
+ </StackPanel>
|
|
|
+ </ScrollViewer>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <!--锁付点位面板-->
|
|
|
+ <StackPanel x:Name="LockPointPanel"
|
|
|
+ Orientation="Vertical"
|
|
|
+ d:Visibility="Visible">
|
|
|
+ <StackPanel.Style>
|
|
|
+ <Style TargetType="StackPanel">
|
|
|
+ <Setter Property="Visibility"
|
|
|
+ Value="Collapsed" />
|
|
|
+ <Style.Triggers>
|
|
|
+ <!-- 当 SelectedIndex == 4 时显示此面板 -->
|
|
|
+ <DataTrigger Binding="{Binding SelectedIndex}"
|
|
|
+ Value="4">
|
|
|
+ <Setter Property="Visibility"
|
|
|
+ Value="Visible" />
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </StackPanel.Style>
|
|
|
+ <ScrollViewer HorizontalScrollBarVisibility="Auto"
|
|
|
+ VerticalScrollBarVisibility="Disabled">
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Left">
|
|
|
+ <TextBlock Text="批量设置所有锁付点的起始Z轴高度:" VerticalAlignment="Center"/>
|
|
|
+ <TextBlock Text="起始Z轴高度:"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <mah:NumericUpDown Value="{Binding LockPointStartZ, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Minimum="-9999.000"
|
|
|
+ Maximum="9999.000"
|
|
|
+ Interval="0.1"
|
|
|
+ StringFormat="F3"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0"
|
|
|
+ Padding="2" />
|
|
|
+ <TextBlock Margin="0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="mm" />
|
|
|
+ <!--应用按钮-->
|
|
|
+ <Button Content="应用"
|
|
|
+ Margin="10,0,0,0"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
+ Command="{Binding ApplyLockPointStartZCommand}" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Left">
|
|
|
+ <TextBlock Text="批量设置所有锁付点的锁付深度:"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <TextBlock Text="锁付深度:"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <mah:NumericUpDown Value="{Binding LockZDepth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Minimum="-9999.000"
|
|
|
+ Maximum="9999.000"
|
|
|
+ Interval="0.1"
|
|
|
+ StringFormat="F3"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0"
|
|
|
+ Padding="2" />
|
|
|
+ <TextBlock Margin="0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="mm" />
|
|
|
+ <!--应用按钮-->
|
|
|
+ <Button Content="应用"
|
|
|
+ Margin="10,0,0,0"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
+ Command="{Binding ApplyLockPointDepthCommand}" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Left">
|
|
|
+ <TextBlock Text="批量设置所有锁付点的各轴速度:"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <TextBlock Text="X轴速度:"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <mah:NumericUpDown Value="{Binding LockXSpeed, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="20000"
|
|
|
+ Interval="1"
|
|
|
+ StringFormat="F1"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0"
|
|
|
+ Padding="2" />
|
|
|
+ <TextBlock Margin="0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="mm/s" />
|
|
|
+ <TextBlock Text="Y轴速度:"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <mah:NumericUpDown Value="{Binding LockYSpeed, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="20000"
|
|
|
+ Interval="1"
|
|
|
+ StringFormat="F1"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0"
|
|
|
+ Padding="2" />
|
|
|
+ <TextBlock Margin="0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="mm/s" />
|
|
|
+ <TextBlock Text="Z轴速度:"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <mah:NumericUpDown Value="{Binding LockZSpeed, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="20000"
|
|
|
+ Interval="1"
|
|
|
+ StringFormat="F1"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0"
|
|
|
+ Padding="2" />
|
|
|
+ <TextBlock Margin="0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="mm/s" />
|
|
|
+ <TextBlock Text="Z轴锁付下降速度:"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <mah:NumericUpDown Value="{Binding LockZDescendSpeed, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="20000"
|
|
|
+ Interval="1"
|
|
|
+ StringFormat="F1"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0"
|
|
|
+ Padding="2" />
|
|
|
+ <TextBlock Margin="0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="mm/s" />
|
|
|
+ <!--应用按钮-->
|
|
|
+ <Button Content="应用"
|
|
|
+ Margin="10,0,0,0"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
+ Command="{Binding ApplyLockPointSpeedCommand}" />
|
|
|
+ </StackPanel>
|
|
|
+ <!--批量设置所有锁付点的供料器编号和电批程序编号-->
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Left">
|
|
|
+ <TextBlock Text="批量设置所有锁付点的供料器编号和电批程序编号:"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <TextBlock Text="供料器编号:"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <mah:NumericUpDown Value="{Binding LockFeederNumber, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="9999"
|
|
|
+ Interval="1"
|
|
|
+ StringFormat="F0"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0"
|
|
|
+ Padding="2" />
|
|
|
+ <TextBlock Text="电批程序编号:"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <mah:NumericUpDown Value="{Binding LockScrewProgramNumber, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ Interval="1"
|
|
|
+ StringFormat="F0"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0"
|
|
|
+ Padding="2" />
|
|
|
+ <!--应用按钮-->
|
|
|
+ <Button Content="应用"
|
|
|
+ Margin="10,0,0,0"
|
|
|
+ MinWidth="60"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="5"
|
|
|
+ Command="{Binding ApplyLockPointFeederAndScrewProgramCommand}" />
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+ </ScrollViewer>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+
|
|
|
</StackPanel>
|
|
|
+ <!--点位表-->
|
|
|
<DataGrid x:Name="dgPoints"
|
|
|
AutoGenerateColumns="False"
|
|
|
CanUserAddRows="False"
|
|
|
@@ -806,6 +1098,8 @@
|
|
|
Background="DeepSkyBlue"
|
|
|
VerticalAlignment="Stretch"
|
|
|
HorizontalAlignment="Right" />
|
|
|
+
|
|
|
+ <!--运动控制区-->
|
|
|
<Viewbox Grid.Column="1">
|
|
|
<Grid Grid.Row="1">
|
|
|
<Grid.ColumnDefinitions>
|