VPWMotionControl.xaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <UserControl x:Class="PunkHPX8_Themes.UserControls.VPWMotionControl"
  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:PunkHPX8_Themes.UserControls"
  7. mc:Ignorable="d" x:Name="self"
  8. xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters"
  9. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  10. d:DesignHeight="850" d:DesignWidth="450">
  11. <UserControl.Resources>
  12. <converters:BoolToColor x:Key="boolToColor"/>
  13. <converters:BoolToRedColor x:Key="boolToRedColor"/>
  14. </UserControl.Resources>
  15. <Grid>
  16. <GroupBox Header="{Binding ModuleTitle, ElementName=self}" Background="{DynamicResource Table_BD_Title}" BorderBrush="DarkGray">
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="30"/>
  20. <RowDefinition Height="35"/>
  21. <RowDefinition Height="150"/>
  22. <RowDefinition Height="70"/>
  23. <RowDefinition Height="180"/>
  24. <RowDefinition Height="2"/>
  25. <RowDefinition Height="240"/>
  26. <RowDefinition Height="60"/>
  27. <RowDefinition/>
  28. </Grid.RowDefinitions>
  29. <WrapPanel Grid.Row="0" VerticalAlignment="Center">
  30. <Label Content="Status" FontSize="16" FontWeight="Bold"/>
  31. <TextBlock Background="Black" Foreground="Lime" VerticalAlignment="Center" Text="{Binding MotionData.Status, ElementName=self}"
  32. FontWeight="Bold" FontSize="16" Width="365"/>
  33. </WrapPanel>
  34. <Grid Grid.Row="1">
  35. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="ON" Margin="9,2,359,3" Height="30" Click="SwitchOn_Click"/>
  36. <Ellipse Margin="66,9,336,10" Width="16" Height="16" Fill="{Binding MotionData.IsSwitchOn, Converter={StaticResource boolToColor}, ElementName=self}" Stroke="Silver"/>
  37. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="OFF" Margin="88,2,280,3" Height="30" Click="SwitchOff_Click"/>
  38. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="Home" Margin="325,2,43,3" Height="30" Click="Home_Click"/>
  39. <Ellipse Margin="382,9,20,10" Width="16" Height="16" Fill="{Binding MotionData.IsHomed, Converter={StaticResource boolToColor}, ElementName=self}" Stroke="Silver"/>
  40. </Grid>
  41. <Grid Grid.Row="2">
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="30"/>
  44. <RowDefinition Height="30"/>
  45. <RowDefinition Height="30"/>
  46. <RowDefinition Height="30"/>
  47. <RowDefinition Height="30"/>
  48. </Grid.RowDefinitions>
  49. <Grid.ColumnDefinitions>
  50. <ColumnDefinition Width="220"/>
  51. <ColumnDefinition Width="130"/>
  52. <ColumnDefinition Width="80"/>
  53. <ColumnDefinition Width="*"/>
  54. </Grid.ColumnDefinitions>
  55. <Label Grid.Row="0" Grid.Column="0" Content="Motor Position" FontSize="16" FontWeight="Bold"/>
  56. <TextBlock Grid.Row="0" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.MotorPosition, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  57. <TextBlock Grid.Row="0" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  58. <Label Grid.Row="1" Grid.Column="0" Content="Target Position" FontSize="16" FontWeight="Bold"/>
  59. <TextBlock Grid.Row="1" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.TargetPosition, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  60. <TextBlock Grid.Row="1" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  61. <Label Grid.Row="2" Grid.Column="0" Content="Position Error" FontSize="16" FontWeight="Bold"/>
  62. <TextBlock Grid.Row="2" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.PositionError, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  63. <TextBlock Grid.Row="2" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  64. <Label Grid.Row="3" Grid.Column="0" Content="Torque" FontSize="16" FontWeight="Bold"/>
  65. <TextBlock Grid.Row="3" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.ActualTorque, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  66. <TextBlock Grid.Row="3" Grid.Column="2" Margin="2,0,2,0" Text="%" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  67. <Label Grid.Row="4" Grid.Column="0" Content="Velocity" FontSize="16" FontWeight="Bold"/>
  68. <TextBlock Grid.Row="4" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding ElementName=self,Path=MotionData.ActualVelocity, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  69. <TextBlock Grid.Row="4" Text="rpm" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  70. </TextBlock>
  71. </Grid>
  72. <Grid Grid.Row="3">
  73. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="-jog" Margin="104,2,284,38" Height="30" Click="JogDown_Click"/>
  74. <Control:NumbericUpDown HorizontalAlignment="Center" Margin="0,2,0,0" VerticalAlignment="Top" Width="120" Height="35" MaxValue="100.00" MinValue="-100.00"
  75. IncrementValue="{Binding ElementName=self,Path=IncrementValue,Mode=TwoWay}" DigitalMaxLength="2" Value="{Binding ElementName=self,Path=JogValue,Mode=TwoWay}"/>
  76. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="+jog" Margin="285,2,103,38" Height="30" Click="JogUp_Click"/>
  77. <Button Style="{StaticResource SysBtnStyle}" Width="50" Content="Stop" Margin="184,39,204,1" Height="30" Click="JogStop_Click"/>
  78. </Grid>
  79. <Grid Grid.Row="4">
  80. <Grid.RowDefinitions>
  81. <RowDefinition Height="30"/>
  82. <RowDefinition Height="30"/>
  83. <RowDefinition Height="30"/>
  84. <RowDefinition Height="30"/>
  85. <RowDefinition Height="30"/>
  86. <RowDefinition Height="30"/>
  87. </Grid.RowDefinitions>
  88. <Grid.ColumnDefinitions>
  89. <ColumnDefinition Width="180"/>
  90. <ColumnDefinition Width="85"/>
  91. <ColumnDefinition Width="85"/>
  92. <ColumnDefinition Width="80"/>
  93. <ColumnDefinition Width="*"/>
  94. </Grid.ColumnDefinitions>
  95. <Label Grid.Row="0" Grid.Column="0" Content="Speed" FontSize="16" FontWeight="Bold"/>
  96. <Control:NumbericTextBox Grid.Row="0" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  97. Height="22" Value="{Binding ElementName=self,Path=InputSpeed,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="ProfileVelocity"
  98. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  99. <TextBlock Grid.Column="2" Margin="0,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  100. Text="{Binding ElementName=self,Path=MotionData.ProfileVelocity,StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  101. <TextBlock Grid.Row="0" Grid.Column="3" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  102. <TextBlock.Text>
  103. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/sec" />
  104. </TextBlock.Text>
  105. </TextBlock>
  106. <Label Grid.Row="1" Grid.Column="0" Content="Acceleration" FontSize="16" FontWeight="Bold"/>
  107. <Control:NumbericTextBox Grid.Row="1" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  108. Height="22" Value="{Binding ElementName=self,Path=InputAcceleration,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="ProfileAccel"
  109. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  110. <TextBlock Grid.Row="1" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  111. Text="{Binding ElementName=self,Path=MotionData.ProfileAccel, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  112. <TextBlock Grid.Row="1" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  113. <TextBlock.Text>
  114. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  115. </TextBlock.Text>
  116. </TextBlock>
  117. <Label Grid.Row="2" Grid.Column="0" Content="Deceleration" FontSize="16" FontWeight="Bold"/>
  118. <Control:NumbericTextBox Grid.Row="2" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  119. Height="22" Value="{Binding ElementName=self,Path=InputDeceleration,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="ProfileDecel"
  120. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  121. <TextBlock Grid.Row="2" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  122. Text="{Binding ElementName=self,Path=MotionData.ProfileDecel, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  123. <TextBlock Grid.Row="2" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  124. <TextBlock.Text>
  125. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  126. </TextBlock.Text>
  127. </TextBlock>
  128. <Label Grid.Row="3" Grid.Column="0" Content="Home Speed Switch" FontSize="16" FontWeight="Bold"/>
  129. <Control:NumbericTextBox Grid.Row="3" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  130. Height="22" Value="{Binding ElementName=self,Path=InputHomeSpeedSwitch,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingVelocity"
  131. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  132. <TextBlock Grid.Row="3" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  133. Text="{Binding MotionData.HomingVelocity, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  134. <TextBlock Grid.Row="3" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  135. <TextBlock.Text>
  136. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/sec" />
  137. </TextBlock.Text>
  138. </TextBlock>
  139. <Label Grid.Row="4" Grid.Column="0" Content="Home Speed Index" FontSize="16" FontWeight="Bold"/>
  140. <Control:NumbericTextBox Grid.Row="4" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  141. Height="22" Value="{Binding ElementName=self,Path=InputHomeSpeedIndex,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingVelocitySlow"
  142. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  143. <TextBlock Grid.Row="4" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  144. Text="{Binding MotionData.HomingVelocitySlow, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  145. <TextBlock Grid.Row="4" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  146. <TextBlock.Text>
  147. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/sec" />
  148. </TextBlock.Text>
  149. </TextBlock>
  150. <Label Grid.Row="5" Grid.Column="0" Content="Home Accel" FontSize="16" FontWeight="Bold"/>
  151. <Control:NumbericTextBox Grid.Row="5" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  152. Height="22" Value="{Binding ElementName=self,Path=InputHomeAccelDecel,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingAccel"
  153. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}" />
  154. <TextBlock Grid.Row="5" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  155. Text="{Binding MotionData.HomingAccel, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  156. <TextBlock Grid.Row="5" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  157. <TextBlock.Text>
  158. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  159. </TextBlock.Text>
  160. </TextBlock>
  161. </Grid>
  162. <Grid Grid.Row="6">
  163. <Grid.RowDefinitions>
  164. <RowDefinition Height="30"/>
  165. <RowDefinition Height="30"/>
  166. <RowDefinition Height="30"/>
  167. <RowDefinition Height="30"/>
  168. <RowDefinition Height="30"/>
  169. <RowDefinition Height="30"/>
  170. <RowDefinition Height="30"/>
  171. <RowDefinition Height="30"/>
  172. </Grid.RowDefinitions>
  173. <Grid.ColumnDefinitions>
  174. <ColumnDefinition Width="220"/>
  175. <ColumnDefinition Width="130"/>
  176. <ColumnDefinition Width="80"/>
  177. <ColumnDefinition Width="*"/>
  178. </Grid.ColumnDefinitions>
  179. <Label Grid.Row="0" Grid.Column="0" Content="Home Offset" FontSize="16" FontWeight="Bold"/>
  180. <TextBlock Grid.Row="0" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.HomeOffset, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  181. <TextBlock Grid.Row="0" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  182. <Label Grid.Row="1" Grid.Column="0" Content="Position Error Limit" FontSize="16" FontWeight="Bold"/>
  183. <TextBlock Grid.Row="1" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.PositionErrorLimit, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  184. <TextBlock Grid.Row="1" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  185. <Label Grid.Row="2" Grid.Column="0" Content="TargetPosition Error Limit" FontSize="16" FontWeight="Bold"/>
  186. <TextBlock Grid.Row="2" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.TargetPositionErrorLimit, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  187. <TextBlock Grid.Row="2" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self,Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  188. <Label Grid.Row="3" Grid.Column="0" Content="Torque Limit" FontSize="16" FontWeight="Bold"/>
  189. <TextBlock Grid.Row="3" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding ElementName=self,Path=MotionData.TorqueLimit}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  190. <TextBlock Grid.Row="3" Grid.Column="2" Margin="2,0,2,0" Text="%" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  191. <Label Grid.Row="4" Grid.Column="0" Content="E Stop Deceleration" FontSize="16" FontWeight="Bold"/>
  192. <TextBlock Grid.Row="4" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.EStopDeceleration, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  193. <TextBlock Grid.Row="4" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  194. <TextBlock.Text>
  195. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  196. </TextBlock.Text>
  197. </TextBlock>
  198. <Label Grid.Row="5" Grid.Column="0" Content="E Stop Torque" FontSize="16" FontWeight="Bold"/>
  199. <TextBlock Grid.Row="5" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.EStopTorque, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  200. <TextBlock Grid.Row="5" Grid.Column="2" Margin="2,0,2,0" Text="%" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  201. <Label Grid.Row="6" Grid.Column="0" Content="Rev Soft Limit" FontSize="16" FontWeight="Bold"/>
  202. <TextBlock Grid.Row="6" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.RevSoftLimit, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  203. <TextBlock Grid.Row="6" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self, Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  204. <Label Grid.Row="7" Grid.Column="0" Content="Fwd Soft Limit" FontSize="16" FontWeight="Bold"/>
  205. <TextBlock Grid.Row="7" Grid.Column="1" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding MotionData.FwdSoftLimit, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  206. <TextBlock Grid.Row="7" Grid.Column="2" Margin="2,0,2,0" Text="{Binding ElementName=self, Path=ModuleUnit}" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  207. </Grid>
  208. <Grid Grid.Row="7">
  209. <Grid.ColumnDefinitions>
  210. <ColumnDefinition Width="299*"/>
  211. <ColumnDefinition Width="139*"/>
  212. </Grid.ColumnDefinitions>
  213. <Label Content="Rev Limit" FontSize="16" FontWeight="Bold" Margin="0,0,181,19" />
  214. <!--<Ellipse Margin="34,24,249,20" Width="16" Height="16" Fill="{Binding MotionData.RevLimited, Converter={StaticResource boolToRedColor}, ElementName=self}" Stroke="Silver"/>-->
  215. <Ellipse Margin="34,24,249,20" Width="16" Height="16" Fill="Gray" Stroke="Silver"/>
  216. <Label Content="Home Switch" FontSize="16" FontWeight="Bold" Margin="160,0,7,19" />
  217. <!--<Ellipse Margin="194,24,89,20" Width="16" Height="16" Fill="{Binding MotionData.HomedSwitched, Converter={StaticResource boolToColor}, ElementName=self}" Stroke="Silver"/>-->
  218. <Ellipse Margin="194,24,89,20" Width="16" Height="16" Fill="Gray" Stroke="Silver"/>
  219. <Label Content="Fwd Limit" FontSize="16" FontWeight="Bold" Margin="26,0,15,19" Grid.Column="1" />
  220. <!--<Ellipse Margin="60,24,63,20" Width="16" Height="16" Fill="{Binding MotionData.FwdLimited, Converter={StaticResource boolToRedColor}, ElementName=self}" Stroke="Silver" Grid.Column="1"/>-->
  221. <Ellipse Margin="60,24,63,20" Width="16" Height="16" Fill="Gray" Stroke="Silver" Grid.Column="1"/>
  222. </Grid>
  223. </Grid>
  224. </GroupBox>
  225. </Grid>
  226. </UserControl>