|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <UserControl x:Class="BPASmartClient.MorkF.View.DebugView"
- 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"
- xmlns:local="clr-namespace:BPASmartClient.MorkF.View"
- xmlns:vm="clr-namespace:BPASmartClient.MorkF.ViewModel"
- x:Name="调试界面"
- mc:Ignorable="d"
- d:DesignHeight="900" d:DesignWidth="1300">
- <UserControl.DataContext>
- <vm:DebugViewModel/>
- </UserControl.DataContext>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <ScrollViewer>
- <Grid>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="81" ></RowDefinition>
- <RowDefinition Height="81" ></RowDefinition>
- <RowDefinition Height="325"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <GroupBox Header="设备控制" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
- <Grid Height="50">
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <WrapPanel Orientation="Horizontal">
- <TextBlock Text="炒锅选择:" Margin="10,0"/>
- <ComboBox ItemsSource="{Binding lstFry}" Width="80" Margin="10,0,10,0" HorizontalAlignment="Center" VerticalAlignment="Center"
- SelectedValue="{Binding FryGear}" SelectedIndex="0"/>
- <Button Content="设定" Margin="0,0,30,0" Command="{Binding SetFry}"/>
- <Button Content="炒锅初始化" Command="{Binding PlcInite}" Cursor="Hand" Margin="10,0"/>
- <Button Content="炒锅复位" Command="{Binding Plc1Reset}" Cursor="Hand" Margin="10,0"/>
- </WrapPanel>
- </Grid>
-
- </GroupBox>
- <GroupBox Grid.Row="1" Header="自动炒菜" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
- <Grid Height="50">
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <WrapPanel Grid.Row="1" Orientation="Horizontal">
-
- <TextBlock Text="菜单编号:" Margin="10,0"/>
- <TextBox Text="{Binding FoodMenuID}" Width="100"/>
- <Button Content="菜单编号下单下单" Margin="10,0" Command="{Binding StartOrder}" Cursor="Hand"/>
- <Button Content="本地菜单流程配置" Click="Button_Click"/>
-
- <Button Content="停止炒菜" Margin="10,0" Command="{Binding StopLocalOrder}" Cursor="Hand"/>
- <Button Content="{Binding ModeButten}" Margin="10,0" Command="{Binding ModeChange}" Cursor="Hand"/>
- </WrapPanel>
- </Grid>
-
- </GroupBox>
- <!--<GroupBox Header="菜品选择" FontSize="15" Foreground="Aqua" Grid.Row="2" VerticalAlignment="Center" Height="190" >
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <WrapPanel Orientation="Horizontal" >
- <TextBlock Text="取料手臂实时位置" Margin="0,0,10,0"/>
- <TextBlock Text="X:" Margin="5,0"/>
- <TextBox Text="{Binding RealX}" Width="70" Margin="5,0" VerticalAlignment="Top" IsReadOnly="True"/>
- <TextBlock Text="Y:" Margin="5,0"/>
- <TextBox Text="{Binding RealY}" Width="70" Margin="5,0" VerticalAlignment="Top" IsReadOnly="True"/>
- <TextBlock Text="{Binding PawPosition}" Margin="10,0,5,0"/>
- <Button Content="菜品库初始化" Margin="10,0,5,0" Command="{Binding FoodLibInit}"/>
- <Button Content="菜品库余量检测" Margin="10,0,5,0" Command="{Binding SurplusCheck}"/>
- <Button Content="电磁阀启动" Margin="10,0,5,0" Command="{Binding StartElectromagnetism}"/>
- <Button Content="电磁阀停止" Margin="10,0,5,0" Command="{Binding StopElectromagnetism}"/>
- </WrapPanel>
- <WrapPanel Grid.Row="1" Orientation="Horizontal" >
- <TextBlock Text="取料手臂设定位置" Margin="0,0,10,0"/>
- <TextBlock Text="X:" Margin="5,0"/>
- <TextBox Text="{Binding SettingX}" Width="70" Margin="5,0" VerticalAlignment="Center" />
- <TextBlock Text="Y:" Margin="5,0"/>
- <TextBox Text="{Binding SettingY}" Width="70" Margin="5,0" VerticalAlignment="Center" />
- <Button Content="移动" Command="{Binding SetArmPosition}" Margin="5,0,10,0" Cursor="Hand"/>
- <TextBlock Text="移动速度:" Margin="5,0"/>
- <TextBox Text="{Binding MoveSpeed}" Width="70" Margin="5,0" VerticalAlignment="Center" />
- <Button Content="设定" Command="{Binding SetSpeed}" Cursor="Hand" Margin="5,0,10,0" />
- <Button Content="感应器1测距" Margin="5,0" Command="{Binding GetDistance_1}" Cursor="Hand"/>
- <TextBox Text="{Binding SensingDistance_1}" Margin="5,0" Width="60" IsReadOnly="True"/>
- <Button Content="感应器2测距" Margin="5,0" Command="{Binding GetDistance_2}"/>
- <TextBox Text="{Binding SensingDistance_2}" Margin="5,0" Width="60" IsReadOnly="True"/>
- <Button Content="感应器3测距" Margin="5,0" Command="{Binding GetDistance_3}"/>
- <TextBox Text="{Binding SensingDistance_3}" Margin="5,0" Width="60" IsReadOnly="True"/>
- </WrapPanel>
- <WrapPanel Grid.Row="2" Orientation="Horizontal" >
- <TextBlock Text="设定手臂当前位置" Margin="0,0,10,0"/>
- <TextBlock Text="X:" Margin="5,0"/>
- <TextBox Text="{Binding SettingNowX}" Width="70" Margin="5,0" VerticalAlignment="Center" />
- <TextBlock Text="Y:" Margin="5,0"/>
- <TextBox Text="{Binding SettingNowY}" Width="70" Margin="5,0" VerticalAlignment="Center" />
- <Button Content="设置" Margin="10,0,5,0" Command="{Binding SetNowPosition}"/>
- </WrapPanel>
- <WrapPanel Grid.Row="3" Orientation="Horizontal" >
- <Button Content="夹爪伸出" Command="{Binding PawTurnFront}" Margin="5,0" Cursor="Hand"/>
- <Button Content="夹爪收缩" Command="{Binding PawTurnBack}" Margin="5,0" Cursor="Hand"/>
- <RadioButton Content="位置1" Margin="5,0" IsEnabled="True" IsChecked="{Binding PawPositon1}" Command="{Binding PawToPoint1}" GroupName="PawTurn"/>
- <RadioButton Content="位置2" Margin="5,0" IsEnabled="True" IsChecked="{Binding PawPositon2}" Command="{Binding PawToPoint2}" GroupName="PawTurn"/>
- <RadioButton Content="位置3" Margin="5,0 " IsEnabled="True" IsChecked="{Binding PawPositon3}" Command="{Binding PawToPoint3}" GroupName="PawTurn"/>
- </WrapPanel>
- <WrapPanel Grid.Row="4" Orientation="Horizontal" >
- <RadioButton Content="上" Margin="5,0" IsEnabled="{Binding ArmRunEnable}" IsChecked="{Binding ArmRunUp}" GroupName="ArmRun"/>
- <RadioButton Content="下" Margin="5,0" IsEnabled="{Binding ArmRunEnable}" IsChecked="{Binding ArmRunDown}" GroupName="ArmRun"/>
- <RadioButton Content="左" Margin="5,0 " IsEnabled="{Binding ArmRunEnable}" IsChecked="{Binding ArmRunLeft}" GroupName="ArmRun"/>
- <RadioButton Content="右" Margin="5,0 " IsEnabled="{Binding ArmRunEnable}" IsChecked="{Binding ArmRunRight}" GroupName="ArmRun"/>
- <Button Content="{Binding ArmButtonName}" Command="{Binding ArmRun}" Margin="5,0" Cursor="Hand">
- </Button>
- </WrapPanel>
- </Grid>
-
- </GroupBox>-->
- <StackPanel Orientation="Vertical" Grid.Row="3">
- <GroupBox Header="配料仓控制" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" Height="65">
- <WrapPanel Orientation="Horizontal" Grid.RowSpan="2" VerticalAlignment="Top" Margin="0,5,0,0" >
- <TextBlock Text="通道号" Margin="5,0"/>
- <ComboBox ItemsSource="{Binding PassageWays}" Width="120" Margin="5,0"
- SelectedIndex="{Binding PassagePosition}"/>
- <TextBlock Text="出料量" Margin="5,0"/>
- <TextBox Text="{Binding Weight}" Margin="5,0" Width="100"/>
- <TextBlock Text="g" Margin="0,0,10,0"/>
- <Button Content="出料" Margin="10,0" Command="{Binding OutMaterials}"/>
- </WrapPanel>
- </GroupBox>
-
- <GroupBox Header="炒锅" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" Height="140">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <WrapPanel VerticalAlignment="Top" Margin="0,5,0,0">
- <Button Content="注油" Command="{Binding AddOil}" Margin="10,0,10,0"></Button>
- <Button Content="倒菜启动" Command="{Binding OutFood}" Margin="10,0,15,0" Cursor="Hand"/>
- <Button Content="搅拌臂去原点位" Command="{Binding StirArmGoOrigin}" Margin="10,0,10,0"></Button>
- <Button Content="搅拌臂去炒制位" Command="{Binding StirArmGoWork}" Margin="10,0,10,0"></Button>
- <Button Content="HBOT放盒子到位" Command="{Binding HBOTGoWork}" Margin="10,0,10,0"></Button>
- <Button Content="出餐启动" Command="{Binding OutMeal}" Margin="10,0,10,0"></Button>
- </WrapPanel>
- <WrapPanel Grid.Row="1" VerticalAlignment="Top" Margin="0,5,0,0">
- <Button Content="加热启动" Command="{Binding StartFire}" Margin="10,0,10,0"></Button>
- <Button Content="加热停止" Command="{Binding StopFire}" Margin="10,0,10,0"></Button>
- <Button Content="搅拌启动" Command="{Binding StartStir}" Margin="10,0,10,0" Cursor="Hand"></Button>
- <Button Content="搅拌停止" Command="{Binding StopStir}" Margin="10,0,15,0" Cursor="Hand"></Button>
- <Button Content="开启磁吸" Command="{Binding MagnetOn}" Margin="10,0,15,0" Cursor="Hand"></Button>
- <Button Content="关闭磁吸" Command="{Binding MagnetOff}" Margin="10,0,15,0" Cursor="Hand"></Button>
- </WrapPanel>
-
- <WrapPanel Grid.Row="2">
- <TextBlock Text="加热挡位:" Margin="10,0,0,0" />
- <ComboBox ItemsSource="{Binding lstFire}" Width="80" Margin="10,0,10,0" HorizontalAlignment="Center" VerticalAlignment="Center"
- SelectedValue="{Binding FireGear}"/>
- <Button Content="设定" Margin="0,0,30,0" Command="{Binding SetFire}"/>
- <TextBlock Text="搅拌挡位:" Margin="10,0,0,0" />
- <ComboBox ItemsSource="{Binding lstStir}" Width="80" Margin="10,0,10,0" HorizontalAlignment="Center" VerticalAlignment="Center"
- SelectedValue="{Binding StirGear}"/>
- <Button Content="设定" Margin="0,0,30,0" Command="{Binding SetStir}"/>
- </WrapPanel>
- </Grid>
-
- </GroupBox>
-
- </StackPanel>
-
- </Grid>
- </ScrollViewer>
- </Grid>
- </UserControl>
|