powerfactory api and smart grid applications. interfacing with

14
1 PowerFactory API and Smart Grid Applications Interfacing with Google Earth and other systems DIgSILENT Ibérica S.L. Xavier Robe ([email protected]) 3rd Southern African DIgSILENT User Conference 13/14 March 2013 DIgSILENT Ibérica SL. 2 INDEX 1. INTRODUCTION 2. OPC – VIRTUAL COMMISSIONING 3. MODBUS TCP 4. GOOGLE EARTH 5. NETWORK PLANNING 6. CONCLUSIONS

Upload: truongkhanh

Post on 02-Feb-2017

268 views

Category:

Documents


14 download

TRANSCRIPT

Page 1: PowerFactory API and Smart Grid Applications. Interfacing with

1

PowerFactory API

and

Smart Grid Applications

Interfacing with Google Earth and other systems

DIgSILENT Ibérica S.L.Xavier Robe ([email protected])

3rd Southern African DIgSILENT User Conference

13/14 March 2013

DIgSILENT Ibérica SL. 2

INDEX

1. INTRODUCTION

2. OPC – VIRTUAL COMMISSIONING

3. MODBUS TCP

4. GOOGLE EARTH

5. NETWORK PLANNING

6. CONCLUSIONS

Page 2: PowerFactory API and Smart Grid Applications. Interfacing with

2

DIgSILENT Ibérica SL. 3

INDEX

1. INTRODUCTION

2. OPC – VIRTUAL COMMISSIONING

3. MODBUS TCP

4. GOOGLE EARTH

5. NETWORK PLANNING

6. CONCLUSIONS

DIgSILENT Ibérica SL. 4

INTRODUCTION

PowerFactory offers many standard functions for smart grids

planning and operation, electric vehicles, renewable energies

and distributed generation integration studies:

• Load flow with many optimization functions

• OPF

• Distribution network optimization

• Open tie point placement

• Time sweep

• State estimation

• …

Page 3: PowerFactory API and Smart Grid Applications. Interfacing with

3

DIgSILENT Ibérica SL. 5

INTRODUCTION

But it also offers:

• OPC communication

• Expandable DPL instruction set

• Expandable DSL instruction set

• API

This presentation will show how these nice features can be used in

smart grid applications.

DIgSILENT Ibérica SL. 6

INTRODUCTION

Cases:

1. Virtual Control Commissioning: Connection to SCADA

system via OPC protocol

2. Direct Connection to MODBUS TCP Devices

3. Exporting/Importing grids to/from Google Earth using

the API

4. Integrating Smart Meters Data in Network Planning

thanks to the API

Page 4: PowerFactory API and Smart Grid Applications. Interfacing with

4

DIgSILENT Ibérica SL. 7

INDEX

1. INTRODUCTION

2. OPC – VIRTUAL COMMISSIONING

3. MODBUS TCP

4. GOOGLE EARTH

5. NETWORK PLANNING

6. CONCLUSIONS

DIgSILENT Ibérica SL. 8

OPC – VIRTUAL COMMISSIONING

OPCCLIENT

OPCCLIENT

OPCCLIENT

OPCSERVER

POWERFACTORY(OPC CLIENT)

Virtual commissioning = real application or final implementation tested in real-time and full scale with simulated signals

Page 5: PowerFactory API and Smart Grid Applications. Interfacing with

5

DIgSILENT Ibérica SL. 9

OPC – VIRTUAL COMMISSIONING

OPCCLIENT

OPCCLIENT

OPCCLIENT

OPCSERVER

POWERFACTORY(OPC CLIENT)

Virtual commissioning = real application or final implementation tested in real-time and full scale but with simulated signals

Communication PF – OPC server via external measurementblocks

DIgSILENT Ibérica SL. 10

OPC – VIRTUAL COMMISSIONING

OPC CLIENT

WIND FARM CENTRAL VOLTAGECONTROL

OPCSERVER

U, Q(PCC), Q(WT), WT status, etc.

POWERFACTORY(OPC CLIENT)

SIMULATED WIND FARM

U, Q(PCC), Q(WT), WT status, etc.

Example: Wind farm central voltage controller

Real/Implemented solution to be tested

Simulation

Page 6: PowerFactory API and Smart Grid Applications. Interfacing with

6

DIgSILENT Ibérica SL. 11

OPC – VIRTUAL COMMISSIONING

Example: Wind farm central voltage controller - implementation

DIgSILENT Ibérica SL. 12

INDEX

1. INTRODUCTION

2. OPC – VIRTUAL COMMISSIONING

3. MODBUS TCP

4. GOOGLE EARTH

5. NETWORK PLANNING

6. CONCLUSIONS

Page 7: PowerFactory API and Smart Grid Applications. Interfacing with

7

DIgSILENT Ibérica SL. 13

MODBUS TCP

POWERFACTORY

MODBUS TCP DSL

DPL

Digexdyn.dllDigexfun.dll

Digfundpl.dllMODBUS TCP

MASTER/SLAVE

MODBUS = Communication protocol

Read/write registers/coils

Implementation: C++ dll - digexdyn, digexfun, digfundpl

DIgSILENT Ibérica SL. 14

MODBUS TCP

POWERFACTORY

DSL

DPL

MASTER

SLAVE

Response P, Q, V

Request: read register

Application: read measurements P, Q, V and inject into simulation (load-flow and RMS)

Page 8: PowerFactory API and Smart Grid Applications. Interfacing with

8

DIgSILENT Ibérica SL. 15

MODBUS TCP

POWERFACTORY

DSL

DPL

MASTERSLAVE

Request: write to device binary output

Simulation output: shut down monitored device if necessary via Slave binary outputs

DIgSILENT Ibérica SL. 16

INDEX

1. INTRODUCTION

2. OPC – VIRTUAL COMMISSIONING

3. MODBUS TCP

4. GOOGLE EARTH

5. NETWORK PLANNING

6. CONCLUSIONS

Page 9: PowerFactory API and Smart Grid Applications. Interfacing with

9

DIgSILENT Ibérica SL. 17

GOOGLE EARTH

Export to Google EarthImport from Google Earth

POWERFACTORY

API APIKML FILES KML FILES

EXTERNAL APPLICATIONEMBEDDING GOOGLE

EARTH

DIgSILENT Ibérica SL. 18

GOOGLE EARTH

PowerFactory API

• Available with version 15.0• Necessary .lib in installation folder• C++ programming• Possibility .NET programming via

wrapper• !Compilation: 64bits or 32bits

Page 10: PowerFactory API and Smart Grid Applications. Interfacing with

10

DIgSILENT Ibérica SL. 19

GOOGLE EARTH

Export to Google Earth

POWERFACTORY

APIKML FILES

KML format not meant for electrical data • Use additional property fields• Define a format/properties to be

exported

From Version 15.0, Fields for GPS data of bus and lines are available

DIgSILENT Ibérica SL. 20

GOOGLE EARTH

Import from Google Earth

POWERFACTORY

APIKML FILES

KML format not meant for electrical data • Use additional property fields• Define a format/properties to be exported/imported

Page 11: PowerFactory API and Smart Grid Applications. Interfacing with

11

DIgSILENT Ibérica SL. 21

INDEX

1. INTRODUCTION

2. OPC – VIRTUAL COMMISSIONING

3. MODBUS TCP

4. GOOGLE EARTH

5. NETWORK PLANNING

6. CONCLUSIONS

DIgSILENT Ibérica SL. 22

NETWORK PLANNING

• GIS• SCADA – History• SCADA – Real time operation• Temperatures• Load/generation models• Smart meters• …

Large quantity of data available How to give them an additional value?

Page 12: PowerFactory API and Smart Grid Applications. Interfacing with

12

DIgSILENT Ibérica SL. 23

NETWORK PLANNING

• GIS• SCADA – History• SCADA – Real time operation• Temperatures• Load/generation models• Smart meters• …

Large quantity of data available How to give them an additional value?

• Identification of weak spots• Badly supplied customers• Post-event analysis (replay)• Control design• Studies ( future): integration of electric vehicle, distributed generation, etc.• Investments: techno-economical studies• …

DIgSILENT Ibérica SL. 24

NETWORK PLANNING

PowerFactory can interact with many systems and adds real value to smart grid data, not only in operation but also in network planning

INPUT DATABASE

POWERFACTORY

RESULT DATABASE

NETWORK OPERATION

CHARACTERISTICSSMART METERS

API API

… EXTERNALAPPLICATIONS

GIS

Page 13: PowerFactory API and Smart Grid Applications. Interfacing with

13

DIgSILENT Ibérica SL. 25

NETWORK PLANNING

API + digdplfun.dll new DPL instructions to read/write PowerFactoryobjects from/to external applications

POWERFACTORYExternal

application

API

Digdplfun.dll

DPL scripts

DIgSILENT Ibérica SL. 26

NETWORK PLANNING

New DPL instructions to import measured load characteristics, generation pattern, maneuvers, etc. from external data source

Having all this information in PowerFactory, it is possible to:• Generate operation scenarios• Write DPL scripts to spot problems• Write DPL scripts to study investments

… as far as your imagination drives you!

Page 14: PowerFactory API and Smart Grid Applications. Interfacing with

14

DIgSILENT Ibérica SL. 27

INDEX

1. INTRODUCTION

2. OPC – VIRTUAL COMMISSIONING

3. MODBUS TCP

4. GOOGLE EARTH

5. NETWORK PLANNING

6. CONCLUSIONS

DIgSILENT Ibérica SL. 28

CONCLUSIONS

PowerFactory capabilities can be extended way beyond the normal use of the

software:

• OPC allows connecting to your SCADA systems and using PowerFactory to

generate signals for the full scale system and/or import measurements into your

simulations.

• DLL (digexdyn, digexfun, digdplfun) allows building DSL and DPL functions to

directly communicate with devices using different protocols (Modbus, DNP3,

Ethercat, etc.).

• API allows modifying PowerFactory objects from your external applications and

sending data to external data repositories.

Smart Grids planning and event analysis are typical applications where you

can exploit the full potential of PowerFactory connectivity.