|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <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="1*" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
-
- <!--#region 炒锅控制-->
- <pry:ImageBorder Margin="10" />
- <StackPanel Margin="15" Orientation="Vertical">
- <StackPanel Margin="0,0,0,20" Orientation="Horizontal">
- <TextBlock Text="炒锅控制" />
- <ComboBox
- Width="100"
- Margin="25,0"
- FontSize="16"
- ItemsSource="{Binding DeviceTypes}"
- SelectedItem="{Binding FryingPanSelect}" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <Button
- Margin="0,0,20,0"
- Command="{Binding SetAutoModeCommand}"
- Content="设为自动模式" />
- <Button
- Margin="10,0"
- Command="{Binding SetManualModeCommand}"
- Content="设为手动模式" />
- <Button
- Margin="10,0"
- Command="{Binding InitalDeviceCommand}"
- Content="初始化设备" />
- <Button
- Width="100"
- Margin="10,0"
- Command="{Binding StopDeviceCommand}"
- Content="停止" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="搅拌设定:" />
- <TextBox
- Width="100"
- Margin="5,0"
- FontSize="16"
- Text="{Binding AgitaFrequency}" />
- <Button
- Margin="5,0"
- Command="{Binding WriteAgitaParamCommand}"
- Content="写入参数" />
- <Button
- Margin="5,0"
- Command="{Binding StartAgitateCommand}"
- Content="开始搅拌" />
- <Button
- Margin="5,0"
- Command="{Binding StopAgitateCommand}"
- Content="停止搅拌" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="加热设定:" />
- <TextBox
- Width="100"
- Margin="5,0"
- FontSize="16"
- Text="{Binding HeatGear}" />
- <Button
- Margin="5,0"
- Command="{Binding WriteHeatParamCommand}"
- Content="写入参数" />
- <Button
- Margin="5,0"
- Command="{Binding StartHeatCommand}"
- Content="开始加热" />
- <Button
- Margin="5,0"
- Command="{Binding StopHeatCommand}"
- Content="停止加热" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="通道下料:" />
- <TextBox
- Width="100"
- Margin="5,0"
- FontSize="16"
- Text="{Binding Weight}" />
- <ComboBox
- Width="76"
- Margin="5,0"
- FontSize="16"
- SelectedIndex="{Binding ChannelSelect}">
- <ComboBoxItem Content="1#通道" />
- <ComboBoxItem Content="2#通道" />
- <ComboBoxItem Content="3#通道" />
- </ComboBox>
- <Button
- Margin="5,0"
- Command="{Binding ChannelCuttingCommand}"
- Content="开始下料" />
- </StackPanel>
- <StackPanel Margin="5" Orientation="Horizontal">
- <TextBlock Text="去炒制位:" />
- <ComboBox
- Width="100"
- Margin="5,0"
- FontSize="16"
- SelectedIndex="{Binding StirFryLocSelect}">
- <ComboBoxItem Content="1#炒制位" />
- <ComboBoxItem Content="2#炒制位" />
- <ComboBoxItem Content="3#炒制位" />
- </ComboBox>
- <Button
- Margin="5,0"
- Command="{Binding GoFryLocCommand}"
- Content="写入位置" />
- </StackPanel>
- <WrapPanel Margin="0,5">
- <Button
- Width="200"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding GoHomeCommand}"
- Content="炒锅回原点(投料位置)" />
- <Button
- Width="200"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding GoSeasoningFeddLocCommand}"
- Content="炒锅去调料投料位置" />
- <Button
- Width="100"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding OutDiningStartCommand}"
- Content="出餐启动" />
- <Button
- Width="100"
- Margin="5,0"
- HorizontalAlignment="Left"
- Command="{Binding FryPanCleanCommand}"
- Content="炒锅清洗" />
-
- <!--<Button
- Width="100"
- Margin="10,0"
- Command="{Binding GoCleanLocCommand}"
- Content="去洗锅位" />-->
- </WrapPanel>
- </StackPanel>
-
-
- <!--#endregion-->
-
- <!--#region 机器人控制-->
- <pry:ImageBorder Grid.Row="1" Margin="10" />
- <StackPanel
- Grid.Row="1"
- Margin="15"
- Orientation="Vertical">
- <Button
- Width="200"
- Height="50"
- Margin="5"
- HorizontalAlignment="Left"
- Command="{Binding RobotGoCleanLocCommand}"
- Content="机器人去清洗位置" />
- <Button
- Width="200"
- Height="50"
- Margin="5"
- HorizontalAlignment="Left"
- Command="{Binding InitRobotVarCommand}"
- Content="复位机器人所有变量" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 系统任务控制-->
- <pry:ImageBorder Grid.Row="2" Margin="10" />
- <StackPanel
- Grid.Row="2"
- Margin="15"
- Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <Button
- Width="150"
- Height="35"
- Margin="5"
- Command="{Binding CancelFryPanTaskCommand}"
- CommandParameter="炒锅1"
- Content="取消当前1#炒锅任务" />
- <Button
- Width="150"
- Height="35"
- Margin="5"
- Command="{Binding CancelFryPanTaskCommand}"
- CommandParameter="炒锅2"
- Content="取消当前2#炒锅任务" />
-
- </StackPanel>
-
- <!--<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>
|