opc and epics m. clausen epics workshop trieste’99 1 opc introduction and epics perspectives...

38
OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

Upload: angelica-simpson

Post on 25-Dec-2015

244 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’991

OPC Introduction and

EPICS Perspectives

Matthias Clausen

Page 2: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’992

Agenda

Introduction– OPC Performance

Powerpoint slides from: The Real Story

– OPC Data Access 2.0

Powerpoint slides from: Overview

Motivation Status Next Steps

Other Links:– OPC Alarms and Events 1.0 Overview

Page 3: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’993

TM

OLE for Process Control and Factory

AutomationAl Chisholm - OPC Technical Chairman10/98

OPC Data Access 2.0 Technical Overview

Page 4: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’994

Topics

A review of the Data Access Problem Design Features Assumptions about the Applications The Objects The functionality they provide

Page 5: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’995

Why is OPC Data Access needed?

SoftwareDriver

SoftwareDriver

SoftwareDriver

SoftwareDriver

DisplayApplication

TrendApplication

ReportApplication

Page 6: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’996

How does OPC Solve the Problem?

SoftwareDriver

SoftwareDriver

SoftwareDriver

SoftwareDriver

OPC OPC OPC OPC

DisplayApplication

TrendApplication

ReportApplication

OPC OPC OPC

Page 7: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’997

Where does OPC Data Access Fit?

Low level sensorsTypically use a dedicated

Hardware Interface and protocolDevice Specific I/O Control

Data MonitorSubSystem

OPC

OPC (via DCOM)can also be used between subsystemsand Management Consoles

OPC is generally usedbetween Monitoring

applications and I/O specificsoftware drivers

Page 8: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’998

What data does OPC provide?

Real time sensor data - temp, pressure, flow Control parameters - open, close, run, stop Status information

– Status of the hardware connection

– Status of the local software and subsystem

OPC can expose any data available

OPC Interfaces

Sensor Data

CommStatus

System Performance

OS Statistics

Page 9: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’999

Features of OPC Data Access

Based on COM - to leverage Microsoft ‘Plumbing’ Flexible - to support many applications Efficient & Scalable - to support large applications Hi performance - well behaved on a Network Easy to understand Widely accepted

Page 10: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9910

Assumptions About the Architecture

Each OPC Server such as Data Access is a Separate Object The Data Access Server provides a window into Existing

Data; it is not a configuration system. Data is accessed by Name (a string) which will generally be

vendor or hardware specific. Data for lists of items can be read explicitly (polled) or

subscriptions can be created.

Existing SCADA, DCS, PLC or other Data

SourceFIC101, FIC102...

OPC Server

OPC Client

Page 11: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9911

Assumptions about the Applications

Applications are interested in a subset of the Data Items (Tags) available within the underlying Control sub-system.

Applications are interested in many different subsets of Data Items at different times and may have variable requirements for response and resolution.

Applications want to be independent of the data structures (or objects) used by the sub-systems. (I.e. they want symbolic access to the data).

Page 12: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9912

The Logical Object Model

OPCServer

OPCGroup

OPC/COMInterfaces

OPCGroupOPCGroup(s)

OPCItem(s)OPCItem(s)OPCItem(s)OPCItem(s)OPCItem(s)OPCItem(s)

OPCItem(s)OPCItem(s)OPCItem(s)

Page 13: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9913

Typical Server Design

OPC/COM Interfaces

OPC Group & Item Management

Item Data Optimization and Monitoring

Device Specific Protocol Logic

Hardware Connection Management

Page 14: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9914

The Server Interfaces

The server is a COM object which provides:

IOPCServer IOPCBrowseServerAddressSpace (optional) IOPCCommon (2.0) IOPCItemProperties(2.0) IConnectionPointContainer(2.0)

OPCServer

Page 15: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9915

The Group Interfaces

The Group is a COM object which provides:

IOPCGroupStateMgt IOPCAsyncIO2 (2.0 - replaces IOPCAsyncIO) IOPCItemMgt IOPCSyncIO IConnectionPointContainer (2.0 replaces IDataObject)

OPCGroup

Page 16: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9916

The Client Side Intefaces

The Client provides 2 COM interfaces that the server can call

IOPCShutdown IOPCDataCallback Server Object

Group Object(s)Client

IOPCDataChange

IOPCShutdown

Page 17: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9917

Performance and Flexibility

OPC Data Access is complete, powerful and flexible because it is a combination of the best ideas of many of the best companies in our business.

OPC Data Access is Fast because it was designed from the start with networking in mind.

Page 18: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9918

Summary

The OPC Data Access 2.0 Interfaces

Allow applications to easily access subsystem data Support polled or exception based access Are optimized for use over a network Are designed to be vendor neutral Are exceptionally flexible and efficient www.opcfoundation.org

Page 19: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9919

OPC Alarms and Events Technical Overview

TM

OLE for Process Control and Factory

AutomationAl Chisholm - OPC Technical Chairman11/98

Page 20: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9920

Topics

A review of the Problem Design Features Assumptions about the Applications The Objects The functionality they provide

Page 21: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9921

General Features of OPC Alarms

Based on COM - to leverage Microsoft ‘Plumbing’ Flexible - to support many applications Efficient - to support large applications Hi performance - well behaved on a Network Easy to understand

Page 22: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9922

Fundamental Assumptions (I)

Each OPC Server such as Alarms and Events is a Separate Object which complements the other OPC Objects

Alarms and Events is primarily Subscription based Event Types

– Simple, Tracking, Condition (Alarm)

Conditions– Single State, Multi State

Page 23: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9923

Fundamental Assumptions (II)

Alarm State Information includes– Enabled, Active, Acknowledged

Areas Source Names Categories Filtering

Page 24: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9924

The Logical Object Model

OPCServer

Subscription

CustomInterfaces

Subscription Subscription

Conditions and Events...

Page 25: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9925

Typical Server Design

OPC/COM Interfaces

OPC Subscription Object Management

Condition Monitoring and Optimization

Device Specific Protocol Logic (if needed)

Hardware Connection Management (if needed)

Page 26: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9926

The Server Interfaces

The server is a COM object which provides:

IOPCCommon IOPCEventServer IConnectionPointContainer

OPCServer

Page 27: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9927

The Subscription Object Interfaces

The Subscription is a COM object which provides:

IOPCEventSubscriptionMgt IConnectionPointContainer

OPCServer

Subscription

Page 28: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9928

The Client Side Intefaces

The Client provides 2 COM interfaces that the server can call

IOPCShutdown IOPCEventSink Server Object

Subscription Object(s)

Client

IOPCEventSink

IOPCShutdown

Page 29: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9929

Client/Server Connection

Client Server

Subscription

OnEvent

1

2

3CPCCP

OnEvent4

Page 30: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9930

Performance and Flexibility

OPC Alarms and Events is complete, powerful and flexible because it is a combination of the best ideas of many of the best companies in our business.

OPC Alarms and Events is Fast because it was designed from the start with networking in mind.

Page 31: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9931

Summary

The OPC Alarms and Events Interfaces: Support exception based updates via Filtered Subscriptions Are designed to be vendor neutral Allow connections to both simple and complex devices Are optimized for use over a network www.opcfoundation.org

Page 32: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9932

EPICS and OPC

EPICS

Page 33: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9933

OPC in the EPICS environment

OPCServer

i.e. Profibus DP

Profibus DP

DCOM

i.e. Graphic / Alarm OPC

Client

i.e. CA-Server OPC

Client

OPCServer

i.e. CA Client

From CA Servers

To CA ClientsSCADA Systems

Page 34: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9934

Motivation

Reduce development effort to integrate new subsystems

– ‘Loose’ connections (i.e. read-only) to subsystems can be implemented with existing OPC-servers for field buses.

Reduce development effort for new applications– Existing diagnostic tools on PC platforms can be easily

integrated using their OPC-client interface.

Page 35: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9935

Status

Integration of existing control systems into new SCADA/DCS system:

– OPC-Server / CA-client ( in work)

– OPC-Server / TINE-client (planned)

Retrieving data from SCADA system (s)– use existing OPC-server

Page 36: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9936

Next Steps

Develop generic OPC-client / CA-Server to integrate OPC-aware systems (i.e. SCADA, field buses ...) into EPICS.

-> We need help for this job!

We already know little about OPC but nothing about CA-Server on NT!

Page 37: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9937

Outlook

OPC is an industrial standard which we should not ignore.

OPC should be integrated into EPICS and SOSH

Drawback:– OPC is only available on WINTEL systems!

Limitation:– Access security

– Dynamic addressing of channels needs to be tested

Page 38: OPC and EPICS M. Clausen EPICS workshop Trieste’99 1 OPC Introduction and EPICS Perspectives Matthias Clausen

OPC and EPICSM. Clausen

EPICS workshop Trieste’9938

Link - List

OPC Performance - The Real Story OPC Data Access 2.0 Overview OPC Alarms and Events 1.0 Overview