Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and...

50
Lorenzo Masetti on behalf of PH-CMD CERN group

Transcript of Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and...

Page 1: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

Lorenzo Masetti on behalf of PH-CMD CERN group

Page 2: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

2

CMS Control System Architecture

FRONT-END

MIDDLEWARE

SUPERVISION

MONITORING AND CONTROL

DRIVERS

FRONT-END HARDWARE

DRIVER CLIENTS

JCOP FRAMEWORK

CMS FRAMEWORK

WINCC OA

JCOP FSM

USER INTERFACE

Page 3: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

3

CMS Control System Architecture

FRONT-END

MIDDLEWARE

SUPERVISION

MONITORING AND CONTROL

DRIVERS

FRONT-END HARDWARE

DRIVER CLIENTS

JCOP FRAMEWORK

CMS FRAMEWORK

WINCC OA

JCOP FSM

DCS enables safe and coherent operation of CMS USER INTERFACE

Page 4: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

4

CMS Control System Architecture

FRONT-END

MIDDLEWARE

SUPERVISION

MONITORING AND CONTROL

DRIVERS

FRONT-END HARDWARE

DRIVER CLIENTS

JCOP FRAMEWORK

CMS FRAMEWORK

WINCC OA

About 3M parameters monitored and controlled

JCOP FSM

DCS enables safe and coherent operation of CMS USER INTERFACE

Page 5: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

5

CMS Control System Architecture

FRONT-END

MIDDLEWARE

SUPERVISION

MONITORING AND CONTROL

DRIVERS

FRONT-END HARDWARE

DRIVER CLIENTS

JCOP FRAMEWORK

CMS FRAMEWORK

WINCC OA

About 3M parameters monitored and controlled

Hierarchical Control

JCOP FSM

DCS enables safe and coherent operation of CMS USER INTERFACE

Page 6: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

6

CMS Control System Architecture

FRONT-END

MIDDLEWARE

SUPERVISION

MONITORING AND CONTROL

DRIVERS

FRONT-END HARDWARE

DRIVER CLIENTS

JCOP FRAMEWORK

CMS FRAMEWORK

WINCC OA

About 3M parameters monitored and controlled

Hierarchical Control

JCOP FSM

DCS enables safe and coherent operation of CMS USER INTERFACE

Page 7: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

7

CMS Control System Architecture

FRONT-END

MIDDLEWARE

SUPERVISION

MONITORING AND CONTROL

DRIVERS

FRONT-END HARDWARE

DRIVER CLIENTS

JCOP FRAMEWORK

CMS FRAMEWORK

WINCC OA

About 3M parameters monitored and controlled

Hierarchical Control

JCOP FSM

Automatic Operation driven by LHC state

DCS enables safe and coherent operation of CMS USER INTERFACE

Page 8: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

8

CMS Control System Architecture

FRONT-END

MIDDLEWARE

SUPERVISION

MONITORING AND CONTROL

DRIVERS

FRONT-END HARDWARE

DRIVER CLIENTS

JCOP FRAMEWORK

CMS FRAMEWORK

WINCC OA

About 3M parameters monitored and controlled

Hierarchical Control

JCOP FSM

Automatic Operation driven by LHC state

Archiving (on change) to historical DB

DCS enables safe and coherent operation of CMS USER INTERFACE

Page 9: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

9

Remote Monitoring of Detector Status at any level of detail

Incident Analysis Access to online and historical (archived) data

Long-term Trend Analysis Access to archived data

Remote Access to DCS Data Why we need it?

Page 10: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

10

Remote Monitoring of Detector Status at any level of detail

Incident Analysis Access to online and historical (archived) data

Long-term Trend Analysis Access to archived data

Remote Access to DCS Data Why we need it?

Page 11: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

11

Remote Monitoring of Detector Status at any level of detail

Incident Analysis Access to online and historical (archived) data

Long-term Trend Analysis Access to archived data

Remote Access to DCS Data Why we need it?

Traditional WinCC OA Interface

Page 12: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

12

Remote Monitoring of Detector Status at any level of detail

Incident Analysis Access to online and historical (archived) data

Long-term Trend Analysis Access to archived data

Remote Access to DCS Data Why we need it?

Traditional WinCC OA Interface CMS Web Interface

Page 13: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

13

Remote Monitoring of Detector Status at any level of detail

Incident Analysis Access to online and historical (archived) data

Long-term Trend Analysis Access to archived data

Remote Access to DCS Data Why we need it?

Traditional WinCC OA Interface CMS Web Interface

Page 14: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

14

DCS Developers do not access SCADA projects in production directly Simplified maintenance Flexible configuration of DCS machines

Web based applications used for DCS Software Deployment DCS Infrastructure Monitoring and Control

Remote Administration

Web Component Handler

WinCC OA Servers

DCS Developer

Monitoring

Page 15: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

15

No specific software needed Just a web browser

Usable from mobile devices

Scalable Low Impact on SCADA System

Simple Deployment

Improves Expert On Call reaction time Large pool of freely available components

to be reused for development

Advantages of a Web Solution Web Thin Client Architecture

Page 16: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

16

No automatic translation of existing SCADA User Interfaces

Development of a Web Framework for accessing DCS Data

Standard Web Solutions J2EE Portlets EJB Javascript AJAX

Integrated in an Enterprise Portal Environment

Combine transparently data from various sources

Databases Online Data

Our Approach

Page 17: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

17

Strategy for Data Access

FSM (DIM)

FSM (DIM)

WinCC OA WinCC OA

FSM (DIM)

Condition DB

DIM Client (EJB)

FSM Web App Web App

Plot Tool

FRO

NT-

END

SC

ADA

WEB

SE

RVER

W

EB

CLIE

NTS

Page 18: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

18

Strategy for Data Access

FSM (DIM)

FSM (DIM)

WinCC OA WinCC OA

FSM (DIM)

Condition DB

DIM Client (EJB)

FSM Web App Web App

Plot Tool

FRO

NT-

END

SC

ADA

WEB

SE

RVER

W

EB

CLIE

NTS

No Direct Connection from WinCC OA to Web

Server

Page 19: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

19

Strategy for Data Access

FSM (DIM)

FSM (DIM)

WinCC OA WinCC OA

FSM (DIM)

Condition DB

DIM Client (EJB)

FSM Web App Web App

Plot Tool

FRO

NT-

END

SC

ADA

WEB

SE

RVER

W

EB

CLIE

NTS

No Direct Connection from WinCC OA to Web

Server

Historical Data accessed via Database

Page 20: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

20

Strategy for Data Access

FSM (DIM)

FSM (DIM)

WinCC OA WinCC OA

FSM (DIM)

Condition DB

DIM Client (EJB)

FSM Web App Web App

Plot Tool

FRO

NT-

END

SC

ADA

WEB

SE

RVER

W

EB

CLIE

NTS

No Direct Connection from WinCC OA to Web

Server

Historical Data accessed via Database

Online Data accessed via DIM (one EJB client)

Page 21: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

21

Strategy for Data Access

FSM (DIM)

FSM (DIM)

WinCC OA WinCC OA

FSM (DIM)

Condition DB

DIM Client (EJB)

FSM Web App Web App

Plot Tool

FRO

NT-

END

SC

ADA

WEB

SE

RVER

W

EB

CLIE

NTS

No Direct Connection from WinCC OA to Web

Server

Historical Data accessed via Database

Online Data accessed via DIM (one EJB client)

Multiple accesses served by local cache

Page 22: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

22

The last values of all archived parameters are stored in a separate table Small table allows for faster queries Last values in the DB are equal to the current reading in

SCADA (with the approximation of the archiving deadband) They can be used in the web display as “current value”

Last values from Database Fast Display of Last Archived Values

Page 23: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

23

The last values of all archived parameters are stored in a separate table Small table allows for faster queries Last values in the DB are equal to the current reading in

SCADA (with the approximation of the archiving deadband) They can be used in the web display as “current value”

Last values from Database Fast Display of Last Archived Values

Page 24: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

24

Example: Browsing the FSM Tree

Interactive navigation in the FSM hierarchy from the web Tree view Web Interface looks like native SCADA interface

Page 25: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

25

The radial graph gives a quick overview of the states of all the nodes in the selected sub-tree.

Radial Graph Visualization Using Javascript Visualization Library

Page 26: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

26

Select the type of device and the parameter to plot e.g. LV Current

Plot for Devices in Subtree Access to archived data

Page 27: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

27

Plot obtained with a few clicks

Very useful for incident analysis

Data from various sources (database, FSM) combined transparently

Plot for Devices in Subtree

Page 28: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

28

Custom Plots

Page 29: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

29

Custom Plots

Page 30: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

30

Custom Plots

Page 31: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

31

Custom Plots

Predefined Templates allow non experts to plot relevant parameters

Page 32: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

32

Custom Plots

Predefined Templates allow non experts to plot relevant parameters

Archived Data accessed from Database without impact on the SCADA

System

Page 33: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

33

Web Access to DCS Data is mainly read-only CMS Operational Rules require that commands can be given only

through the standard SCADA interface (only by the Central Shifter when CMS is controlled centrally)

Some exceptions:

VME Crates can be switched on and off from the web interface Access Control to ensure that user has proper privileges

Read-only access

Page 34: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

34

Web Access to DCS Data is mainly read-only CMS Operational Rules require that commands can be given only

through the standard SCADA interface (only by the Central Shifter when CMS is controlled centrally)

Some exceptions:

VME Crates can be switched on and off from the web interface Access Control to ensure that user has proper privileges

Read-only access

Page 35: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

35

Administrative Tools

PRODUCTION ENVIRONMENT

WEB APPLICATION AND SERVICES

DEVELOPMENT ENVIRONMENT

SVN Repository

Web Component Handler

Configuration DB

Installation DB

Monitoring

WinCC OA projects

Functional Component

Commit Code

Upload Hardware

Configuration

DCS Developer

Set Active Download Targeted Configurations

DCS Expert

Import

Install Targeted Components

Web-Based Deployment

Page 36: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

36

Administrative Tools

PRODUCTION ENVIRONMENT

WEB APPLICATION AND SERVICES

DEVELOPMENT ENVIRONMENT

SVN Repository

Web Component Handler

Configuration DB

Installation DB

Monitoring

WinCC OA projects

Functional Component

Commit Code

Upload Hardware

Configuration

DCS Developer

Set Active Download Targeted Configurations

DCS Expert

Import

Install Targeted Components

Web-Based Deployment

DCS Developers provide code and functionalities packaged in components

Page 37: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

37

Administrative Tools

PRODUCTION ENVIRONMENT

WEB APPLICATION AND SERVICES

DEVELOPMENT ENVIRONMENT

SVN Repository

Web Component Handler

Configuration DB

Installation DB

Monitoring

WinCC OA projects

Functional Component

Commit Code

Upload Hardware

Configuration

DCS Developer

Set Active Download Targeted Configurations

DCS Expert

Import

Install Targeted Components

Web-Based Deployment

DCS Developers provide code and functionalities packaged in components

Hardware Configurations are stored in a dedicated

DB

Page 38: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

38

Administrative Tools

PRODUCTION ENVIRONMENT

WEB APPLICATION AND SERVICES

DEVELOPMENT ENVIRONMENT

SVN Repository

Web Component Handler

Configuration DB

Installation DB

Monitoring

WinCC OA projects

Functional Component

Commit Code

Upload Hardware

Configuration

DCS Developer

Set Active Download Targeted Configurations

DCS Expert

Import

Install Targeted Components

Web-Based Deployment

DCS Developers provide code and functionalities packaged in components

Hardware Configurations are stored in a dedicated

DB

Code is imported from SVN and a new version of the component is released

Page 39: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

39

Administrative Tools

PRODUCTION ENVIRONMENT

WEB APPLICATION AND SERVICES

DEVELOPMENT ENVIRONMENT

SVN Repository

Web Component Handler

Configuration DB

Installation DB

Monitoring

WinCC OA projects

Functional Component

Commit Code

Upload Hardware

Configuration

DCS Developer

Set Active Download Targeted Configurations

DCS Expert

Import

Install Targeted Components

Web-Based Deployment

DCS Developers provide code and functionalities packaged in components

Hardware Configurations are stored in a dedicated

DB

Code is imported from SVN and a new version of the component is released

The Installation Tool synchronizes with the DB

and installs the new version

Page 40: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

40

Administrative Tools

PRODUCTION ENVIRONMENT

WEB APPLICATION AND SERVICES

DEVELOPMENT ENVIRONMENT

SVN Repository

Web Component Handler

Configuration DB

Installation DB

Monitoring

WinCC OA projects

Functional Component

Commit Code

Upload Hardware

Configuration

DCS Developer

Set Active Download Targeted Configurations

DCS Expert

Import

Install Targeted Components

Web-Based Deployment

DCS Developers provide code and functionalities packaged in components

Hardware Configurations are stored in a dedicated

DB

Code is imported from SVN and a new version of the component is released

The Installation Tool synchronizes with the DB

and installs the new version

The status of the SCADA projects can be monitored

from the web

Page 41: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

41

SCADA Monitoring and Control

Page 42: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

42

SCADA Monitoring and Control

SCADA projects can be monitored

from the web

Page 43: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

43

SCADA Monitoring and Control

SCADA projects can be monitored

from the web

DCS Experts can start and stop

SCADA processes

Page 44: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

44

Single Sign On

Role-based Access Control Integrated with CERN Credentials Easy to restrict some pages or functionalities to groups of users Exported to DCS to define control privileges

Portlets deployed independently

Consistent Look & Feel

Structured Navigation

Enterprise Portal: Advantages

Page 45: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

45

Single Sign On

Role-based Access Control Integrated with CERN Credentials Easy to restrict some pages or functionalities to groups of users Exported to DCS to define control privileges

Portlets deployed independently

Consistent Look & Feel

Structured Navigation

Enterprise Portal: Advantages

Page 46: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

46

Single Sign On

Role-based Access Control Integrated with CERN Credentials Easy to restrict some pages or functionalities to groups of users Exported to DCS to define control privileges

Portlets deployed independently

Consistent Look & Feel

Structured Navigation

Enterprise Portal: Advantages

Page 47: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

47

Single Sign On

Role-based Access Control Integrated with CERN Credentials Easy to restrict some pages or functionalities to groups of users Exported to DCS to define control privileges

Portlets deployed independently

Consistent Look & Feel

Structured Navigation

Enterprise Portal: Advantages

Page 48: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

48

Single Sign On

Role-based Access Control Integrated with CERN Credentials Easy to restrict some pages or functionalities to groups of users Exported to DCS to define control privileges

Portlets deployed independently

Consistent Look & Feel

Structured Navigation

Enterprise Portal: Advantages

Page 49: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

49

Single Sign On

Role-based Access Control Integrated with CERN Credentials Easy to restrict some pages or functionalities to groups of users Exported to DCS to define control privileges

Portlets deployed independently

Consistent Look & Feel

Structured Navigation

Enterprise Portal: Advantages

Page 50: Lorenzo Masetti on behalf of PH-CMD CERN group · front-end . middleware supervision monitoring and control drivers front-end . hardware . driver clients . jcop framework . cms framework

50

Web Interfaces used daily 100s of CMS users access the portal for multiple purposes

Number of users with access to DCS data has increased

Usage of native WinCC OA interfaces in Terminal Server

dropped Limited to few cases when experts need to take very specific

actions from remote

Web Administration Tools are now an essential part of the deployment process and monitor tasks Helped to achieve the flexible and maintainable architecture of

the DCS Now indispensable for CMS Operation

Summary