IEC 61850 Interface for Real Time Power System Simulation

IEC 61850 Interface for Real Time Power System Simulation

BULLETIN OF THE POLISH ACADEMY OF SCIENCES POWER SYSTEMS AND POWER ELECTRONICS TECHNICAL SCIENCES, Vol. 69(3), 2021, Article number: e137057 DOI: 10.24425/bpasts.2021.137057 IEC 61850 interface for real time power system simulation Karol KUREK* , Łukasz NOGAL, Ryszard KOWALIK, and Marcin JANUSZEWSKI Faculty of Electrical Engineering, Warsaw University of Technology, Pl. Politechniki 1, 00-661 Warszawa, Poland Abstract. Real time simulators of IEC 61850 compliant protection devices can be implemented without their analogue part, reducing costs and increasing versatility. Implementation of Sampled Values (SV) and GOOSE interfaces to Matlab/Simulink allows for interaction with protection relays in closed loop during power system simulation. Properly configured and synchronized Linux system with Real Time (RT) patch, can be used as a low latency run time environment for Matlab/Simulink generated model. The number of overruns during model execution using proposed SV and GOOSE interfaces with 50 µs step size is minimal. The paper discusses the implementation details and time synchronization methods of IEC 61850 real time simulator implemented in Matlab/Simulink that is built on top of run time environment shown in authors preliminary works and is the further development of them. Correct operation of the proposed solution is evaluated during the hardware-in-the- loop testing of ABB REL670 relay. Key words: implementation in real time; power system; protection relays testing; computer simulation; IEC 61850. 1. Introduction tory and Labview based implementation [6] and proprietary RSCAD. Real time simulators are mostly run on Windows or Digital Real Time Simulation (DRTS) of a power system aims Linux operating systems with some implementations using parts to model its behavior during transient states and corresponding based on proprietary solutions. current and voltage waveforms in time domain from specific Traditionally real time simulators use analog measurements nodes [1]. The simulation is done mainly in software by solv-e and binary signals to interface hardware under test. With the ing the equations of modeled power system. When part of the advancements in the field of digital substations, IEC 61850 simulated system is replaced by real hardware, the Hardware in interfaces used to generate SV data stream and GOOSE data- the Loop (HIL) simulation is done. The inclusion of additional grams are also becoming more common [7]. Commercially hardware under test is done by pulling measurement signals available simulators have successful, closed source imple- from the simulation to the device. Binary signals introduced mentations of such interfaces, evaluated in [8] and [9]. Such from the device to the online simulation, allows the tested implementation can be part of a simulation or be exported to device to affect simulation state. the external circuits dedicated to this task [8]. FPGA hardware Real time simulators have been evolving since 1991, when seems to be ideal for the task of IEC 61850 traffic processing, first commercial solution was introduced. Nowadays hardware because of minimum latency on both input and output. Such architecture used varies from specialized extension boards design is introduced in [10] and allows the generation of up to formed into racks, capable of parallel processing to nodes 16 concurrent SV streams. formed on the basis of multipurpose Intel CPUs [1]. Simulan- tion based on co-processing in FPGA based circuits, enables very small simulation steps, which is especially vital while 2. Related work simulating power electronics [2]. FPGA can be used to build the whole simulator or only the latency critical part of the sim- Implementations of Matlab/Simulink IEC 61850 interfaces ulation [3], which allows to achieve simulation steps as low as available commercially are closed software with no reports in 5 µs. The lowest single simulation step during power system the literature. Implementation of SV interfaces to Matlab/Sim- simulation, was noted in [4] by the simulator based solely on ulink known from literature, is presented [11, 12]. The imple- FPGA circuits – 24 ns. Another successful implementation in mentations lack GOOSE implementation and time synchroni- literature involves Raspberry PI platform [5] being an affordv- zation in simulation software that allows closed loop testing. able alternative. Matlab/Simulink is one of the most common simulation One of the most common simulation software is Matlab/ environments with the capability to execute its models in real Simulink Environment, that is used in one of the commercially time, therefore it was chosen to implement the interface to available real time simulators. Other alternatives are Powerfac- SV IEC 61850‒9-2 LE compliant stream as a s-function block. To allow the testing of protection in closed loop, GOOSE interface is implemented as well. Implementation is done in *e-mail: [email protected] C libiec61850 open-source library in Linux-RT environment. Manuscript submitted 2020-11-04, revised 2021-01-20, initially accepted Simulation program is compiled used Simulink-Coder and mod- for publication 2021-02-22, published in June 2021 ified ert-linux target [13]. Time synchronization technique of Bull. Pol. Acad. Sci. Tech. Sci. 69(3) 2021, e137057 1 © 2021 The Author(s). This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/). K. Kurek, Ł. Nogal, R. Kowalik, and M. Januszewski K. Kurek, Ł. Nogal, R. Kowalik, and M. Januszewski real time simulation, based on operating system IEEE 1588 v2 gramPrecision is compiled Time Protocol used Simulink-Coder (PTP) implementation and modified is proposed. ert-linux The toi1 these functions and its return values at C code level are seen i2 targetresulting [13 ].IEC Time 61850 synchronization interface is used technique in the ofsimulation real time of simu- high asData input Store and output signals inside the Simulink model. Read lation,voltage based power on line operating that allows system for IEEE hardware-in-the-loop 1588 v2 Precision testing Time SV generationi3 block implemented as a s-function is pre- Data Store send_samples_s Read1 Protocolof REL 670 (PTP) over implementation current protection. is proposed. The resulting IEC sented in Fig. 2. The purposeu1 of this block is to generate SV Data Store Read2 send_samples_s 61850 interface is used in the simulation of high voltage power sample stream with measurementu2 data from selected power sys- Data Store line that allows for hardware-in-the-loop testing of REL 670 tem point and send it toRead3 protection relay under test. Block has 6 u3 Data Store over3. IEC current 61850 protection. Interface implementation signals connected to its inputRead4 port – 3 phase currents and volt- ages that are pulled from simulated power system model from To allow two-way interaction between simulated power system chosen measuringFig. points.2. SV generation Those signals simulink represent block the samples 3.and IEC hardware 61850 under Interface test, measurements implementation in the form of SV mea- meant to be sent in an SV frame. Before being connected to surement stream and binary signals in the form of GOOSE mes- input port, sample values have to be conditioned to match data Tosages allow need two-way to be introduced interaction into between Matlab/Simulink simulated environment. power sys- formatto these specified functions in and IEC its 61850-9-2 return values LE – at measurements C code level are sentseen temThe andmechanisms hardware that under allow test, such measurements integration are in the Matlab form s-func of SV- asas primaryinput and currents output andsignals voltages inside expressed the Simulink as 1mA model. and 10mV measurementtions. S-functions stream are and the binary programming signals in interface the form ofthat GOOSE allows respectively.SV generation block implemented as a s-function is pre- messagesto introduce need user to bewritten introduced functions into into Matlab/Simulink Simulink environment environ- sented in Fig. 2. The purpose of this block is to generate SV ment.in the Theform mechanisms of custom blocks. that allow User such written integration code is are compiled Matlab sample stream with measurement data from selected power s-functions.using Matlab S-functions mex compiler are theand programming can be then imported interface into that al-the system point and send it to protection relay under test. Block lowssimulation to introduce as a new user function written block, functions that intohas inputs, Simulink outputs environ- and has 6 signals connected to its input port – 3 phase currents and mentinternal in theconfiguration form of custom parameters. blocks. User written code is com- voltages that are pulled from simulated power system model piledBeing using a Matlab programming mex compiler interface and means can be that then Simulink imported deliv into- from chosen measuring points. Those signals represent the sam- theers simulationa set of functions as a new that function are dedicated block, that to performing has inputs, specific outputs ples meant to be sent in an SV frame. Before being connected andtasks internal at specific configuration moments parameters.during execution of s-function block to input port, sample values have to be conditioned to match thatBeing is imported a programming into the interfacesimulation means model. that Simulation Simulink deliversprocess data format specified in IEC 61850-9-2 LE – measurements aof set a s-function of functions broken that are down dedicated to corresponding to performing C interface specific tasksfunc- are sent as primary currents and voltages expressed as 1mA attions specific is shown moments in Fig. during 1. execution of s-function block that is and 10 mV respectively. importedThe first into stage the simulation of the execution model. of Simulation s-function process is the ofinitial a s-- SV generationFig. block 2. SV generationallows the simulink user to blockset basic parameters functionization in broken mdlInitializeSizes down to corresponding and mdlInitializSampleTimes C interface functions isC for SV publisher in the form of block configuration parameters, shown in Fig 1.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us