Skip to content

Commit

Permalink
op/Boy: Add e-urip and use it in ethercatmcaxisExpert-piezo.opi
Browse files Browse the repository at this point in the history
  • Loading branch information
tboegi committed Oct 14, 2024
1 parent 7f627e5 commit 6398264
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 0 deletions.
114 changes: 114 additions & 0 deletions ethercatmcExApp/op/Boy/ethercatmcaxisExpert-piezo.opi
Original file line number Diff line number Diff line change
Expand Up @@ -3740,6 +3740,120 @@ $(pv_value)</tooltip>
<x>16</x>
<y>372</y>
</widget>
<widget typeId="org.csstudio.opibuilder.widgets.BoolButton" version="1.0.0">
<actions hook="false" hook_all="false" />
<alarm_pulsing>false</alarm_pulsing>
<backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
<background_color>
<color name="IO Button" red="178" green="178" blue="178" />
</background_color>
<bit>0</bit>
<border_alarm_sensitive>false</border_alarm_sensitive>
<border_color>
<color name="IO Border" red="215" green="215" blue="215" />
</border_color>
<border_style>0</border_style>
<border_width>2</border_width>
<confirm_message>Are your sure you want to do this?</confirm_message>
<data_type>0</data_type>
<effect_3d>true</effect_3d>
<enabled>true</enabled>
<font>
<opifont.name fontName="arial" height="10" style="0" pixels="false">IO Normal</opifont.name>
</font>
<forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
<foreground_color>
<color red="26" green="26" blue="26" />
</foreground_color>
<height>50</height>
<labels_from_pv>false</labels_from_pv>
<name>Boolean Button Template_12</name>
<off_color>
<color red="127" green="127" blue="127" />
</off_color>
<off_label>urip</off_label>
<on_color>
<color red="0" green="255" blue="0" />
</on_color>
<on_label>URIP</on_label>
<password></password>
<push_action_index>0</push_action_index>
<pv_name>$(P)$(M).URIP</pv_name>
<pv_value />
<released_action_index>0</released_action_index>
<scale_options>
<width_scalable>true</width_scalable>
<height_scalable>true</height_scalable>
<keep_wh_ratio>true</keep_wh_ratio>
</scale_options>
<scripts />
<show_boolean_label>true</show_boolean_label>
<show_confirm_dialog>0</show_confirm_dialog>
<show_led>true</show_led>
<square_button>false</square_button>
<toggle_button>true</toggle_button>
<tooltip>$(pv_name)
$(pv_value)</tooltip>
<visible>true</visible>
<widget_type>Boolean Button</widget_type>
<width>46</width>
<wuid>6258bd8f:14fdb134223:-7e3c</wuid>
<x>458</x>
<y>255</y>
</widget><widget typeId="org.csstudio.opibuilder.widgets.TextUpdate" version="1.0.0">
<actions hook="false" hook_all="false" />
<alarm_pulsing>false</alarm_pulsing>
<auto_size>false</auto_size>
<backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
<background_color>
<color red="255" green="255" blue="255" />
</background_color>
<border_alarm_sensitive>false</border_alarm_sensitive>
<border_color>
<color name="IO Border" red="215" green="215" blue="215" />
</border_color>
<border_style>6</border_style>
<border_width>2</border_width>
<confirm_message></confirm_message>
<enabled>true</enabled>
<font>
<opifont.name fontName="arial" height="10" style="1" pixels="false">IO Output 1</opifont.name>
</font>
<forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
<foreground_color>
<color red="26" green="26" blue="26" />
</foreground_color>
<format_type>0</format_type>
<height>20</height>
<horizontal_alignment>0</horizontal_alignment>
<name>Text Update</name>
<precision>0</precision>
<precision_from_pv>true</precision_from_pv>
<pv_name>$(P)$(M)-PosReadback</pv_name>
<pv_value />
<rotation_angle>0.0</rotation_angle>
<scale_options>
<width_scalable>true</width_scalable>
<height_scalable>true</height_scalable>
<keep_wh_ratio>false</keep_wh_ratio>
</scale_options>
<rules>
</rules>
<scripts />
<show_units>true</show_units>
<text>######</text>
<tooltip>$(pv_name)
$(pv_value)</tooltip>
<transparent>false</transparent>
<vertical_alignment>1</vertical_alignment>
<visible>true</visible>
<widget_type>Text Update</widget_type>
<width>96</width>
<wrap_words>false</wrap_words>
<wuid>5b2ab968:16f6a92ad5d:-7c3c</wuid>
<x>465</x>
<y>352</y>
</widget>
<widget typeId="org.csstudio.opibuilder.widgets.LED" version="1.0.0">
<actions hook="false" hook_all="false" />
<alarm_pulsing>false</alarm_pulsing>
Expand Down
1 change: 1 addition & 0 deletions ethercatmcExApp/op/Boy/tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ DEPENDENCIES_FOR_MOTOR_EXPERT_OPI += e-homf-homr.mid
DEPENDENCIES_FOR_MOTOR_EXPERT_OPI += e-homf-homr-vis.mid
DEPENDENCIES_FOR_MOTOR_EXPERT_OPI += e-homproc-rb.mid
DEPENDENCIES_FOR_MOTOR_EXPERT_OPI += e-inhibitf-inhibitr.mid
DEPENDENCIES_FOR_MOTOR_EXPERT_OPI += e-urip.mid
DEPENDENCIES_FOR_MOTOR_EXPERT_OPI += e-pils-cfgdxlm-en.mid
DEPENDENCIES_FOR_MOTOR_EXPERT_OPI += e-pils-errtxt.mid
DEPENDENCIES_FOR_MOTOR_EXPERT_OPI += e-pils-status-bit24-25.mid
Expand Down
114 changes: 114 additions & 0 deletions ethercatmcExApp/op/Boy/tools/e-urip.mid
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<widget typeId="org.csstudio.opibuilder.widgets.BoolButton" version="1.0.0">
<actions hook="false" hook_all="false" />
<alarm_pulsing>false</alarm_pulsing>
<backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
<background_color>
<color name="IO Button" red="178" green="178" blue="178" />
</background_color>
<bit>0</bit>
<border_alarm_sensitive>false</border_alarm_sensitive>
<border_color>
<color name="IO Border" red="215" green="215" blue="215" />
</border_color>
<border_style>0</border_style>
<border_width>2</border_width>
<confirm_message>Are your sure you want to do this?</confirm_message>
<data_type>0</data_type>
<effect_3d>true</effect_3d>
<enabled>true</enabled>
<font>
<opifont.name fontName="arial" height="10" style="0" pixels="false">IO Normal</opifont.name>
</font>
<forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
<foreground_color>
<color red="26" green="26" blue="26" />
</foreground_color>
<height>50</height>
<labels_from_pv>false</labels_from_pv>
<name>Boolean Button Template_12</name>
<off_color>
<color red="127" green="127" blue="127" />
</off_color>
<off_label>urip</off_label>
<on_color>
<color red="0" green="255" blue="0" />
</on_color>
<on_label>URIP</on_label>
<password></password>
<push_action_index>0</push_action_index>
<pv_name>$(P)$(M).URIP</pv_name>
<pv_value />
<released_action_index>0</released_action_index>
<scale_options>
<width_scalable>true</width_scalable>
<height_scalable>true</height_scalable>
<keep_wh_ratio>true</keep_wh_ratio>
</scale_options>
<scripts />
<show_boolean_label>true</show_boolean_label>
<show_confirm_dialog>0</show_confirm_dialog>
<show_led>true</show_led>
<square_button>false</square_button>
<toggle_button>true</toggle_button>
<tooltip>$(pv_name)
$(pv_value)</tooltip>
<visible>true</visible>
<widget_type>Boolean Button</widget_type>
<width>46</width>
<wuid>6258bd8f:14fdb134223:-7e3c</wuid>
<x>458</x>
<y>255</y>
</widget><widget typeId="org.csstudio.opibuilder.widgets.TextUpdate" version="1.0.0">
<actions hook="false" hook_all="false" />
<alarm_pulsing>false</alarm_pulsing>
<auto_size>false</auto_size>
<backcolor_alarm_sensitive>false</backcolor_alarm_sensitive>
<background_color>
<color red="255" green="255" blue="255" />
</background_color>
<border_alarm_sensitive>false</border_alarm_sensitive>
<border_color>
<color name="IO Border" red="215" green="215" blue="215" />
</border_color>
<border_style>6</border_style>
<border_width>2</border_width>
<confirm_message></confirm_message>
<enabled>true</enabled>
<font>
<opifont.name fontName="arial" height="10" style="1" pixels="false">IO Output 1</opifont.name>
</font>
<forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
<foreground_color>
<color red="26" green="26" blue="26" />
</foreground_color>
<format_type>0</format_type>
<height>20</height>
<horizontal_alignment>0</horizontal_alignment>
<name>Text Update</name>
<precision>0</precision>
<precision_from_pv>true</precision_from_pv>
<pv_name>$(P)$(M)-PosReadback</pv_name>
<pv_value />
<rotation_angle>0.0</rotation_angle>
<scale_options>
<width_scalable>true</width_scalable>
<height_scalable>true</height_scalable>
<keep_wh_ratio>false</keep_wh_ratio>
</scale_options>
<rules>
</rules>
<scripts />
<show_units>true</show_units>
<text>######</text>
<tooltip>$(pv_name)
$(pv_value)</tooltip>
<transparent>false</transparent>
<vertical_alignment>1</vertical_alignment>
<visible>true</visible>
<widget_type>Text Update</widget_type>
<width>96</width>
<wrap_words>false</wrap_words>
<wuid>5b2ab968:16f6a92ad5d:-7c3c</wuid>
<x>465</x>
<y>352</y>
</widget>
1 change: 1 addition & 0 deletions ethercatmcExApp/op/Boy/tools/genExpertWithAuxBits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ cmd=$(echo ./shiftopi.py --shiftx $x --shifty $y --shiftm $im) &&
eval $cmd <e-foff.mid >>/tmp/$$
eval $cmd <e-homf-homr.mid >>/tmp/$$
eval $cmd <e-pils-errtxt.mid >>/tmp/$$
eval $cmd <e-URIP.mid >>/tmp/$$
elif test "$HAS_PILS" = "y"; then
cmd=$(echo ./shiftopi.py --shiftx $x --shifty $y --shiftm $im)
echo $0: HAS_PILS cmd=$cmd
Expand Down

0 comments on commit 6398264

Please sign in to comment.