14
TM OLE for Process Control and Factory Automation OPC Servers Integrator OPC Servers Integrator - A OPC Programming - A OPC Programming Middleware Middleware

TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

Embed Size (px)

Citation preview

Page 1: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

TM

OLE for Process Control and Factory Automation

OPC Servers Integrator OPC Servers Integrator - A OPC Programming Middleware - A OPC Programming Middleware

Page 2: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

TopicsTopics

• Data Access Problem• OLE for Process Control (OPC)• OPC Programming• OPC Servers Integrator (OPCSI)

Page 3: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

Before OPCBefore OPC

SoftwareDriver

SoftwareDriver

SoftwareDriver

SoftwareDriver

DisplayApplication

TrendApplication

ReportApplication

Page 4: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

How does OPC Solve the Problem?How does OPC Solve the Problem?

SoftwareDriver

SoftwareDriver

SoftwareDriver

SoftwareDriver

OPC OPC OPC OPC

DisplayApplication

TrendApplication

ReportApplication

OPC OPC OPC

Page 5: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

Where does OPC Fit?Where does OPC 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 6: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

OPC Programming IssuesOPC Programming Issues

• COM Programming Details • Dozens of Interfaces• Hundreds of Methods• Resources Sharing• Vendor-Specific Names

Page 7: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

OPC Servers Integrator (OPCSI)OPC Servers Integrator (OPCSI)

ProxyObj objectsShared Memory

ChnlObj objects

CacheObj object

Application X

OPCSI Interface

Application Y

OPCSI Interface

OPC Server A

OPC Server B

Page 8: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

FeaturesFeatures

• A middleware for OPC servers• Detects and maintains all OPC servers• Supports direct and cache accesses• Two interfaces and a handful of methods• Manages shared resources• User-defined names• Hides COM/OPC programming details

Page 9: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

BenefitsBenefits

• Rapid development• Low maintenance• Superior performance• Flexibility• Leverage of enterprise development

Page 10: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

OPCSI InterfacesOPCSI Interfaces

• IProxyObj• IMappedVarViewer

Page 11: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

OPC ServerOPC Server

OPC/COM Interfaces

OPC Group & Item Management

Item Data Optimization and Monitoring

Device Specific Protocol Logic

Hardware Connection Management

Page 12: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

The Server InterfacesThe Server Interfaces

• The server is a COM object which provides:

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

OPCServer

Page 13: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

The Group InterfacesThe 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 14: TM OLE for Process Control and Factory Automation OPC Servers Integrator - A OPC Programming Middleware OPC Servers Integrator - A OPC Programming Middleware

The Client Side IntefacesThe Client Side Intefaces

• The Client provides 2 COM interfaces that the server can call

• IOPCShutdown• IOPCDataCallback Server Object

Group Object(s)Client

IOPCDataChange

IOPCShutdown