BoatRobotView.xaml 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. <UserControl x:Class="FurnaceUI.Views.Maintenances.BoatRobotView"
  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:FurnaceUI.Views.Maintenances"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:cal="http://www.caliburn.org"
  9. xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core" xmlns:parts="clr-namespace:FurnaceUI.Controls.Parts"
  10. mc:Ignorable="d"
  11. Width="1280" Height="900"
  12. >
  13. <Grid>
  14. <Canvas >
  15. <Grid Margin="10,10,0,0" >
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="24"/>
  18. <RowDefinition Height="35"/>
  19. <RowDefinition Height="35"/>
  20. <RowDefinition Height="35"/>
  21. <RowDefinition Height="35"/>
  22. <RowDefinition Height="35"/>
  23. <RowDefinition Height="35"/>
  24. <RowDefinition Height="35"/>
  25. <RowDefinition Height="35"/>
  26. <RowDefinition Height="35"/>
  27. <RowDefinition Height="35"/>
  28. <RowDefinition Height="35"/>
  29. <RowDefinition Height="115"/>
  30. </Grid.RowDefinitions>
  31. <Grid.ColumnDefinitions>
  32. <ColumnDefinition Width="110"/>
  33. <ColumnDefinition Width="80"/>
  34. <ColumnDefinition Width="110"/>
  35. <ColumnDefinition Width="180"/>
  36. </Grid.ColumnDefinitions>
  37. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  38. <Label.Content>
  39. <TextBlock Text="Boat E Axis Information" Foreground="White"></TextBlock>
  40. </Label.Content>
  41. </Label>
  42. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0" Padding="10,1,0,1">
  43. <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  44. </Border>
  45. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="1" Padding="5,1">
  46. <TextBlock Text="{Binding BoatZAxisStatus}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  47. </Border>
  48. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="2" Padding="10,1,0,1">
  49. <TextBlock Text="Servo On/Off" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  50. </Border>
  51. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="3" Padding="5,1">
  52. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisIsServoOn}" EnableToolTip="False"/>
  53. </Border>
  54. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="0" Padding="10,1,0,1">
  55. <TextBlock Text="Error Code" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  56. </Border>
  57. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="1" Padding="5,1">
  58. <TextBlock Text="{Binding BoatZAxisErrorCode,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  59. </Border>
  60. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="2" Padding="10,1,0,1">
  61. <TextBlock Text="Motor Warning" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  62. </Border>
  63. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="3" Padding="5,1">
  64. <deviceControl:AITSensor CustomColorOn="Red" IsCustomRender="True" CustomColorOff="#FF07FF07" LightOnValue="{Binding BoatZAxisIsWarning}" EnableToolTip="False"/>
  65. </Border>
  66. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="0" Padding="10,1,0,1">
  67. <TextBlock Text="Current Speed(mm/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  68. </Border>
  69. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="1" Padding="5,1">
  70. <TextBlock Text="{Binding BoatZAxisCurrentSpeed,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  71. </Border>
  72. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="2" Padding="10,1,0,1">
  73. <TextBlock Text="Motor Alarm" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  74. </Border>
  75. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="3" Padding="5,1">
  76. <deviceControl:AITSensor CustomColorOn="Red" IsCustomRender="True" CustomColorOff="#FF07FF07" LightOnValue="{Binding BoatZAxisIsAlarm}" EnableToolTip="False"/>
  77. </Border>
  78. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="0" Padding="10,1,0,1">
  79. <TextBlock Text="Current Position(mm)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  80. </Border>
  81. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="1" Padding="5,1">
  82. <TextBlock Text="{Binding BoatZAxisCurrentPosition,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  83. </Border>
  84. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="2" Padding="10,1,0,1">
  85. <TextBlock Text="Motor Moving" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  86. </Border>
  87. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="3" Padding="5,1">
  88. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisIsMoving}" EnableToolTip="False"/>
  89. </Border>
  90. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column="0" Padding="10,1,0,1">
  91. <TextBlock Text="At Position1" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  92. </Border>
  93. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="1">
  94. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisAtPosition1}" EnableToolTip="False"/>
  95. </Border>
  96. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="2" Grid.ColumnSpan="2">
  97. <Button Content="Move To Position1" Width="150" Height="30" Margin="0,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  98. <i:Interaction.Triggers>
  99. <i:EventTrigger EventName="Click">
  100. <cal:ActionMessage MethodName="MoveTo">
  101. <cal:Parameter Value="Position1" />
  102. </cal:ActionMessage>
  103. </i:EventTrigger>
  104. </i:Interaction.Triggers>
  105. </Button>
  106. </Border>
  107. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Grid.Column="0" Padding="10,1,0,1">
  108. <TextBlock Text="At Position2" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  109. </Border>
  110. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="1">
  111. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisAtPosition2}" EnableToolTip="False"/>
  112. </Border>
  113. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="2" Grid.ColumnSpan="2">
  114. <Button Content="Move To Position2" Width="150" Height="30" Margin="0,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  115. <i:Interaction.Triggers>
  116. <i:EventTrigger EventName="Click">
  117. <cal:ActionMessage MethodName="MoveTo">
  118. <cal:Parameter Value="Position2" />
  119. </cal:ActionMessage>
  120. </i:EventTrigger>
  121. </i:Interaction.Triggers>
  122. </Button>
  123. </Border>
  124. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Grid.Column="0" Padding="10,1,0,1">
  125. <TextBlock Text="At Position3" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  126. </Border>
  127. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="1">
  128. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisAtPosition3}" EnableToolTip="False"/>
  129. </Border>
  130. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="2" Grid.ColumnSpan="2">
  131. <Button Content="Move To Position3" Width="150" Height="30" Margin="0,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  132. <i:Interaction.Triggers>
  133. <i:EventTrigger EventName="Click">
  134. <cal:ActionMessage MethodName="MoveTo">
  135. <cal:Parameter Value="Position3" />
  136. </cal:ActionMessage>
  137. </i:EventTrigger>
  138. </i:Interaction.Triggers>
  139. </Button>
  140. </Border>
  141. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="8" Grid.Column="0" Padding="10,1,0,1">
  142. <TextBlock Text="At Home Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  143. </Border>
  144. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="8" Grid.Column="1">
  145. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisAtHomePosition}" EnableToolTip="False"/>
  146. </Border>
  147. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="8" Grid.Column="2" Grid.ColumnSpan="2">
  148. </Border>
  149. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="9" Grid.Column="0" Padding="10,1,0,1">
  150. <TextBlock Text="Move Speed(mm/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  151. </Border>
  152. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="9" Grid.Column="1">
  153. <TextBlock Text="{Binding ZAxisMoveSpeed, StringFormat={}{0:f2}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  154. </Border>
  155. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="9" Grid.Column ="2" Grid.ColumnSpan="3" Padding="5,1">
  156. <StackPanel Orientation="Horizontal" >
  157. <TextBox Text="{Binding ZAxisMoveSpeed,Mode=OneTime}" x:Name="tbMoveSpeed" HorizontalContentAlignment="Center" Width="90" Height="30" Tag="Number"></TextBox>
  158. <Button Content="Save" Width="80" Height="30" Margin="10,0,10,0">
  159. <i:Interaction.Triggers>
  160. <i:EventTrigger EventName="Click">
  161. <cal:ActionMessage MethodName="BoatZSaveValue">
  162. <cal:Parameter Value="MoveSpeed" />
  163. <cal:Parameter Value="{Binding ElementName=tbMoveSpeed}" />
  164. </cal:ActionMessage>
  165. </i:EventTrigger>
  166. </i:Interaction.Triggers>
  167. </Button>
  168. </StackPanel>
  169. </Border>
  170. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="10" Grid.Column="0" Padding="10,1,0,1">
  171. <TextBlock Text="Acc(mm/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  172. </Border>
  173. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="10" Grid.Column="1">
  174. <TextBlock Text="{Binding ZAxisAcc, StringFormat={}{0:f2}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  175. </Border>
  176. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="10" Grid.Column ="2" Grid.ColumnSpan="3" Padding="5,1">
  177. <StackPanel Orientation="Horizontal" >
  178. <TextBox Text="{Binding ZAxisAcc,Mode=OneTime}" x:Name="tbZAxisAcc" HorizontalContentAlignment="Center" Width="90" Height="30" Tag="Number"></TextBox>
  179. <Button Content="Save" Width="80" Height="30" Margin="10,0,10,0">
  180. <i:Interaction.Triggers>
  181. <i:EventTrigger EventName="Click">
  182. <cal:ActionMessage MethodName="BoatZSaveValue">
  183. <cal:Parameter Value="Acc" />
  184. <cal:Parameter Value="{Binding ElementName=tbZAxisAcc}" />
  185. </cal:ActionMessage>
  186. </i:EventTrigger>
  187. </i:Interaction.Triggers>
  188. </Button>
  189. </StackPanel>
  190. </Border>-->
  191. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="11" Grid.Column="0" Padding="10,1,0,1">
  192. <TextBlock Text="Dec(mm/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  193. </Border>
  194. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="11" Grid.Column="1">
  195. <TextBlock Text="{Binding ZAxisDec, StringFormat={}{0:f2}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  196. </Border>
  197. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="11" Grid.Column ="2" Grid.ColumnSpan="3" Padding="5,1">
  198. <StackPanel Orientation="Horizontal" >
  199. <TextBox Text="{Binding ZAxisDec,Mode=OneTime}" x:Name="tbZAxisDec" HorizontalContentAlignment="Center" Width="90" Height="30" Tag="Number"></TextBox>
  200. <Button Content="Save" Width="80" Height="30" Margin="10,0,10,0">
  201. <i:Interaction.Triggers>
  202. <i:EventTrigger EventName="Click">
  203. <cal:ActionMessage MethodName="BoatZSaveValue">
  204. <cal:Parameter Value="Dec" />
  205. <cal:Parameter Value="{Binding ElementName=tbZAxisDec}" />
  206. </cal:ActionMessage>
  207. </i:EventTrigger>
  208. </i:Interaction.Triggers>
  209. </Button>
  210. </StackPanel>
  211. </Border>-->
  212. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="10" Grid.RowSpan="3" Grid.ColumnSpan="4" Padding="0,0,0,0">
  213. <StackPanel Orientation="Horizontal" Margin="0,0,0,0" >
  214. <Button Content="Continue" Width="92" Height="30" Margin="30,-70,0,0" IsEnabled="{Binding IsProcessing}">
  215. <i:Interaction.Triggers>
  216. <i:EventTrigger EventName="Click">
  217. <cal:ActionMessage MethodName="Continue">
  218. <cal:Parameter Value="PM1.BoatElevatorServo" />
  219. </cal:ActionMessage>
  220. </i:EventTrigger>
  221. </i:Interaction.Triggers>
  222. </Button>
  223. <Button Content="Stop" Width="92" Height="30" Margin="22,-70,10,0" IsEnabled="{Binding IsSystemStaus}">
  224. <i:Interaction.Triggers>
  225. <i:EventTrigger EventName="Click">
  226. <cal:ActionMessage MethodName="Stop">
  227. <cal:Parameter Value="PM1.BoatElevatorServo" />
  228. </cal:ActionMessage>
  229. </i:EventTrigger>
  230. </i:Interaction.Triggers>
  231. </Button>
  232. <Button Content="Reset" Width="92" Height="30" Margin="5,-70,10,0" IsEnabled="{Binding IsSystemStaus}">
  233. <i:Interaction.Triggers>
  234. <i:EventTrigger EventName="Click">
  235. <cal:ActionMessage MethodName="Reset">
  236. <cal:Parameter Value="PM1.BoatElevatorServo" />
  237. </cal:ActionMessage>
  238. </i:EventTrigger>
  239. </i:Interaction.Triggers>
  240. </Button>
  241. <Button Content="Home" Width="92" Height="30" Margin="5,-70,0,0" IsEnabled="{Binding IsSystemStaus}">
  242. <i:Interaction.Triggers>
  243. <i:EventTrigger EventName="Click">
  244. <cal:ActionMessage MethodName="Home">
  245. <cal:Parameter Value="PM1.BoatElevatorServo" />
  246. </cal:ActionMessage>
  247. </i:EventTrigger>
  248. </i:Interaction.Triggers>
  249. </Button>
  250. <StackPanel Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Orientation="Horizontal" Height="34" Margin="-420,80,0,0">
  251. <Label Content="From: "></Label>
  252. <ComboBox x:Name="cbModulesCassetteRobot" Margin="0,0,3,0" Height="25" Width="120" ItemsSource="{Binding ZPositions}" SelectedItem="{Binding ZAxisTestStartPosition}" />
  253. <Label Content="To: "></Label>
  254. <ComboBox x:Name="cbSlotsCassetteRobot" Margin="3,0,3,0" Height="25" Width="120" ItemsSource="{Binding ZPositions}" SelectedItem="{Binding ZAxisTestEndPosition}" />
  255. <Button Content="Move Test" Width="100" Height="30" Margin="3,0,0,0" IsEnabled="{Binding IsSystemStaus}">
  256. <i:Interaction.Triggers>
  257. <i:EventTrigger EventName="Click">
  258. <cal:ActionMessage MethodName="BoatZServoTest"/>
  259. </i:EventTrigger>
  260. </i:Interaction.Triggers>
  261. </Button>
  262. </StackPanel>
  263. </StackPanel>
  264. </Border>
  265. </Grid>
  266. <Canvas>
  267. <Image Source="/FurnaceUI;component/Resources/Images/Controls3/01.png" Canvas.Left="573" Canvas.Top="10"/>
  268. <parts:BoatElevatorRobot RobotTarget="{Binding BoatPosition}" BoatStatus="{Binding BoatStatus}" StationPosition="{Binding StationPosition3}" Canvas.Left="630" Canvas.Top="373" Visibility="{Binding IsShowBoatElevatorRobot, Converter={StaticResource bool2VisibilityConverter}}"/>
  269. <TextBlock Text="Position 3 ----->" Canvas.Left="505" Canvas.Top="655" FontSize="14"/>
  270. <TextBlock Text="Position 2 -------->" Canvas.Left="505" Canvas.Top="500" FontSize="14"/>
  271. <TextBlock Text="Position 1 -------->" Canvas.Left="505" Canvas.Top="350" FontSize="14"/>
  272. <i:Interaction.Triggers>
  273. <i:EventTrigger EventName="MouseLeftButtonDown">
  274. <cal:ActionMessage MethodName="BoatModify"/>
  275. </i:EventTrigger>
  276. </i:Interaction.Triggers>
  277. </Canvas>
  278. <Grid Margin="780,20,0,0" Visibility="{Binding IsBoatRAxisInstalled,Converter={StaticResource bool2VisibilityConverter}}">
  279. <Grid.RowDefinitions>
  280. <RowDefinition Height="24"/>
  281. <RowDefinition Height="35"/>
  282. <RowDefinition Height="35"/>
  283. <RowDefinition Height="35"/>
  284. <RowDefinition Height="35"/>
  285. <RowDefinition Height="35"/>
  286. <RowDefinition Height="35"/>
  287. <RowDefinition Height="115"/>
  288. </Grid.RowDefinitions>
  289. <Grid.ColumnDefinitions>
  290. <ColumnDefinition Width="100"/>
  291. <ColumnDefinition Width="90"/>
  292. <ColumnDefinition Width="110"/>
  293. <ColumnDefinition Width="180"/>
  294. </Grid.ColumnDefinitions>
  295. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  296. <Label.Content>
  297. <TextBlock Text="Boat R Axis Information" Foreground="White"></TextBlock>
  298. </Label.Content>
  299. </Label>
  300. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0" Padding="5,1,0,1">
  301. <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  302. </Border>
  303. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="1" Padding="5,1">
  304. <TextBlock Text="{Binding BoatRAxisStatus}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  305. </Border>
  306. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="2" Padding="5,1,0,1">
  307. <TextBlock Text="Rotating" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  308. </Border>
  309. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="3" Padding="5,1">
  310. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsMoving}" EnableToolTip="False"/>
  311. </Border>
  312. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="0" Padding="5,1,0,1">
  313. <TextBlock Text="Error Code" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  314. </Border>
  315. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="1" Padding="5,1">
  316. <TextBlock Text="{Binding BoatRAxisErrorCode,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  317. </Border>
  318. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="2" Padding="5,1,0,1">
  319. <TextBlock Text="Motor Warning" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  320. </Border>
  321. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="3" Padding="5,1">
  322. <deviceControl:AITSensor CustomColorOn="Red" IsCustomRender="True" CustomColorOff="#FF07FF07" LightOnValue="{Binding BoatRAxisIsWarning}" EnableToolTip="False"/>
  323. </Border>
  324. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="0" Padding="5,1,0,1">
  325. <TextBlock Text="Current Speed(rpm)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  326. </Border>
  327. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="1" Padding="5,1">
  328. <TextBlock Text="{Binding BoatRAxisCurrentSpeed,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  329. </Border>
  330. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="2" Padding="5,1,0,1">
  331. <TextBlock Text="Motor Alarm" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  332. </Border>
  333. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="3" Padding="5,1">
  334. <deviceControl:AITSensor CustomColorOn="Red" IsCustomRender="True" CustomColorOff="#FF07FF07" LightOnValue="{Binding BoatRAxisIsAlarm}" EnableToolTip="False"/>
  335. </Border>
  336. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="0" Padding="5,1,0,1">
  337. <TextBlock Text="Home Done" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  338. </Border>
  339. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="1" Padding="5,1">
  340. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsHomeDone}" EnableToolTip="False"/>
  341. </Border>
  342. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="2" Padding="5,1,0,1">
  343. <TextBlock Text="Homing" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  344. </Border>
  345. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="3" Padding="5,1">
  346. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsHoming}" EnableToolTip="False"/>
  347. </Border>
  348. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column="0" Padding="5,1,0,1">
  349. <TextBlock Text="Origin Done" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  350. </Border>
  351. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="1">
  352. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsInitDone}" EnableToolTip="False"/>
  353. </Border>
  354. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column ="2" Padding="5,1">
  355. <TextBlock Text="Origin" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  356. </Border>
  357. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="3">
  358. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsInitializing}" EnableToolTip="False"/>
  359. </Border>-->
  360. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Grid.Column="0" Padding="5,1,0,1">
  361. <TextBlock Text="Set Speed (rpm)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  362. </Border>
  363. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="1">
  364. <TextBlock Text="{Binding RAxisMoveSpeed, StringFormat={}{0:f2},UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  365. </Border>
  366. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="2" Grid.ColumnSpan="2">
  367. <StackPanel Orientation="Horizontal" >
  368. <TextBox Text="{Binding RAxisMoveSpeed,Mode=OneTime}" x:Name="tbSetSpeed" HorizontalContentAlignment="Center" Width="90" Height="30" Tag="Number"></TextBox>
  369. <Button Content="Save" Width="80" Height="30" Margin="10,0,10,0">
  370. <i:Interaction.Triggers>
  371. <i:EventTrigger EventName="Click">
  372. <cal:ActionMessage MethodName="BoatRSaveValue">
  373. <cal:Parameter Value="MoveSpeed" />
  374. <cal:Parameter Value="{Binding ElementName=tbSetSpeed}" />
  375. </cal:ActionMessage>
  376. </i:EventTrigger>
  377. </i:Interaction.Triggers>
  378. </Button>
  379. </StackPanel>
  380. </Border>
  381. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column="0" Padding="5,1,0,1">
  382. <TextBlock Text="Rotation Direction" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  383. </Border>
  384. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="1" Padding="5,1">
  385. <TextBlock Text="{Binding BoatRAxisDirection,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  386. </Border>
  387. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="2" Grid.ColumnSpan="2" Padding="5,1,0,1">
  388. <StackPanel Orientation="Horizontal" >
  389. <Button Content="CW" Width="80" Height="30" IsEnabled="{Binding IsSystemStaus}">
  390. <i:Interaction.Triggers>
  391. <i:EventTrigger EventName="Click">
  392. <cal:ActionMessage MethodName="RAxisMoveTo">
  393. <cal:Parameter Value="CW" />
  394. </cal:ActionMessage>
  395. </i:EventTrigger>
  396. </i:Interaction.Triggers>
  397. </Button>
  398. <Button Content="CCW" Width="80" Height="30" Margin="15,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  399. <i:Interaction.Triggers>
  400. <i:EventTrigger EventName="Click">
  401. <cal:ActionMessage MethodName="RAxisMoveTo">
  402. <cal:Parameter Value="CCW" />
  403. </cal:ActionMessage>
  404. </i:EventTrigger>
  405. </i:Interaction.Triggers>
  406. </Button>
  407. </StackPanel>
  408. </Border>
  409. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.RowSpan="2" Grid.ColumnSpan="4" Padding="80,0,0,0">
  410. <StackPanel Orientation="Horizontal" >
  411. <Button Content="Home" Width="92" Height="30" Margin="22,-70,10,0" IsEnabled="{Binding IsSystemStaus}">
  412. <i:Interaction.Triggers>
  413. <i:EventTrigger EventName="Click">
  414. <cal:ActionMessage MethodName="Home">
  415. <cal:Parameter Value="PM1.BoatRotationServo" />
  416. </cal:ActionMessage>
  417. </i:EventTrigger>
  418. </i:Interaction.Triggers>
  419. </Button>
  420. <Button Content="Stop" Width="92" Height="30" Margin="5,-70,10,0" IsEnabled="{Binding IsSystemStaus}">
  421. <i:Interaction.Triggers>
  422. <i:EventTrigger EventName="Click">
  423. <cal:ActionMessage MethodName="Stop">
  424. <cal:Parameter Value="PM1.BoatRotationServo" />
  425. </cal:ActionMessage>
  426. </i:EventTrigger>
  427. </i:Interaction.Triggers>
  428. </Button>
  429. <Button Content="Reset" Width="92" Height="30" Margin="5,-70,0,0" IsEnabled="{Binding IsSystemStaus}">
  430. <i:Interaction.Triggers>
  431. <i:EventTrigger EventName="Click">
  432. <cal:ActionMessage MethodName="Reset">
  433. <cal:Parameter Value="PM1.BoatRotationServo" />
  434. </cal:ActionMessage>
  435. </i:EventTrigger>
  436. </i:Interaction.Triggers>
  437. </Button>
  438. <Button Content="CW Test" Width="92" Height="30" Margin="-520,0,0,0" Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" IsEnabled="{Binding IsSystemStaus}">
  439. <i:Interaction.Triggers>
  440. <i:EventTrigger EventName="Click">
  441. <cal:ActionMessage MethodName="BoatRotationServoTest">
  442. <cal:Parameter Value="CW" />
  443. </cal:ActionMessage>
  444. </i:EventTrigger>
  445. </i:Interaction.Triggers>
  446. </Button>
  447. <Button Content="CCW Test" Width="92" Height="30" Margin="-305,0,0,0" Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" IsEnabled="{Binding IsSystemStaus}">
  448. <i:Interaction.Triggers>
  449. <i:EventTrigger EventName="Click">
  450. <cal:ActionMessage MethodName="BoatRotationServoTest">
  451. <cal:Parameter Value="CCW" />
  452. </cal:ActionMessage>
  453. </i:EventTrigger>
  454. </i:Interaction.Triggers>
  455. </Button>
  456. <Button Content="Stop Test" Width="92" Height="30" Margin="-92,0,0,0" Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" IsEnabled="{Binding IsSystemStaus}">
  457. <i:Interaction.Triggers>
  458. <i:EventTrigger EventName="Click">
  459. <cal:ActionMessage MethodName="BoatRotationServoStopTest">
  460. </cal:ActionMessage>
  461. </i:EventTrigger>
  462. </i:Interaction.Triggers>
  463. </Button>
  464. </StackPanel>
  465. </Border>
  466. </Grid>
  467. <Grid Margin="780,430,0,0" Visibility="{Binding IsBoatRAxisInstalled,Converter={StaticResource bool2VisibilityConverter}}">
  468. <Grid.RowDefinitions>
  469. <RowDefinition Height="24"/>
  470. <RowDefinition Height="35"/>
  471. </Grid.RowDefinitions>
  472. <Grid.ColumnDefinitions>
  473. <ColumnDefinition Width="160"/>
  474. <ColumnDefinition Width="100"/>
  475. <ColumnDefinition Width="100"/>
  476. <ColumnDefinition Width="120"/>
  477. </Grid.ColumnDefinitions>
  478. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  479. <Label.Content>
  480. <TextBlock Text="Shutter Information" Foreground="White"></TextBlock>
  481. </Label.Content>
  482. </Label>
  483. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0" Padding="5,1,0,1">
  484. <TextBlock Text="Open/Close Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" />
  485. </Border>
  486. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">
  487. <TextBlock Text="{Binding AutoDoorOpenCloseStatus}" TextAlignment="Center" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  488. </Border>
  489. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="2" Grid.ColumnSpan="2" Padding="5,1">
  490. <StackPanel Orientation="Horizontal" >
  491. <Button Content="Open" Width="80" Height="25" Margin="10,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  492. <i:Interaction.Triggers>
  493. <i:EventTrigger EventName="Click">
  494. <cal:ActionMessage MethodName="SetOpen">
  495. <cal:Parameter Value="PM1.SetAutoShutterOpen" />
  496. <cal:Parameter Value="True"/>
  497. </cal:ActionMessage>
  498. </i:EventTrigger>
  499. </i:Interaction.Triggers>
  500. </Button>
  501. <Button Content="Close" Width="80" Height="25" Margin="10,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  502. <i:Interaction.Triggers>
  503. <i:EventTrigger EventName="Click">
  504. <cal:ActionMessage MethodName="SetOpen">
  505. <cal:Parameter Value="PM1.SetAutoShutterOpen" />
  506. <cal:Parameter Value="False"/>
  507. </cal:ActionMessage>
  508. </i:EventTrigger>
  509. </i:Interaction.Triggers>
  510. </Button>
  511. </StackPanel>
  512. </Border>
  513. </Grid>
  514. <Grid Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Margin="780,515,0,0">
  515. <Grid.RowDefinitions>
  516. <RowDefinition Height="24"/>
  517. <RowDefinition Height="100"/>
  518. </Grid.RowDefinitions>
  519. <Grid.ColumnDefinitions>
  520. <ColumnDefinition Width="480"/>
  521. </Grid.ColumnDefinitions>
  522. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  523. <Label.Content>
  524. <TextBlock Text="Boat Cycle Test" Foreground="White"></TextBlock>
  525. </Label.Content>
  526. </Label>
  527. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="0" Padding="0,0,0,0">
  528. <StackPanel Orientation="Vertical" Margin="0,0,0,0" >
  529. <StackPanel Orientation="Horizontal" Height="35" Margin="0,10,0,0">
  530. <Label Content="From: "></Label>
  531. <ComboBox Margin="0,0,3,0" Height="25" Width="120" ItemsSource="{Binding ZPositions}" SelectedItem="{Binding ZAxisTestStartPosition}" />
  532. <Label Content="To: "></Label>
  533. <ComboBox Margin="3,0,3,0" Height="25" Width="120" ItemsSource="{Binding ZPositions}" SelectedItem="{Binding ZAxisTestEndPosition}" />
  534. <ComboBox Margin="3,0,3,0" Height="25" Width="120" ItemsSource="{Binding RPositions}" SelectedItem="{Binding RAxisTestDirection}" />
  535. </StackPanel>
  536. <StackPanel Orientation="Horizontal" Height="50" Margin="0,0,0,0">
  537. <TextBlock Text="{Binding BoatCycleDisplay}" Width="180" VerticalAlignment="Center"></TextBlock>
  538. <Button Content="Move Test Start" Width="120" Height="30" Margin="15,10,0,0" IsEnabled="{Binding IsSystemStaus}">
  539. <i:Interaction.Triggers>
  540. <i:EventTrigger EventName="Click">
  541. <cal:ActionMessage MethodName="BoatTestStart"/>
  542. </i:EventTrigger>
  543. </i:Interaction.Triggers>
  544. </Button>
  545. <Button Content="Move Test Stop" Width="120" Height="30" Margin="15,10,0,0" IsEnabled="{Binding IsSystemStaus}">
  546. <i:Interaction.Triggers>
  547. <i:EventTrigger EventName="Click">
  548. <cal:ActionMessage MethodName="BoatTestStop"/>
  549. </i:EventTrigger>
  550. </i:Interaction.Triggers>
  551. </Button>
  552. </StackPanel>
  553. </StackPanel>
  554. </Border>
  555. </Grid>
  556. <Grid Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Margin="780,655,0,0">
  557. <Grid.RowDefinitions>
  558. <RowDefinition Height="24"/>
  559. <RowDefinition Height="50"/>
  560. </Grid.RowDefinitions>
  561. <Grid.ColumnDefinitions>
  562. <ColumnDefinition Width="480"/>
  563. </Grid.ColumnDefinitions>
  564. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  565. <Label.Content>
  566. <TextBlock Text="Shutter Cycle Test" Foreground="White"></TextBlock>
  567. </Label.Content>
  568. </Label>
  569. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="0" Padding="0,0,0,0">
  570. <StackPanel Orientation="Vertical" Margin="0,0,0,0" >
  571. <StackPanel Orientation="Horizontal" Height="40" Margin="0,0,0,0">
  572. <TextBlock Text="{Binding ShutterCycleDisplay}" Width="140" VerticalAlignment="Center"></TextBlock>
  573. <Button Content="Shutter Test Start" Width="140" Height="30" Margin="15,10,0,0" IsEnabled="{Binding IsSystemStaus}">
  574. <i:Interaction.Triggers>
  575. <i:EventTrigger EventName="Click">
  576. <cal:ActionMessage MethodName="ShutterTestStart"/>
  577. </i:EventTrigger>
  578. </i:Interaction.Triggers>
  579. </Button>
  580. <Button Content="Shutter Test Stop" Width="140" Height="30" Margin="15,10,0,0" IsEnabled="{Binding IsSystemStaus}">
  581. <i:Interaction.Triggers>
  582. <i:EventTrigger EventName="Click">
  583. <cal:ActionMessage MethodName="ShutterTestStop"/>
  584. </i:EventTrigger>
  585. </i:Interaction.Triggers>
  586. </Button>
  587. </StackPanel>
  588. </StackPanel>
  589. </Border>
  590. </Grid>
  591. </Canvas>
  592. </Grid>
  593. </UserControl>