Documente Academic
Documente Profesional
Documente Cultură
OF TECHNOLOGY
Reza Eldrich
Almas, Maxime, Gudrun, Luigi, Francisco, Vedran
2
Outline
• SmarTS Lab – Arch. and Implementation
• OSS Tools for Synchrophasor Application Development
• S3DK & BabelFish (IEEE C37.118.2 Toolkit and Client(s) for Labview)
• Khorjin (IEC 61850-90-5 Traffic Generator / Client)
• Conclusions
3
Platform for developing WAMPAC Applications
4
Architecture post 2012
ECS
BabelFish
Most Important SW
Technologies Developed
Khorjin
S3DK
M. S. Almas, M. Baudette, L. Vanfretti, S. L⊘vlund and J. O. Gjerde, "Synchrophasor network, laboratory and software applications
developed in the STRONg2rid project," 2014 IEEE PES General Meeting | Conference & Exposition, National Harbor, MD, 2014, pp.
1-5. doi: 10.1109/PESGM.2014.6938835 5
Our Implementation
6
OSS TOOLS
S3DK, BABELFISH AND KHORJIN
(PROTOCOL PARSERS AND APP DEV. TOOLS)
BFv1
BabelFish
Synchrophasor
Parsers + Tool kit BFE
S3DK
OSS
Tools Synchrophasor and
IEC 61850-90-5 Khorjin
Parser/Traffic Generator
7
Motivation
A bridge to take the next step in the “last mile” in PMU App Development
Data in IEEE C37.118 Protocol
PMU 1
Interfaces
Real-time data locked
into vendor specific using standard
PMU 2 software system protocols and a
Communication
PDC flexible
Network
development
Historical Data in
Proprietary Database environment are
needed
PMU n
0.8
0.6
0.4
-0.2
as
Substation Clock
-0.4
-0.6
-1
0 2 4 6 8 10 12 14
Synchrophasors
9
IEEE Std. C37.118.2 :
Synchrophasor Data Transfer for Power Systems
Underlying Protocol Info. Actual Phasor Info. In Frame
Application Layer Protocol
that uses TCP/UDP over IP for
network communication
Total number of bytes in Second of century (SOC) counts Measured values that are to be transmitted/received by
the frame including CHK the number of seconds that have the PMU/PCD . The measurements can be phasors,
occured since January 1, 1970 frequency, rate of change of frequency, analog, digital
etc.
SYNC FRAMESIZE IDCODE SOC FRAC SEC DATA 1 DATA 2 DATA N CHK
(2 byte) (2 byte) (2 byte) (4 byte) (4 byte) (2/4/8 byte) (2/4/8 byte) (2/4/8 byte) (2 byte)
All frames start with Identifies unit which is Fraction of a second (3byte) Time Quality Flas (1 byte) All frames terminate
SYNC which provides sending or receiving with CHK which is 2
24 bit integer which is 8 bit time quality flag that byte CRC-CCIT.
synchronization and message. It is identification
actual fraction of second determines quality of time
identifies the type of number of the PMU / PDC
count being reported i.e. 10
messge i.e. data, assigned by user
maximum time error as
configuration, header or
determined by PMU clock
command
SmarTS Lab OSS Tools Evolution
BabelFishV1 S3DK BabelFish Engine Khorjin
(LabView & C++) (LabView & C++) (LabView Only) (C++)
NamesofPMUs Mapping
Elements
PMU_DA 61850-90-5
TA_PACK Module
• Real-time reading from • Developed entirely in
PMU/PDC (DLL) • Client/Server LabView. • Focus on Performance
• Interfacing with LabView Architecture • Only requires IP • Not necessary to be user
via ActiveX (minimum • Multi-Threading address, Port number friendly
delay) • LabView VI/API and Device ID of the • Gateway for IEC
• LabView presentation • Calls C++ Methods PMU/PDC stream transition
layer • Toolbox-like • Potentially applicable • Executes on embedded
functions for NI cRIO systems with low
Why only Labview? requirements
Why Khorjin?
Derive Requirements for Embedded Computers
Support for COTS Embedded Computers
11
Development: 2011 - 2013 Development: 2014 – 2016 …
SmarTS Lab OSS Tools Comparison
BabelFish BabelFish V1 S3DK Khorjin
OSS Engine (LabView and C++) (LabView (C++)
Feature (Labview Only) and C++)
Core C37.118.2 C37.118.2 Parser C37.118.2 C37.118.2 and
Functionality Parser Parser IEC 61850-90-5
Operating Windows Windows Windows Windows, Linux,
System VXworks
Platform Labview 2012 or Labview 2012, C++, LV, C++ GNU C Compiler
newer .Net, Active X, VS
Support Only NI LabView Anything
Embedded support (in principle)
User
Friendliness
Skills LV Basics LabView, C++ Expert LabView (+) C++ Expert
Executes PC PC PC PC, Embedded
Performance and Functionalities
12
Friendliness and Programming Skills
BabelFish Engine (BFE)
(Graphical User Interface)
IV I
III II
13
S3DK – LabView API, UI and Tools
Graphical User Interfaces
GUI Communication Configuration
Development Tooling
Many blocks to
access and handle
RT data
14
S3DK LabVIEW
Library
Khorjin’s Functionalities
16
Khorjin’s Gateway Architecture
18
Integration of OSS Tools in
ECS
Khorjin Smar
Khorjin
t
19
Wide-Area Near-Real-Time
Monitoring Applications
(1) Monitoring & Visualization (2) Mobile Apps (3) Inter-Area Oscillation Assessment
(1)-(2) M. S. Almas, et al, "Synchrophasor network, laboratory and software applications developed in the STRONg2rid project," 2014 IEEE PES General Meeting | Conference & Exposition, National Harbor, MD, 2014, pp. 1-5. doi: 10.1109/PESGM.2014.6938835
(3) V. S. Perić, M. Baudette, L. Vanfretti, J. O. Gjerde and S. Løvlund, "Implementation and testing of a real-time mode estimation algorithm using ambient PMU data,"Power Systems Conference (PSC), 2014 Clemson University, Clemson, SC, 2014, pp. 1-5.
doi: 10.1109/PSC.2014.6808116
(4) M. Baudette et al., "Validating a real-time PMU-based application for monitoring of sub-synchronous wind farm oscillations," Innovative Smart Grid Technologies Conference (ISGT), 2014 IEEE PES, Washington, DC, 2014, pp. 1-5.
doi: 10.1109/ISGT.2014.6816444
(5) J. Lavenius and L. Vanfretti, “Real-Time Voltage Stability Monitoring using PMUs”, Workshop on Resiliency for Power Networks of the Future, May 8th 2015. Online: http://www.eps.ee.kth.se/personal/vanfretti/events/stint-capes-resiliency-
2015/07_JanLav_Statnett.pdf
(6) A. Bidadfar, H. Hooshyar, M. Monadi, L. Vanfretti, Decoupled Voltage Stability Assessment of Distribution Networks using Synchrophasors,” IEEE PES General Meeting 2016, Boston, MA, USA. Pre-print: link.
20
Real-Time Control Applications
S3DK is executed on a PC with a
non real-time operating system =>
Non-deterministic delay S3DK
Khorjin NI-cRIO
Remotely run VI
Real-Time Software VI Real-Time Software VI Core FPGA Software VI
Core FPGA Software VI
•• Runs on a PC. • Runs on the real-time processor
Runs on the real-time processor of the cRIO. • Runs on the FPGA
• Runs on the FPGA
•• S3DK used to unwrap PDC of the cRIO.
Khorjin used to unwrap PDC stream. • The load control and SVC
• The load control and SVC control
stream. • Manages the signal selection control implemented.
• Input signal selected implemented.
Control applications (S3DK vs Khorjin)
S3DK is executed on a PC with a
non real-time operating system =>
Non-deterministic delay S3DK NI-cRIO
Khorjin NI-cRIO
Remotely run VI
Real-Time Software VI Real-Time Software VI Core FPGA Software VI
Core FPGA Software VI
•• Runs on a PC. • Runs on the real-time processor
Runs on the real-time processor of the cRIO. • Runs on the FPGA
• Runs on the FPGA
•• S3DK used to unwrap PDC of the cRIO.
Khorjin used to unwrap PDC stream. • The load control and SVC
• The load control and SVC control
stream. • Manages the signal selection control implemented.
• Input signal selected implemented.
Power Transfer
Area 1 Area 1 to Area 2 Area 2
Results
900 MVA 900 MVA 220 Km Parallel 900 MVA 900 MVA
20 kV / 230 kV Bus1 Transmission Lines Bus2 20 kV / 230 kV
ΔV#$%
10 Km 25 Km
G1 25 Km 10 Km G3
SVC
Hardware prototype
900 MVA Local
Loads G4
G2 967 MW 900 MVA
100 MVAR (Inductive) 20 kV / 230 kV 900 MVA
controllers tested:
900 MVA -387 MVAR (Capacitive) Load Local 1767 MW
20 kV / 230 kV Control Load Loads 100 MVAR (Inductive)
Modulation -537 MVAR (Capacitive)
Conclusion
S3DK is good for beginners.
Problem: runs on PC which
adds to the latency.
Solution: Khorjin, in princible
can run on any platform.
Allows you to perform unwrap
Scenario: 5% change in Vref of G1
the PMU stream on the
controller platform.
Repositories Currently Available at GitHub
• S3DK: https://github.com/SmarTS-Lab-Parapluie/S3DK
• BabelFish: https://github.com/SmarTS-Lab-Parapluie/BabelFish
• Khorjin: Will be available at GitHub end of 2016.
L. Vanfretti, V. H. Aarstrand, M. S. Almas, V. S. Perić and J. O. Gjerde, "A software development toolkit for real-time synchrophasor
applications," PowerTech (POWERTECH), 2013 IEEE Grenoble, Grenoble, 2013, pp. 1-6.
doi: 10.1109/PTC.2013.6652191
L. Vanfretti, I. A. Khatib and M. S. Almas, "Real-time data mediation for synchrophasor application development compliant with IEEE
C37.118.2," Innovative Smart Grid Technologies Conference (ISGT), 2015 IEEE Power & Energy Society, Washington, DC, 2015, pp. 1-5.
doi: 10.1109/ISGT.2015.7131910
L. Vanfretti, M.S. Almas and M. Baudette, “BabelFish – Tools for IEEE C37.118.2-compliant Real-Time Synchrophasor Data Mediation,” SoftwareX,
submitted, June 2016.
S.R. Firouzi, L. Vanfretti, A. Ruiz-Alvarez, F. Mahmood, H. Hooshyar, I. Cairo, “An IEC 61850-90-5 Gateway for IEEE C37.118.2 Synchrophasor Data
Transfer,” IEEE PES General Meeting 2016, Boston, MA, USA. Pre-print: link.
S.R. Firouzi, L. Vanfretti, A. Ruiz-Alvarez, H. Hooshyar and F. Mahmood, “Interpretation and Implementation of IEC 61850-90-5 Routed-Sampled
Value and Routed-GOOSE Protocols for IEEE C37.118.2 Compliant Wide-Area Synchrophasor Data Transfer,” Electric Power Systems Research. March
2016. Submitted. August 2016. First Revision.
G.M. Jonsdottir, E. Rebello, S.R. Firouzi, M.S. Almas, M. Baudette and L. Vanfretti, “Audur – Templates for Custom Synchrophasor-Based Wide-Area
Control System Implementations,” SoftwareX, in preparation, 2016.
25
Other Contributions to Open Science: RaPId and OpenIPSL
Now Available as OSS!
27
Thank you!
• Questions?
• Our group’s website:
• https://www.kth.se/en/ees/omskolan
/organisation/avdelningar/epe/resear
ch/smart-transmission-systems-
laboratory-smarts-lab-1.627203
28