<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">
                <WrapPanel Orientation="Horizontal" Grid.Column="0"
                           ItemHeight="70" ItemWidth="130" HorizontalAlignment="Left"
                           VerticalAlignment="Top">
                    <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"/>
                    <Button x:Name="MachineRunBtn" Content="PLC启动"  Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="InitiateBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="InitiateBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="MachineStopBtn" Content="PLC停止" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="StopBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="StopBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="ScrewHomeBtn" Content="传动轴回零" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ScrewHomeBtn_PreviewMouseLeftButtonDown"/>
                    <Button x:Name="ScrewJogFwdBtn" Content="传动轴正向点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ScrewJogFwdBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="ScrewJogFwdBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="ScrewJogRevBtn" Content="传动轴反向点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ScrewJogRevBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="ScrewJogRevBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="FillingValveManualOpenBtn" Content="中转阀开" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="FillingValveManualOpenBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="FillingValveManualOpenBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="FillingValveManualCloseBtn" Content="中转阀关" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="FillingValveManualCloseBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="FillingValveManualCloseBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="FillingValveManualCacheBtn" Content="中转阀缓存" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="FillingValveManualCacheBtn_PreviewMouseLeftButtonDown"/>
                    <Button x:Name="FillingValveJogFwdBtn" Content="中转阀正向点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="FillingValveJogFwdBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="FillingValveJogFwdBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="FillingValveJogRevBtn" Content="中转阀反向点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="FillingValveJogRevBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="FillingValveJogRevBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="FillingValveHomeBtn" Content="中转阀回原点" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="FillingValveHomeBtn_PreviewMouseLeftButtonDown" />
                    <Button x:Name="BeltsJogBtn" Content="传送带点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="BeltsJogBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="BeltsJogBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="ShakeTableJogBtn" Content="震盘点动" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ShakeTableJogBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="ShakeTableJogBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="MachineManualUpBtn" Content="整机上升" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="MachineManualUpBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="MachineManualUpBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="MachineManualDownBtn" Content="整机下降" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="MachineManualDownBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="MachineManualDownBtn_PreviewMouseLeftButtonUp"/>
                    <Button x:Name="FunnelValveManualControlBtn" Content="漏斗" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="FunnelValveManualControlBtn_PreviewMouseLeftButtonDown" />
                    <Button x:Name="MachineManualBeltsBtn" Content="传送带运行状态" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="MachineManualBeltsBtn_PreviewMouseLeftButtonDown" />
                    <Button x:Name="MachineAirLockValveBtn" Content="气锁" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="MachineAirLockValveBtn_PreviewMouseLeftButtonDown" />
                    <Button x:Name="ShakeTable_TestBtn" Content="震台调试开关" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="ShakeTable_TestBtn_PreviewMouseLeftButtonDown" />
                    <Button x:Name="DataResetBtn" Content="数据清零" HorizontalAlignment="Left" Margin="40,0,0,0" Height="40" Width="90" PreviewMouseLeftButtonDown="DataResetBtn_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="DataResetBtn_PreviewMouseLeftButtonUp" />
                </WrapPanel>
            </Grid>
        </Grid>
    </Grid>
</Page>
