Skip to content
Snippets Groups Projects
Commit 3589c407 authored by Saeed Haghtalab's avatar Saeed Haghtalab
Browse files

Added FC .bob OPI

WIP:Fixed the Motion Permit PV to LEBT-010:PBI-FC-001:WtrFlowOK
parent d18a5eb3
No related branches found
No related tags found
1 merge request!24Added Skid-RFQ
PVUtil = org.csstudio.display.builder.runtime.script.PVUtil;
var value = PVUtil.getLong(pvs[0]);
// ConsoleUtil.writeInfo("conversion: " + value);
var str = PVUtil.getString(pvs[1]);
// ConsoleUtil.writeInfo("str: " + str);
var prec = PVUtil.getString(pvs[2]);
// ConsoleUtil.writeInfo("precision: " + prec);
if (value == 0) {
pvs[1].write("");
// widget.setPropertyValue("precision", 0);
pvs[2].write(0);
} else {
pvs[1].write("mA");
// widget.setPropertyValue("precision", 1);
pvs[2].write(1);
}
<?xml version="1.0" encoding="UTF-8"?>
<display version="2.0.0">
<name>Faraday Cup : Top</name>
<width>660</width>
<height>490</height>
<background_color>
<color red="240" green="240" blue="240">
</color>
</background_color>
<actions>
</actions>
<widget type="embedded" version="2.0.0">
<name>Linking Container</name>
<file>fc_one.bob</file>
<macros>
<ACQ_FRU>AMC31</ACQ_FRU>
<EVR_FRU>PBI-EVR-030</EVR_FRU>
<HV_FRU>HV06</HV_FRU>
<INSTANCE>PBI-FC-001</INSTANCE>
<LOCATION>LAB-010</LOCATION>
<MCU_FRU>MCU08</MCU_FRU>
<SYSTEM>$(LOCATION):$(INSTANCE)</SYSTEM>
<TITLE>Faraday Cup - LAB</TITLE>
</macros>
<x>9</x>
<y>269</y>
<width>642</width>
<height>212</height>
<resize>2</resize>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="embedded" version="2.0.0">
<name>Linking Container_1</name>
<file>fc_one.bob</file>
<macros>
<ACQ_FRU>AMC31</ACQ_FRU>
<EVR_FRU>PBI-EVR-030</EVR_FRU>
<HV_FRU>HV06</HV_FRU>
<INSTANCE>PBI-FC-001</INSTANCE>
<LOCATION>LEBT-020</LOCATION>
<MCU_FRU>MCU08</MCU_FRU>
<SYSTEM>$(LOCATION):$(INSTANCE)</SYSTEM>
<TITLE>Faraday Cup - LEBT</TITLE>
</macros>
<x>9</x>
<y>59</y>
<width>642</width>
<height>212</height>
<resize>2</resize>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="rectangle" version="2.0.0">
<name>Rectangle</name>
<class>TITLE-BAR</class>
<x use_class="true">0</x>
<y use_class="true">0</y>
<width>660</width>
<height use_class="true">50</height>
<line_width use_class="true">0</line_width>
<background_color use_class="true">
<color name="PRIMARY-HEADER-BACKGROUND" red="151" green="188" blue="202">
</color>
</background_color>
</widget>
<widget type="label" version="2.0.0">
<name>Label</name>
<class>TITLE</class>
<text>Faraday Cups</text>
<x use_class="true">20</x>
<y use_class="true">0</y>
<width>500</width>
<height use_class="true">50</height>
<font use_class="true">
<font name="Header 1" family="Source Sans Pro" style="BOLD_ITALIC" size="36.0">
</font>
</font>
<foreground_color use_class="true">
<color name="HEADER-TEXT" red="0" green="0" blue="0">
</color>
</foreground_color>
<transparent use_class="true">true</transparent>
<horizontal_alignment use_class="true">0</horizontal_alignment>
<vertical_alignment use_class="true">1</vertical_alignment>
<wrap_words use_class="true">false</wrap_words>
</widget>
</display>
<?xml version="1.0" encoding="UTF-8"?>
<display version="2.0.0">
<name>Faraday Cup: Info</name>
<width>640</width>
<height>210</height>
<background_color>
<color red="240" green="240" blue="240">
</color>
</background_color>
<actions>
</actions>
<widget type="rectangle" version="2.0.0">
<name>Rectangle</name>
<class>GROUP</class>
<x>10</x>
<y>10</y>
<width>620</width>
<height>190</height>
<line_color use_class="true">
<color name="GROUP-BORDER" red="150" green="155" blue="151">
</color>
</line_color>
<background_color use_class="true">
<color name="GROUP-BACKGROUND" red="200" green="205" blue="201">
</color>
</background_color>
<corner_width>8</corner_width>
<corner_height>8</corner_height>
</widget>
<widget type="label" version="2.0.0">
<name>title</name>
<class>GROUP-TITLE</class>
<text>$(TITLE)</text>
<x>20</x>
<y>15</y>
<width>600</width>
<height use_class="true">30</height>
<font use_class="true">
<font name="Header 2" family="Source Sans Pro" style="BOLD_ITALIC" size="21.0">
</font>
</font>
<foreground_color use_class="true">
<color name="GROUP-TEXT" red="25" green="25" blue="25">
</color>
</foreground_color>
<background_color>
<color red="255" green="255" blue="255">
</color>
</background_color>
<horizontal_alignment use_class="true">1</horizontal_alignment>
<vertical_alignment use_class="true">1</vertical_alignment>
<wrap_words use_class="true">false</wrap_words>
<actions>
</actions>
<border_color>
<color name="IO Border" red="0" green="0" blue="0">
</color>
</border_color>
</widget>
<widget type="label" version="2.0.0">
<name>locationCaption</name>
<class>CAPTION</class>
<text>Location:</text>
<x>40</x>
<y>50</y>
<width>80</width>
<foreground_color use_class="true">
<color name="Text" red="25" green="25" blue="25">
</color>
</foreground_color>
<horizontal_alignment use_class="true">2</horizontal_alignment>
<vertical_alignment use_class="true">1</vertical_alignment>
</widget>
<widget type="label" version="2.0.0">
<name>location</name>
<text>$(LOCATION)</text>
<x>130</x>
<y>50</y>
<width>470</width>
<font>
<font name="Default Bold" family="Source Sans Pro" style="BOLD" size="16.0">
</font>
</font>
<foreground_color>
<color name="Gray_14" red="0" green="0" blue="0">
</color>
</foreground_color>
<background_color>
<color red="255" green="255" blue="255">
</color>
</background_color>
<vertical_alignment>1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="label" version="2.0.0">
<name>instanceCaption</name>
<class>CAPTION</class>
<text>Instance:</text>
<x>40</x>
<y>80</y>
<width>80</width>
<foreground_color use_class="true">
<color name="Text" red="25" green="25" blue="25">
</color>
</foreground_color>
<horizontal_alignment use_class="true">2</horizontal_alignment>
<vertical_alignment use_class="true">1</vertical_alignment>
</widget>
<widget type="label" version="2.0.0">
<name>instance</name>
<text>$(INSTANCE)</text>
<x>130</x>
<y>80</y>
<width>470</width>
<font>
<font family="Source Sans Pro" style="BOLD" size="16.0">
</font>
</font>
<foreground_color>
<color name="Gray_14" red="0" green="0" blue="0">
</color>
</foreground_color>
<background_color>
<color red="255" green="255" blue="255">
</color>
</background_color>
<vertical_alignment>1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="label" version="2.0.0">
<name>bdSystemCaption</name>
<class>CAPTION</class>
<text>BD System:</text>
<x>40</x>
<y>110</y>
<width>80</width>
<foreground_color use_class="true">
<color name="Text" red="25" green="25" blue="25">
</color>
</foreground_color>
<horizontal_alignment use_class="true">2</horizontal_alignment>
<vertical_alignment use_class="true">1</vertical_alignment>
</widget>
<widget type="label" version="2.0.0">
<name>bdDystem</name>
<text>$(SYSTEM)</text>
<x>130</x>
<y>110</y>
<width>470</width>
<font>
<font name="Default Bold" family="Source Sans Pro" style="BOLD" size="16.0">
</font>
</font>
<foreground_color>
<color name="Gray_14" red="0" green="0" blue="0">
</color>
</foreground_color>
<background_color>
<color red="255" green="255" blue="255">
</color>
</background_color>
<vertical_alignment>1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="label" version="2.0.0">
<name>screenCaption</name>
<class>CAPTION</class>
<text>Screens:</text>
<x>40</x>
<y>150</y>
<width>80</width>
<height>30</height>
<foreground_color use_class="true">
<color name="Text" red="25" green="25" blue="25">
</color>
</foreground_color>
<background_color>
<color red="255" green="255" blue="255">
</color>
</background_color>
<horizontal_alignment use_class="true">2</horizontal_alignment>
<vertical_alignment use_class="true">1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="action_button" version="3.0.0">
<name>acquisition</name>
<actions>
<action type="open_display">
<file>adsis8300fc/SIS8300.opi</file>
<macros>
<P>$(SYSTEM):$(ACQ_FRU)-</P>
<R></R>
</macros>
<target>tab</target>
<description>Acquisition</description>
</action>
</actions>
<x>130</x>
<y>150</y>
<width>110</width>
<foreground_color>
<color name="IO TextButton" red="0" green="0" blue="0">
</color>
</foreground_color>
<background_color>
<color name="IO Button" red="178" green="178" blue="178">
</color>
</background_color>
<tooltip>$(actions)</tooltip>
</widget>
<widget type="action_button" version="3.0.0">
<name>timing</name>
<actions>
<action type="open_display">
<file>mrfioc2/evr-mtca-300u.opi</file>
<macros>
<D>$(EVR_FRU):</D>
<SYS>$(LOCATION):</SYS>
</macros>
<target>tab</target>
<description>Timing</description>
</action>
</actions>
<x>250</x>
<y>150</y>
<width>110</width>
<foreground_color>
<color name="IO TextButton" red="0" green="0" blue="0">
</color>
</foreground_color>
<background_color>
<color name="IO Button" red="178" green="178" blue="178">
</color>
</background_color>
<tooltip>$(actions)</tooltip>
</widget>
<widget type="action_button" version="3.0.0">
<name>ethercat</name>
<actions>
<action type="open_display">
<file>ecat/ethercat.opi</file>
<macros>
<HV>$(SYSTEM):$(HV_FRU)-</HV>
<MCU>$(SYSTEM):$(MCU_FRU)-</MCU>
</macros>
<target>tab</target>
<description>Ethercat</description>
</action>
</actions>
<x>370</x>
<y>150</y>
<width>110</width>
<foreground_color>
<color name="IO TextButton" red="0" green="0" blue="0">
</color>
</foreground_color>
<background_color>
<color name="IO Button" red="178" green="178" blue="178">
</color>
</background_color>
<tooltip>$(actions)</tooltip>
</widget>
<widget type="action_button" version="3.0.0">
<name>operator</name>
<actions>
<action type="open_display">
<file>fc_operator.bob</file>
<macros>
<ACQ>$(SYSTEM):$(ACQ_FRU)-</ACQ>
<EVR>$(LOCATION):$(EVR_FRU):</EVR>
<HV>$(SYSTEM):$(HV_FRU)-</HV>
<MCU>$(SYSTEM):$(MCU_FRU)-</MCU>
</macros>
<target>tab</target>
<description>Operator</description>
</action>
</actions>
<x>490</x>
<y>150</y>
<width>110</width>
<foreground_color>
<color name="IO TextButton" red="0" green="0" blue="0">
</color>
</foreground_color>
<background_color>
<color name="IO Button" red="178" green="178" blue="178">
</color>
</background_color>
<tooltip>$(actions)</tooltip>
</widget>
</display>
......@@ -4404,7 +4404,7 @@ $(pv_value)</tooltip>
<color name="IO Normal Level Alarm" red="0" green="255" blue="0" />
</on_color>
<on_label>Closed</on_label>
<pv_name>$(MCU)WaterFlowR</pv_name>
<pv_name>LEBT-010:PBI-FC-001:WtrFlowOK</pv_name>
<pv_value />
<rules />
<scale_options>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment