1 / 11

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

The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID). The disappointing time response for the SY1527 via OPC The OPC, the CAEN Wrapper library and the ‘SY Driver’ developed by the HMPID Test results on the SY1527 reply delay: a comparison between the OPC and SY drivers

keala
Download Presentation

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

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The SY1527 replay delay via the OPC and the ‘SY driver’ (By HMPID) • The disappointing time response for the SY1527 via OPC • The OPC, the CAEN Wrapper library and the ‘SY Driver’ developed by the HMPID • Test results on the SY1527 reply delay: a comparison between the OPC and SY drivers • Conclusions

  2. Set up for the HMPID HV-LV control 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. PVSS - Workstation OPC Server - Workstation Ethernet CAEN SY1527 CAEN A1676W  WIENER PL500F8 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. CAEN A1821P CANbus HV Sub-system LV Sub-system

  3. CAEN OPC – PVSS into the HMPID DCS architecture PVSS – Client Application USER Interface By means of a polling procedure, the firmware of the WINER PL500 and the A1821P collect parameter’s values from the hardware, and send them to the CAEN SY1527 firmware. At regular time intervals (about 250 ms) the CAEN OPC Server calls a series of library routines , Wrapper, that are able to query data from the SY1527. Then the OPC Server verify the changed data and at regular intervals send them to the subscribed PVSS Clients. The PVSS OPC Client notify the changed values to the PVSS EVENT Manager that dispatch them to all the active PVSS software modules and interfaces. DATA Manager User Control Program EVENT Manager ARCHIVE Manager OPC Client Driver CAEN OPC Server OPC Server CAEN Wrapper Windows Library CAEN SY-1527 Firmware (Linux – Based) WIENER PL500 Firmware A1821P Firmware A1676W Firmware

  4. Improving the access to the CAEN SY1527 PVSS – Client Application In order to investigate the possibility to improve the performance in the data exchange between the PVSS applications and the CAEN SY1527 crate, we develop a Custom PVSS Driver: the ‘SY Driver’ which skips the OPC. This driver is able to access the CAEN PS directly (at a programmable polling rate starting from 50 ms ), to read the data and dispatch them to the linked PVSS DataPoints. Conversely if a DP value changes (e.g. different Vset) then the new value is written in the SY1527. USER Interface DATA Manager User Control Program EVENT Manager ARCHIVE Manager SY HMPID Driver CAEN Wrapper Windows/Linux Library CAEN SY-1527 Firmware (Linux – Based) WIENER PL500 Firmware A1821P Firmware A1676W Firmware

  5. Experimental setup and the Number of the OPC Items PVSS + SY_HMPID driver - Workstation Pentium II 800 MHz Memory : 512 MB Ethernet LAN 10MB Windows 2000 – cern settings PVSS 2.12.1 Framework 1.2.3 Ethernet CERN cern.ch Network CAEN SY1527 5 Card A1821P – 12 x 5 ch. 2KV Vset=200V RUP=25 Volt/s RDW=25 Volt/s  250 ms CAEN firmware polling rate 8 sec for rumping up 32 maximum theoretical number of samples 1 Card A1676W – 3 Wiener crates 3 x 8 ch. CAEN A1821P

  6. Comparison between OPC and SY Driver with a low number of Items • 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 • 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.

  7. 84 64 44 24 12 24,48 84,64 48 44,24 24 84,64 48 12 44 12 24 24 24,48 84,64,44,24 Reply Delay vs. number of Items • 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.

  8. Detailed statistic

  9. SY-HMPID driver: overview • Developed with the PVSS API technology • Portable on Linux platforms • Configurable by an ASCII config file • Direct access to PVSS DataPoint element • Automatic downloading in PVSS from the CAEN SY1527 of the Engineering Units and Value Range • Possibility to include into the driver Alarm Conditions with Quick Reaction procedure (reaction time 150 msec) • HeartBeat variable to check the PVSS-SY1527 connection

  10. SY-HMPID driver vs. OPC

  11. CONCLUSIONS • 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. • 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. • 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.

More Related