Skip to content

Commit

Permalink
op/Boy: Use m-problem-not-homed-poweroff
Browse files Browse the repository at this point in the history
Rework of the "small" motor widget:
- The blue "powered off" rectangle is removed.
- Blow the .VAL field there is now a new "bar", divided into 3:
  Error, not homed, power off.
  These 3 are all bits from the .MSTA field "as is"
  • Loading branch information
tboegi committed Jan 27, 2025
1 parent 2d88d06 commit 517385d
Show file tree
Hide file tree
Showing 25 changed files with 26,840 additions and 10,021 deletions.
77 changes: 5 additions & 72 deletions ethercatmcExApp/op/Boy/motor-1-piezo.opi
Original file line number Diff line number Diff line change
Expand Up @@ -92,73 +92,6 @@
<color red="0" green="128" blue="255" />
</border_color>
<actions hook="false" hook_all="false" />
<y>82</y>
<tooltip>$(pv_name)
$(pv_value)</tooltip>
<x>6</x>
<gradient>false</gradient>
</widget>
<widget typeId="org.csstudio.opibuilder.widgets.Rectangle" version="1.0">
<border_alarm_sensitive>false</border_alarm_sensitive>
<visible>true</visible>
<fill_level>100.0</fill_level>
<line_color>
<color red="128" green="0" blue="255" />
</line_color>
<wuid>39872d87:13e14015f61:d0f</wuid>
<bg_gradient_color>
<color red="255" green="255" blue="255" />
</bg_gradient_color>
<scripts />
<height>30</height>
<anti_alias>true</anti_alias>
<name>Rectangle</name>
<forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
<alpha>255</alpha>
<scale_options>
<width_scalable>true</width_scalable>
<height_scalable>true</height_scalable>
<keep_wh_ratio>false</keep_wh_ratio>
</scale_options>
<transparent>false</transparent>
<pv_name></pv_name>
<background_color>
<color red="30" green="144" blue="255" />
</background_color>
<foreground_color>
<color name="warning" red="0" green="0" blue="251" />
</foreground_color>
<widget_type>Rectangle</widget_type>
<enabled>true</enabled>
<fg_gradient_color>
<color red="255" green="255" blue="255" />
</fg_gradient_color>
<backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
<font>
<opifont.name fontName="Sans" height="10" style="0">Default</opifont.name>
</font>
<width>104</width>
<line_style>0</line_style>
<border_style>0</border_style>
<rules>
<rule name="Visibility" prop_id="visible" out_exp="false">
<exp bool_exp="pv0==0">
<value>true</value>
</exp>
<exp bool_exp="pv0!=0">
<value>false</value>
</exp>
<pv trig="true">$(P)$(M1).CNEN</pv>
</rule>
</rules>
<pv_value />
<border_width>1</border_width>
<line_width>0</line_width>
<horizontal_fill>true</horizontal_fill>
<border_color>
<color red="0" green="128" blue="255" />
</border_color>
<actions hook="false" hook_all="false" />
<y>81</y>
<tooltip>$(pv_name)
$(pv_value)</tooltip>
Expand All @@ -177,7 +110,7 @@ $(pv_value)</tooltip>
<color red="255" green="255" blue="255" />
</bg_gradient_color>
<scripts />
<height>40</height>
<height>37</height>
<anti_alias>true</anti_alias>
<name>Rectangle</name>
<forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
Expand Down Expand Up @@ -216,7 +149,7 @@ $(pv_value)</tooltip>
<color red="0" green="128" blue="255" />
</border_color>
<actions hook="false" hook_all="false" />
<y>113</y>
<y>116</y>
<tooltip>$(pv_name)
$(pv_value)</tooltip>
<x>0</x>
Expand Down Expand Up @@ -665,7 +598,7 @@ $(pv_value)</tooltip>
<border_color>
<color red="0" green="128" blue="255" />
</border_color>
<y>115</y>
<y>116</y>
<actions hook="false" hook_all="false">
<action type="WRITE_PV">
<pv_name>$(P)$(M1).TWR</pv_name>
Expand Down Expand Up @@ -729,7 +662,7 @@ $(pv_value)</tooltip>
</border_color>
<horizontal_alignment>0</horizontal_alignment>
<actions hook="false" hook_all="false" />
<y>115</y>
<y>116</y>
<tooltip>$(pv_name)
$(pv_value)</tooltip>
<x>28</x>
Expand Down Expand Up @@ -782,7 +715,7 @@ $(pv_value)</tooltip>
<border_color>
<color red="0" green="128" blue="255" />
</border_color>
<y>115</y>
<y>116</y>
<actions hook="false" hook_all="false">
<action type="WRITE_PV">
<pv_name>$(P)$(M1).TWF</pv_name>
Expand Down
Loading

0 comments on commit 517385d

Please sign in to comment.