Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850...

45
Interfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth ([email protected])

Transcript of Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850...

Page 1: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Interfacing with OPC, IEC61850 and IEC 60870-5-10x

Nicholas Honeth ([email protected])

Page 2: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Contents of this leture

• Recap of protocols in power systems applications

• IEC 61850 Overview

• Quick introduction to OPC

• JACK interfacing with OPC – the OPCagent

• Network Simulation/Emulation - OPNET

• Project specific work

Page 3: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Recap Computers and Networks in Power Systems

Page 4: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Recap Protocol basics

Page 5: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Recap The OSI model

Physical

Data Link

Transport

Application

Network

Host

Media

Page 6: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Recap Transition between layers

Page 7: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Recap - Physical media Communication devices

• Network Interface Controller (NIC) - Physical and data link layer - Sometimes even network layer

- Ethernet cards have unique MAC address

- Interface to host computer • Polling

• Interrupt-driven

• Direct Memory Access

Page 8: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Recap - Physical media Communication devices

• Switch - Physical and data link layers (bridge)

- Managed switches exist • Security

• Performance

- Learns the MAC address of each connected device

- “Switch” methods • Store-and-forward

• Cut-through

• Fragment-free – first 64 bytes

• Adaptive – choose between the 3 above

Page 9: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems

• IEC 61850

- GOOSE

- SV

- MMS

• IEC 60870-5-10x

• Modbus

• DNP3

• ICCP

Page 10: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Substation architecture

10

IEC 61850 Station bus

RTU

IED IED IED

SCADA

IEC 61850 Process bus

MMS (TCP/IP)

10.0.0.1 10.0.1.117

10.0.1.1

10.0.0.1310.0.0.11 10.0.0.12

GOOSE

SVSV

MMS (TCP/IP)

Page 11: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Communication Protocols

11

Page 12: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Substation Architecture

12

IEC 61850 Station bus

RTU

IED IED IED

SCADA

IEC 61850 Process bus

MMS (TCP/IP)

10.0.0.1 10.0.1.117

10.0.1.1

10.0.0.1310.0.0.11 10.0.0.12

GOOSE

SVSV

MMS (TCP/IP)

Page 13: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Information Model - Logical Nodes

13

Page 14: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Configuration Scenario

14

Page 15: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Specification and Configuration

15

Page 16: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Substation Configuration Language

16

Page 17: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Devices

17

Page 21: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems GOOSE

• Generic Object Oriented Substation Event - Specified in IEC 61850-8-1

- Status and values - Grouped into dataset

- Transmitted within a time of 4ms

Page 22: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems GOOSE – retransmission strategy

Page 23: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems MMS

- Open standard

- Transferring real-time process data

- Provides standard messages

- Encoding rules

Page 24: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems

• IEC 61850

- GOOSE

- SV

- MMS

• IEC 60870-5-10x

• Modbus

• DNP3

• ICCP

Page 25: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 61850 Substation architecture

25

IEC 61850 Station bus

SCADA

IEC 61850 Process bus

MMS (TCP/IP)

10.0.0.1 10.0.1.117

10.0.1.1

10.0.0.1310.0.0.11 10.0.0.12

GOOSE

SVSV

MMS (TCP/IP)

IED IED IED

RTU

Page 26: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems IEC 61850 configuration

Page 27: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems IEC 61850 configuration

Page 28: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems IEC 60870-5-10x

• A suite of “RTU protocols”…

Page 29: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems IEC 60870-5-10x

• Standard by TC57 (same as IEC 61850)

- Specifically for power systems • Monitoring

• Control

• Teleprotection

- A few difference flavors exist: • 101 – Serial RTU protocol

• 103 – interoperability between protection/substation devices

• 104 – Variant of 101 carried over TCP/IP

- Still very commonly used.

- Used in our lab with ICS village!

Page 30: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Protocols used in power systems IEC 60870-5-10x

IEC 61850 Station bus

SCADA

IEC 61850 Process bus

MMS (TCP/IP)

10.0.0.1 10.0.1.117

10.0.1.1

10.0.0.1310.0.0.11 10.0.0.12

GOOSE

SVSV

IEC 60870-5-104

IED IED IED

RTU

Page 31: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

31

Protocols used in power systems Logical Connection

GOOSE

Controlled

Breaker

IEC 61850-9-2

Merging Unit

IEC

61

85

0 S

tatio

n B

us

IEC

61

85

0 P

roce

ss B

us

IEC

61

85

0 S

tatio

n B

us

IEC

61

85

0 P

roce

ss B

us

RTU

RTU

SCADA

Utility

WAN

GOOSE

Controlled

Breaker

IEC 61850-9-2

Merging Unit

IED

IED

IED

IED

IED

IED

Page 32: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

OLE for Process Control (OPC)

• Object Linking and Embedding (OLE)

• Originally developed to provide an interface between: - Windows software applications and - Process control hardware.

• A few specifications (versions): - OPC Data Access (DA) - OPC Alarms & Events - OPC Data eXchange (DX) - OPC Commands - OPC XML-DA

- OPC Unified Architecture (UA)

Agent platform host

IEC 870-5-104 OPC server

Netcontrol RTU-28IP

Page 33: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

OPC Servers CybServer870M-10x OPC Servers

• Client to communicate with: - IEC 60870-5-101 (Serial) - IEC 60870-5-104 (IP)

• Server for OPC DA

• Makes RTU data accessible: - Status - Measurements - Commands

- Map tag names to “870 addresses”

Page 34: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

OLE for Process Control (OPC) Agent platform host

IEC 870-5-104 OPC server

Netcontrol RTU-28IP

Page 35: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

OLE for Process Control (OPC) Agent platform host

IEC 870-5-104 OPC server

Netcontrol RTU-28IP

Page 36: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

IEC 870-5-104 OPC server

JEasyOPC

Program

RTU

OPC interfaceing from Java JEasyOPC Java class library

• Open-source java class library

• Interface with OPC servers

import javafish.clients.opc.JCustomOpc;

import javafish.clients.opc.JEasyOpc;

import javafish.clients.opc.JOpc;

import javafish.clients.opc.asynch.AsynchEvent;

import javafish.clients.opc.asynch.OpcAsynchGroupListener;

import javafish.clients.opc.browser.JOpcBrowser;

import javafish.clients.opc.component.OpcGroup;

import javafish.clients.opc.component.OpcItem;

Initialization: jopc_meas = new JEasyOpc(hostName, serverName, groupName + "_meas");

Reading: gotItem = jopc_meas.synchReadItem(statusGroup, (OpcItem)ItemToRead);

Writing: jopc_command.synchWriteItem(commandGroup, item);

Page 37: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

OPC interfacing from JACK OPCagent

• JACK agent with OPC client capability: - Browser OPC server - Listen for events (status, meas) - Issue commands

• Agent communication using messages: - SubscriptionRequest

- StatusMessage

- MeasMessage

- CommandRequest

RTU

JEasyOPC

OPCagent

Page 38: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

OPC interfacing from JACK OPCagent

• JACK agent with OPC client capability: - Browser OPC server - Listen for events (status, meas) - Issue commands

• Agent communication using messages: - SubscriptionRequest

- StatusMessage

- MeasMessage

- CommandRequest

Page 39: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

OPC interfacing from JACK OPCagent

Agent platform host

IEC 60870-5-104 OPC

server

RTU

Overlay

Network

OPCagent

Function

AgentFunction

Agent

Agent platform host

IEC 60870-5-104 OPC

server

RTU

OPCagent

Function

Agent

Page 40: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

OPC interfacing from JACK OPCagents communicating over DCI network

Page 41: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Group A

OPC interfacing from JACK Using OPCagents for building functionality

Group B

Group C

Page 43: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Evaluation of SAS Configurations Scenario Testing with RT HIL System

Opal-RT

Simulator

GOOSE

subscriber

SV publisher

SV publisher

SV publisher

SV publisher

GOOSE

subscriber

Eth

ern

er

(eth

1)

Eth

ern

er

(eth

2)

IED

IED

IED

WAN

Emulator

IED

IED

IED

G

Lo

ad

4

Lo

ad

3L

oad

1

Lo

ad

2

DG 1

Station B1

Station C1

Station B2Station B3

Station C2

Station C3

Siemens

GOOSE

Remote Trip

ABB

Areva

GOOSE

Tie-switch state for

reclosure condition

GOOSE

Remote Trip

+ Breaker state

GOOSE

Remote Trip

+ Breaker state

43

Page 44: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Evaluation of SAS Configurations Interfacing with Mulit-Agent Control Systems

44

Opal-RT

Simulator

GOOSE

subscriber

SV publisher

SV publisher

SV publisher

SV publisher

GOOSE

subscriber

Eth

ern

er

(eth

1)

Eth

ern

er

(eth

2)

IEC

61

85

0 S

tatio

n B

us

IEC

61

85

0 P

roce

ss B

us

IEC

61

85

0 S

tatio

n B

us

IEC

61

85

0 P

roce

ss B

us

RTU

RTU

IEC 61850 OPC server

IEC 61850 OPC server

Other

Function

Other

Function

Other

Function

Other

Function

Overlay

Network

IED

IED

IED

IED

IED

IED

Page 45: Interfacing with OPC, IEC61850 and IEC 60870-5-10x · PDF fileInterfacing with OPC, IEC61850 and IEC 60870-5-10x Nicholas Honeth (nicholash@ics.kth.se)

Conclusions

45

• Tools for Testing/evaluation of SAS architectures

• Utility commissioning engineers and systems integrators can become more familiar with process bus devices/configuration

• Goes beyond the limitations of test-set loops • Opens the door for on-site commissioning,

configuration and system acceptance tests • Standardized interfaces allow for a variety of

possibilities for System-in-the-Loop development and testing.