epics @ desy/ xfel an overview

24
XFEL The European X-Ray Laser Project EPICS @ DESY/ XFEL An Overview EPICS Collaboration Meeting San Francisco, October 5th, 2013 Matthias Clausen, DESY Cryogenic Control Group

Upload: yetta

Post on 25-Feb-2016

64 views

Category:

Documents


0 download

DESCRIPTION

EPICS @ DESY/ XFEL An Overview. EPICS Collaboration Meeting San Francisco, October 5th, 2013 Matthias Clausen, DESY Cryogenic Control Group. Overview. Control Systems for the XFEL News from Cryogenic Controls CSS Developments Trent Plotter Synoptic Display Studio (SDS) - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

EPICS @ DESY/ XFELAn OverviewEPICS Collaboration MeetingSan Francisco, October 5th, 2013

Matthias Clausen, DESYCryogenic Control Group

Page 2: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

2

Overview

• Control Systems for the XFEL• News from Cryogenic Controls• CSS Developments

• Trent Plotter• Synoptic Display Studio (SDS)• CAJ – deadlocks• DAL -> DAL-II

• Alarm System• Archiver• IOC Redundancy

Page 3: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

3

XFEL: One Machine/ Three control systems

Schenefeld: Science with X-ray flashes

DESY-Bahrenfeld: Start of the3,4 km long XFEL

Osdorfer Born: first split of the tunnel

Elektron-Accelerator

Creating X-ray Flashes

Page 4: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

4

The XFEL Tunnel

Page 5: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

5

The real XFEL Tunnel

Page 6: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

6

Adding new features to Trend Plotter• Displaying archive deadband for each channel

(Monitor Deadband for online/ live channel)• Interface to MySql Database

CSS Developments: Trend Plotter

Page 7: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

7

CSS Developments: New SDS Widget: X/ Y Plot

Exyample of Cold Compressor Characteristic Diagramm

Page 8: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

8

CSS Developments: New SDS Widget: X/ Y Plot

Prototype of Cold Compressor Characteristic Diagramm

Page 9: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

9

CSS is running in the control room as primary operator interface

Over the last two years CAJ deadlocks were causing a lot of trouble

Communication with Matej improved:● Prepared fixes make it into the code● New bug fixes are distributed faster

CSS Lessions Learned: CAJ - deadlocks

Page 10: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

10

Lessions learned from DAL:• DAL is necessary to interface to several control

system protocols• Support for metadata/ characteristics for several

protocols requires a common interface• DAL-I was overloaded with too much functionality• Redefining requirements to the basic needs

A complete rewrite of the DAL layer is on the way

CSS Lessions Learned: DAL -> DAL-II

Page 11: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

11

Everything is a message (alarm-; systemLog-; putLog-;snlLog;log4JLog…)• Messages are all transported as JMS messages• Messages can be displayed in tables (and trees)• Messages get written to Oracle (jms2Ora)

Messages become Alarms when processed in the Alarm Management System (AMS)

Alarm System

Page 12: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

12

Developments:• DAL2JMS – (now using DAL-II)

• Channel-Lists get monitored and written to JMS (as Message)• Configuration similar to alh

• Synchronized Alarm-Table/ Alarm-Tree• Alarm Tree similar to alh Alarm Tree

• AMS – Continuous improvement driven by control room• Time based message filterns

Generate alarm when state is active for more then ?seconds• Attach alarm details to message and forward on different topic

Alarm System

Page 13: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

13

Running in full production mode since March 2013Basic requirements1. Data retrieval for any interval takes no more than 3 sec2. Display archive deadband for every channel

Implementation:3. MySql Database on Sun Cluster4. In addition to the ‚raw‘ data, we store mean values on a hourly

and minute basis5. Define ‚related‘ channels which archive the deadband of the

main channel6. Replace pvManager by DAL-II (1Q 2014)

Archiver

Page 14: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

14

First mentioned during the EPICS Meeting at Argonne 2006:

Redundancy

2006 – Presentation:

From the preamble of the design specification:

… last and most importantly one major design goal must be matched:

Any redundant implementation must make the system more reliable than the non redundant one. Precaution must be taken especially for the detection of errors which shall initiate the failover. This operation should only be activated if there is no doubt that keeping the actual mastership will definitely cause more damage to the controlled system than an automatic failover.

Page 15: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

15

Redundancy: initial states

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is:?? is:??

Ethernet

File Server

Page 16: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

16

Redundancy: Startup

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is: booting

is: booting

Ethernet

File Server

Page 17: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

17

Redundancy: Running

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is: Master is: Slave

Ethernet

File Server

Page 18: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

18

Redundancy: Master CPU Failure

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is: Master is: Slave

Ethernet

File Server

1. Master CPU failure2. Watchdog reset

Page 19: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

19

Redundancy: Master CPU Failure – Slave detects failure

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is: Master is: Slave

Ethernet

File Server

1. Master CPU failure2. Watchdog reset3. Reset Profi I + II

4. Slave detect master failure

Page 20: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

20

Redundancy: Master CPU Failure – Slave taking mastership

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is: booting is: Slave

Ethernet

File Server

7. Master CPU booting 4. Slave detect master failure5. Start Master6. Start Profibus I+II

Page 21: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

21

Redundancy: Master CPU Failure – Slave active/ pref master passive

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is: booting is: Slave

Ethernet

File Server

7. Pref Master CPU booting8. Pref Master detect Master9. Become Slave

4. Slave detect master failure5. Start Master6. Start Profibus I+II

Page 22: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

22

Redundancy: Master CPU Nettask Crash

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is: Master is: Slave

Ethernet

File Server

1. Nettask crash5. Detect ‚special nettask case‘6. Find existing Profi

‚stand by master‘7. Stop Watchdog8. Reset CPU and

Profibus I+II

2. Detect Master is OFF3. Profi Master still active4. Cannot take over

Page 23: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

23

Redundancy: Master CPU Nettask Crash

EthernetA

EthernetB

Ethernet

private link

Profibus - I

Profibus - II

IOC-A pref MasterCPU

Pr

of-I

Pr

of-II

IOC-B pref SlaveCPU

Pr

of-I

Pr

of-II

is: booting is: Slave

Ethernet

File Server

1. Nettask crash5. Detect ‚special nettask case‘6. Find existing Profi

‚stand by master‘7. Stop Watchdog8. Reset CPU and

Profibus I+II

2. Detect Master is OFF3. Profi Master still active4. Cannot take over9. Take over

Page 24: EPICS @ DESY/ XFEL An  Overview

XFELThe EuropeanX-Ray Laser Project

24

The current implementation is running since three years in three IOCs in production.

Production: • 6kW@4K Helium plant• 3MW primary compressor power• All (PID) control loops running in the IOC• SNL programs controlling sequences and

supervisory control loops• PLCs only used for hardware interlock

helped us to survive 6 nettask crashes

Redundancy