SCADA 2011. OPC: Environment for Industrial System Integration

Download Report

Transcript SCADA 2011. OPC: Environment for Industrial System Integration

OPC:
Environment for Industrial
System Integration
Click
to edit Master title style
Author
Truong Dinh Chau
Ho Chi Minh City Univ. of Tech.
[email protected]
[email protected]
(+84) (0)91. 543-74-40
Click
to edit Master title style
Topics












Approaches for connection with control devices: Direct
driver, DDE, OPC
I/O driver problem. What is OPC
Logical object model OPC Data Access Server
OPC client/server interaction
Data sources
Modes of data exchange between OPC client/server
Structure of demo system
Popular SCADA (Citect, Intouch, RSView32) – OPC
C++ application – OPC
.NET – OPC
Web – OPC
MS Excel – OPC
Approaches for connection
with control devices
Click
to edit Master title style
Technologies
 DLL - Dynamic-link Library (Direct drivers)
 DDE - Dynamic Data Exchange
 OPC - OLE for Process Control
Click
edit Master title style
Directtodrivers
General part
(EXE)
User
C/C++
code
Driver A - DLL
I/O Device A
Driver B - DLL
I/O Device B
…
Driver C - DLL
Specific part
SCADA
…
I/O Device C
Click
edit Master title style
Directtodrivers
Click
edit Master title style
Directtodrivers
DLL
EXE
Tag
Tag
DAQ Tasks
Tag
Tag
Tag
Tag
bool DeviceConfig()
{
...
}
float Read( DWORD Channel)
{
...
}
Tag
Tag
Tag
bool Write( DWORD Channel, float Data)
{
...
Tag
}
DAQ Tasks
DDE Clients, SCADA
Click
DDE to edit Master title style
DDE Sever
I/O Device
DDE Server
I/O Device
…
DDE Server
Computer A
…
I/O Device
Application|Topic1!Item2
Click
DDE to edit Master title style
DDE Client
Application
Topic1
Item1 Item2
Item3
Topic2
Item1 Item2
Item3
DDE Server
I/O Device
Click
edit
Master
title style
Demotofor
DDE
connection
 Excel – Citect
 Excel – Intouch
 Intouch - Citect
OPC
Click
to edit
Master
title style
The I/O
driver
problem
C/C++ Application
Software
Driver A
Physical I/O
Device A
SCADA
SCADA
Software
Driver B
Software
Driver C
Physical I/O
Device B
Physical I/O
Device C
Allow
Not allow
Click
to editOPC
Master
titlethe
style
How does
solve
problem?
C/C++ Application
SCADA
SCADA
OPC
OPC
OPC
OPC
OPC
OPC
Software
Driver A
Software
Driver B
Software
Driver C
Physical I/O
Device A
Physical I/O
Device B
Physical I/O
Device C
Click
to edit
Master
title style
The I/O
driver
problem
Click
to editOPC
Master
titlethe
style
How does
solve
problem?
What is OPC?
Click
to
edit
Master
title
style
OPC Foundation (www.opcfoundation.org).
OPC is an industry standard created by

a number of worldwide leading hardware
and software suppliers.
The OPC standard specifies an
interface between client applications and
servers of process data.
The standard was purposely limited to
the reading and writing of real-time
process values (Data Access – DA). Alarm
handling, process events (A&E), historical
data access (HDA), … were all deferred to
subsequent releases of the standard.
An OPC compliant client can read and
write data to any OPC compliant server.
MatLab,
Excel
OPC Interfaces
SCADA
Software driver
Physical
I/O
Devices
Software
driver
OPC Interfaces
OPC Interfaces
OPC Server
C++, VBA,
.NET
Applications
OPC is supported 408 companies: Schneider Electric
(France), Iconics (USA), Wonderware (USA), Rockwell
Automation (USA), Adastra (Russia), Siemens
(Germany), Intellution (USA), Indusoft Russia (Russia),
Fastwel (Russia), ABB Automation (USA), Fieldbus
Foundation (USA), Toshiba (Japan), Hitachi (Japan),
National Instruments (USA), Advantech (Taiwan)…

SCADA
Vijeo Citect
InTouch
RSView32
iFIX
WinCC
Genesis32
Cimplicity
GenieDAQ
Trace Mode
Vijeo Look
LabView
Master SCADA
Contour
Wizcon
Crug-2000
Elipse SCADA
Company
Schneider Electric
Wonderware
Rockwell Automation
Intellution
Siemens
Iconics
GE Fanuc
Advantech
AdAstra
Schneider Electric
National Instruments
InSAT
Obedinenie Uig
Axeda
Crug
Elipse Software
Country
France
USA
USA
USA
Germany
USA
USA
Taiwan
Russia
France
USA
Russia
Ucraina
USA
Russia
USA
Click
Master title style
Whatto
is edit
OPC?
Object Linking & Embedding
OPC – OLE for Process Control
OPC – OLE for Production Control
OPC – Openness, Productivity and Connectivity
OPC – OLE COM for Process Control
COM – “Component Object Model” provides
interfaces and inter-component communication.
Through COM, an application may use features of
any other application object. COM is the core of
DCOM (Distributed COM), ActiveX.
OPC Client
(SCADA)
Click
to edit Master title style
OPC components
OPC Server
(DLL)
I/O Device
OPC Server
(EXE)
I/O Device
…
…
OPC Server
(EXE)
I/O Device
Click
toobject
edit Master
title style
Logical
model OPC
Server
OPC Server
OPC
Interfaces
OPC
Interfaces
OPC Group
OPC Group
OPC Group
OPC
Group
OPC
Group
OPC
Item
OPC
Group
OPC
Group
OPC
Item OPC
Group
OPC
Group
OPC
Item
Device
Device
Tag Tag Tag
Tag Tag Tag
Click
to edit Master title style
OPC Item
 Connection to a data source.
 Properties:
 Data value (v)
VARIANT type: boolean, integer, float,
string, …
 Quality (q)
UNCERTAIN, GOOD, BAD, …
 Time stamp (t)
- FILETIME: {yyyy:mm:dd:hh:mm:ss:…}
- The Timestamp should indicate the time
that the value and quality was obtained by
the device.
Item i
Tag j
Click
to of
edit
Master
title
style control system
Timestamp
real-time
data in
the integrated
Supervision
SCADA station
v1, q1, t
SCADA station
3.1, GOOD,
3.8,
3.2,
0.9,
2.6,
4.5,
4.2,
3.9,
4.0,
4.3,
4.6,
4.4,
4.1,
3.5,
2.9,
2.7,
2.0,
2.1,
1.9,
1.8,
1.7,
1.6,
BAD,
03:54:06
03:54:07
03:54:10
03:54:12
03:54:13
03:54:16
03:54:20
03:54:21
03:54:23
03:54:24
03:54:26
03:54:27
03:54:31
03:54:32
03:54:33
03:54:01
03:54:02
03:54:03
03:54:04
03:54:05
03:54:08
03:54:09
03:54:11
03:54:14
03:54:15
03:54:17
03:54:18
03:54:19
03:54:22
03:54:25
03:54:28
03:54:29
03:54:30
03:54:35
03:54:36
03:54:38
03:54:39
03:54:40
03:54:41
03:54:42
03:54:43
03:54:44
03:54:45
03:54:46
03:54:47
03:54:48
03:54:49
03:54:50
03:54:51
03:54:52
03:54:53
03:54:54
03:54:55
03:54:56
03:54:57
03:54:58
v4,03:54:34
q03:54:59
1.7,
GOOD,
4, t 03:54:60
OPC Server
v5, q5, t
v6, q6, t
OPC Server
1.7,
GOOD,
3.1, GOOD,
3.8,
3.2,
2.6,
4.5,
5.1,
4.2,
3.9,
4.0,
4.3,
4.6,
4.4,
4.1,
3.5,
2.9,
2.7,
2.0,
2.1,
1.9,
1.8,
1.7,
1.6,
OK,
BAD,
BAD,
v
,
q
03:54:01
03:54:02
03:54:03
03:54:04
03:54:05
03:54:06
03:54:07
03:54:08
03:54:09
03:54:10
03:54:11
03:54:12
03:54:13
03:54:14
03:54:15
03:54:16
03:54:17
03:54:18
03:54:19
03:54:20
03:54:21
03:54:22
03:54:23
03:54:24
03:54:25
03:54:26
03:54:27
03:54:28
03:54:29
03:54:30
03:54:31
03:54:32
03:54:33
03:54:34
03:54:35
03:54:36
03:54:38
03:54:39
03:54:40
03:54:41
03:54:42
03:54:43
03:54:44
03:54:45
03:54:46
03:54:47
03:54:48
03:54:49
03:54:50
03:54:51
03:54:52
03:54:53
03:54:54
03:54:55
03:54:56
03:54:57
03:54:58
03:54:59
4
4, t
03:54:60
v1, q1, t
v3, q3, t
OPC Server
v6, q6, t
v5, q5, t
Upper controller level
PLC
Controller level
PLC
Instrumentation
Passive I/O boards
v1, t
v2, t
v3, t
v – value, q – quality, t – timestamp
v03:54:59
,t
403:54:60
3.1,
3.8,
3.2,
0.9,
2.6,
4.5,
5.1,
4.2,
3.9,
4.0,
4.3,
4.6,
4.4,
4.1,
3.5,
2.9,
2.7,
2.0,
2.1,
1.9,
1.8,
1.7,
1.6,
03:54:01
03:54:02
03:54:03
03:54:04
03:54:05
03:54:06
03:54:07
03:54:08
03:54:09
03:54:10
03:54:11
03:54:12
03:54:13
03:54:14
03:54:15
03:54:16
03:54:17
03:54:18
03:54:19
03:54:20
03:54:21
03:54:22
03:54:23
03:54:24
03:54:25
03:54:26
03:54:27
03:54:28
03:54:29
03:54:30
03:54:31
03:54:32
03:54:33
03:54:34
03:54:35
03:54:36
03:54:38
03:54:39
03:54:40
03:54:41
03:54:42
03:54:43
03:54:44
03:54:45
03:54:46
03:54:47
03:54:48
03:54:49
03:54:50
03:54:51
03:54:52
03:54:53
03:54:54
03:54:55
03:54:56
03:54:57
03:54:58
1.7,
v 5, t
v6, t
Click
to edit Master
OPC Group
Objecttitle style
 Collection of items.
 Clients must use group to access items.
 Properties:
 Requested update rate;
Group i
Item 1
 Percent dead-band;
Item 2
 Time bias;
Item 3
Click
to edit
Master titlever.
style1.0
OPC DA
Specification
IOPCServer
IOPCBrowseServerAddressSpace
OPCServer
IOPCItemMgt
OPC
Client
IOPCAdviseSink
IOPCGroupStateMgt
IOPCSyncIO
IOPCAsyncIO
IDataObject
OPCGroup
Click
to edit Master
title
style
Data sources
in OPC
Servers
Read from server’s internal cache.
Read directly from device.
Write directly to the device.
Client/server interaction
Click
to 1edit Master title style
Client 2
Client
Server 1
Server 2
Group1 2
Group
Group 2
Group 1
Item 1
Item 1
Item 2
Item 1
Item 2
OPC Server
Item 3
Device 1
Device 2
Tag 1 Tag 2 Tag 3
Tag 1 Tag 2
Item 1
Click
editexchange
Master between
title style
Modes to
of data
OPC Server/Client
Synchronous read/write.
Asynchronous read/write.
Subscription (for read).
Refresh (for read).
Synchronous mode
Clienttitle
1
Click to edit Master
style
Server 1
Group1 2
Group
OPC Server
Group1.Read(DEVICE, ItemHandles, Results)
Item 1
Item 1
Item 2
Item 3
Device 1
Device 2
Tag 1 Tag 2 Tag 3
Tag 1 Tag 2
Asynchronous mode
Clienttitle
1
Click to edit Master
style
Group1.Read(DEVICE, ItemHandles)
Client1.ReadComplete(Results)
Server 1
OPC Server
Group1 2
Group
Item 1
Item 1
Item 2
Item 3
Device 1
Device 2
Tag 1 Tag 2 Tag 3
Tag 1 Tag 2
Subscription
Clienttitle
1
Click to edit Master
style
Client1.DataChanged(Data)
Server 1
OPC Server
Group1 2
Group

Item 11
Item

Item 22
Item
Data changed

Item 33
Item
Data changed
Item 1
Device 1
Device 2
Tag 1 Tag 2 Tag 3
Tag 1 Tag 2
Demo system
Click to edit Master title style
Click
edit Master title style
Demotosystem
Click
toPLC
edit Master title style
Demo:
Demo:
– OPC
Click
toSCADAs
edit Master
title Server
style
Citect, Schneider Electric
Intouch, Wonderware
RSView32, Rockwell Automation
Click
toC++
edit Master
title style
Demo:
Application
– OPC Server
Click
toExcel
edit Master
title
style
Demo:
as OPC
Client
Click
editOPC
Master
title
style wrapper
Demo:to.NET
client.
OPC.NET
.NET platform
interface
C#
script
ASP .NET + AJAX
C# Application
Connect()
AddGroup()
AddItems()
…
Read()
Write()
OPC Interfaces
Periodic execution
OPC
Server
OPC .NET
wrapper
C# thread
C++ object
COM interface
Click
edit
Master
Demo:toC#
OPC
client title style
Click
edit Master
titleClient
style
Demo:toWeb-based
OPC
Click to edit Master title style
Truong Dinh Chau, Ph.D
Ho Chi Minh City Univ. of Tech.
[email protected]
[email protected]
[email protected]
(+84) (0)91. 543-74-40
Thank you for your attention
•