interfacing with opc, iec61850 and iec 60870-5-10x interfacing.pdfiec 60870-5-10x •standard by...

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

Upload: others

Post on 18-Mar-2020

40 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

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

Nicholas Honeth ([email protected])

Page 2: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Contents of this tutorial

• Recap of protocols in power systems applications• Quick introduction to OPC• IED configuration overview• JACK interfacing with OPC – the OPCagent

Page 3: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

RecapComputers and Networks in Power Systems

Page 4: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

RecapSCADA Networks

Page 5: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

RecapModern substation

Page 6: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

RecapProtocol basics

Page 7: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

RecapThe OSI model

Physical

Data Link

Transport

Application

Network

Hos

tM

edia

Page 8: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

RecapTransition between layers

Page 9: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Recap - Physical mediaCommunication 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 10: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Recap - Physical mediaCommunication 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 11: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Recap - GOOSE OSI model explanation

Page 12: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Recap - GOOSEOSI model explanation

Page 13: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

GOOSE exerciseOSI model explanation

Page 14: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systems

• IEC 61850- GOOSE- SV- MMS

• IEC 60870-5-10x

• Modbus

• DNP3

• ICCP

Page 15: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsIEC 61850-8-1

Page 16: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsGOOSE

• Generic Object Oriented Substation Event

- Specified in IEC 61850-8-1

- Status and values- Grouped into dataset

- Transmitted within a time of 4ms

Page 17: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsGOOSE – retransmission strategy

Page 18: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsMMS

- Open standard

- Transferring real-time process data

- Provides standard messages

- Encoding rules

Page 19: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsIEC 61850-8-1

Page 20: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsIEC 61850-8-1

Page 21: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsIEC 61850 configuration

Page 22: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsIEC 61850 configuration

Page 23: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsIEC 60870-5-10x

• A suite of “RTU protocols”…

Page 24: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Protocols used in power systemsIEC 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 25: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

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)

Page 26: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

OPC ServersCybServer870M-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 27: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

OLE for Process Control (OPC)

Page 28: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

OLE for Process Control (OPC)

Page 29: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

OPC interfaceing from JavaJEasyOPC Java class library

• Open-source java class library

• Interface with OPC serversimport 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 30: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

OPC interfacing from JACKOPCagent

• 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 31: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

OPC interfacing from JACKOPCagents communicating over DCI network

Page 32: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Group A

OPC interfacing from JACKUsing OPCagents for building functionality

Group B

Group C

Page 33: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

ConclusionWhat’s next?

• IEC 61850 configuration lab (10th Oct)- Divided into groups- 3 sessions over the day

- Configure protection/interlocking between IEDs- Monitoring & Control interface via IEC 61850 OPC server

• OPCagent configuration (10th Oct in parallel)- Structure of OPCagent- Mapping RTU I/O to agent ontology

• Prerequisite – must have finished tutorial 5- Otherwise this will all feel very random.

Page 34: Interfacing with OPC, IEC61850 and IEC 60870-5-10x interfacing.pdfIEC 60870-5-10x •Standard by TC57 (same as IEC 61850) - Specifically for power systems • Monitoring • Control

Conclusion

• Recap of protocols in power systems applications

• Quick introduction to OPC

• IEC 61850 recap and IED configuration overview

• JACK interfacing with OPC – the OPCagent