|
- <UserControl
- x:Class="BPASmartClient.MorkCL.View.Debug"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converter="clr-namespace:BPASmartClient.MorkCL.Converter"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.MorkCL.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:vm="clr-namespace:BPASmartClient.MorkCL.ViewModel"
- Name="调试界面"
- d:DesignHeight="900"
- d:DesignWidth="1200"
- mc:Ignorable="d">
- <UserControl.DataContext>
- <vm:DebugViewModel />
- </UserControl.DataContext>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.MorkCL;component/CustomStyle/CustomStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <converter:FryPanConverter x:Key="FryPanConverter" />
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*" />
- <RowDefinition Height="0.25*" />
- <RowDefinition Height="0.25*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
-
- <!--#region 1#炒锅控制-->
- <pry:ImageBorder Margin="10" />
- <StackPanel Margin="30" Orientation="Vertical">
- <StackPanel
- Margin="0,0,0,20"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock FontSize="26" Text="1#炒锅控制" />
- <!--<ComboBox
- Width="150"
- Height="50"
- Margin="25,0"
- FontSize="25"
- ItemsSource="{Binding DeviceTypes}"
- SelectedItem="{Binding FryingPanSelect}" />-->
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <Button
- Width="150"
- Height="50"
- Margin="0,0,20,0"
- Command="{Binding SetAutoModeCommand}"
- Content="设为自动模式" />
- <Button
- Width="150"
- Height="50"
- Margin="10,0"
- Command="{Binding SetManualModeCommand}"
- Content="设为手动模式" />
- <Button
- Width="150"
- Height="50"
- Margin="10,0"
- Command="{Binding InitalDeviceCommand}"
- Content="初始化设备" />
- <Button
- Width="150"
- Height="50"
- Margin="10,0"
- Command="{Binding StopDeviceCommand}"
- Content="停止" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="搅拌设定:" />
- <TextBox
- Width="150"
- Height="50"
- Margin="5,0"
- FontSize="25"
- Text="{Binding AgitaFrequency}" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding WriteAgitaParamCommand}"
- Content="写入参数" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding StartAgitateCommand}"
- Content="开始搅拌" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding StopAgitateCommand}"
- Content="停止搅拌" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="加热设定:" />
- <TextBox
- Width="150"
- Height="50"
- Margin="5,0"
- FontSize="25"
- Text="{Binding HeatGear}" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding WriteHeatParamCommand}"
- Content="写入参数" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding StartHeatCommand}"
- Content="开始加热" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding StopHeatCommand}"
- Content="停止加热" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="通道下料:" />
- <TextBox
- Width="150"
- Height="50"
- Margin="5,0"
- FontSize="25"
- Text="{Binding Weight}" />
- <ComboBox
- Width="120"
- Height="50"
- Margin="5,0"
- FontSize="25"
- SelectedIndex="{Binding ChannelSelect}">
- <ComboBoxItem Content="1#通道" />
- <ComboBoxItem Content="2#通道" />
- <ComboBoxItem Content="3#通道" />
- </ComboBox>
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding ChannelCuttingCommand}"
- Content="开始下料" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="去炒制位:" />
- <ComboBox
- Width="150"
- Height="50"
- Margin="5,0"
- FontSize="25"
- SelectedIndex="{Binding StirFryLocSelect}">
- <ComboBoxItem Content="1#炒制位" />
- <ComboBoxItem Content="2#炒制位" />
- <ComboBoxItem Content="3#炒制位" />
- </ComboBox>
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding GoFryLocCommand}"
- Content="写入位置" />
- </StackPanel>
- <WrapPanel Margin="0,5">
- <Button
- Width="200"
- Height="50"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding GoHomeCommand}"
- Content="炒锅回原点(投料位置)" />
- <Button
- Width="200"
- Height="50"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding GoSeasoningFeddLocCommand}"
- Content="炒锅去调料投料位置" />
- </WrapPanel>
- <WrapPanel Margin="0,5">
- <Button
- Width="200"
- Height="50"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding OutDiningStartCommand}"
- Content="出餐启动" />
- <Button
- Width="200"
- Height="50"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding FryPanCleanCommand}"
- Content="炒锅清洗" />
-
- <!--<Button
- Width="100"
- Margin="10,0"
- Command="{Binding GoCleanLocCommand}"
- Content="去洗锅位" />-->
- </WrapPanel>
- </StackPanel>
-
-
- <!--#endregion-->
-
- <!--#region 2#炒锅控制-->
- <pry:ImageBorder Grid.Column="1" Margin="10" />
- <StackPanel
- Grid.Column="1"
- Margin="30"
- Orientation="Vertical">
- <StackPanel
- Margin="0,0,0,20"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock FontSize="26" Text="2#炒锅控制" />
- <!--<ComboBox
- Width="150"
- Height="50"
- Margin="25,0"
- FontSize="25"
- ItemsSource="{Binding DeviceTypes}"
- SelectedItem="{Binding FryingPanSelect}" />-->
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <Button
- Width="150"
- Height="50"
- Margin="0,0,20,0"
- Command="{Binding SetAutoModeCommand2}"
- Content="设为自动模式" />
- <Button
- Width="150"
- Height="50"
- Margin="10,0"
- Command="{Binding SetManualModeCommand2}"
- Content="设为手动模式" />
- <Button
- Width="150"
- Height="50"
- Margin="10,0"
- Command="{Binding InitalDeviceCommand2}"
- Content="初始化设备" />
- <Button
- Width="150"
- Height="50"
- Margin="10,0"
- Command="{Binding StopDeviceCommand2}"
- Content="停止" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="搅拌设定:" />
- <TextBox
- Width="150"
- Height="50"
- Margin="5,0"
- FontSize="25"
- Text="{Binding AgitaFrequency2}" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding WriteAgitaParamCommand2}"
- Content="写入参数" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding StartAgitateCommand2}"
- Content="开始搅拌" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding StopAgitateCommand2}"
- Content="停止搅拌" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="加热设定:" />
- <TextBox
- Width="150"
- Height="50"
- Margin="5,0"
- FontSize="25"
- Text="{Binding HeatGear2}" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding WriteHeatParamCommand2}"
- Content="写入参数" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding StartHeatCommand2}"
- Content="开始加热" />
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding StopHeatCommand2}"
- Content="停止加热" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="通道下料:" />
- <TextBox
- Width="150"
- Height="50"
- Margin="5,0"
- FontSize="25"
- Text="{Binding Weight2}" />
- <ComboBox
- Width="120"
- Height="50"
- Margin="5,0"
- FontSize="25"
- SelectedIndex="{Binding ChannelSelect2}">
- <ComboBoxItem Content="1#通道" />
- <ComboBoxItem Content="2#通道" />
- <ComboBoxItem Content="3#通道" />
- </ComboBox>
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding ChannelCuttingCommand2}"
- Content="开始下料" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="去炒制位:" />
- <ComboBox
- Width="150"
- Height="50"
- Margin="5,0"
- FontSize="25"
- SelectedIndex="{Binding StirFryLocSelect2}">
- <ComboBoxItem Content="1#炒制位" />
- <ComboBoxItem Content="2#炒制位" />
- <ComboBoxItem Content="3#炒制位" />
- </ComboBox>
- <Button
- Width="120"
- Height="50"
- Margin="5,0"
- Command="{Binding GoFryLocCommand2}"
- Content="写入位置" />
- </StackPanel>
- <WrapPanel Margin="0,5">
- <Button
- Width="200"
- Height="50"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding GoHomeCommand2}"
- Content="炒锅回原点(投料位置)" />
- <Button
- Width="200"
- Height="50"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding GoSeasoningFeddLocCommand2}"
- Content="炒锅去调料投料位置" />
- </WrapPanel>
- <WrapPanel Margin="0,5">
- <Button
- Width="200"
- Height="50"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding OutDiningStartCommand2}"
- Content="出餐启动" />
- <Button
- Width="200"
- Height="50"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding FryPanCleanCommand2}"
- Content="炒锅清洗" />
- <!--<Button
- Width="100"
- Margin="10,0"
- Command="{Binding GoCleanLocCommand}"
- Content="去洗锅位" />-->
- </WrapPanel>
- </StackPanel>
-
-
- <!--#endregion-->
-
- <!--#region 机器人控制-->
- <pry:ImageBorder
- Grid.Row="1"
- Grid.ColumnSpan="2"
- Margin="10" />
- <StackPanel
- Grid.Row="1"
- Grid.ColumnSpan="2"
- Margin="15"
- Orientation="Horizontal">
- <Button
- Width="200"
- Height="50"
- Margin="5"
- HorizontalAlignment="Left"
- Command="{Binding RobotGoCleanLocCommand}"
- Content="机器人去清洗位置" />
-
- <Button
- Width="200"
- Height="50"
- Margin="5"
- HorizontalAlignment="Left"
- Command="{Binding CleanFinishCommand}"
- Content="机器人清洗完成" />
-
- <Button
- Width="200"
- Height="50"
- Margin="5"
- HorizontalAlignment="Left"
- Command="{Binding InitRobotVarCommand}"
- Content="复位机器人所有变量" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 系统任务控制-->
- <pry:ImageBorder
- Grid.Row="2"
- Grid.ColumnSpan="2"
- Margin="10" />
- <StackPanel
- Grid.Row="2"
- Grid.ColumnSpan="2"
- Margin="15"
- Orientation="Horizontal">
- <Button
- Width="150"
- Height="50"
- Margin="5"
- Command="{Binding CancelFryPanTaskCommand}"
- CommandParameter="炒锅1"
- Content="取消当前1#炒锅任务" />
- <Button
- Width="150"
- Height="50"
- Margin="5"
- Command="{Binding CancelFryPanTaskCommand}"
- CommandParameter="炒锅2"
- Content="取消当前2#炒锅任务" />
-
-
-
- <!--<StackPanel Orientation="Horizontal">
- <Button
- Width="150"
- Height="35"
- Margin="5"
- Command="{Binding ClearFryPanTaskCommand_1}"
- Content="清空1#炒锅任务"
- Visibility="Collapsed" />
- <Button
- Width="150"
- Height="35"
- Margin="5"
- Command="{Binding ClearFryPanTaskCommand_2}"
- Content="清空2#炒锅任务"
- Visibility="Collapsed" />
-
- </StackPanel>-->
-
- </StackPanel>
- <!--#endregion-->
- </Grid>
-
- </UserControl>
|