Professional Documents
Culture Documents
OPC Basics Webcast SWTB PDF
OPC Basics Webcast SWTB PDF
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Understanding OPC:
Basic Overview
Agenda – 60 Minutes
Original problem – How to share data
Original solutions
OPC Solution
Open and Industrial
Client/Server Architecture - COM
PC to PC connections – DCOM
What can you do with OPC Now
Answers to some common questions
Future Direction
Questions & Answers
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Original Problem:
How to share data?
1) How to share data from 2) How to share data
equipment like PLC’s? between programs and
PC’s?
Software Software
Application Application
Software Software
Application Application
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Connectivity means….
Enterprise Application
Accessing plant-floor data
User Interface
displaying plant-floor data
Transport Layer
Ethernet, RS232, RS485, Radio etc.
PLC / Device
Allen-Bradley, Siemens, GE, Modbus, Automation Direct etc.
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Original Solution
Each
Eachvendor
vendorhas
has
implemented
implementedtheir
their
own
ownProtocol
Protocol
driver.
driver.
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Original Problem
Data inaccessible to
Enterprise
other systems System
Self-customization
limitations, or inability
Expensive
customizations often HMI/SCADA
Application
Other
Application
required
Data sharing via Modbus / DF1 etc. Unsupported
*.CSV import/export
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
First Solution, DDE
Protocol drivers were no
longer within HMI
DDE Server contains
HMI / SCADA protocol definition
Application
HMI connected using DDE
Topics
HMI tells DDE Server “read
DDE
DDEServer
Server this”, “write that”
(Protocol
(ProtocolConverter)
Converter)
DDE Server responsible for
all I/O
Different HMIs can connect
PLC to a DDE Server
Some Data sharing
possible
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
DDE, Scalable Solution?
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
DDE, Good Solution?
Performance issues
Decoupled HMI from
NetDDE reliability
Protocol drivers
No Standards on tag
DDE Server market
database
emerged
No Browsing!
More “driver” choice
No quality information
HMI vendors could
focus on their core No Client control of Poll
product rates
Accessible to Any DDE No timestamp
Application No security
Not easy for network
configuration and usage
Limited number of
client/topic connections
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
A Standard Was Needed!
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC, the Promise
PLC memory
addresses as “Tags” Dev1.Tag1 Dev2.Tag1
Tags are a friendly 4001 obj1.prop.val
Dev1.Tag2 Dev2.Tag2
name, that maps to a 4001 obj2.prop.val
memory register in the
PLC. OPC Server
underlying Device
Protocol and Memory
Register knowledge. PLC specific PLC specific
addresses addresses
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC – Data Access
Capabilities
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC DA, Data Acquisition
Read
Read these
Readthese 1…x
these1…x1…x
Read these 1…x
Tag(s)
Tag(s)
Tag(s)oneone time,
onetime,
time,
Synchronous I/O Tag(s)
TELL
one
ME
time,
when
andTELL
and I Iwill
ME
will wait
when
wait for
for
Blocking call you
you
the have results
theresponse
have results
response
Good for round-robin OPC
polling-type Client
applications
Asynchronous I/O
Faster method,
compared to OPC
Synchronous Server
Development requires
different way of
thinking
Different Locations
Cache
Device
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC DA, Data Acquisition
Subscriptions offer
These
Thesetags
tagshave
have
best optimization changed
changed
values….
values….
OPC client OPC
Client
requests a
subscription
OPC Server does
OPC
the polling Server
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC, How does it Work?
OPC Server
•Any OPC Client OPC Group
OPC
•HMI/SCADA OPC Item
OPC Group
•Custom Application
OPC Item OPC Item
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Client/Server and OPC DA
Ethernet/IP The Client
Consumes data
Ethernet Human
Defined as services
Machine
the OPC
Interface
Client
The Server Provides
data services
OPC DA
Modbus RTU Client Side COM is the Middle
Man
Microsoft COM
OPC Servers and
OPC DA Defined as Clients in most cases
Server Side the OPC are separate
Server programs now
Communications OPC Servers only
Drivers act on commands
from an OPC Client
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC, Dependent upon
COM
An OPC Client connects to an OPC Server through COM
An OPC Client connecting to an OPC Server on a different
machine connects through DCOM and must be authenticated.
I Iwant
want
Tell meto
to your
connect
connect
login to
to you
nameyouand
My user
Letuser
My me name
check
name my
isis password!
“fred”
“fred”and
Access Control
and
PC – 1 OPC Client password is on PC – 1 OPC Client
you isare
Yes,List….
password
“*****”
my list… I will
“*****”
OPC Client COM run-time grant you access! OPC Client COM run-time
Security Security
Provider Provider
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC DA, Scalable Architecture
A server can
OPC Server
support multiple
OPC Client
OPC Client
Visualization &
OPC Client/ Clients,
Database Logging OPC Server
Alarming etc.
concurrently
OPC Server Many servers can
exist on the
network
Enterprise
System Attach OPC
Systems to other
HMI/SCADA
Application
Other
Application
OPC Systems
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Answers to common
Questions
Can I use OPC across different Domains?
Does re-configuring DCOM open security holes
on my computer?
Does a Tunneller help get OPC data through a
firewall and over the internet?
How do I know if my PLC/Device is offline?
Can OPC work on Linux?
Is OPC DA still valid now OPC UA is coming?
How much data can an OPC Server transfer?
Can OPC Servers run as Windows Services?
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC, more than 1 standard
OPC(DCOM)
Adv.
OPC(DCOM) Batch
Control
PC-Based Control
OPC(DCOM)
PLC Data
Data
PLC Other….
DCS
Industrial
IndustrialNetworks
Networks Acquisition Other….(DB,
(DB,SQL
SQL
DCS Acquisition
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
OPC, Quality Assurance!
OPC UA
Single, abstract set of objects
Backward compatible with all existing OPC
standards
Service Oriented Architecture (SOA)
Embeddable, within a PLC/Device
Security and encryption built-in
Designed to take plant-floor data to the
Enterprise.
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
What Does OPC UA
Mean for OPC DA?
Asset
Asset Production Inventory
Inventory
Production Purchasing
Control Purchasing
Management
Management Control Management
Management
UA
HMI
HMI
SCADA
SCADA
Visualization
Visualization The
The The
The
Automation
Automation Enterprise
Enterprise
paradigm
paradigm paradigm
paradigm
DA, HDA,
A&E Production
Production
Management UA
UADoesn’t
Doesn’tReplace
ManagementSystems
Systems Replace
OPC
OPCDA/HDA/A&E
DA/HDA/A&E
ItItComplements
ComplementsThem!
Them!
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Want to learn more?
“Using OPC” Webinars
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
More Information
Colin Winchester
Email: cwinchester@softwaretoolbox.com
Tel: 704-849-2773 x1327
Technical Support:
Tel: +1 (704) 849-2773
Web: http://support.softwaretoolbox.com
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission
Some Terminology
Content is Copyright Software Toolbox, 2008 No re-use or copying without written permission