11
ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via The SY1527 replay delay via the OPC and the ‘SY driver’ the OPC and the ‘SY driver’ (By HMPID) (By HMPID) The disappointing time response for the The disappointing time response for the SY1527 via OPC SY1527 via OPC The OPC, the CAEN Wrapper library and the The OPC, the CAEN Wrapper library and the ‘SY Driver’ developed by the HMPID ‘SY Driver’ developed by the HMPID Test results on the SY1527 reply delay: a Test results on the SY1527 reply delay: a comparison between the OPC and SY drivers comparison between the OPC and SY drivers Conclusions Conclusions

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

Embed Size (px)

Citation preview

Page 1: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1

The SY1527 replay delay via The SY1527 replay delay via the OPC and the ‘SY driver’ (By the OPC and the ‘SY driver’ (By

HMPID)HMPID)

The SY1527 replay delay via The SY1527 replay delay via the OPC and the ‘SY driver’ (By the OPC and the ‘SY driver’ (By

HMPID)HMPID)• The disappointing time response for the The disappointing time response for the

SY1527 via OPC SY1527 via OPC

• The OPC, the CAEN Wrapper library and the The OPC, the CAEN Wrapper library and the ‘SY Driver’ developed by the HMPID‘SY Driver’ developed by the HMPID

• Test results on the SY1527 reply delay: a Test results on the SY1527 reply delay: a comparison between the OPC and SY drivers comparison between the OPC and SY drivers

• ConclusionsConclusions

Page 2: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 2

Set up for the HMPID HV-LV controlSet up for the HMPID HV-LV control

HV Sub-systemHV Sub-system LV Sub-systemLV Sub-system

EthernetEthernet

CAEN A1676W WIENER PL500F8CAEN SY1527

CANbus

PVSS - Workstation OPC Server - Workstation

CAEN A1821P

The A1821P is a 12 ch HV board providing 2KV to the HMPID MWPC, while the A1676W is a CANbus controller that allows for to control up to eight WIENER PL500F8 for a total of 64 channels. So the A1676W appear to be a CAEN board with 64 channels.The Workstation for the OPC Server is a Win2000 O.S. running the OPC Servers (CAEN and Siemens).The PVSS Workstation is a Win2000 O.S. running the PVSS 2.12 – JCOP Framework and the HMPID DCS control programs.

The A1821P is a 12 ch HV board providing 2KV to the HMPID MWPC, while the A1676W is a CANbus controller that allows for to control up to eight WIENER PL500F8 for a total of 64 channels. So the A1676W appear to be a CAEN board with 64 channels.The Workstation for the OPC Server is a Win2000 O.S. running the OPC Servers (CAEN and Siemens).The PVSS Workstation is a Win2000 O.S. running the PVSS 2.12 – JCOP Framework and the HMPID DCS control programs.

A bit of history

During some HMPID beam tests (2003) a reaction time of several seconds in the operation of the HMPID HV-LV system (equipped with 12 chs) was observed.

The higher the number of controlled channels the higher the reply delay. The PVSS control program was linked to the SY1527 via the CAEN OPC server.

A bit of history

During some HMPID beam tests (2003) a reaction time of several seconds in the operation of the HMPID HV-LV system (equipped with 12 chs) was observed.

The higher the number of controlled channels the higher the reply delay. The PVSS control program was linked to the SY1527 via the CAEN OPC server.

Page 3: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 3

CAEN OPC – PVSS into the HMPID CAEN OPC – PVSS into the HMPID DCS architectureDCS architecture

WIENER PL500 Firmware

WIENER PL500 Firmware

A1676W Firmwar

e

A1676W Firmwar

e

A1821P Firmwar

e

A1821P Firmwar

e

CAEN SY-1527Firmware

(Linux – Based)

CAEN SY-1527Firmware

(Linux – Based)

CAEN WrapperWindows Library

CAEN WrapperWindows Library

CAEN OPC Server

CAEN OPC Server

OPC Client Driver

OPC Client Driver

EVENT Manager

EVENT Manager

DATA Manager

DATA Manager

USER Interface

USER Interface

PVSS – Client Application

OPC Server

UserControl Program

UserControl Program ARCHIVE

Manager

ARCHIVE Manager

By means of a polling procedure,By means of a polling procedure,the firmware of the WINER PL500 and the firmware of the WINER PL500 and the A1821P collect parameter’s values the A1821P collect parameter’s values from the hardware, and send them to from the hardware, and send them to the CAEN SY1527 firmware. the CAEN SY1527 firmware. At regular time intervals (about 250 At regular time intervals (about 250 ms) the CAEN OPC Server calls a ms) the CAEN OPC Server calls a series of library routines , series of library routines , WrapperWrapper, , that are able to query data from the that are able to query data from the SY1527. Then the OPC Server verify SY1527. Then the OPC Server verify the changed data and at regular the changed data and at regular intervals send them to the subscribed intervals send them to the subscribed PVSS Clients.PVSS Clients.

The PVSS OPC Client notify the The PVSS OPC Client notify the changed values to the PVSS EVENT changed values to the PVSS EVENT Manager that dispatch them to all the Manager that dispatch them to all the active PVSS software modules and active PVSS software modules and interfaces.interfaces.

By means of a polling procedure,By means of a polling procedure,the firmware of the WINER PL500 and the firmware of the WINER PL500 and the A1821P collect parameter’s values the A1821P collect parameter’s values from the hardware, and send them to from the hardware, and send them to the CAEN SY1527 firmware. the CAEN SY1527 firmware. At regular time intervals (about 250 At regular time intervals (about 250 ms) the CAEN OPC Server calls a ms) the CAEN OPC Server calls a series of library routines , series of library routines , WrapperWrapper, , that are able to query data from the that are able to query data from the SY1527. Then the OPC Server verify SY1527. Then the OPC Server verify the changed data and at regular the changed data and at regular intervals send them to the subscribed intervals send them to the subscribed PVSS Clients.PVSS Clients.

The PVSS OPC Client notify the The PVSS OPC Client notify the changed values to the PVSS EVENT changed values to the PVSS EVENT Manager that dispatch them to all the Manager that dispatch them to all the active PVSS software modules and active PVSS software modules and interfaces.interfaces.

Page 4: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 4

Improving the access to the CAEN Improving the access to the CAEN SY1527SY1527

WIENER PL500 Firmware

WIENER PL500 Firmware

A1676W Firmwar

e

A1676W Firmwar

e

A1821P Firmwar

e

A1821P Firmwar

e

CAEN SY-1527Firmware

(Linux – Based)

CAEN SY-1527Firmware

(Linux – Based)

CAEN WrapperWindows/Linux

Library

CAEN WrapperWindows/Linux

Library

SY HMPID Driver

SY HMPID Driver

EVENT Manager

EVENT Manager

DATA Manager

DATA Manager

USER Interface

USER Interface

PVSS – Client Application

UserControl Program

UserControl Program ARCHIVE

Manager

ARCHIVE Manager

In order to investigate the In order to investigate the possibility to improve the possibility to improve the performance in the data performance in the data exchange between the PVSS exchange between the PVSS applications and the CAEN applications and the CAEN SY1527 crate, we develop a SY1527 crate, we develop a Custom Custom PVSS Driver: the ‘SY PVSS Driver: the ‘SY Driver’Driver’ which skips the OPC. which skips the OPC.

This driver is able to access the This driver is able to access the CAEN PS directly CAEN PS directly (at a (at a programmable polling rate starting programmable polling rate starting from 50 msfrom 50 ms ) ), to read the data and , to read the data and dispatch them to the linked PVSS dispatch them to the linked PVSS DataPoints. Conversely if a DP DataPoints. Conversely if a DP value changes (e.g. different value changes (e.g. different Vset) then the new value is Vset) then the new value is written in the SY1527.written in the SY1527.

In order to investigate the In order to investigate the possibility to improve the possibility to improve the performance in the data performance in the data exchange between the PVSS exchange between the PVSS applications and the CAEN applications and the CAEN SY1527 crate, we develop a SY1527 crate, we develop a Custom Custom PVSS Driver: the ‘SY PVSS Driver: the ‘SY Driver’Driver’ which skips the OPC. which skips the OPC.

This driver is able to access the This driver is able to access the CAEN PS directly CAEN PS directly (at a (at a programmable polling rate starting programmable polling rate starting from 50 msfrom 50 ms ) ), to read the data and , to read the data and dispatch them to the linked PVSS dispatch them to the linked PVSS DataPoints. Conversely if a DP DataPoints. Conversely if a DP value changes (e.g. different value changes (e.g. different Vset) then the new value is Vset) then the new value is written in the SY1527.written in the SY1527.

Page 5: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 5

Experimental setup and the Experimental setup and the Number of the OPC ItemsNumber of the OPC Items

EthernetEthernet

CAENSY1527

PVSS + SY_HMPID driver - Workstation

CAEN A1821P

Pentium II 800 MHzMemory : 512 MBEthernet LAN 10MBWindows 2000 – cern settingsPVSS 2.12.1Framework 1.2.3

CERN cern.ch Network

CERN cern.ch Network

5 Card A1821P – 12 x 5 ch. 2KVVset=200V RUP=25 Volt/s RDW=25 Volt/s 250 ms CAEN firmware polling rate8 sec for rumping up32 maximum theoretical number of samples1 Card A1676W – 3 Wiener crates 3 x 8 ch.

OPC driver items x 84 Ch.

Read Write Read once Total

crate x1 4 3 13 20

board x 6 6 36 42

channel x 84 1272 908 2180

Total 1282 911 49 2242

OPC driver items x 48 Ch.

Read Write Read once Total

crate x1 4 3 13 20

board x 3 3 18 21

channel x 48 713 552 18 1998

Total 720 555 49 1324

OPC items x 12 Ch.

Read Write Read once Total

crate x1 4 3 13 20

board x1 1 6 7

channel x12 120 108 228

Total 125 111 19 255

SY-HMPID driver items x 84 Ch.

Read Write Read once Total

crate x1 4 3 13 20

board x5 5 39 44

channel x60 540 420 960

channel x24 285 228 513

Total 834 651 52 1537

Page 6: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 6

Comparison between OPC and SY Comparison between OPC and SY Driver with a low number of ItemsDriver with a low number of Items

•In the figure above the reply delay never goes below 1.1 sec. It seems to be a pedestal value in the PVSS HMPID DCS

•The Polling cycle longer than 250 ms increases the Reply delay. Shorter than 250 ms it doesn’t improve the overall performances, maybe showing a system (SY1527+board) limit.

•The Sy1527 reply delay is on the average 199 ± 85 ms longer in the standalone OPC server configuration (grey line) with respect to the single Workstation setup(blue line).

•The SY-Hmpid driver shows better performances (red line) for both the Reply delay and the Number of Samples as shown also in the figure on the left.

Command - Reply delay Time vs. Polling Cycle setting

1.00

1.10

1.20

1.30

1.40

1.50

1.60

1.70

1.80

1.90

2.00

0 100 200 300 400 500 600 700 800 900 1000 1100 1200

Polling cycle (msec)

Co

mm

an

d -

Re

ply

de

lay

(s

ec

)

CAEN-PVSS OPC

CAEN-PVSS OPC on Remote Wks

SY-Hmpid Custom Driver

Number of Vmon Samples during RUp vs. Polling Cycle

7

9

11

13

15

17

0 200 400 600 800 1000 1200

Polling cycle (msec)

Nu

mb

er

of

VM

on

sa

mp

les

CAEN-PVSS OPC

CAEN-PVSS OPC on Remote Wks

SY-Hmpid Custom Driver

•In order to compare the performances of the OPC and SY Driver we carried out some tests measuring the reply delay (the time interval between a command issue and the relevant system reply) and the number of samples during a rump up phase vs. the polling cycle time. Three different test configurations were implemented:

•OPC Server/ PVSS Client on a single workstation

•OPC Server - PVSS Client on two different Wks.

•SY-Hmpid driver on the PVSS machine

Page 7: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 7

Reply Delay vs. number of ItemsReply Delay vs. number of Items

Number of Vmon Samples during RUP vs. number of defined channels

0.00

2.00

4.00

6.00

8.00

10.00

12.00

14.00

16.00

18.00

20.00

0 10 20 30 40 50 60 70 80 90

Number of defined channels

Nu

mb

er

of

Vm

on

sm

ple

s

CAEN-PVSS OPC - BariCAEN-PVSS OPC - GenevaSY-Hmpid custom driver -BariSY-Hmpid custom driver -Geneva

Command - Reply delay Time vs. Number of defined channels

0.00

2.00

4.00

6.00

8.00

10.00

12.00

14.00

16.00

0 10 20 30 40 50 60 70 80 90

Number of defined channels

Co

mm

an

d -

Re

ply

de

lay

(s

ec

)

CAEN-PVSS OPC - BariCAEN-PVSS OPC - GenevaSY-Hmpid custom driver -BariSY-Hmpid custom driver -Geneva

Fixing the Polling time at 250 msec, we have measured the reply delay and # samples vs. the number of defined channels and, as parameter, the number of channels switched ON/OFF each time.

• 12 def. chs.- 12 chs switched On/Off.

• 48 def. chs. - 24 or 48 chs. switched On/Off

• 84 def. chs. - 24,48,64,84 chs switched On/Off

•As shown in the figure on the left, with the OPC connection, the reply delay is heavily affected by the NUMBER of DEFINED channels (# of items) while it is much less sensitive to the number of channels switched ON/OFF which represents the amount of information exchanged on the connection during the system operation.

•The SY-Hmpid driver shows evident better performances with a reply delay of a factor 6 smaller when 84 channels are defined.

•The HMPID at its full configuration will control up to 159 HV-LV channels then New tests are now scheduled.

12

12 24,48

24,48

84,64

44,24

84,64,44,24

84

64

44

24

24

48

12

24

4884,64

44

24

Page 8: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 8

Detailed statisticDetailed statistic

Command - Reply delay Time in different setups

0.00

2.00

4.00

6.00

8.00

10.00

12.00

14.00

16.00

18.00

20.00

22.00

OP

C 1

2

OP

C R

em 1

2

OP

C G

en 1

2

OP

C 8

4/24

OP

C 8

4/48

OP

C 8

4/64

OP

C 8

4/84

OP

C 4

8/28

OP

C 4

8/48

SY

84/

24

SY

84/

44

SY

84/

64

SY

84/

84

SY

48/

24

SY

48/

84

SY

Gen

12

SY

12

Type of setup: driver / channels defined / channels switched

Co

mm

and

- R

eply

del

ay (

sec)

Page 9: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 9

SY-HMPID driver: overviewSY-HMPID driver: overview

• Developed with the PVSS API technologyDeveloped with the PVSS API technology

• Portable on Linux platforms Portable on Linux platforms

• Configurable by an ASCII config fileConfigurable by an ASCII config file

• Direct access to PVSS DataPoint elementDirect access to PVSS DataPoint element

• Automatic downloading in PVSS from the CAEN Automatic downloading in PVSS from the CAEN SY1527 of the Engineering Units and Value RangeSY1527 of the Engineering Units and Value Range

• Possibility to include into the driver Alarm Possibility to include into the driver Alarm Conditions with Quick Reaction procedure (reaction Conditions with Quick Reaction procedure (reaction time time 150 msec)150 msec)

• HeartBeat variable to check the PVSS-SY1527 HeartBeat variable to check the PVSS-SY1527 connectionconnection

Page 10: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 10

SY-HMPID driver vs. OPCSY-HMPID driver vs. OPC

OPC ServerOPC Server

ProsPros ConsCons

•Standard industrial Standard industrial technology (Microsoft DCOM)technology (Microsoft DCOM)•Sophisticated data items Sophisticated data items accessaccess•Software ready to useSoftware ready to use•Export items to more then Export items to more then one network one network Computer/ApplicationComputer/Application

•Low rate of data exchangeLow rate of data exchange•Windows platforms needWindows platforms need

SY-HMPID driverSY-HMPID driver

ProsPros ConsCons

•Linux platform migrationLinux platform migration•High rate of data exchangeHigh rate of data exchange•Custom solution for low Custom solution for low reaction timereaction time

•No standard (only for PVSS)No standard (only for PVSS)•Peer-to-peer connectionPeer-to-peer connection

Page 11: ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 1 The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) The

ALICE DCS Workshop - 15/3/2004 G. De Cataldo, A.Franco, A.Tauro - INFN Bari - 11

CONCLUSIONSCONCLUSIONS

1. During some HMPID beam tests a delay between a command issue and the SY1527 reply up to several seconds was observed in the operation of the HMPID HV-LV system (CAEN SY1527 equipped with 11 chs). The PVSS control program was linked to the SY1527 via the CAEN OPC server.

2. At the end of the last year (2003) a campaign of new tests were started to look for a faster solution. A dedicated driver, namely the ‘SY Driver’ has been developed by the HMPID group with the PVSS API technology. It connects the SY1527 directly via the CAEN Wrapper library skipping the OPC.

3. In this way, when 84 channels are controlled, the replay delay is reduced by a factor 6: from 12 s with the OPC, down to 2 s with the SY Driver. The full equipped HMPID HV-LV system gets up to 159 channels, to verify also in this case the system behavior, in the next future we are going to carry out additional tests.