CN107783760B - Visual development method for protection device based on functional component - Google Patents

Visual development method for protection device based on functional component Download PDF

Info

Publication number
CN107783760B
CN107783760B CN201711091380.4A CN201711091380A CN107783760B CN 107783760 B CN107783760 B CN 107783760B CN 201711091380 A CN201711091380 A CN 201711091380A CN 107783760 B CN107783760 B CN 107783760B
Authority
CN
China
Prior art keywords
component
functional
code
identification code
codes
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
CN201711091380.4A
Other languages
Chinese (zh)
Other versions
CN107783760A (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.)
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
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 State Grid Corp of China SGCC, Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201711091380.4A priority Critical patent/CN107783760B/en
Publication of CN107783760A publication Critical patent/CN107783760A/en
Application granted granted Critical
Publication of CN107783760B publication Critical patent/CN107783760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The invention relates to a visual development method of a protection device based on a functional component, and belongs to the technical field of computer software development. According to the invention, each protection function is designed into an independent functional component, the unique identification code of the functional component is determined through the sub-module identification code in the component, and when the functional component is multiplexed, the functional component identification code is used for checking so as to ensure the correctness in multiplexing and transplanting, thereby greatly reducing the workload of design and development, realizing the test-free and maintenance-free protection function, improving the debugging efficiency and further shortening the product development period.

Description

Visual development method for protection device based on functional component
Technical Field
The invention relates to a visual development method of a protection device based on a functional component, and belongs to the technical field of computer software development.
Background
In the process of visual development of a relay protection program, a plurality of protection functions of different protection objects need to be frequently reused and transplanted across platforms, but at present, when a plurality of protection objects use the same protection function, the protection functions need to be repeatedly developed, data association errors caused by artificial reasons in the process also lack an effective verification mode, correctness and uniqueness of data and graphic codes of the protection functions which are reused and transplanted cannot be guaranteed, a large amount of design and debugging work is needed, the product development period is long, and maintenance is difficult. For example, patent application publication No. CN104834527A discloses a modeling display method for machine group data in an electric power system, which introduces modeling ideas through establishing a basic graphic library, performs modeling display operations on machine group data in the electric power system, extracts key information from mass data, and displays the key information in an imaging modeling manner that is easy to understand by people. Although the method reduces the workload of system developers and effectively reuses the graphic components, due to the lack of necessary verification during component multiplexing and transplanting, the correctness and uniqueness of multiplexed and transplanted data and graphic codes cannot be guaranteed, and long-time debugging is required.
Disclosure of Invention
The invention aims to provide a visual development method of a protection device based on a functional component, which aims to solve the problem that the product development time is long due to the lack of necessary verification during component reuse and transplantation in the current component development process.
The invention provides a visual development method of a protection device based on a functional component for solving the technical problems, which comprises the following twelve technical schemes, namely: the development method comprises the following steps:
1) dividing a protection program into independent functional components according to different implementation functions, wherein each functional component consists of an input bus, an output bus and a visual logic package, the input bus and the output bus are used for realizing the transmission of external parameters required by the component, and the visual logic package comprises component internal configuration information, component graphic codes and component element code packages;
2) and determining a functional component identification code according to the component configuration information, the component graph code and the component element code in each functional component, so that the functional component can be verified during multiplexing or transplanting.
According to the invention, each protection function is designed into an independent functional component, the unique identification code of the functional component is determined through the sub-module identification code in the component, and when the functional component is multiplexed, the functional component identification code is used for checking so as to ensure the correctness in multiplexing and transplanting, thereby greatly reducing the workload of design and development, realizing the test-free and maintenance-free protection function, improving the debugging efficiency and further shortening the product development period.
Scheme II: on the basis of the first scheme, the internal parameter configuration of the component comprises data, states and fixed values required by the component; the visual graphic logic is built by basic elements; the component element code package employs a base element code.
The third scheme is as follows: on the basis of the first scheme, the process of determining the functional component identification code in the step 2) is as follows:
A. collecting nodes, sub-areas, connection information, component configuration information and component element codes according to a current component working area;
B. judging whether the component configuration information, the component graph codes and the component element codes are changed or not, and if the component configuration information, the component graph codes or the component element codes are changed, recalculating the corresponding identification codes;
C. and synthesizing the obtained calculation data identification code of the component configuration information, the component pattern code identification code and the component element code identification code to obtain the functional component identification code.
The invention excludes the appearance and representation data when calculating the functional component identification code, and adopts the function of automatically checking the difference to ensure the uniqueness.
And the scheme is as follows: on the basis of the third scheme, the verification content of the component identification code comprises component internal data, a component graphic code and a component element code.
Scheme five, six, seven, eight: on the basis of the schemes one, two, three and four, the method further comprises the step of storing each tested functional component.
Scheme nine, ten, eleven, twelve: on the basis of the fifth, sixth, seventh and eighth schemes, when each functional component is stored, a network server is used for storing and/or storing local files, and the network server is used for storing the functional components to a component library server and storing the functional components as composite components; the local file store is used for storing the functional components to files with set formats.
Drawings
FIG. 1 is a diagram of an example design of an "overcurrent I stage" functional component of an example package of components of the present invention;
FIG. 2 is an exemplary diagram of an example "over-current I-segment" configuration information for an example of component internal configuration information of the present invention;
FIG. 3 is a flow chart of component identification calculation of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings.
Component reuse refers to the use of previously built and fully encapsulated components in the application development process, which are typically self-contained and encapsulate only a complete concept. Unlike code reuse, component reuse does not need to look at source code. According to the invention, by means of the idea of component reuse, each protection function in relay protection is designed into a functional component, and each functional component comprises an input bus, an output bus and a visual logic package; and determining an identification code for identifying the uniqueness of the functional component as the identification code of the functional component according to the change data of the functional component, verifying the functional component in the reuse process through the determined identification code of the functional component, ensuring the uniqueness and correctness in the process of transplanting and reusing the protection functional component, realizing multi-interval reuse of the same protection function, and avoiding testing and maintenance. The method comprises the following specific steps:
1. and (5) building a component.
Packaging the basic element into different functional components according to different protection objects and protection functions; external parameters required by each component are realized by transmitting an input bus and an output bus; the visual logic package comprises three parts, namely component internal parameter configuration, visual graphic logic and component element code package, wherein the component internal parameter configuration comprises data, states, fixed values and the like required by the components, the visual graphic logic is built by basic elements, and the component element code is integrated with the basic element codes used by the component element code package.
For example, the overcurrent I-section protection is reconstructed according to three parts of an input bus, an output bus and a visual logic package, wherein the input bus and the output bus realize the transmission of external parameters such as voltage, current and state, and the visual logic package comprises two parts of component internal parameter configuration in fig. 1 and visual graphic logic in fig. 2.
2. And calculating the component identification code.
The built identification code only calculates the change data affecting the logic execution sequence, the internal data change of the component, the input bus and the output bus, excludes the appearance and representation data, has the function of automatically checking the difference to ensure the uniqueness, and the checking content of the component identification code comprises the internal data of the component, the graph code of the component and the component element code. The identification code can be calculated and viewed off-line during design development and viewed in real time during program operation.
The process is shown in fig. 3, in the component development process, component differences are automatically checked, the check range includes whether to add or delete a logical node and modify a connection line in the graphic logic of the component working area, the component configuration information includes two parts, namely, an external parameter and an internal parameter, the configuration information of the internal parameter of the component includes whether to modify internal data, state or fixed value of the component, whether to modify the data number or variable of an input bus and an output bus of the external parameter configuration information, and whether to modify a basic component code. And (4) collecting nodes, subareas, connection information, configuration information and element codes according to the current component working area, and calculating the component identification codes in real time to ensure the uniqueness of the components. The device displays the report on site and modifies the name of the report sent by the protocol, and the external representation is not included in the calculation of the component identification code.
For example, in fig. 1, the original identification code of the overcurrent i-section protection function component is 0xABCD, the identification code of the original visual pattern logic code is 0xCDEF, if the "low-voltage open" logic node is deleted in the visual pattern logic, the component detects that the visual logic code changes, then automatically recalculates the visual pattern identification code to be 0x1234, the component data identification code and the component element identification code are not recalculated, and the component resynthesizes the visual pattern identification code, the component data identification code and the component element identification code into a new component identification code: 0xAB 12. And if the associated variable names such as the A-phase current variable names in the external parameter input bus are modified by the original 'A-phase current' to 'Ia', the component identification code is not changed.
3. And storing the components.
After the functional component identification code is determined, the functional component can be stored in two modes of network server storage and local file storage; the network server stores the data to be stored in the element library server and exists as a composite element; in-place file storage, which may be used to store files to a format, supports local management of such composite elements.
The above embodiments are only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited thereby, and any modifications made on the basis of the technical scheme according to the technical idea of the present invention fall within the protection scope of the present invention.

Claims (5)

1. A visual development method for a protection device based on a functional component is characterized by comprising the following steps:
1) dividing a protection program into independent functional components according to different implementation functions, wherein each functional component consists of an input bus, an output bus and a visual logic package, the input bus and the output bus are used for realizing the transmission of external parameters required by the component, and the visual logic package comprises component internal configuration information, component graphic codes and component element code packages;
2) determining a functional component identification code according to component configuration information, component graphic codes and component element codes in each functional component, so that the functional component can be verified during multiplexing or transplanting;
the process of determining the functional component identification code in the step 2) is as follows:
A. collecting nodes, sub-areas, connection information, component configuration information and component element codes according to a current component working area;
B. judging whether the component configuration information, the component graph codes and the component element codes are changed or not, and if the component configuration information, the component graph codes or the component element codes are changed, recalculating the corresponding identification codes;
C. and synthesizing the obtained calculation data identification code of the component configuration information, the component pattern code identification code and the component element code identification code to obtain the functional component identification code.
2. The visual development method for the protection device based on the functional component as claimed in claim 1, wherein the internal configuration information of the component comprises data, state, and fixed value required by the component; the assembly graph code is built by a basic element; the component element code package employs a base element code.
3. The visual development method of the protection device based on the functional component as claimed in claim 1, wherein the verified content of the component identification code includes component internal data, component graphic code and component element code.
4. The visual development method for the protection device based on the functional components as claimed in any one of claims 1 to 3, characterized in that the method further comprises the step of storing each tested functional component.
5. The visual development method of the protection device based on the functional components as claimed in claim 4, characterized in that when storing, each functional component is stored by using a network server and/or local file storage, and the network server is used for storing the functional components to a component library server to exist as a composite component; the local file store is used for storing the functional components to files with set formats.
CN201711091380.4A 2017-11-08 2017-11-08 Visual development method for protection device based on functional component Active CN107783760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711091380.4A CN107783760B (en) 2017-11-08 2017-11-08 Visual development method for protection device based on functional component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711091380.4A CN107783760B (en) 2017-11-08 2017-11-08 Visual development method for protection device based on functional component

Publications (2)

Publication Number Publication Date
CN107783760A CN107783760A (en) 2018-03-09
CN107783760B true CN107783760B (en) 2020-10-27

Family

ID=61432998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711091380.4A Active CN107783760B (en) 2017-11-08 2017-11-08 Visual development method for protection device based on functional component

Country Status (1)

Country Link
CN (1) CN107783760B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765868B (en) * 2020-08-17 2023-08-08 北京沃东天骏信息技术有限公司 Service processing method and device
CN112860247B (en) * 2021-02-09 2023-11-28 恒安嘉新(北京)科技股份公司 Custom generation method, device, equipment and medium of model component

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765914A (en) * 2015-03-27 2015-07-08 国家电网公司 Logical configuration method of relay protecting device
CN106293735A (en) * 2016-08-09 2017-01-04 南京国电南自电网自动化有限公司 Protective relaying device object abstract method based on encapsulation technology
CN106886411A (en) * 2017-02-17 2017-06-23 南京国电南自电网自动化有限公司 A kind of protective relaying device logic figure collocation method based on QT
CN107220064A (en) * 2017-06-27 2017-09-29 华中科技大学 A kind of digital control system interface configuration development approach

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254668A1 (en) * 2012-03-23 2013-09-26 Rockwell Automation Technologies, Inc. Intelligent device-configurable icons

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765914A (en) * 2015-03-27 2015-07-08 国家电网公司 Logical configuration method of relay protecting device
CN106293735A (en) * 2016-08-09 2017-01-04 南京国电南自电网自动化有限公司 Protective relaying device object abstract method based on encapsulation technology
CN106886411A (en) * 2017-02-17 2017-06-23 南京国电南自电网自动化有限公司 A kind of protective relaying device logic figure collocation method based on QT
CN107220064A (en) * 2017-06-27 2017-09-29 华中科技大学 A kind of digital control system interface configuration development approach

Also Published As

Publication number Publication date
CN107783760A (en) 2018-03-09

Similar Documents

Publication Publication Date Title
US20150193558A1 (en) Method and device for generating engineering topology of digital substation
CN102043719B (en) Method for testing IEC61850 configuration description file
CN107506303A (en) Method, apparatus and system for automatic test
CN103955789A (en) Power supply path analyzing method based on integrated model for allocation
CN103646104A (en) Hard real-time fault diagnosis method and system
CN108519929B (en) CRC (cyclic redundancy check) method and device for bus protection configuration management and control of intelligent substation
CN107783760B (en) Visual development method for protection device based on functional component
CN105162251B (en) A kind of protective device modeling method suitable for protection information system applied analysis function
CN107171897A (en) A kind of interface test method and data-interface test system
CN105093017A (en) Integrated GOOSE tester of intelligent transformer station and test method of tester
CN105630563A (en) Dynamic model configuration method of relay protection device specification based on XML (Extensible Markup Language)
CN101303646B (en) Modeling method based on electric communication field capable of performing meta language
CN103441895B (en) A kind of automatization cipher machine test system and its method of work
CN104750468B (en) A kind of server-side topological data conversion method and conversion equipment
Ayello et al. Interoperability based on IEC 61850 standard: Systematic literature review, certification method proposal, and case study
CN106982140A (en) A kind of information flow emulation mode and system
CN113448590A (en) Method and device for quickly generating remote control injection data, computer equipment and medium
CN107122307B (en) Internet of things execution system
CN110855395B (en) Time synchronization monitoring and testing device and method
CN109343968B (en) Method and related device for acquiring data
CN109214055B (en) Formula-driven PSD-BPA card parameter checking method
CN113467852B (en) Configuration and verification method and system for inter-interval protection configuration file of intelligent substation
CN112580178B (en) Graph-model bidirectional verification method and device for energy management system
CN103647760A (en) Manufacturing message specification (MMS) communication platform of intelligent substation digital protection device and access method of manufacturing message specification (MMS) communication platform
Yang et al. Sysgrid: Iec 61850 and iec 61499 standard based engineering tool for smart grid automation design

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant