P08

The large offset monochromator at P08 is controlled by the Lom server which consists of three classes: Ads, Lom and LomEnergy. The Ads class connects to the PLC. The Lom class represents single axes and speaks to Ads. The LomEnergy class talks to the Lom class. The axes names are hard-coded in the LomEnergy class.

Figure 21.5: Lom, create the PLC server
Image LomCreateServerPLC

Figure 21.6: Lom, create the LomEnergyserver
Image LomCreateServerEnergy

Figure 21.7: Lom, create ther Lom server
Image LomCreateServerLom

Figure 21.8: Properties of the PLC Server for the Lom, P08
Image LomAdsProperties

Figure 21.9: Properties of the Lom Server, P08
Image LomLomProperties

Figure 21.10: Properties of the LomEnergy Server, P08
Image LomEnergyProperties

After the server has been configured properly, the devices are introduced to Online (/online_dir/online.xml).

<device>
 <name>energylom</name>
 <type>type_tango</type>
 <module>motor_tango</module>
 <device>p08/lomenergy/exp.01</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>

<device>
 <name>lom1pitch</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.01</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lom1lat</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.02</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lom1lin</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.03</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device> 
<device>
 <name>lom2pitch</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.04</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lom2lat</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.05</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lom2lin</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.06</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lomfoil</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.07</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lomrtclhgt</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.08</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lomrtcllat</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.09</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>

<device>
 <name>lom1tblhght</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.10</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lom1tblrll</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.11</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lom1tblpitch</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.12</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>

<device>
 <name>lom2tblhght</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.13</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lom2tblrll</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.14</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>
<device>
 <name>lom2tblpitch</name>
 <type>stepping_motor</type>
 <module>lom</module>
 <device>p08/lom/exp.15</device>
 <control>tango</control>
 <hostname>haspp08:10000</hostname>
</device>