6e4645875b
- Tpa funzionante
75 lines
2.8 KiB
XML
75 lines
2.8 KiB
XML
<Window x:Class="EgtCNCPLCComm.MainWindowV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="MainWindow" Height="800" Width="400">
|
|
|
|
<StackPanel>
|
|
<Button Content="CONNECT"
|
|
Command="{Binding Connect_Command}"
|
|
Background="{Binding Connect_Background}"/>
|
|
<Button Content="DISCONNECT"
|
|
Command="{Binding Disconnect_Command}"/>
|
|
<Button Content="START"
|
|
Command="{Binding Start_Command}"/>
|
|
<Button Content="PAUSE"
|
|
Command="{Binding Stop_Command}"/>
|
|
<Button Content="END"
|
|
Command="{Binding Step_Command}"/>
|
|
<Button Content="SET POINT"
|
|
Command="{Binding SetPoint_Command}"/>
|
|
<Button Content="PRINT LABEL"
|
|
Command="{Binding PrintLabel_Command}"/>
|
|
<TextBlock Text="{Binding ErrCycle}"/>
|
|
<TextBlock Text="{Binding Iso}"/>
|
|
<TextBlock Text="{Binding Message}"/>
|
|
<TextBlock Text="{Binding ErrSystem}"/>
|
|
<Button Content="CANCELLA ALLARMI"
|
|
Command="{Binding DeleteAlarms_Command}"/>
|
|
<GroupBox Header="CNC files manager">
|
|
<StackPanel>
|
|
<TextBlock Text="{Binding ProgramPath}"/>
|
|
<Button Content="..."
|
|
Command="{Binding SearchFilePath_Command}"/>
|
|
<TextBox Text="{Binding ProgramIndex}"/>
|
|
<Button Content="Add"
|
|
Command="{Binding AddProgram_Command}"/>
|
|
<Button Content="Remove"
|
|
Command="{Binding RemoveProgram_Command}"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Header="Read/Write variables">
|
|
<StackPanel>
|
|
<TextBlock Text="Name:"/>
|
|
<TextBox Text="{Binding VarName}"/>
|
|
<TextBlock Text="Value:"/>
|
|
<TextBox Text="{Binding VarValue}"/>
|
|
<Button Content="Read"
|
|
Command="{Binding ReadVar_Command}"/>
|
|
<Button Content="Write"
|
|
Command="{Binding WriteVar_Command}"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Header="Read axis">
|
|
<ItemsControl ItemsSource="{Binding AxisList}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="{Binding Name}"/>
|
|
<TextBlock Text="{Binding Value}"/>
|
|
</UniformGrid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</GroupBox>
|
|
<GroupBox Header="OPState">
|
|
<ComboBox ItemsSource="{Binding OPStateList}"
|
|
SelectedItem="{Binding SelOPState}"/>
|
|
</GroupBox>
|
|
|
|
<StackPanel>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
</Window>
|