LPStatus.xaml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <UserControl x:Class="Aitex.Sorter.UI.Controls.LPStatus"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Aitex.Sorter.UI.Controls"
  7. xmlns:converter="clr-namespace:Aitex.Sorter.UI.Converter"
  8. xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
  9. xmlns:common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <UserControl.Resources>
  13. <converter:LedConverter x:Key="ledConverter" />
  14. </UserControl.Resources>
  15. <Grid x:Name="root" VerticalAlignment="Top">
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="440" />
  18. <ColumnDefinition Width="*" />
  19. </Grid.ColumnDefinitions>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="50" />
  22. <RowDefinition Height="*" />
  23. </Grid.RowDefinitions>
  24. <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Orientation="Horizontal" VerticalAlignment="Center">
  25. <StackPanel.Resources>
  26. <Style TargetType="Label">
  27. <Setter Property="Margin" Value="0,0,16,0" />
  28. </Style>
  29. </StackPanel.Resources>
  30. <ctrlCommon:LED On="{Binding LoadPortLoaded}" />
  31. <Label Grid.Row="0" Grid.Column="1" Content="Load" />
  32. <ctrlCommon:LED On="{Binding LoadPortUnloaded}" />
  33. <Label Content="Unload" />
  34. <ctrlCommon:LED On="{Binding IsManualMode}"/>
  35. <Label Content="Manual" />
  36. <ctrlCommon:LED On="{Binding Present}" />
  37. <Label Grid.Row="2" Grid.Column="1" Content="Presence" />
  38. <ctrlCommon:LED On="{Binding Placed}" />
  39. <Label Grid.Row="4" Grid.Column="1" Content="Placement" />
  40. <ctrlCommon:LED On="{Binding IsAutoMode}" />
  41. <Label Content="Auto" />
  42. <ctrlCommon:LED On="False" />
  43. <Label Content="Reserve" />
  44. <ctrlCommon:LED IsRed="True" On="{Binding IsAlarm}" />
  45. <Label Grid.Row="3" Grid.Column="1" Content="Alarm" />
  46. </StackPanel>
  47. <StackPanel Orientation="Vertical" Grid.Row="1" Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Center" TextBlock.Foreground="White" Height="280" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="LightBlue" ctrlCommon:GridHelper.Column2="Transparent">
  48. <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal" >
  49. <Button Content="Load" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportLoad}" />
  50. <Button Content="Unload" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportUnload}" />
  51. </StackPanel>
  52. <StackPanel Grid.Row="2" Grid.Column="2" Orientation="Horizontal">
  53. <Button Content="Clamp" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportClamp}" />
  54. <Button Content="Unclamp" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportUnclamp}" />
  55. </StackPanel>
  56. <StackPanel Grid.Row="4" Grid.Column="2" Orientation="Horizontal">
  57. <Button Content="Dock" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportDock}" />
  58. <Button Content="Undock" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportUndock}" />
  59. </StackPanel>
  60. <StackPanel Grid.Row="3" Grid.Column="2" Orientation="Horizontal">
  61. <Button Content="Open Door" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportOpenDoor}" />
  62. <Button Content="Close Door" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportCloseDoor}" />
  63. </StackPanel>
  64. <StackPanel Grid.Row="5" Grid.Column="2" Orientation="Horizontal">
  65. <Button Content="Map" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportMap}"/>
  66. <Button Content="Force Home" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportForceHome}"/>
  67. </StackPanel>
  68. </StackPanel>
  69. <Grid Grid.Row="1" HorizontalAlignment="left" VerticalAlignment="Top" Width="440" Height="280" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  70. <Grid.ColumnDefinitions>
  71. <ColumnDefinition Width="*" />
  72. <ColumnDefinition Width="*"/>
  73. </Grid.ColumnDefinitions>
  74. <Grid.RowDefinitions>
  75. <RowDefinition Height="*" />
  76. <RowDefinition Height="*" />
  77. <RowDefinition Height="*" />
  78. <RowDefinition Height="*" />
  79. <RowDefinition Height="*" />
  80. </Grid.RowDefinitions>
  81. <Label Grid.Row="0" Grid.Column="0" Content="Status" />
  82. <Label Content="{Binding Status}" Grid.Row="0" Grid.Column="1" />
  83. <Label Grid.Row="1" Grid.Column="0" Content="Cassette Status" />
  84. <Label Grid.Row="1" Content="{Binding CassetteState}" Grid.Column="1" />
  85. <Label Grid.Row="2" Grid.Column="0" Content="Clamp Status" />
  86. <Label Content="{Binding ClampStatus}" Grid.Row="2" Grid.Column="1" />
  87. <Label Grid.Row="3" Grid.Column="0" Content="Door Status" />
  88. <Label Content="{Binding FoupDoorStatus}" Grid.Row="3" Grid.Column="1" />
  89. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.ColumnSpan="2">
  90. <Button Content="Home" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadporHome}" />
  91. <Button Content="Reset" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportReset}" />
  92. <Button Content="Stop" Command="{Binding DeviceOperationCommand}" CommandParameter="{x:Static common:DeviceOperationName.LoadportStop}" />
  93. </StackPanel>
  94. </Grid>
  95. </Grid>
  96. </UserControl>