Upload
rolf-ball
View
219
Download
6
Embed Size (px)
Citation preview
TM
OLE for Process Control and Factory Automation
OPC Servers Integrator OPC Servers Integrator - A OPC Programming Middleware - A OPC Programming Middleware
TopicsTopics
• Data Access Problem• OLE for Process Control (OPC)• OPC Programming• OPC Servers Integrator (OPCSI)
Before OPCBefore OPC
SoftwareDriver
SoftwareDriver
SoftwareDriver
SoftwareDriver
DisplayApplication
TrendApplication
ReportApplication
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
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
OPC Programming IssuesOPC Programming Issues
• COM Programming Details • Dozens of Interfaces• Hundreds of Methods• Resources Sharing• Vendor-Specific Names
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
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
BenefitsBenefits
• Rapid development• Low maintenance• Superior performance• Flexibility• Leverage of enterprise development
OPCSI InterfacesOPCSI Interfaces
• IProxyObj• IMappedVarViewer
OPC ServerOPC Server
OPC/COM Interfaces
OPC Group & Item Management
Item Data Optimization and Monitoring
Device Specific Protocol Logic
Hardware Connection Management
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
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
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