Slt/Spk, P09 (incl. screen shots)

The configuration at P09:

 
haspp09

  p09/ads/sps1 192.168.34.163 haspp08sltv.desy.de
  p09/ads/sps2 192.168.34.165 haspp09sltvh.desy.de
  p09/ads/sps3 192.168.51.121 haspp09mirr1.desy.de
  p09/ads/sps4 192.168.51.122 haspp09mirr2.desy.de

  p09/slt/exp.01 p09/ads/sps1 chan 2 slt1vgap
  p09/slt/exp.02 p09/ads/sps1 chan 3 slt1voffs
  p09/slt/exp.03 p09/ads/sps2 chan 0 slt2hleft
  p09/slt/exp.04 p09/ads/sps2 chan 1 slt2hright
  p09/slt/exp.05 p09/ads/sps2 chan 2 slt2vgap
  p09/slt/exp.06 p09/ads/sps2 chan 3 slt2voffs
  p09/slt/exp.07 p09/ads/sps1 chan 0 slt1vgap    (used by P08)
  p09/slt/exp.08 p09/ads/sps1 chan 1 slt1voffs   (used by P08)


  p09/spk/exp.01 p09/ads/sps3 chan 0 m1pitch 
  p09/spk/exp.02 p09/ads/sps3 chan 1 m1x
  p09/spk/exp.03 p09/ads/sps3 chan 2 m1yaw
  p09/spk/exp.04 p09/ads/sps3 chan 3 m1y       
  p09/spk/exp.05 p09/ads/sps4 chan 0 m2pitch
  p09/spk/exp.06 p09/ads/sps4 chan 1 m2x     
  p09/spk/exp.07 p09/ads/sps4 chan 2 m2yaw                      
  p09/spk/exp.08 p09/ads/sps4 chan 3 m2y
  p09/spk/exp.08 p09/ads/sps4 chan 4 m2bender

At P08 and P09 we have the situation that the 192.168.34.163 PLC controls 4 axes which move 2 slits of different beamlines. The way how we deal with it is to define all 4 channels of 192.168.34.163 on haspp09 and refer to p09/slt/exp.07 and p09/slt/exp.08 in haspp08:/online_dir/online.xml. Likewise the file haspp09:/online_dir/online.xml ignores p09/slt/exp.07 and p09/slt/exp.08.

Figure 56.15: Spk create server, Ads, P09
Image SpkCreateServerP09

We add a class to the server:

Figure 56.16: Spk create server, Spk, P09
Image SpkCreateServerSpkP09

We instruct the Ads class where to connect:

Figure 56.17: Spk server properties, Ads class, P09
Image SpkPropertiesP09

We assign the axes to PLCs and channels:

Figure 56.18: Spk server Properties, Spk class, P09
Image SpkPropertiesSpkP09

Here is the interesting part of haspp09:/online_dir/online.xml.

<device>
 <name>slt1vgap</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/slt/exp.01</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>slt1voffs</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/slt/exp.02</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>slt2left</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/slt/exp.03</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>slt2right</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/slt/exp.04</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>slt2vgap</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/slt/exp.05</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>slt2offs</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/slt/exp.06</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>

<device>
 <name>m1pitch</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.01</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>m1x</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.02</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>m1yaw</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.03</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>m1y</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.04</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>m2pitch</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.05</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>m2x</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.06</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>m2yaw</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.07</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>m2y</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.08</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>
<device>
 <name>m2bender</name>
 <type>stepping_motor</type>
 <module>spk</module>
 <device>p09/spk/exp.09</device>
 <control>tango</control>
 <hostname>haspp09:10000</hostname>
</device>