COMPASSDCS - LOGBOOK 2007

INSTRUCTIONS

 

Table of Contents

 

1       CAEN Equipment PAGEREF _Toc142480541 \h 3

1.1     How to integrate new CAEN channels for old type crates (SY127, SY403, SY527, that are controlled via SLiC/DIM) PAGEREF _Toc142480542 \h 3

2       ISEG Equipment PAGEREF _Toc142480544 \h 5

2.1     Straws and Silicon HV.. PAGEREF _Toc142480545 \h 5

3       SLiC.. PAGEREF _Toc142480546 \h 6

3.1     SLiCs. PAGEREF _Toc142480547 \h 6

3.2     Firewall in the Linux PC’s for SLiC.. PAGEREF _Toc142480548 \h 8

4       WIENER Equipment PAGEREF _Toc142480549 \h 9

4.1     How to manage the Wiener OPC Server for VME crates and Wiener LV PS. PAGEREF _Toc142480550 \h 9

4.2     How to manage the rotary switches for Wiener LV PS. PAGEREF _Toc142480551 \h 9

5       How to make offline copies of the project PAGEREF _Toc142480552 \h 10

6       How to stop/start the reading of SM2 magnetic field from NMR meter. PAGEREF _Toc142480553 \h 11

7       In case of power cut that affects pccompass07. PAGEREF _Toc142480554 \h 12

8       How to access pccompass06 or pccompass08/03. PAGEREF _Toc142480555 \h 13

9       How to add comments in the COMPASS electronic logbook. PAGEREF _Toc142480556 \h 14

10     Reading of DAQ temperatures. PAGEREF _Toc142480557 \h 15

  


 

1         CAEN Equipment

 

1.1        How to integrate new CAEN channels for old type crates (SY127, SY403, SY527, that are controlled via SLiC/DIM)

First modify the SLiC config to include the new channels:      

(Or acoording to 3.1 if there is a 2nd SLiC on PC)

 

        In pccompass07 the new channels have also to be added in PVSS.

where the mapping ‘SLiC items ↔ PVSS dp elements’ is stored (in ‘client services’ and ‘client commands’ elements).

and search “fwDimDefault”… If necessary, change the default to the one that will take the new channels. Save.

 

This is to propagate correctly the sumAlerts to buttons in the panels.

 

Note: In case of problems, contact Catarina Quintans or Manuel Gonzalez.


[Home]


2         ISEG Equipment

 

2.1        Straws and Silicon HV

 

In case the OPC Server stops, and one cannot it with DCS:


[Home]


3         SLiC

 

3.1        SLiCs

·        6 SLiCs exist at the moment, and for each there is a corresponding DIM API manager in PVSS.

 

 

CAENET#1: BMS_CCR1 – BMS_CCR2 – BMS_CCR3 – BMS_CCR4 – BMS_CCR5 – BMS_CCR6

 

                          > ssh –l root pclip05

                          > cd /home/SLiC

                          > source env.bash

     pclip05           >./ SLiCapp ./config.txt ./ ./dimMap.txt >/dev/null &

 

 

CAENET#2: HOD_CCR1 – HOD_CCR2 – HOD_CCR3

  

                          ssh for pclip07

     pclip07          (and same as for pclip05)

 

 

CAENET#3: MWPC_CCR1 – SCIFIG_CCR3 – SCIFIG_CCR1 – SCIFIG_CCR2 – SCIFIG_CCR4

 

                         ssh –l root pclip07

                         >cd /home/SLiC

                         > source env.bash

                         >./ SLiCApp ./config2ndSLiC/config.txt ./ ./config2ndSLiC/dimMap.txt

    pclip07                                                                                                >/dev/null &

 

 

 

CAENET#4: GEM_CCR3 – GEM_CCR2 – MWPC_CCR2

  

                          ssh –l root pclip06

   pclip06            (and same as for pclip05)

 

 

CAENET#5: SCIFIJ_CCR1 – GEM_CCR1

  

                          ssh for pclip09

         pclip09            (and same as for pclip05)

 

 

CAENET#6: RICH_CCR1

 

                         ssh –l root pclip09

                         >cd /home/SLiC

                         > source env.bash

   pclip09            >./ SLiCApp ./config2ndSLiC/config.txt ./ ./config2ndSLiC/dimMap.txt

>/dev/null &

 

 

>ipcs

There is a list concerning semaphores, including semaphore ID’s (if there are ≥, first is for 1st card, 2nd for 2nd card)

        >ipcrm sem [sem ID]

                  >cd /home/SLiC

                  > source env.bash

>cd /home/beharrel/project/HSCAENET…/driver

>./a1303_load

Then follow the instructions to start SLiCs

  

 

3.2        Firewall in the Linux PC’s for SLiC

 

 

                                               >more /etc/syconfig/iptables

 

and you should see a list of accepted ports

 

 

If this happens, one should:

 

>redhat-config-securitylevel-tui

>/sbin/service iptables restart

>/sbin/service ntpd restart (at this step, some ntpd “failed” messages appear)

 

Note: whenever the redhat-config-securitylevel is run, the previous settings are reset and put to 0, so that one can reconfigure.

 

[Home]


4         WIENER Equipment

 

4.1        How to manage the Wiener OPC Server for VME crates and Wiener LV PS

 

The DCS project, for the 2007 Run, is controlling 30 Wiener crates scattered in three CAN Buses. For each chain of crates, one client and server have to be run in one independent pc.

 

The WIENER_CAN1, has 10 Wiener LV PS being controlled for RICH. In this case, the server is the WienerOPCServer2 and OPC DA Client 19, as client. The client and server are running in pccompass06.

 

15 VME crates, in the DAQ system, were integrated in the WIENER_CAN2, in pccompass08. The server is the WienerOPCServer and their client is the OPC DA Client 11.

 

For the third chain, WIENER_CAN3 has 4 power supplies connected. The OPC DA Client manager 20 and the WienerOPCServer3 are running in pccompass03.

 

On the whole, we have:

 

CAN Bus

Client

Server

PC

WIENER_CAN1

OPC DA Client 19

WienerOPCServer2

pccompass06

WIENER_CAN2

OPC DA Client 11

WienerOPCServer

pccompass08

WIENER_CAN3

OPC DA Client 20

WienerOPCServer3

pccompass03

 

 

4.2        How to manage the rotary switches for Wiener LV PS

 

All output voltages can be adjusted manually via the two rotary switches situated on the power supply top.

 

 

Channel selection

(0:Uo...7:U7)           

-

Adjustment

+

 

 

 

 

 

Mode Selection

Function

0-7

Adjust Voltage of U0-U7

A

CAN Address (low, Bit 0-3)

B

CAN Address (high, Bit 4-6)

C

CAN General Call Address (low, Bit 0-3)

D

CAN General Call Address (high, Bit 4-6)

E

CAN Transmission Speed Index

 

 

Having this into account, one example, using ID4, is showed:

A – 4

B – 0

C – F

D – 7

E – 4

 

[Home]


5         How to make offline copies of the project

 

·        Login in pccompass07 as compassdcs 

 The DCS project is the contents of the subdir “compassdcs”. 

 This command must answer nothing (except for the “grep PVSS” issued), proving that no more PVSS processes are running.

Usually the PVSS locker is not killed when PVSS stops (bug). If this command answer with a line: “500 [id] 1 0 [time]? [time] /dcs/pack…/lm-ip –a lockmgr” you must kill this process by hand:

Issue the ps command again, to be sure the locker was killed. 

 

By issuing the command           (when inside the given directory:

>rm *.*.bak     (the “.bak” is essential! Do not delete all the content of the dir by mistake!!!)

        >cd /dcs/projets

        >gtar --atime-preserve –cvf comp07-copy09june2006.tar compassdcs/*

        >gzip comp07-copy[date].tar

        mv comp07-copy[date].tar.gz             /dcs_Backup/offline_backups/

     

Restart the PVSS project from the admin console. Check in the project console that all the important managers are started (some important ones may be in “manual” start mode).

        Start a dcsUI , go to the DCS panel, and start the remote OPC’s and DIM’s.

 

[Home]


6         How to stop/start the reading of SM2 magnet field from NMR meter

 

          Do not logout before detaching from the virtual screen first. It would kill the program.

 

 
[Home]


7         In case of power cut that affects pccompass07

 

·        Switch on the PC

It enters the “compassdcs” project. Start the project from the green semaphr on top.

Check that all the important managers are started:

 

 

[Home]


8         How to access pccompass06 or pccompass08/03

 

·        If you are in a Linux PC, you can either:

 

[Home]


9         How to add comments in the COMPASS electronic logbook

 

·        Log in to the COMPASS gateways (pccogw01 or pccogw02) with your personal afs account

·        Set command: ssh -l daq pccorc01 (no password required)

·        Set command: add_comment (this will launch an application)

·        In the X application fill the required field with

[Home]


10         Reading of DAQ temperatures

 

·        A DIM server is running in a DAQ machine, and sending data to compass07

·        The DIM api manager for this reading is -num11

·        To check if the values are updating, go to the panel "DAQ" and "Temperatures"