SRDMotionControl.xaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <UserControl x:Class="CyberX8_Themes.UserControls.SRDMotionControl"
  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:CyberX8_Themes.UserControls"
  7. mc:Ignorable="d" x:Name="self"
  8. xmlns:converters="clr-namespace:CyberX8_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 Text="rpm" Grid.Row="0" Grid.Column="3" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  102. </TextBlock>
  103. <Label Grid.Row="1" Grid.Column="0" Content="Acceleration" FontSize="16" FontWeight="Bold"/>
  104. <Control:NumbericTextBox Grid.Row="1" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  105. Height="22" Value="{Binding ElementName=self,Path=InputAcceleration,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="ProfileAccel"
  106. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  107. <TextBlock Grid.Row="1" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  108. Text="{Binding ElementName=self,Path=MotionData.ProfileAccel, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  109. <TextBlock Grid.Row="1" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  110. <TextBlock.Text>
  111. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  112. </TextBlock.Text>
  113. </TextBlock>
  114. <Label Grid.Row="2" Grid.Column="0" Content="Deceleration" FontSize="16" FontWeight="Bold"/>
  115. <Control:NumbericTextBox Grid.Row="2" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  116. Height="22" Value="{Binding ElementName=self,Path=InputDeceleration,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="ProfileDecel"
  117. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  118. <TextBlock Grid.Row="2" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  119. Text="{Binding ElementName=self,Path=MotionData.ProfileDecel, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  120. <TextBlock Grid.Row="2" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  121. <TextBlock.Text>
  122. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  123. </TextBlock.Text>
  124. </TextBlock>
  125. <Label Grid.Row="3" Grid.Column="0" Content="Home Speed Switch" FontSize="16" FontWeight="Bold"/>
  126. <Control:NumbericTextBox Grid.Row="3" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  127. Height="22" Value="{Binding ElementName=self,Path=InputHomeSpeedSwitch,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingVelocity"
  128. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  129. <TextBlock Grid.Row="3" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  130. Text="{Binding MotionData.HomingVelocity, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  131. <TextBlock Grid.Row="3" Text="rpm" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  132. </TextBlock>
  133. <Label Grid.Row="4" Grid.Column="0" Content="Home Speed Index" FontSize="16" FontWeight="Bold"/>
  134. <Control:NumbericTextBox Grid.Row="4" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  135. Height="22" Value="{Binding ElementName=self,Path=InputHomeSpeedIndex,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingVelocitySlow"
  136. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}"/>
  137. <TextBlock Grid.Row="4" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  138. Text="{Binding MotionData.HomingVelocitySlow, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  139. <TextBlock Grid.Row="4" Text="rpm" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  140. </TextBlock>
  141. <Label Grid.Row="5" Grid.Column="0" Content="Home Accel/Decel" FontSize="16" FontWeight="Bold"/>
  142. <Control:NumbericTextBox Grid.Row="5" Grid.Column="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="80"
  143. Height="22" Value="{Binding ElementName=self,Path=InputHomeAccelDecel,StringFormat={}{0:F2},Mode=TwoWay}" TextboxName="HomingAccel"
  144. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}" />
  145. <TextBlock Grid.Row="5" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center"
  146. Text="{Binding MotionData.HomingAccel, ElementName=self, StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  147. <TextBlock Grid.Row="5" Grid.Column="3" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  148. <TextBlock.Text>
  149. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  150. </TextBlock.Text>
  151. </TextBlock>
  152. </Grid>
  153. <Grid Grid.Row="6">
  154. <Grid.RowDefinitions>
  155. <RowDefinition Height="30"/>
  156. <RowDefinition Height="30"/>
  157. <RowDefinition Height="30"/>
  158. <RowDefinition Height="30"/>
  159. <RowDefinition Height="30"/>
  160. <RowDefinition Height="30"/>
  161. <RowDefinition Height="30"/>
  162. <RowDefinition Height="30"/>
  163. </Grid.RowDefinitions>
  164. <Grid.ColumnDefinitions>
  165. <ColumnDefinition Width="220"/>
  166. <ColumnDefinition Width="130"/>
  167. <ColumnDefinition Width="80"/>
  168. <ColumnDefinition Width="*"/>
  169. </Grid.ColumnDefinitions>
  170. <Label Grid.Row="0" Grid.Column="0" Content="Home Offset" FontSize="16" FontWeight="Bold"/>
  171. <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"/>
  172. <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"/>
  173. <Label Grid.Row="1" Grid.Column="0" Content="Position Error Limit" FontSize="16" FontWeight="Bold"/>
  174. <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"/>
  175. <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"/>
  176. <Label Grid.Row="2" Grid.Column="0" Content="TargetPosition Error Limit" FontSize="16" FontWeight="Bold"/>
  177. <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"/>
  178. <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"/>
  179. <Label Grid.Row="3" Grid.Column="0" Content="Torque Limit" FontSize="16" FontWeight="Bold"/>
  180. <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"/>
  181. <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"/>
  182. <Label Grid.Row="4" Grid.Column="0" Content="E Stop Deceleration" FontSize="16" FontWeight="Bold"/>
  183. <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"/>
  184. <TextBlock Grid.Row="4" Grid.Column="2" Margin="2,0,2,0" TextAlignment="Center" VerticalAlignment="Center" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold">
  185. <TextBlock.Text>
  186. <Binding ElementName="self" Path="ModuleUnit" StringFormat=" {0}/s/s" />
  187. </TextBlock.Text>
  188. </TextBlock>
  189. <Label Grid.Row="5" Grid.Column="0" Content="E Stop Torque" FontSize="16" FontWeight="Bold"/>
  190. <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"/>
  191. <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"/>
  192. <Label Grid.Row="6" Grid.Column="0" Content="Rev Soft Limit" FontSize="16" FontWeight="Bold"/>
  193. <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"/>
  194. <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"/>
  195. <Label Grid.Row="7" Grid.Column="0" Content="Fwd Soft Limit" FontSize="16" FontWeight="Bold"/>
  196. <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"/>
  197. <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"/>
  198. </Grid>
  199. <Grid Grid.Row="7">
  200. <Grid.ColumnDefinitions>
  201. <ColumnDefinition Width="299*"/>
  202. <ColumnDefinition Width="139*"/>
  203. </Grid.ColumnDefinitions>
  204. <Label Content="Rev Limit" FontSize="16" FontWeight="Bold" Margin="0,0,181,19" />
  205. <Ellipse Margin="34,24,249,20" Width="16" Height="16" Fill="{Binding MotionData.RevLimited, Converter={StaticResource boolToRedColor}, ElementName=self}" Stroke="Silver"/>
  206. <Label Content="Home Switch" FontSize="16" FontWeight="Bold" Margin="160,0,7,19" />
  207. <Ellipse Margin="194,24,89,20" Width="16" Height="16" Fill="{Binding MotionData.HomedSwitched, Converter={StaticResource boolToColor}, ElementName=self}" Stroke="Silver"/>
  208. <Label Content="Fwd Limit" FontSize="16" FontWeight="Bold" Margin="26,0,15,19" Grid.Column="1" />
  209. <Ellipse Margin="60,24,63,20" Width="16" Height="16" Fill="{Binding MotionData.FwdLimited, Converter={StaticResource boolToRedColor}, ElementName=self}" Stroke="Silver" Grid.Column="1"/>
  210. </Grid>
  211. </Grid>
  212. </GroupBox>
  213. </Grid>
  214. </UserControl>