|
|
@@ -366,314 +366,7 @@
|
|
|
HorizontalAlignment="Left">
|
|
|
<ScrollViewer>
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
- <GroupBox Header="托盘1">
|
|
|
- <Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Grid.Resources>
|
|
|
- <Style TargetType="TextBlock">
|
|
|
- <Setter Property="HorizontalAlignment"
|
|
|
- Value="Center" />
|
|
|
- <Setter Property="VerticalAlignment"
|
|
|
- Value="Center" />
|
|
|
- </Style>
|
|
|
- <Style TargetType="TextBox">
|
|
|
- <Setter Property="HorizontalAlignment"
|
|
|
- Value="Center" />
|
|
|
- <Setter Property="VerticalAlignment"
|
|
|
- Value="Center" />
|
|
|
- <Setter Property="MinWidth"
|
|
|
- Value="50" />
|
|
|
- </Style>
|
|
|
- </Grid.Resources>
|
|
|
- <TextBlock Text="X"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBlock Text="Y"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBlock Text="Z"
|
|
|
- Grid.Column="3" />
|
|
|
- <TextBlock Text="U"
|
|
|
- Grid.Column="4" />
|
|
|
- <TextBlock Text="附加轴"
|
|
|
- Grid.Column="5" />
|
|
|
- <TextBlock Text="点1:"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="0" />
|
|
|
- <TextBlock Text="点2:"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="0" />
|
|
|
- <TextBlock Text="点3:"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="0" />
|
|
|
- <TextBox Text="{Binding Pallet1.P0.X_Position}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBox Text="{Binding Pallet1.P0.Y_Position}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBox Text="{Binding Pallet1.P0.Z_Position_Start}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="3" />
|
|
|
- <TextBox Text="{Binding Pallet1.P0.U_Position}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="4" />
|
|
|
- <TextBox Text="{Binding Pallet1.P0.Z_Position_Stop}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="5" />
|
|
|
- <Button Content="示教"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="6"
|
|
|
- Margin="5,0"
|
|
|
- Command="{Binding PickTechCommand}"
|
|
|
- CommandParameter="1-1" />
|
|
|
- <Button Content="移动"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="7"
|
|
|
- Command="{Binding PickMoveCommand}"
|
|
|
- CommandParameter="1-1" />
|
|
|
- <TextBox Text="{Binding Pallet1.P1.X_Position}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBox Text="{Binding Pallet1.P1.Y_Position}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBox Text="{Binding Pallet1.P1.Z_Position_Start}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="3" />
|
|
|
- <TextBox Text="{Binding Pallet1.P1.U_Position}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="4" />
|
|
|
- <TextBox Text="{Binding Pallet1.P1.Z_Position_Stop}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="5" />
|
|
|
- <Button Content="示教"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="6"
|
|
|
- Margin="5,0"
|
|
|
- Command="{Binding PickTechCommand}"
|
|
|
- CommandParameter="1-2" />
|
|
|
- <Button Content="移动"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="7"
|
|
|
- Command="{Binding PickMoveCommand}"
|
|
|
- CommandParameter="1-2" />
|
|
|
- <TextBox Text="{Binding Pallet1.P2.X_Position}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBox Text="{Binding Pallet1.P2.Y_Position}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBox Text="{Binding Pallet1.P2.Z_Position_Start}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="3" />
|
|
|
- <TextBox Text="{Binding Pallet1.P2.U_Position}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="4" />
|
|
|
- <TextBox Text="{Binding Pallet1.P2.Z_Position_Stop}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="5" />
|
|
|
- <Button Content="示教"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="6"
|
|
|
- Margin="5,0"
|
|
|
- Command="{Binding PickTechCommand}"
|
|
|
- CommandParameter="1-3" />
|
|
|
- <Button Content="移动"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="7"
|
|
|
- Command="{Binding PickMoveCommand}"
|
|
|
- CommandParameter="1-3" />
|
|
|
- <TextBlock Text="行数:"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="0" />
|
|
|
- <TextBox Text="{Binding Pallet1.Row}"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBlock Text="列数:"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBox Text="{Binding Pallet1.Column}"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="3" />
|
|
|
- <Button Content="计算取料点"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.ColumnSpan="4"
|
|
|
- Margin="5,0"
|
|
|
- HorizontalAlignment="Left"
|
|
|
- Grid.Column="4"
|
|
|
- Command="{Binding CalPickPosCommand}"
|
|
|
- CommandParameter="1"/>
|
|
|
- </Grid>
|
|
|
- </GroupBox>
|
|
|
- <GroupBox Header="托盘2" Margin="2,0">
|
|
|
- <Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Grid.Resources>
|
|
|
- <Style TargetType="TextBlock">
|
|
|
- <Setter Property="HorizontalAlignment"
|
|
|
- Value="Center" />
|
|
|
- <Setter Property="VerticalAlignment"
|
|
|
- Value="Center" />
|
|
|
- </Style>
|
|
|
- <Style TargetType="TextBox">
|
|
|
- <Setter Property="HorizontalAlignment"
|
|
|
- Value="Center" />
|
|
|
- <Setter Property="VerticalAlignment"
|
|
|
- Value="Center" />
|
|
|
- <Setter Property="MinWidth"
|
|
|
- Value="50" />
|
|
|
- </Style>
|
|
|
- </Grid.Resources>
|
|
|
- <TextBlock Text="X"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBlock Text="Y"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBlock Text="Z"
|
|
|
- Grid.Column="3" />
|
|
|
- <TextBlock Text="U"
|
|
|
- Grid.Column="4" />
|
|
|
- <TextBlock Text="附加轴"
|
|
|
- Grid.Column="5" />
|
|
|
- <TextBlock Text="点1:"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="0" />
|
|
|
- <TextBlock Text="点2:"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="0" />
|
|
|
- <TextBlock Text="点3:"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="0" />
|
|
|
- <TextBox Text="{Binding Pallet2.P0.X_Position}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBox Text="{Binding Pallet2.P0.Y_Position}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBox Text="{Binding Pallet2.P0.Z_Position_Start}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="3" />
|
|
|
- <TextBox Text="{Binding Pallet2.P0.U_Position}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="4" />
|
|
|
- <TextBox Text="{Binding Pallet2.P0.Z_Position_Stop}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="5" />
|
|
|
- <Button Content="示教"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="6"
|
|
|
- Margin="5,0"
|
|
|
- Command="{Binding PickTechCommand}"
|
|
|
- CommandParameter="2-1" />
|
|
|
- <Button Content="移动"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="7"
|
|
|
- Command="{Binding PickMoveCommand}"
|
|
|
- CommandParameter="2-1" />
|
|
|
- <TextBox Text="{Binding Pallet2.P1.X_Position}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBox Text="{Binding Pallet2.P1.Y_Position}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBox Text="{Binding Pallet2.P1.Z_Position_Start}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="3" />
|
|
|
- <TextBox Text="{Binding Pallet2.P1.U_Position}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="4" />
|
|
|
- <TextBox Text="{Binding Pallet2.P1.Z_Position_Stop}"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="5" />
|
|
|
- <Button Content="示教"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="6"
|
|
|
- Margin="5,0"
|
|
|
- Command="{Binding PickTechCommand}"
|
|
|
- CommandParameter="2-2" />
|
|
|
- <Button Content="移动"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="7"
|
|
|
- Command="{Binding PickMoveCommand}"
|
|
|
- CommandParameter="2-2" />
|
|
|
- <TextBox Text="{Binding Pallet2.P2.X_Position}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBox Text="{Binding Pallet2.P2.Y_Position}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBox Text="{Binding Pallet2.P2.Z_Position_Start}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="3" />
|
|
|
- <TextBox Text="{Binding Pallet2.P2.U_Position}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="4" />
|
|
|
- <TextBox Text="{Binding Pallet2.P2.Z_Position_Stop}"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="5" />
|
|
|
- <Button Content="示教"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="6"
|
|
|
- Margin="5,0"
|
|
|
- Command="{Binding PickTechCommand}"
|
|
|
- CommandParameter="2-3" />
|
|
|
- <Button Content="移动"
|
|
|
- Grid.Row="3"
|
|
|
- Grid.Column="7"
|
|
|
- Command="{Binding PickMoveCommand}"
|
|
|
- CommandParameter="2-3" />
|
|
|
- <TextBlock Text="行数:"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="0" />
|
|
|
- <TextBox Text="{Binding Pallet2.Row}"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="1" />
|
|
|
- <TextBlock Text="列数:"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="2" />
|
|
|
- <TextBox Text="{Binding Pallet2.Column}"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="3" />
|
|
|
- <Button Content="计算取料点"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.ColumnSpan="4"
|
|
|
- Margin="5,0"
|
|
|
- HorizontalAlignment="Left"
|
|
|
- Grid.Column="4"
|
|
|
- Command="{Binding CalPickPosCommand}"
|
|
|
- CommandParameter="2"/>
|
|
|
- </Grid>
|
|
|
- </GroupBox>
|
|
|
+
|
|
|
</StackPanel>
|
|
|
</ScrollViewer>
|
|
|
<StackPanel Orientation="Horizontal">
|