296e18704e
- aggiunta funzione PlgExecProcess - aggiunti bottoni di scrittura variabili macchina - aggiunta finestrella statistiche processi
277 lines
11 KiB
XML
277 lines
11 KiB
XML
<Grid x:Class="MachinePageV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:Supervisor.Plugin.FiveLakes">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<!--<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>-->
|
|
<!--<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="{Binding MachinePos0}"/>
|
|
</Grid>-->
|
|
<ItemsControl ItemsSource="{Binding VariableList}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="100"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Text="{Binding sName}"/>
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding sIndex}"/>
|
|
<TextBlock Grid.Column="2"
|
|
Text="{Binding sValue}"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
<Grid Grid.Column="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.Resources>
|
|
<Style x:Key="Table" TargetType="Border">
|
|
<Setter Property="BorderBrush" Value="Gray"/>
|
|
<Setter Property="BorderThickness" Value="5"/>
|
|
<Setter Property="Background" Value="LightGray"/>
|
|
</Style>
|
|
<Style x:Key="Door" TargetType="Border">
|
|
<Setter Property="BorderBrush" Value="SaddleBrown"/>
|
|
<Setter Property="BorderThickness" Value="5"/>
|
|
<Setter Property="Background" Value="SandyBrown"/>
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="Width" Value="80"/>
|
|
</Style>
|
|
</Grid.Resources>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="2*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="2*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="0.5*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="0.5*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="0.5*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="0.5*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="1"
|
|
Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="2"
|
|
Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="3"
|
|
Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="4"
|
|
Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="5"
|
|
Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="6"
|
|
Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="7"
|
|
Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="8"
|
|
Style="{StaticResource Table}"/>
|
|
<Border Grid.Column="9"
|
|
Style="{StaticResource Table}"/>
|
|
</Grid>
|
|
<ItemsControl Grid.Row="1"
|
|
ItemsSource="{Binding DoorOnMachineList}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<Canvas/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border Canvas.Bottom="{Binding dBottomPosition}"
|
|
Canvas.Left="{Binding dLeftPosition}"
|
|
Style="{StaticResource Door}">
|
|
<TextBlock Text="{Binding nId}"
|
|
FontSize="20"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
<!--<Canvas Grid.Row="1">
|
|
<Border Canvas.Top="30"
|
|
Canvas.Left="30"
|
|
Style="{StaticResource Door}">
|
|
<TextBlock Text="5"
|
|
FontSize="20"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"/>
|
|
</Border>
|
|
</Canvas>-->
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<StackPanel>
|
|
<TextBlock Text="Presenza porta M1S0"/>
|
|
<Button Content="0"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="1,2,980,0"
|
|
Width="30"/>
|
|
<Button Content="1"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="1,2,980,1"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Avanza porta in M1S1"/>
|
|
<Button Content="0"
|
|
Command="{Binding MoveVariable_Command}"
|
|
CommandParameter="1,1,1360->1,1,1361"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Avanza porta in M1S2"/>
|
|
<Button Content="0"
|
|
Command="{Binding MoveVariable_Command}"
|
|
CommandParameter="1,1,1361->1,1,1362"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Avanza porta in M1S3"/>
|
|
<Button Content="0"
|
|
Command="{Binding MoveVariable_Command}"
|
|
CommandParameter="1,1,1362->1,1,1363"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Avanza porta in M1S4/M2S0"/>
|
|
<Button Content="0"
|
|
Command="{Binding MoveVariable_Command}"
|
|
CommandParameter="1,1,1363->1,1,1364;2,1,1360"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Presenza porta M2S0"/>
|
|
<Button Content="0"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="2,2,980,0"
|
|
Width="30"/>
|
|
<Button Content="1"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="2,2,980,1"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Avanza porta in M2S1"/>
|
|
<Button Content="0"
|
|
Command="{Binding MoveVariable_Command}"
|
|
CommandParameter="1,1,1364;2,1,1360->2,1,1361"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Avanza porta in M2S2"/>
|
|
<Button Content="0"
|
|
Command="{Binding MoveVariable_Command}"
|
|
CommandParameter="2,1,1361->2,1,1362"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Avanza porta in M2S3"/>
|
|
<Button Content="0"
|
|
Command="{Binding MoveVariable_Command}"
|
|
CommandParameter="2,1,1362->2,1,1363"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<TextBlock Text="Avanza porta in M2S4"/>
|
|
<Button Content="0"
|
|
Command="{Binding MoveVariable_Command}"
|
|
CommandParameter="2,1,1363->2,1,1364"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1"
|
|
Orientation="Horizontal">
|
|
<TextBlock Text="State M1"/>
|
|
<Button Content="0"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="1,1,1352,0"
|
|
Width="30"/>
|
|
<Button Content="1"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="1,1,1352,1"
|
|
Width="30"/>
|
|
<Button Content="2"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="1,1,1352,2"
|
|
Width="30"/>
|
|
<Button Content="3"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="1,1,1352,3"
|
|
Width="30"/>
|
|
<Button Content="4"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="1,1,1352,4"
|
|
Width="30"/>
|
|
<Button Content="5"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="1,1,1352,5"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="2"
|
|
Orientation="Horizontal">
|
|
<TextBlock Text="State M2"/>
|
|
<Button Content="0"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="2,1,1352,0"
|
|
Width="30"/>
|
|
<Button Content="1"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="2,1,1352,1"
|
|
Width="30"/>
|
|
<Button Content="2"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="2,1,1352,2"
|
|
Width="30"/>
|
|
<Button Content="3"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="2,1,1352,3"
|
|
Width="30"/>
|
|
<Button Content="4"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="2,1,1352,4"
|
|
Width="30"/>
|
|
<Button Content="5"
|
|
Command="{Binding WriteVariable_Command}"
|
|
CommandParameter="2,1,1352,5"
|
|
Width="30"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|