Skip to content
Snippets Groups Projects
Commit e3e789c0 authored by Nadeem Shehzad's avatar Nadeem Shehzad
Browse files

templates complete.

parent 04383b78
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,44 @@ ...@@ -2,6 +2,44 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<catalogue version="1.0"> <catalogue version="1.0">
% if ACCELERATOR == "XFEL" : % if ACCELERATOR == "XFEL" :
% if STATION == "VS":
% for Station in map(str,range(2,27)) :
<register>
<name>"VS.A${Station}.${GET_SECTION_NAME(Station)}/AMPL.TD"</name>
<length>16384</length>
<access_mode>wait_for_new_data</access_mode>
<doocs_type_id>19</doocs_type_id>
<!--doocs id: SPECTRUM-->
</register>
<register>
<name>"VS.A${Station}.${GET_SECTION_NAME(Station)}/NAME"</name>
<length>1</length>
<access_mode>wait_for_new_data</access_mode>
<doocs_type_id>3</doocs_type_id>
<!--doocs id: SPECTRUM-->
</register>
<register>
<name>"LLA${Station}M/MACRO_PULSE_NUMBER"</name>
<length>1</length>
<access_mode>wait_for_new_data</access_mode>
<doocs_type_id>2</doocs_type_id>
<!--doocs id: SPECTRUM-->
</register>
<register>
<name>"MAIN.${CONTROLLER}A${Station}.${GET_SECTION_NAME(Station)}/MACRO_PULSE_NUMBER"</name>
<length>1</length>
<access_mode>wait_for_new_data</access_mode>
<doocs_type_id>2</doocs_type_id>
<!--doocs id: SPECTRUM-->
</register>
% endfor
% else:
% for CRYOMODULE in CRYOMODULES : % for CRYOMODULE in CRYOMODULES :
% for CAVITY in range(NR_OF_CAVITIES): % for CAVITY in range(NR_OF_CAVITIES):
<register> <register>
...@@ -60,7 +98,7 @@ ...@@ -60,7 +98,7 @@
<name>/C${CAVITY+1}.${MODULE_LOCATION_SUFFIX(CRYOMODULE)}/NAME</name> <name>/C${CAVITY+1}.${MODULE_LOCATION_SUFFIX(CRYOMODULE)}/NAME</name>
<length>1</length> <length>1</length>
<access_mode>wait_for_new_data</access_mode> <access_mode>wait_for_new_data</access_mode>
<doocs_type_id>19</doocs_type_id> <doocs_type_id>3</doocs_type_id>
<!--doocs id: SPECTRUM--> <!--doocs id: SPECTRUM-->
</register> </register>
...@@ -124,5 +162,6 @@ ...@@ -124,5 +162,6 @@
<!--doocs id: FLOAT--> <!--doocs id: FLOAT-->
</register> </register>
% endif
% endif % endif
</catalogue> </catalogue>
...@@ -3,21 +3,14 @@ ...@@ -3,21 +3,14 @@
<device_server xmlns="https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter"> <device_server xmlns="https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter">
% if ACCELERATOR == "XFEL" : % if ACCELERATOR == "XFEL" :
% if STATION == "VS" : % if STATION == "VS" :
% for Station in range(2,27) : % for Station in map(str,range(2,27)) :
% if Station == "2" : <location name="VS.A${Station}.${GET_SECTION_NAME(Station)}">
Section="L1" <property source="/VS.A${Station}.${GET_SECTION_NAME(Station)}/TRIPEVENT.REPORT" name="TRIPEVENT.REPORT"></property>
% elif Station in range(3,6): <property source="/VS.A${Station}.${GET_SECTION_NAME(Station)}/TRIPEVENT.WARNING" name="TRIPEVENT.WARNING"></property>
Section="L2" <property source="/VS.A${Station}.${GET_SECTION_NAME(Station)}/TRIPEVENT.STATE" name="TRIPEVENT.STATE"></property>
% elif Station in range(6,27):
Section="L3"
% endif
<location name="VS.A${Station}.${Section}">
<property source="/VS.A${Station}.${Section}/TRIPEVENT.REPORT" name="TRIPEVENT.REPORT"></property>
<property source="/VS.A${Station}.${Section}/TRIPEVENT.WARNING" name="TRIPEVENT.WARNING"></property>
<property source="/VS.A${Station}.${Section}/TRIPEVENT.STATE" name="TRIPEVENT.STATE"></property>
</location> </location>
% endfor % endfor
% endif % else:
% for CRYOMODULE in CRYOMODULES : % for CRYOMODULE in CRYOMODULES :
% for CAVITY in range(NR_OF_CAVITIES): % for CAVITY in range(NR_OF_CAVITIES):
<location name="C${CAVITY+1}.${MODULE_LOCATION_SUFFIX(CRYOMODULE)}"> <location name="C${CAVITY+1}.${MODULE_LOCATION_SUFFIX(CRYOMODULE)}">
...@@ -28,5 +21,6 @@ ...@@ -28,5 +21,6 @@
% endfor % endfor
% endfor % endfor
% endif % endif
% endif
</device_server> </device_server>
...@@ -23,9 +23,9 @@ SVR.DESC: "" ...@@ -23,9 +23,9 @@ SVR.DESC: ""
SVR.PROGRAMMER: "Jan Timm" SVR.PROGRAMMER: "Jan Timm"
SVR.STORE.RATE: 60 SVR.STORE.RATE: 60
SVR.STORE.AUTO: 10 SVR.STORE.AUTO: 10
SVR.HOST_NAME: "${HOSTNAME}"
SVR.RPC_NUMBER: ${RPC_NUMBER} SVR.RPC_NUMBER: ${RPC_NUMBER}
SVR.WDADDR: "${WATCHDOG_ADDRESS}/"
SVR.FACILITY: "${ACCELERATOR}.RF" SVR.FACILITY: "${ACCELERATOR}.RF"
SVR.DEVICE: "LLRF.TRIPEVENT_LOGGER" SVR.DEVICE: "LLRF.TRIPEVENT_LOGGER"
SVR.BPN: 0 SVR.BPN: 0
...@@ -33,18 +33,12 @@ SVR.SPR: 0 ...@@ -33,18 +33,12 @@ SVR.SPR: 0
} }
% if ACCELERATOR == "XFEL" : % if ACCELERATOR == "XFEL" :
% if STATION == "VS" : % if STATION == "VS" :
% for Station in range(2,27) : % for Station in map(str,range(2,27)) :
% if Station == 2 :
Section="L1" eq_fct_name: "VS.A${Station}.${GET_SECTION_NAME(Station)}"
% elif Station in range(3,6):
Section="L2"
% elif Station in range(6,27):
Section="L3"
% endif
eq_fct_name: "VS.A${Station}.${Section}"
eq_fct_type: 10 eq_fct_type: 10
{ {
NAME: "VS.A${Station}.${Section}" NAME: "VS.A${Station}.${GET_SECTION_NAME(Station)}"
} }
% endfor % endfor
% else: % else:
......
...@@ -3,29 +3,29 @@ ...@@ -3,29 +3,29 @@
% if ACCELERATOR == "XFEL": % if ACCELERATOR == "XFEL":
% if STATION == "VS": % if STATION == "VS":
% for Station in range (2,27) : % for Station in map(str,range(2,27)) :
<module name="VS.A${Station}.${SECTION_NAME}"> <module name="VS.A${Station}.${GET_SECTION_NAME(Station)}">
<redirectedRegister name="amplitude"> <redirectedRegister name="amplitude">
<targetDevice>DOOCS</targetDevice> <targetDevice>DOOCS</targetDevice>
<targetRegister>VS.A${Station}.${SECTION_NAME}/AMPL.TD</targetRegister> <targetRegister>VS.A${Station}.${GET_SECTION_NAME(Station)}/AMPL.TD</targetRegister>
<plugin name="forceReadOnly"/> <plugin name="forceReadOnly"/>
</redirectedRegister> </redirectedRegister>
<redirectedRegister name="name"> <redirectedRegister name="name">
<targetDevice>DOOCS</targetDevice> <targetDevice>DOOCS</targetDevice>
<targetRegister>VS.A${Station}.${SECTION_NAME}/NAME</targetRegister> <targetRegister>VS.A${Station}.${GET_SECTION_NAME(Station)}/NAME</targetRegister>
<plugin name="forceReadOnly"/> <plugin name="forceReadOnly"/>
</redirectedRegister> </redirectedRegister>
<redirectedRegister name="trigger"> <redirectedRegister name="trigger">
<targetDevice>Timer</targetDevice> <targetDevice>Timer</targetDevice>
<targetRegister>LL${FULL_STATION_NAME}/MACRO_PULSE_NUMBER</targetRegister> <targetRegister>LLA${Station}M/MACRO_PULSE_NUMBER</targetRegister>
<plugin name="forceReadOnly"/> <plugin name="forceReadOnly"/>
</redirectedRegister> </redirectedRegister>
<redirectedRegister name="macroPulseNumber"> <redirectedRegister name="macroPulseNumber">
<targetDevice>DOOCS</targetDevice> <targetDevice>DOOCS</targetDevice>
<targetRegister>MAIN.${CONTROLLER}${STATION_LOCATION_SUFFIX}/MACRO_PULSE_NUMBER</targetRegister> <targetRegister>MAIN.${CONTROLLER}A${Station}.${GET_SECTION_NAME(Station)}/MACRO_PULSE_NUMBER</targetRegister>
<plugin name="forceReadOnly"/> <plugin name="forceReadOnly"/>
</redirectedRegister> </redirectedRegister>
% endfor % endfor
......
...@@ -18,15 +18,8 @@ ...@@ -18,15 +18,8 @@
</module> </module>
<variable name="cavityLocations" type="string"><%COUNTER = 0%> <variable name="cavityLocations" type="string"><%COUNTER = 0%>
% if STATION == 'VS' : % if STATION == 'VS' :
% for Station in range (2,27) : % for Station in map(str,range(2,27)) :
% if Station == 2 : <value i="0" v="VS.A${Station}.${GET_SECTION_NAME(Station)}"/>
Section="L1"
% elif Station in range(3,6):
Section="L2"
% elif Station in range(6,27):
Section="L3"
% endif
<value i="0" v="VS.A${Station}.${Section}"/>
% endfor % endfor
% else: % else:
% for CRYOMODULE in CRYOMODULES : % for CRYOMODULE in CRYOMODULES :
......
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