| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- <Page x:Class="CCDCountWpf.WpfPage.PlcOperationPage"
- 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:CCDCountWpf.WpfPage"
- mc:Ignorable="d"
- Title="PlcOperationPage" Height="509" Width="822">
- <Grid>
- <Grid x:Name="ShowGrid" Grid.Row="1">
- <Grid x:Name="PLCRuningSetting" Visibility="Visible">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="150"/>
- </Grid.ColumnDefinitions>
- <WrapPanel Orientation="Horizontal" Grid.Column="0"
- ItemHeight="70" ItemWidth="130" HorizontalAlignment="Left"
- VerticalAlignment="Top">
- <Button Content="使能" Margin="40,0,0,0" Height="40" Width="90" Click="Button_Click"/>
- <Button x:Name="InitiateBtn" Content="PLC启动" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="InitiateBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="InitiateBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="StopBtn" Content="PLC停止" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="StopBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="StopBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="ReturnToZeroBtn" Content="回零" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ReturnToZeroBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="ReturnToZeroBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="RepositionBtn" Content="复位" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="RepositionBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="RepositionBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="ForwardRotatingJogBtn" Content="正转点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ForwardRotatingJogBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="ForwardRotatingJogBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="ReversalReverseJogBtn" Content="反转点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ReversalReverseJogBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="ReversalReverseJogBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="ShaftStopsBtn" Content="轴停止" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ShaftStopsBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="ShaftStopsBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="SpeedRunBtn" Content="速度运行" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="SpeedRunBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="SpeedRunBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="EquipmentOperationBtn" Content="设备运行" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="EquipmentOperationBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="EquipmentOperationBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="LevelOneVibrationTableBtn" Content="一级震台启动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="LevelOneVibrationTableBtn_Click"/>
- <Button x:Name="LevelTwoVibrationTableBtn" Content="二级震台启动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="LevelTwoVibrationTableBtn_Click"/>
- <Button x:Name="LevelThreeVibrationTableBtn" Content="三级震台启动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="LevelThreeVibrationTableBtn_Click"/>
- <Button x:Name="DeviceUpBtn" Content="设备上升" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="DeviceUpBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="DeviceUpBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="DeviceDownBtn" Content="设备下降" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="DeviceDownBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="DeviceDownBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="TransferStartBtn" Content="传送带启动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="TransferStartBtn_Click"/>
- <Button x:Name="AirValveCloseBtn" Content="气锁关" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="AirValveCloseBtn_Click"/>
- <Button x:Name="BottleFeedingWheelResetBtn" Content="送瓶轮复位" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="BottleFeedingWheelResetBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="BottleFeedingWheelResetBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="BottleFeedingWheelReturnToZeroBtn" Content="送瓶轮回零" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="BottleFeedingWheelReturnToZeroBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="BottleFeedingWheelReturnToZeroBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="BottleFeedingWheelShaftStopsBtn" Content="送瓶轮轴停止" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="BottleFeedingWheelShaftStopsBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="BottleFeedingWheelShaftStopsBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="BottleFeedingWheelPositiveRotationJogBtn" Content="送瓶轮正转点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="BottleFeedingWheelPositiveRotationJogBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="BottleFeedingWheelPositiveRotationJogBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="BottleFeedingWheelReverseRotationJogBtn" Content="送瓶轮反转点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="BottleFeedingWheelReverseRotationJogBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="BottleFeedingWheelReverseRotationJogBtn_PreviewMouseLeftButtonUp"/>
- <Button x:Name="BottleFeedingWheelEnableBtn" Content="送瓶轮使能" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="BottleFeedingWheelEnableBtn_Click"/>
- <Button x:Name="Valve1Jog" Content="闸门一点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="Valve1Jog_Click"/>
- <Button x:Name="Valve2Jog" Content="闸门二点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="Valve2Jog_Click"/>
- <Button x:Name="Valve3Jog" Content="闸门三点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="Valve3Jog_Click"/>
- <Button x:Name="Valve4Jog" Content="闸门四点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="Valve4Jog_Click"/>
- <Button x:Name="Valve5Jog" Content="闸门五点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="Valve5Jog_Click"/>
- <Button x:Name="Valve6Jog" Content="闸门六点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="Valve6Jog_Click"/>
- <Button x:Name="Valve7Jog" Content="闸门七点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="Valve7Jog_Click"/>
- <Button x:Name="Valve8Jog" Content="闸门八点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" Click="Valve8Jog_Click"/>
- </WrapPanel>
- <StackPanel Orientation="Vertical" Grid.Column="1">
- <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
- <Label Content="使能完成:"></Label>
- <Ellipse Width="20" Height="20" Margin="48,0,0,0" >
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding EnableCompletion}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="回零完成:"></Label>
- <Ellipse Width="20" Height="20" Margin="48,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding ReturnToZeroCompletion}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="停止完成:"></Label>
- <Ellipse Width="20" Height="20" Margin="48,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding StopCompletion}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="速度运行中:"></Label>
- <Ellipse Width="20" Height="20" Margin="36,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding SpeedRunning}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="回零中:"></Label>
- <Ellipse Width="20" Height="20" Margin="60,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding ReturnToZero}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="中转阀开定位完成:"></Label>
- <Ellipse Width="20" Height="20">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding TransferValveOpenCompletion}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="中转阀关定位完成:"></Label>
- <Ellipse Width="20" Height="20">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding TransferValveCloseCompletion}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="允许数据交换:"></Label>
- <Ellipse Width="20" Height="20" Margin="24,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding AllowsDataExchange}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="暂停获取数据:"></Label>
- <Ellipse Width="20" Height="20" Margin="24,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding PauseDataExchange}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="缓存计数延时完成:"></Label>
- <Ellipse Width="20" Height="20">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding CacheCountDelayed}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="使能:"></Label>
- <Ellipse Width="20" Height="20" Margin="72,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding Enable}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="送瓶轮使能完成:"></Label>
- <Ellipse Width="20" Height="20" Margin="12,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding BottleFeedingWheelEnableCompletion}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <Label Content="送瓶轮停止完成:"></Label>
- <Ellipse Width="20" Height="20" Margin="12,0,0,0">
- <Ellipse.Style>
- <Style TargetType="Ellipse">
- <Setter Property="Fill" Value="Red" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding BottleFeedingWheelStopCompletion}" Value="True">
- <Setter Property="Fill" Value="Green" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Ellipse.Style>
- </Ellipse>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Grid>
- </Grid>
- </Page>
|