CN103678785B - RTDS (real time digital system) custom component programming encapsulation method - Google Patents

RTDS (real time digital system) custom component programming encapsulation method Download PDF

Info

Publication number
CN103678785B
CN103678785B CN201310625623.3A CN201310625623A CN103678785B CN 103678785 B CN103678785 B CN 103678785B CN 201310625623 A CN201310625623 A CN 201310625623A CN 103678785 B CN103678785 B CN 103678785B
Authority
CN
China
Prior art keywords
rtds
simulation
program
control
self
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310625623.3A
Other languages
Chinese (zh)
Other versions
CN103678785A (en
Inventor
李亚萍
王定国
姚致清
王伟
马仪成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xuchang general testing & Research Institute Limited by Share Ltd
Original Assignee
XUCHANG KETOP ELECTRIC TESTING INSTITUTE
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XUCHANG KETOP ELECTRIC TESTING INSTITUTE filed Critical XUCHANG KETOP ELECTRIC TESTING INSTITUTE
Priority to CN201310625623.3A priority Critical patent/CN103678785B/en
Publication of CN103678785A publication Critical patent/CN103678785A/en
Application granted granted Critical
Publication of CN103678785B publication Critical patent/CN103678785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Abstract

The invention relates to an RTDS (real time digital system) custom component programming encapsulation method. Graphical configuration programming of various large-scale power system simulation control protection is performed to generate a custom component module applicable to RTDS simulation modeling. Simulation limit of Draft is broken through, RTDS data processing time is greatly shortened, and simulation efficiency of the RTDS is increased by nearly five times. On this basis, complete simulation of a primary system and a secondary system of large-scale power systems (such as a direct-current transmission system and an alternating-current/direct-current compound system) can be realized, and the problems of simulation bottlenecks such as RTDS simulation component limitation, control protection component sorting limitation and T1-Tn multiple level computation periods of direct-control transmission control protection simulation are solved.

Description

A kind of self-defined element programs method for packing of RTDS
Technical field
The present invention relates to a kind of self-defined element programs method for packing of RTDS.
Background technology
1992, in the world First power system all-digital real-time simulation device RTDS ground by Canadian Manitoba direct currents Study carefully center to succeed in developing.Relative to physical simulation, RTDS has and is not limited, ensured by original system scale and structural complexity The safety of studied and pilot system, with good economy and convenience, can be used for designing system in future performance The advantages of prediction, and which is in the complication system accuracy of simulation of the direct current transportation containing AC system and FACTS devices, The accreditation for being verified and extensively sending out.Through the development of several years, RTDS became electric system simulation and has studied requisite work One of tool.
And it is increasingly sophisticated with power system, the electric system simulation scale based on RTDS is also increasing, RTDS from The power system component of band and control element can not meet different simulation study personnel to large-scale electrical power system control The particular demands of protection simulation, are that this RTDS company has provided the user self-defined platform in more than RTDS2.00 versions CBuilder, the compatible major part C language form of this platform, user can as needed using its various component models of exploitation and reality When simulated program, provide possibility for the complicated mass computing program of exploitation.The element developed by CBuilder can be divided into electric power System element and control element, as long as can be as good as with RTDS component library models, freely can be adjusted by compiling, self-definition model With and strict real time execution.These are all the extensive control protection for having particular demands(Such as DC control protection etc.)Emulation carry The possibility realized is supplied.
Currently for the emulation of the extensive control protection of this particular demands(Such as direct current transportation control protection)Have following Two kinds of solutions, both solutions are all based on the self-defined element translation and compiling environments of CBuilder of RTDS to realize.
1)Directly one being write with self-defined element development platform CBuilder that RTDS is provided the user, there is complicated control The self-defined element of defencive function processed(As module is controlled in direct current pole).
2)Extensive control protection simulation is write with self-defined element development platform CBuilder that RTDS is provided the user Each sub-function module, then RTDS provide Draft simulation modeling instruments in carry out Logical Configuration, build it is in large scale, The complicated control protection simulation model of function.
Although above two scheme can realize that some have the extensive control protection of particular demands imitative to a certain extent Very, but which all has certain defect and bottleneck during realization rate and realization.
The first scheme is feasible in theory, but there is many limitation and inconvenience during practical operation Property:1)The CBuilder programming language environment that RTDS is provided is a species C language, although compatible most of C programmer lattice Formula, but its C compiler is unable to body support structure, pointer and function call, and this makes which big in terms of scale simulated program is write It is big limited, and inconvenience is brought to writing for large scale emulation program.2)The CBuilder programming language rings that RTDS is provided The mode that border pure code is write, therefore there is programmed readability not in the large scale emulation program using CBuilder programmed environments By force, the congenital deficiency such as transplantability difference and program debugging inconvenience.
Second scheme, is limited due to being carried simulation modeling instrument Draft by RTDS, as control protection element is imitated The expansion of true scale is impracticable.The simulation modeling instrument Draft that RTDS is carried, when the original of the phantom on 1 Rack When number of packages amount is more than 5000, the compilation speed of phantom drastically will slow down, and the time for compiling once is substantially left at 30 minutes The right side, or even often there is the situation of model compilation failure in Jing.Only by taking direct current transportation control protection simulation as an example, typically in a Rack In need to emulate pole control, stand and control and the program such as protect, number of elements is up to more than 6000 individual even more many, thus frequently can go out The situation of existing model compilation failure, the huge inconvenience that the compiling and operation to phantom all brings.
The content of the invention
It is an object of the invention to provide a kind of self-defined element programs method for packing of RTDS, self-defined to solve current RTDS It is caused to phantom to realize that element programs encapsulation is all based on the self-defined element translation and compiling environments of CBuilder of RTDS Compiling and operation bring the problem of very big inconvenience.
The present invention provides a kind of self-defined element programs method for packing of RTDS for solving above-mentioned technical problem, the method Step is as follows:
1)Basic functional components block according to needed for specific demand is write;
2)The fundamental functional modules write are controlled into relay protective scheme functional configuration on a large scale;
3)By extensive control protect configuration program generate the RTDS that can directly use in the Draft modeling tools of RTDS from Define element;
4)Simulation modeling is carried out using system element that component module and RTDS carry and control element is automatically generated, to big Scale domination protection carries out simulation study.
The step 1)Middle basic functional components block write method is as follows:
A. defined function module title and functional block description;
B. input pin and output pin and types of variables are defined;
C. generation module code skeleton, writes block code;
D. the basic functional components block that completes will be write and is stored in fundamental functional modules storehouse.
The step 2)In extensive control relay protective scheme functional configuration generating process it is as follows;
A. set up a Logical Configuration engineering, and the control defence program that emulated is carried out point by logic function program bag Page;
B. determine the input and output of control protection, generate the input and output pin of the self-defined elements of RTDS;
C. control relay protective scheme functional configuration;
D. intelligent sequencing and program checkout are carried out to relay protective scheme configuration, is positioned where going wrong to program.
The invention has the beneficial effects as follows:The present invention carries out various large-scale electrical power system controls by friendly software interface The graphical configuration programming of protection simulation, and generate the self-defined component module suitable for RTDS simulation modelings.The present invention breaks through The emulation limitation of Draft, and RTDS data processing times are substantially reduced, the simulation efficiency for improving RTDS is nearly 5 times, in this base On plinth, the present invention can realize large-scale electrical power system(Such as DC transmission system, alternating current-direct current combined hybrid system)Primary system and two Subsystem complete simulation, is greatly expanded the simulation capacity of RTDS, solution on the basis of the primary system emulation that RTDS is carried RTDS emulation elements of having determined are limited, control protection element sequence is limited and many of the T1~Tn of direct current transportation control protection simulation The problems such as emulation bottleneck such as level calculation cycle.
Description of the drawings
Fig. 1 is the FB(flow block) of the self-defined element programs method for packing of RTDS of the present invention;
Fig. 2 is the schematic diagram of the input addition of fundamental functional modules three in the embodiment of the present invention;
Fig. 3 is zero-sequencedirectional protection configuration program figure in the embodiment of the present invention;
Fig. 4 is the self-defined component module schematic diagrams of RTDS generated in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings the specific embodiment of the present invention is further described.
For adapting to increasingly sophisticated power system Research Requirements, for particular requirement, large-scale electrical power system control protection RTDS emulation(Such as direct current transportation controls protection simulation etc.)Increasingly paid attention to by electric system simulation personnel.This It is bright, it is proposed that a kind of method of the self-defined element programs encapsulation of RTDS, easily and flexibly can be entered by friendly software interface The various large-scale electrical power systems of row control the graphical configuration programming of protection simulation, and automatically generate suitable for RTDS simulation modelings Self-defined component module.General flow chart is as shown in figure 1, specific process is as follows:
1. basic functional components block is write(Little element is write)
One function is complicated, and electric power in large scale completely controls protection simulation program, is by substantial amounts of simple base Plinth function element block(I.e. little member block)What configuration was realized, the realization of the such as various control functions of direct current transportation pole control system needs to adopt Egf block(Sample), logical operation module(AND、OR), proportional plus integral control module(PICH), mathematics operation module(ADD、 SUB、MUL、DIV), delays time to control module(PDF、PDE), monostable trigger module(MOF), filter module(IIR2、MF32), lock Phase ring module(TGSY), frequency tracking module(FNX)Deng 86 basic functional components blocks.Therefore, carrying out extensive control guarantor Before shield configuration, first required basic functional components block will be write according to particular demands.
Now with simple three input additions(ADD3)Illustratively basic functional components block as a example by basic functional components block Write method:
The first step:Defined function block title(ADD3)And functional block description(Three input additions);
Second step:Define input pin(x1、x2、x3)And output pin(y1)And types of variables(double);
One can now be automatically generated with defined function block title, functional block description(Three input additions), input pin (x1、x2、x3)And output pin(y1)Three input additions(ADD3)Base components block, as shown in Figure 2:
3rd step:Generation module code skeleton, writes block code.Automatic code generating framework is as follows:
4th step:These are write the basic functional components block for completing and is stored in fundamental functional modules storehouse.
2 are controlled relay protective scheme functional configuration on a large scale using basic functional components block
There is the basic functional components block of particular demands, it is necessary to complex control is carried out using these basic functional components blocks The VIS simulation of defencive function.One complicated control defencive function generally has substantial amounts of logic function program bag composition, As control simulated program in DC engineering pole includes CC_C1 program bags altogether(Analog input and output is realized, control difference is calculated, control Device processed is selected, Converter controller, the function such as trigger setting), CC_T2 program bags(Protection input, locking, ESOF orders are closed Ring controls defencive function, the function such as controller and triggering restriction), CC_T3 program bags(Communicate with P3, unblock order, current margins The functions such as compensation), CC_T4 program bags(The functions such as preparation unblock, current margin compensation, trigger pulse enable)Etc. a large amount of programs Bag.Therefore, it can different logic function program bag point during extensive control defence program logic function configuration Not in different Logical Configuration program pages(Page1, Page2, Page3, Page4 etc.)In carry out configuration to strengthen Logical Configuration journey The readability of sequence.
Illustrate the program circuit of extensive control relay protective scheme functional configuration below by taking simple zero-sequencedirectional protection as an example, Programmed logic is as shown in Figure 3:
The first step is to set up a Logical Configuration engineering, and to the control defence program that emulated by logic function program bag Carry out paging.Zero-sequencedirectional protection program is fairly simple, can just complete in a program page, therefore only builds a program page Page1;
Second step is to determine the input and output of control protection, and input and output defined in here step can automatically generate RTDS certainly Define the input and output pin of element.Zero-sequence current protection we define 5 inputs(IA, IB, IC and ID, T1), six outputs (3I0, C0_1,3I0.abs and TRIP0, TRIP1, TRIP2), wherein IA, IB, IC are the electric current inputs of protection, and ID and T1 is to protect The definite value input of shield, TRIP2 is the outlet of protection, and 3I0, C0_1,3I0.abs and TRIP0, TRIP1 are the centres in program Variable, any intermediate variable of program can be drawn, and this also provides the facility of maximum for the links debugging of program, greatly Reduce greatly the debugging difficulty of program.
3rd step is control relay protective scheme functional configuration, by taking zero-sequencedirectional protection as an example, can be divided mainly into two parts, one It is divided into calculating zero-sequence current, another part is action logic, specific procedure is shown in Fig. 3.
4th step is intelligent sequencing, program checkout, and this step is eliminated loaded down with trivial details manual collated using automated intelligent sequence Journey, and the program checkouts such as input and output, variable naming, the ground that the program of being automatically positioned goes wrong is carried out to Logical Configuration program Side, so far, extensive control relay protective scheme functional configuration is just completed.
3 generate the self-defined elements of RTDS
Configuration program is protected to automatically generate the RTDS that can directly use in the Draft modeling tools of RTDS extensive control Self-defined element(Element includes graphic file * .def and code file * .h, * .c), component module is as shown in Figure 4.
4 applications automatically generate the system element that component module and RTDS carry and control element and carry out simulation modeling, to big Scale domination protection carries out simulation study, so far, realizes programming and RTDS automatic components to extensive control defence program Automatically generate.
The programming process of the present invention is flexible, and program debugging is convenient, completes the big element of a large amount of little elements to Encapsulation, in the Draft modeling tools of RTDS, whole logic function is realized only by a big element, is greatly reduced Draft modelings and the difficulty of model compilation.The present invention specially increased scheduling week on the basis of the encapsulation process of other softwares The simulation of phase(For the emulation of the multi-level calculating cycle of direct-current power transmission control protection system)Sort with page automatic intelligent, especially The automatic intelligent sort method of special disposal feedback is which increased, additionally, the present invention breaches the emulation limitation of Draft, and RTDS data processing times are substantially reduced, only 5 times of the simulation efficiency of RTDS is improved, RTDS can be real after present invention encapsulation Existing large-scale electrical power system(Such as DC transmission system, exchange combined hybrid system etc.)The complete simulation of primary system and electrical secondary system, The simulation capacity of RTDS is greatly expanded on the basis of the primary system emulation that RTDS is carried, and solves RTDS emulation elements Many level calculation cycles of T1 Tn of restriction, control protection element sequence restriction and direct current transportation control protection simulation etc. imitate The problems such as true bottleneck.

Claims (2)

1. the self-defined element programs method for packing of a kind of RTDS, it is characterised in that as follows the step of the method:
1) the basic functional components block according to needed for specific demand is write;
2) fundamental functional modules write are controlled into relay protective scheme functional configuration on a large scale;
3) configuration program is protected to generate the RTDS that can directly use in the Draft modeling tools of RTDS extensive control self-defined Element;
4) application automatically generates system element that component module and RTDS carry and control element and carries out simulation modeling, to extensive Control protection carries out simulation study;
Step 2) in extensive control relay protective scheme functional configuration generating process it is as follows:
A. a Logical Configuration engineering is set up, and the control defence program to being emulated carries out paging by logic function program bag;
B. determine the input and output of control protection, generate the input and output pin of the self-defined elements of RTDS;
C. control relay protective scheme functional configuration;
D. intelligent sequencing and program checkout are carried out to relay protective scheme configuration, is positioned where going wrong to program.
2. the self-defined element programs method for packing of RTDS according to claim 1, it is characterised in that the step 1) in base Plinth function element block write method is as follows:
A. defined function module title and functional block description;
B. input pin and output pin and types of variables are defined;
C. generation module code skeleton, writes block code;
D. the basic functional components block that completes will be write and is stored in fundamental functional modules storehouse.
CN201310625623.3A 2013-11-30 2013-11-30 RTDS (real time digital system) custom component programming encapsulation method Active CN103678785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310625623.3A CN103678785B (en) 2013-11-30 2013-11-30 RTDS (real time digital system) custom component programming encapsulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310625623.3A CN103678785B (en) 2013-11-30 2013-11-30 RTDS (real time digital system) custom component programming encapsulation method

Publications (2)

Publication Number Publication Date
CN103678785A CN103678785A (en) 2014-03-26
CN103678785B true CN103678785B (en) 2017-03-22

Family

ID=50316321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310625623.3A Active CN103678785B (en) 2013-11-30 2013-11-30 RTDS (real time digital system) custom component programming encapsulation method

Country Status (1)

Country Link
CN (1) CN103678785B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123423A (en) * 2014-08-05 2014-10-29 中铁电气化局集团有限公司 Bottom layer optimization method for digital model under tractive power supply system BS frame
CN105094951A (en) * 2015-08-11 2015-11-25 国网宁夏电力公司 Virtual protection real-time simulation method
CN106528082A (en) * 2016-09-27 2017-03-22 北京广利核系统工程有限公司 FPGA (Field Programmable Gate Array)-based graphical configuration method and device
CN107038028B (en) * 2017-03-24 2020-09-04 中国南方电网有限责任公司电网技术研究中心 Multithreading real-time simulation method of RTDS custom element
CN107168099A (en) * 2017-05-24 2017-09-15 中国南方电网有限责任公司超高压输电公司检修试验中心 Flexible DC power transmission all-digital real-time simulation device based on RTDS
CN107247595A (en) * 2017-06-14 2017-10-13 广东电网有限责任公司江门供电局 The database of element defines method in a kind of graphic programming
CN108846211A (en) * 2018-06-19 2018-11-20 南方电网科学研究院有限责任公司 A kind of method and apparatus of the DC control defencive function module modeling based on Matlab
CN111062140B (en) * 2019-12-24 2024-03-19 广东电网有限责任公司 Real-time digital simulation modeling method and device for power system and simulation test system
US11921145B1 (en) 2020-10-12 2024-03-05 Regents Of The University Of Minnesota Electrical emulator system
CN114201165A (en) * 2021-12-17 2022-03-18 北京世冠金洋科技发展有限公司 Method and device for constructing simulation model

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346670A (en) * 2011-09-22 2012-02-08 江苏方天电力技术有限公司 Intelligent sorting system for graphic logic configuration tool module in transformer substation
CN103354025A (en) * 2013-06-19 2013-10-16 许昌开普电器检测研究院 RTDS data transmission device and method based on serial communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009120190A1 (en) * 2008-03-26 2009-10-01 The Tokyo Electric Power Company, Incorporated Stable equilibrium point (sep) calculation apparatus of power system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346670A (en) * 2011-09-22 2012-02-08 江苏方天电力技术有限公司 Intelligent sorting system for graphic logic configuration tool module in transformer substation
CN103354025A (en) * 2013-06-19 2013-10-16 许昌开普电器检测研究院 RTDS data transmission device and method based on serial communication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于RTDS的数字化变电站测试系统的研究;周巍;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20101015(第10期);第51-52页第6.3.2节 *

Also Published As

Publication number Publication date
CN103678785A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103678785B (en) RTDS (real time digital system) custom component programming encapsulation method
Bastian et al. Master for co-simulation using FMI
Rodríguez-Andina et al. Advanced features and industrial applications of FPGAs—A review
US9652213B2 (en) Global optimization and verification of cyber-physical systems using floating point math functionality on a system with heterogeneous hardware components
CN104391692B (en) For reading and writing the face-objected programming method of PSD BPA data files
Pohlmann et al. Generating functional mockup units from software specifications
Patil et al. Formal Verification of IEC61499 Function Blocks with Abstract State Machines and SMV--Modelling
CN104657142A (en) CCFD (China Computational Fluid Dynamics) system based on OSGi (Open Service Gateway Initiative) technology
CN106844900B (en) Method for setting up electromagnetic transient simulation system
Caldognetto et al. Digital controller development methodology based on real-time simulations with LabVIEW FPGAc hardware-software toolset
Yoo et al. A behavior-preserving translation from FBD design to C implementation for reactor protection system software
Sahami et al. Making a dynamic interaction between two power system analysis software
Duggirala et al. Tutorial: Software tools for hybrid systems verification, transformation, and synthesis: C2E2, HyST, and TuLiP
Khaitan et al. TDPSS: a scalable time domain power system simulator for dynamic security assessment
Willeke A preCICE-FMI Runner to couple controller models to PDEs
Popov et al. Features of Heterogeneous Dynamic Systems
Carmichael et al. Coupled transport/chemistry calculations on the massively parallel processor computer
Saitaxmadovich et al. Visualization of events and systems in MatLAB system
Ba-Razzouk et al. Simulink based simulations of power electronic systems
Guo et al. Framework design of the CFETR PCS simulation verification platform
Lubkeman et al. Object-oriented programming for power engineering education
Vinogradov et al. Software Development for Dump Truck EMT Control System Simulation
Lamberský et al. Benchmarking the performance of a dsPic controller programed with automatically generated code
Kinsy et al. MARTHA: Architecture for control and emulation of power electronics and smart grid systems
Mohamed et al. Reconfigurable and Heterogeneous Computing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Xuchang City, Henan Province, located at the intersection of 461000 Avenue and Suntech Wei Wu

Patentee after: XUCHANG KETOP DETECTION TECHNOLOGY CO., LTD.

Address before: No. 1706 Xuchang City, Henan province 461000 XJ Avenue

Patentee before: Xuchang Ketop Electric Testing Institute

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Xuchang City, Henan Province, located at the intersection of 461000 Avenue and Suntech Wei Wu

Patentee after: Xuchang general testing & Research Institute Limited by Share Ltd

Address before: Xuchang City, Henan Province, located at the intersection of 461000 Avenue and Suntech Wei Wu

Patentee before: XUCHANG KETOP DETECTION TECHNOLOGY CO., LTD.