CN109542450A - Transformer station process layer intelligent assembly implementation method and device - Google Patents

Transformer station process layer intelligent assembly implementation method and device Download PDF

Info

Publication number
CN109542450A
CN109542450A CN201811325288.4A CN201811325288A CN109542450A CN 109542450 A CN109542450 A CN 109542450A CN 201811325288 A CN201811325288 A CN 201811325288A CN 109542450 A CN109542450 A CN 109542450A
Authority
CN
China
Prior art keywords
lua
intelligent assembly
file
configinfo
function
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.)
Granted
Application number
CN201811325288.4A
Other languages
Chinese (zh)
Other versions
CN109542450B (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
State Grid Henan Electric Power Co Ltd
Electric Power Research Institute of State Grid Henan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Henan Electric Power Co Ltd
Electric Power Research Institute of State Grid Henan Electric Power 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, State Grid Henan Electric Power Co Ltd, Electric Power Research Institute of State Grid Henan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201811325288.4A priority Critical patent/CN109542450B/en
Publication of CN109542450A publication Critical patent/CN109542450A/en
Application granted granted Critical
Publication of CN109542450B publication Critical patent/CN109542450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/37Compiler construction; Parser generation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses transformer station process layer intelligent assembly implementation method and devices, first according to process layer intelligent assembly functional requirement and workflow, establish multitask system framework;All kinds of intelligent assembly functional modules are decomposed and be abstracted, shared data structure and function call interface are defined;By the source code comprising intelligent assembly complete module and workflow, and the target system library that Lua source code or Lua source code generate, compiling connection generates executable file, the configinfo.lua script file of information and intelligent assembly concrete function defined function is extracted in cooperation containing the CID as derived from IED kit, realizes all kinds of intelligent assembly functions.The present invention is integrated into a file by Lua technology, by CID file needed for intelligent assembly operation and apparatus function configuration information, realizes the process layer intelligent assembly of different type function, enhances product applicability and reduces development cost, facilitates management and operation and maintenance.

Description

Transformer station process layer intelligent assembly implementation method and device
Technical field
The present invention relates to the technical field of intelligent substation more particularly to transformer station process layer intelligent assembly realization sides Method and device.
Background technique
Process layer is the main feature that intelligent substation is different from conventional substation, and relative to traditional substation, intelligence becomes The process layer in power station can effectively solve the disadvantages of signal easily interferes, high-low pressure can not be effectively isolated and data cannot share.Process Layer is made of primary equipment and intelligent assembly, and intelligent assembly mainly has combining unit and intelligent terminal, is completed substation's electric energy and is surveyed The correlation functions such as amount, control, status monitoring.Specifically, decomposition function demand, is converted into equipment development demand and completes data It receives or acquires, parsed to obtain port configuration, SV and GOOSE data set, process layer according to substation configuration description file SCL Networking mode (point-to-point/network) etc., according to meet IEC61850-9-1/2, GOOSE consensus standard encode and pass through optical fiber with Too net sends the real-time electrical data of substation (including equipment self-diagnosis operation warning information etc.), and there are also hits for back-up needs It is synchronous according to interpolation, synchronize punctual and device interface and show.
Process layer intelligent assembly has combining unit, intelligent terminal, closes intelligence one three classes at present.Implementation method is summarized as basis Function classification, develops simple function executable file, and auxiliary file has through CID file, producer's definite value derived from IED configuration tool (or mapped file), or even there are also software and hardware configuration files for individual producers.It is not difficult to find out by analysis, at present these realization sides Method is first is that function is fixed and single, second is that function realizes that dependent file is more, management and operation and maintenance are inconvenient, increases operation error Probability.
Summary of the invention
For overcome the deficiencies in the prior art, it is real that the purpose of the present invention is to provide transformer station process layer intelligent assemblies Existing method and device, it is intended to which the process layer intelligent assembly its implementation function of solving the prior art is fixed and single, and function is real The problem of existing dependent file is more, and management and operation and maintenance are inconvenient, increases operation error probability.
The purpose of the present invention is implemented with the following technical solutions:
A kind of transformer station process layer intelligent assembly implementation method, comprising:
Establishment step:
According to the functional requirement and workflow of process layer intelligent assembly, multitask system framework is established;
Analyzing step:
CID file derived from IED tool is parsed, in conjunction with the hardware configuration information of intelligent assembly, generates intelligent assembly operation Required configinfo.lua script file;
The configinfo.lua script file includes that CID file extraction information and intelligent assembly various functions function are fixed Justice;
Definition step:
Using configinfo.lua script file, each functional module of simultaneously abstract intelligence component is decomposed, each function is defined The shared data structure and function call interface of energy module;Functional module and workflow correspond;
Compilation step:
Intelligent assembly multitask and workflow requirement are decomposed, interrupt service routine is created, distributes task priority;
By the source code comprising each functional module and its workflow and Lua source code, compiling connection generates executable File;Alternatively,
The target system library that source code comprising each functional module and its workflow and Lua source code are generated, is compiled It translates connection and generates executable file;
The various functions that the executable file is used to that configinfo.lua script file to be cooperated to realize intelligent assembly.
On the basis of the above embodiments, it is preferred that the definition step, specifically:
Lua source code is compiled according to running environment;
Lua compiler and Lua translater are generated in the form of library file, are linked in target program, using in target program Lua interpreter parse and execute configinfo.lua script file;Alternatively, Lua source code is directly added to project work In journey file, target executable file is generated, executes configinfo.lua script file using target executable file;
According to the hardware configuration information of intelligent assembly, the definition of intelligent assembly various functions function, port configuration and work are obtained Make process, decomposes and each functional module of abstract intelligence component, the shared data structure and Lua, C for defining each functional module are handed over Mutual interface;
Using C and Lua shared data, the mutual calling technology of function, function is defined in configinfo.lua script file It can function;The power function for realizing intelligent assembly various functions.
On the basis of the above embodiments, it is preferred that the Lua interpreter using in target program is parsed and executed Before configinfo.lua script file, further includes:
Morphology, syntax check are carried out to configinfo.lua script file using the Lua compiler in target program, such as Fruit file is lost, is destroyed or there are mistakes, then carries out alarm prompt.
On the basis of above-mentioned any embodiment, it is preferred that the definition step, further includes:
In conjunction with the affiliated hardware space of each functional module of hardware characteristics reasonable distribution of intelligent assembly.
Or, it is preferred that the definition step, further includes:
If each functional module of intelligent assembly is variant for the definition of a certain power function, The power function is further defined in configinfo.lua script file.
Or, it is preferred that the various functions of the intelligent assembly include initialization, read data, synchronous interpolation, SV/ GOOSE encoding and decoding, Ethernet data send, synchronize it is one of punctual or a variety of.
A kind of transformer station process layer intelligent assembly realization device, comprising:
Module is established, is used for:
According to the functional requirement and workflow of process layer intelligent assembly, multitask system framework is established;
Parsing module is used for:
CID file derived from IED tool is parsed, in conjunction with the hardware configuration information of intelligent assembly, generates intelligent assembly operation Required configinfo.lua script file;
The configinfo.lua script file includes that CID file extraction information and intelligent assembly various functions function are fixed Justice;
Definition module is used for:
Using configinfo.lua script file, each functional module of simultaneously abstract intelligence component is decomposed, each function is defined The shared data structure and function call interface of energy module;Functional module and workflow correspond;
Collector is used for:
Intelligent assembly multitask and workflow requirement are decomposed, interrupt service routine is created, distributes task priority;
By the source code comprising each functional module and its workflow and Lua source code, compiling connection generates executable File;Alternatively,
The target system library that source code comprising each functional module and its workflow and Lua source code are generated, is compiled It translates connection and generates executable file;
The various functions that the executable file is used to that configinfo.lua script file to be cooperated to realize intelligent assembly.
On the basis of the above embodiments, it is preferred that the definition module is used for:
Lua source code is compiled according to running environment;
Lua compiler and Lua translater are generated in the form of library file, are linked in target program, using in target program Lua interpreter parse and execute configinfo.lua script file;Alternatively, Lua source code is directly added to project work In journey file, target executable file is generated, executes configinfo.lua script file using target executable file;
According to the hardware configuration information of intelligent assembly, the definition of intelligent assembly various functions function, port configuration and work are obtained Make process, decomposes and each functional module of abstract intelligence component, the shared data structure and Lua, C for defining each functional module are handed over Mutual interface;
Using C and Lua shared data, the mutual calling technology of function, function is defined in configinfo.lua script file It can function;The power function for realizing intelligent assembly various functions.
On the basis of the above embodiments, it is preferred that the definition module is also used to:
Morphology, syntax check are carried out to configinfo.lua script file using the Lua compiler in target program, such as Fruit file is lost, is destroyed or there are mistakes, then carries out alarm prompt.
On the basis of above-mentioned any embodiment, it is preferred that the various functions of the intelligent assembly include initialization, read Data, synchronous interpolation, SV/GOOSE encoding and decoding, Ethernet data send, it is one of punctual or a variety of to synchronize.
Compared with prior art, the beneficial effects of the present invention are:
The invention discloses transformer station process layer intelligent assembly implementation method and devices, first according to process layer intelligence Assembly function demand and workflow establish multitask system framework;All kinds of intelligent assembly functional modules are decomposed and be abstracted, are defined Shared data structure and function call interface;By the source code comprising intelligent assembly complete module and workflow and the source Lua generation Code or the target system library of Lua source code generation, compiling connection generate executable file, and cooperation contains to be exported by IED kit CID extract the configinfo.lua script file of information and intelligent assembly concrete function defined function, realize all kinds of intelligence Assembly function.The present invention is integrated CID file needed for intelligent assembly operation and apparatus function configuration information by Lua technology For a file, the process layer intelligent assembly of different type function is realized, enhance product applicability and reduce development cost, it is convenient Management and operation and maintenance.
The present invention has following advantages:
1, various process layer intelligent assembly function is able to achieve by change configinfo.lua script file. Configinfo.lua script file not only contains normal procedure intelligent assembly operating configuration parameter cid information, further comprises intelligence Component functionality function.In the case where hardware configuration meets functional requirement, executable file, which is explained, to be executed Configinfo.lua script file, obtains running configuration parameter and functional function definition, intelligent assembly are completed according to information The function of definition, to realize different type intelligent assembly.The technology is especially suitable for transformer station process layer intelligent assembly Test class equipment, corresponding intelligent assembly type functionality function is added in selection on the basis of exporting simulation objectives CID file, Different type simulation objectives intelligent assembly function can be realized.
2, it is easily managed and safeguards.By DSP and FPGA online programming technology, entire function realization relies only on two texts Part, one is general executable file, no matter to realize what kind of intelligent assembly, file is identical, there is no with Configinfo.lua script file matches error problem;I.e. configinfo.lua script file, this document are compared for another It is the mutation of CID file in normal procedure intelligent component, is that intelligent assembly runs indispensable file.
3, it is suitable for plurality of target system.Since Lua class C, Lua source code can the compiling link lifes in each type operating system At object library, it can also be directly appended to compiling in projects with source code form and generate target executable file.
4, easily extension and upgrading.The present invention is based on modularized designs, reduce the degree of coupling of project, and each function is one corresponding Abstract model (data structure and function) then initially sets up corresponding abstract model if necessary to Function Extension, secondly decomposes mould Corresponding functional subfunction is finally write in data type and interaction, organizational form in type.The exploitation that the present invention is conducive to project is imitated The maintenance of rate and later period, therefore follow-up function extension and upgrading essence are the increase and optimization of module type, quantity, are established new The abstract model of functional module can be realized easily.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples.
Fig. 1 shows a kind of process of transformer station process layer intelligent assembly implementation method provided in an embodiment of the present invention Schematic diagram;
Fig. 2 shows a kind of structures of transformer station process layer intelligent assembly realization device provided in an embodiment of the present invention Schematic diagram;
Fig. 3 shows a kind of hardware of transformer station process layer intelligent assembly realization device provided in an embodiment of the present invention Structural schematic diagram.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that not Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example.
Specific embodiment one
As shown in Figure 1, the embodiment of the invention provides a kind of transformer station process layer intelligent assembly implementation methods, including Following steps.
Establishment step S101:
According to the functional requirement and workflow of process layer intelligent assembly, multitask system framework is established.
Analyzing step S102:
CID file derived from IED tool is parsed, in conjunction with the hardware configuration information of intelligent assembly, generates intelligent assembly operation Required configinfo.lua script file;The configinfo.lua script file include CID file extract information and The definition of intelligent assembly various functions function.
Specifically, the CID file as derived from IED configuration tool can be parsed using DOM mode, first by Intelligent target group The entire CID file of part reads in the image that memory generates tree structure, generates some nodes with set membership;Then root The information model class of each element is established according to schema file, it later can be by each node mould corresponding with it on dom tree One-to-one relationship is established between plate class;According to the acquisition process layer intelligence such as keyword such as communication, dataset, input SV, GOOSE number of energy component publication, target MAC (Media Access Control) address, data set, the information such as mapping relations obtain intelligent assembly items function It can function definition;Extraction information is finally assigned to predefined variable, Table, generates configinfo.lua script file And it saves;
Due to intelligent assembly type can there are many, and same type intelligent assembly is again because of operating mode and function Demand is different and different.Such as combining unit, the Current Voltage analog quantity form that input terminal has accesses and collector digital quantity form Access point, output end has two kinds of output forms of Ethernet and FT3, no matter and output port quantity there are also differences.In order to realize Different types of intelligent assembly must be just adjusted accordingly in program realization.And if it is desired to being realized not in executable file Congenerous then needs to be enumerated according to variable different value, on the one hand increases code space, does not utilize program code to read, separately On the one hand it can also upgrade to program and maintenance is made troubles.
Definition step S103:
Using configinfo.lua script file, each functional module of simultaneously abstract intelligence component is decomposed, each function is defined The shared data structure and function call interface of energy module;Functional module and workflow correspond;For different types of Intelligent assembly or the different intelligent assembly of same type function, can be decomposed and be abstracted into several functional modules Combination, and define its shared data structure and function call interface for each functional module.Preferably, the definition step S103, if can also include: intelligent assembly each functional module it is variant for the definition of a certain power function, The power function is further defined in configinfo.lua script file.The advantage of doing so is that for each of intelligent assembly Functional module all uses the same power function, and situation discrepant for the definition of the same power function, can use The power function, such as the power function are further defined in configinfo.lua script file by functional module A tune Used time its be defined as ..., the power function by functional module B call when it is defined as ...;Simultaneously in executable file Definition data structure, such as readdata, writedata etc. realize data sharing and function phase using Lua and C interaction technique It mutually calls, can guarantee that the definition of each power function is not in equivocal situation, avoids that ambiguity occurs in this way.
Compilation step S104:
Intelligent assembly multitask and workflow requirement are decomposed, interrupt service routine is created, distributes task priority;
By the source code comprising each functional module and its workflow and Lua source code, compiling connection generates executable File;Alternatively,
The target system library that source code comprising each functional module and its workflow and Lua source code are generated, is compiled It translates connection and generates executable file;
The various functions that the executable file is used to that configinfo.lua script file to be cooperated to realize intelligent assembly.
The embodiment of the present invention according to process layer intelligent assembly functional requirement and workflow, establishes multitask system frame first Structure;All kinds of intelligent assembly functional modules are decomposed and be abstracted, shared data structure and function call interface are defined;It will include smart group The target system library that the source code and Lua source code or Lua source code of part complete module and workflow generate, compiling connect Executable file is delivered a child into, cooperation extracts information and intelligent assembly concrete function defined function containing the CID as derived from IED kit Configinfo.lua script file, realize all kinds of intelligent assembly functions.The embodiment of the present invention, will be intelligent by Lua technology CID file and apparatus function configuration information needed for assembly operating are integrated into a file, realize the process of different type function Layer intelligent assembly enhances product applicability and reduces development cost, facilitate management and operation and maintenance.
Preferably, the definition step S103, can be with specifically:
Lua source code is compiled according to running environment;In the embodiment of the present invention, running environment can for vxworks and/or Linux。
Lua compiler and Lua translater are generated in the form of library file, are linked in target program, using in target program Lua interpreter parse and execute configinfo.lua script file;Alternatively, Lua source code is directly added to project work In journey file, target executable file is generated, executes configinfo.lua script file using target executable file;
According to the hardware configuration information of intelligent assembly, the definition of intelligent assembly various functions function, port configuration and work are obtained Make process, decomposes and each functional module of abstract intelligence component, the shared data structure and Lua, C for defining each functional module are handed over Mutual interface;
Using C and Lua shared data, the mutual calling technology of function namely C and Lua interaction technique, Defined function function in configinfo.lua script file;The power function for realizing intelligent assembly various functions.
Preferably, the Lua interpreter using in target program parses and executes configinfo.lua script file Before, it can also include: that morphology, grammer are carried out to configinfo.lua script file using the Lua compiler in target program It checks, if file is lost, is destroyed or there are mistakes, carries out alarm prompt.The advantage of doing so is that can send out in time Morphology, grammer are lost, are destroyed or there is a situation where mistake in existing configinfo.lua script file, remind user timely Processing prevents these problems from influencing being normally carried out for subsequent step.Preferably, target program can be utilized after device powers on In Lua compiler carry out morphology, syntax check.
Preferably, the definition step S103 can also include: each function of hardware characteristics reasonable distribution in conjunction with intelligent assembly It can the affiliated hardware space of module.The advantage of doing so is that can be taken up space according to the hardware characteristics reasonable distribution of intelligent assembly. For example, hardware structure can be combined using ARM+DSP+FPGA, and ARM completes interface display, PERCOM peripheral communication in the embodiment of the present invention It is executed with the compiling of configinfo.lua script file, explanation and the encoding and decoding of process layer communication protocol, DSP completes real time data Processing, FPGA completes AD, DI sampling, collector and ethernet data acceptance and fiber optic Ethernet data are sent.
The embodiment of the present invention to the various functions of intelligent assembly without limitation, it is preferred that every function of the intelligent assembly Can include initialization, read data, synchronous interpolation, SV/GOOSE encoding and decoding, Ethernet data are sent, it is one of punctual to synchronize Or it is a variety of.The various functions that the executable file is used to that configinfo.lua script file to be cooperated to realize intelligent assembly, In, the function of being realized may include power-up initializing, interrupt service routine, interrupt class task and general task.It powers on just Beginningization mainly completes hardware initialization and the compiling of configinfo.lua script file, explains execution, the online volume of FPGA, DSP Journey;Interrupt service routine mainly completes clock synchronization, real time data reads (reception real-time sampling data) and writes and (send data to update); Interrupt class task mainly completes data filtering, and interpolation is synchronous, the encoding and decoding of SV, GOOSE, FT3 data;General task is mainly complete At human-computer interaction and PERCOM peripheral communication.
It is powered on and initialized other than completing conventional hardware initialization, further relates to three key technologies.
First is that the compiling and explanation of configinfo.lua script file execute.In order to achieve this goal, it can create Lua source code is added when building executable file project file, or the library lua of addition target operating environment (includes volume when link Translate device and interpreter);
Second is that FPGA online programming.FPGA is set as online programming operating mode by hardware selection line by the first step;The FPGA target operation program is compiled into .c file, such as fpagcode.c, is added to executable file project file by two steps In;Third step distributes FPGA online programming I O port line and configuration address in the corresponding FPGA configuration code of executable file, When powering on execution, fpgacode.c is downloaded to FPGA by executable code, real-time detection download state in downloading process, and error is then Alarm resets FPGA after the completion of downloading, it is made to be transferred to working condition;
Third is that DSP online programming.The first step, DSP write target operation program, after compiled, link according to function distribution Generate binary file;Second step prepares DSP online programming program (being equivalent to a bootloader), as powering on first The program of operation.After powering on, serial data is monitored, into upgrading wait state, the reception of target program is completed in communication, it is stored in, After programming successfully, run into main program.
Interrupt service routine mainly completes clock synchronization, real time data read-write.Wherein clock is synchronous, punctual and A/D data Sampling and all kinds of protocol datas are sended and received and can be completed by FPGA, are made full use of its accurate capability of sequential control and are enriched Peripheral programmable I/O interface characteristic, for realize data field read-write switching, using RAM ping-pong mechanism.FPGA will be received The memory space allocated in advance is written in all kinds of real time datas, and DSP is read by way of data/address bus and turns rear end interrupt class The real time data being ready for sending encoded is written FPGA by bus and distributed in advance according to hardware port by task processing, ARM Good memory space, sends after being read by FPGA according to timing requirements.
Interrupt class task mainly completes data filtering, and interpolation is synchronous, and the encoding and decoding of SV, GOOSE, FT3 data utilize DSP The ability of powerful processing Various types of data is by its completion.For the combining unit of analog quantity access, pass through the synchronous triggering conversion of A/D Technology completes the synchronized sampling of Current Voltage electrical quantity, and DSP carries out digital filtering processing, and root to the real-time sampling data of reading According to SV target protocol and testing accuracy requirement, corresponding digital quantity is converted.For the combining unit of Digital Access, either collector Or Ethernet data, DSP are required to progress protocol-decoding and obtain original real-time data, for current-voltage sampling value, also need Further interpolation synchronous quadratic resampling.The target protocol information that ARM is obtained according to parsing configinfo.lua script file Treated that real time data carries out SV, GOOSE coding with the DSP that is read by bus.
The main finishing man-machine interaction of general task and PERCOM peripheral communication.Human-computer interaction is in addition to according to configinfo.lua foot This document configuration information decides whether to enable outside Liquid Crystal Module driving, is not different with general device human-computer interaction.
The embodiment of the present invention is based on modularized design, and each function corresponds to an abstract model (data structure and function), In Function Extension, corresponding abstract model is initially set up, secondly data type and interaction, organizational form in decomposition model, most After write corresponding functional subfunction.Therefore follow-up function extension and upgrading essence are the increase and optimization of number of modules, are built The abstract model for having found new function module can be realized easily.
In above-mentioned specific embodiment one, transformer station process layer intelligent assembly implementation method is provided, therewith phase Corresponding, the application also provides transformer station process layer intelligent assembly realization device.Since Installation practice is substantially similar to Embodiment of the method, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.Described below Installation practice is only schematical.
Specific embodiment two
As shown in Fig. 2, the embodiment of the invention provides a kind of transformer station process layer intelligent assembly realization devices, including The following module being linked in sequence:
Module 201 is established, is used for:
According to the functional requirement and workflow of process layer intelligent assembly, multitask system framework is established;
Parsing module 202, is used for:
CID file derived from IED tool is parsed, in conjunction with the hardware configuration information of intelligent assembly, generates intelligent assembly operation Required configinfo.lua script file;
The configinfo.lua script file includes that CID file extraction information and intelligent assembly various functions function are fixed Justice;
Definition module 203, is used for:
Using configinfo.lua script file, each functional module of simultaneously abstract intelligence component is decomposed, each function is defined The shared data structure and function call interface of energy module;Functional module and workflow correspond;
Collector 204, is used for:
Intelligent assembly multitask and workflow requirement are decomposed, interrupt service routine is created, distributes task priority;
By the source code comprising each functional module and its workflow and Lua source code, compiling connection generates executable File;Alternatively,
The target system library that source code comprising each functional module and its workflow and Lua source code are generated, is compiled It translates connection and generates executable file;
The various functions that the executable file is used to that configinfo.lua script file to be cooperated to realize intelligent assembly.
The embodiment of the present invention according to process layer intelligent assembly functional requirement and workflow, establishes multitask system frame first Structure;All kinds of intelligent assembly functional modules are decomposed and be abstracted, shared data structure and function call interface are defined;It will include smart group The target system library that the source code and Lua source code or Lua source code of part complete module and workflow generate, compiling connect Executable file is delivered a child into, cooperation extracts information and intelligent assembly concrete function defined function containing the CID as derived from IED kit Configinfo.lua script file, realize all kinds of intelligent assembly functions.The embodiment of the present invention, will be intelligent by Lua technology CID file and apparatus function configuration information needed for assembly operating are integrated into a file, realize the process of different type function Layer intelligent assembly enhances product applicability and reduces development cost, facilitate management and operation and maintenance.
Preferably, the definition module 203 can be used for:
Lua source code is compiled according to running environment;
Lua compiler and Lua translater are generated in the form of library file, are linked in target program, using in target program Lua interpreter parse and execute configinfo.lua script file;Alternatively, Lua source code is directly added to project work In journey file, target executable file is generated, executes configinfo.lua script file using target executable file;
According to the hardware configuration information of intelligent assembly, the definition of intelligent assembly various functions function, port configuration and work are obtained Make process, decomposes and each functional module of abstract intelligence component, the shared data structure and Lua, C for defining each functional module are handed over Mutual interface;
Using C and Lua shared data, the mutual calling technology of function, function is defined in configinfo.lua script file It can function;The power function for realizing intelligent assembly various functions.
Preferably, the definition module 203 can be also used for:
Morphology, syntax check are carried out to configinfo.lua script file using the Lua compiler in target program, such as Fruit file is lost, is destroyed or there are mistakes, then carries out alarm prompt.
Preferably, the various functions of the intelligent assembly may include initialization, read data, synchronous interpolation, SV/ GOOSE encoding and decoding, Ethernet data send, synchronize it is one of punctual or a variety of.
As shown in figure 3, the hardware structure of the embodiment of the present invention can be combined using ARM+DSP+FPGA.ARM,DSP,FPGA It realizes respectively and establishes some or all of module 201, parsing module 202, definition module 203, collector 204 function.
ARM can use MCIMX6U7CVM08AC, have powerful processing capacity and higher collection using its four nuclear design Cheng Du reduces the composition expense of system, simplifies the design of circuit board, reduce power consumption.It is main to complete Execution, DSP, FPGA online programming, human-computer interaction and PERCOM peripheral communication are explained in the compiling of configinfo.lua script file.
DSP can use Texas Instruments (TI) TMS320C6416, utilize the data of its powerful various complexity Processing capacity mainly completes data processing (such as data filtering, interpolation is synchronous, synchronizes punctual, SV, GOOSE encoding and decoding).
FPGA can use the Spartan3 series of products XC3S1500 of Xilinx, include 1,500,000 system doors, and 32 Special multiplier, 4 digital dock management modules, logical resource is abundant, and the speed of service is fast.FPGA utilizes accurate timing control Ability, complete Ethernet media access control sublayer design, media access control sublayer and ethernet controller Interface design, ethernet data acceptance and It sends, the acquisition of A/D data, is completed at the same time high-speed serial data and receives transmission and switching value reception.
External clock crystal oscillator can use super low-power consumption DOCXO3627C, access FPGA, and generated newly not by FPGA It is supplied to ARM and DSP with clock frequency, to guarantee the consistency of whole system clock.A/D acquisition chip uses AD company 18 Position AD7690 chip, chip 1.5LSB INL, 400kSPS difference ADC, differential input characteristic have stronger anti-interference Energy.
The present invention is from using in purpose, and in efficiency, the viewpoints such as progressive and novelty are illustrated, the practical progress having Property, oneself meets the function that Patent Law is emphasized and promotes and use important document, and more than the present invention explanation and attached drawing are only of the invention Preferred embodiment and oneself, the present invention is not limited to this, therefore, it is all constructed with the present invention, device, wait the approximations, thunder such as levy With, i.e., all according to equivalent replacement made by present patent application range or modification etc., the patent application that should all belong to of the invention is protected Within the scope of shield.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase Mutually combination.Although present invention has been a degree of descriptions, it will be apparent that, in the item for not departing from the spirit and scope of the present invention Under part, the appropriate variation of each condition can be carried out.It is appreciated that the present invention is not limited to the embodiments, and it is attributed to right and wants The range asked comprising the equivalent replacement of each factor.It will be apparent to those skilled in the art that can as described above Various other corresponding changes and deformation are made in technical solution and design, and all these change and deformation is all answered Within this is belonged to the protection scope of the claims of the invention.

Claims (10)

1. a kind of transformer station process layer intelligent assembly implementation method characterized by comprising
Establishment step:
According to the functional requirement and workflow of process layer intelligent assembly, multitask system framework is established;
Analyzing step:
CID file derived from IED tool is parsed, in conjunction with the hardware configuration information of intelligent assembly, is generated needed for intelligent assembly operation Configinfo.lua script file;
The configinfo.lua script file includes that CID file extracts information and the definition of intelligent assembly various functions function;
Definition step:
Using configinfo.lua script file, each functional module of simultaneously abstract intelligence component is decomposed, each function mould is defined The shared data structure and function call interface of block;Functional module and workflow correspond;
Compilation step:
Intelligent assembly multitask and workflow requirement are decomposed, interrupt service routine is created, distributes task priority;
By the source code comprising each functional module and its workflow and Lua source code, compiling connection generates executable text Part;Alternatively,
The target system library that source code comprising each functional module and its workflow and Lua source code are generated, compiling connect Deliver a child into executable file;
The various functions that the executable file is used to that configinfo.lua script file to be cooperated to realize intelligent assembly.
2. transformer station process layer intelligent assembly implementation method according to claim 1, which is characterized in that the definition Step, specifically:
Lua source code is compiled according to running environment;
Lua compiler and Lua translater are generated in the form of library file, are linked in target program, are utilized the Lua in target program Interpreter parses and executes configinfo.lua script file;Alternatively, Lua source code is directly added to projects file In, target executable file is generated, executes configinfo.lua script file using target executable file;
According to the hardware configuration information of intelligent assembly, the definition of intelligent assembly various functions function, port configuration and workflow are obtained Journey, is decomposed and each functional module of abstract intelligence component, the shared data structure and Lua, C interaction for defining each functional module connect Mouthful;
Using C and Lua shared data, the mutual calling technology of function, the defined function letter in configinfo.lua script file Number;The power function for realizing intelligent assembly various functions.
3. transformer station process layer intelligent assembly implementation method according to claim 2, which is characterized in that the utilization Before Lua interpreter in target program parses and executes configinfo.lua script file, further includes:
Morphology, syntax check are carried out to configinfo.lua script file using the Lua compiler in target program, if literary Part is lost, is destroyed or there are mistakes, then carries out alarm prompt.
4. transformer station process layer intelligent assembly implementation method according to claim 1-3, which is characterized in that The definition step, further includes:
In conjunction with the affiliated hardware space of each functional module of hardware characteristics reasonable distribution of intelligent assembly.
5. transformer station process layer intelligent assembly implementation method according to claim 1-3, which is characterized in that The definition step, further includes:
If each functional module of intelligent assembly is variant for the definition of a certain power function, in configinfo.lua foot The power function is further defined in this document.
6. transformer station process layer intelligent assembly implementation method according to claim 1-3, which is characterized in that The various functions of the intelligent assembly include initialization, read data, synchronous interpolation, SV/GOOSE encoding and decoding, Ethernet data Send, synchronize it is one of punctual or a variety of.
7. a kind of transformer station process layer intelligent assembly realization device characterized by comprising
Module is established, is used for:
According to the functional requirement and workflow of process layer intelligent assembly, multitask system framework is established;
Parsing module is used for:
CID file derived from IED tool is parsed, in conjunction with the hardware configuration information of intelligent assembly, is generated needed for intelligent assembly operation Configinfo.lua script file;
The configinfo.lua script file includes that CID file extracts information and the definition of intelligent assembly various functions function;
Definition module is used for:
Using configinfo.lua script file, each functional module of simultaneously abstract intelligence component is decomposed, each function mould is defined The shared data structure and function call interface of block;Functional module and workflow correspond;
Collector is used for:
Intelligent assembly multitask and workflow requirement are decomposed, interrupt service routine is created, distributes task priority;
By the source code comprising each functional module and its workflow and Lua source code, compiling connection generates executable text Part;Alternatively,
The target system library that source code comprising each functional module and its workflow and Lua source code are generated, compiling connect Deliver a child into executable file;
The various functions that the executable file is used to that configinfo.lua script file to be cooperated to realize intelligent assembly.
8. transformer station process layer intelligent assembly realization device according to claim 7, which is characterized in that the definition Module is used for:
Lua source code is compiled according to running environment;
Lua compiler and Lua translater are generated in the form of library file, are linked in target program, are utilized the Lua in target program Interpreter parses and executes configinfo.lua script file;Alternatively, Lua source code is directly added to projects file In, target executable file is generated, executes configinfo.lua script file using target executable file;
According to the hardware configuration information of intelligent assembly, the definition of intelligent assembly various functions function, port configuration and workflow are obtained Journey, is decomposed and each functional module of abstract intelligence component, the shared data structure and Lua, C interaction for defining each functional module connect Mouthful;
Using C and Lua shared data, the mutual calling technology of function, the defined function letter in configinfo.lua script file Number;The power function for realizing intelligent assembly various functions.
9. transformer station process layer intelligent assembly realization device according to claim 8, which is characterized in that the definition Module is also used to:
Morphology, syntax check are carried out to configinfo.lua script file using the Lua compiler in target program, if literary Part is lost, is destroyed or there are mistakes, then carries out alarm prompt.
10. according to the described in any item transformer station process layer intelligent assembly realization devices of claim 7-9, feature exists In the various functions of the intelligent assembly include initialization, read data, synchronous interpolation, SV/GOOSE encoding and decoding, ether netting index It is one of punctual or a variety of according to sending, synchronizing.
CN201811325288.4A 2018-11-08 2018-11-08 Method and device for realizing intelligent component of process layer of intelligent substation Active CN109542450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811325288.4A CN109542450B (en) 2018-11-08 2018-11-08 Method and device for realizing intelligent component of process layer of intelligent substation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811325288.4A CN109542450B (en) 2018-11-08 2018-11-08 Method and device for realizing intelligent component of process layer of intelligent substation

Publications (2)

Publication Number Publication Date
CN109542450A true CN109542450A (en) 2019-03-29
CN109542450B CN109542450B (en) 2021-10-01

Family

ID=65844667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811325288.4A Active CN109542450B (en) 2018-11-08 2018-11-08 Method and device for realizing intelligent component of process layer of intelligent substation

Country Status (1)

Country Link
CN (1) CN109542450B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874215A (en) * 2019-11-19 2020-03-10 深圳市宜居云科技有限公司 Drive control method and system for electric appliance or electric equipment
CN111061233A (en) * 2019-12-10 2020-04-24 北京慧虹远航科技有限公司 Design method and device for industrial control system and storage medium
CN111124417A (en) * 2019-12-10 2020-05-08 北京慧虹远航科技有限公司 Industrial control program compiling method and device, computer equipment and storage medium
CN112015528A (en) * 2020-07-21 2020-12-01 中国科学院西安光学精密机械研究所 Industrial control system software control flow construction and analysis method
CN112256247A (en) * 2020-10-09 2021-01-22 北京字跳网络技术有限公司 Dependency processing method and device for module assembly, computer equipment and storage medium
CN115344243A (en) * 2022-10-17 2022-11-15 中邮消费金融有限公司 Component packaging method and system of X6 flow chart

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080234872A1 (en) * 2007-03-22 2008-09-25 Abb Research Ltd. Validating a standardized configuration description
CN103631627A (en) * 2013-12-13 2014-03-12 国家电网公司 Equipment configuration method, configuration-file generation method and configuration system
CN105354220A (en) * 2015-09-29 2016-02-24 国网福建省电力有限公司 Application method for IED user customized configuration file of intelligent transformer substation
US20160269230A1 (en) * 2015-03-10 2016-09-15 Honeywell International Inc. Method and apparatus for optimizing memory utilization in gateway of process control and automation system
CN106371869A (en) * 2016-08-29 2017-02-01 西电通用电气自动化有限公司 Realizing method for IEC61850 configuration software of compartment equipment of intelligent substation
US20170185431A1 (en) * 2015-02-03 2017-06-29 Baidu Online Network Technology (Beijing) Co., Ltd . Method and apparatus for dynamically implementing application function
CN106953749A (en) * 2017-03-03 2017-07-14 中国南方电网有限责任公司 A kind of transformer station process layer network method of real-time
CN107038050A (en) * 2017-04-25 2017-08-11 合肥充盈信息科技有限公司 A kind of game configuration loading method based on virtual server
CN107589940A (en) * 2017-09-04 2018-01-16 祖龙(天津)科技有限公司 A kind of auxiliary system for developing software based on Lua scripts
CN107872441A (en) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 The method and apparatus for generating device attribute configuration file

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080234872A1 (en) * 2007-03-22 2008-09-25 Abb Research Ltd. Validating a standardized configuration description
CN103631627A (en) * 2013-12-13 2014-03-12 国家电网公司 Equipment configuration method, configuration-file generation method and configuration system
US20170185431A1 (en) * 2015-02-03 2017-06-29 Baidu Online Network Technology (Beijing) Co., Ltd . Method and apparatus for dynamically implementing application function
US20160269230A1 (en) * 2015-03-10 2016-09-15 Honeywell International Inc. Method and apparatus for optimizing memory utilization in gateway of process control and automation system
CN105354220A (en) * 2015-09-29 2016-02-24 国网福建省电力有限公司 Application method for IED user customized configuration file of intelligent transformer substation
CN106371869A (en) * 2016-08-29 2017-02-01 西电通用电气自动化有限公司 Realizing method for IEC61850 configuration software of compartment equipment of intelligent substation
CN107872441A (en) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 The method and apparatus for generating device attribute configuration file
CN106953749A (en) * 2017-03-03 2017-07-14 中国南方电网有限责任公司 A kind of transformer station process layer network method of real-time
CN107038050A (en) * 2017-04-25 2017-08-11 合肥充盈信息科技有限公司 A kind of game configuration loading method based on virtual server
CN107589940A (en) * 2017-09-04 2018-01-16 祖龙(天津)科技有限公司 A kind of auxiliary system for developing software based on Lua scripts

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CBBBC: "lua环境的配置以及c++调用lua的简单例子", 《HTTPS://BLOG.CSDN.NET/CBBBC/ARTICLE/DETAILS/45049399》 *
SYSTEMCORP ENERGY: "IEC 61850 ICD Designer 2", 《HTTPS://WWW.SYSTEMCORP.COM.AU/FILES/198-ICD-DESIGNER-2-USER-MANUAL.PDF》 *
杨晓旭: "基于LUA脚本语言的变电站辅助综合监控系统智能联动技术研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
赵国庆等: "智能变电站整体集成仿真测试研究", 《江苏电机工程》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874215A (en) * 2019-11-19 2020-03-10 深圳市宜居云科技有限公司 Drive control method and system for electric appliance or electric equipment
CN111061233A (en) * 2019-12-10 2020-04-24 北京慧虹远航科技有限公司 Design method and device for industrial control system and storage medium
CN111124417A (en) * 2019-12-10 2020-05-08 北京慧虹远航科技有限公司 Industrial control program compiling method and device, computer equipment and storage medium
CN111061233B (en) * 2019-12-10 2021-05-14 北京慧虹远航科技有限公司 Design method and device for industrial control system and storage medium
CN111124417B (en) * 2019-12-10 2023-03-03 西安智周深鉴信息科技集团有限公司 Industrial control program compiling method and device, computer equipment and storage medium
CN112015528A (en) * 2020-07-21 2020-12-01 中国科学院西安光学精密机械研究所 Industrial control system software control flow construction and analysis method
CN112015528B (en) * 2020-07-21 2022-12-27 中国科学院西安光学精密机械研究所 Industrial control system software control flow construction and analysis method
CN112256247A (en) * 2020-10-09 2021-01-22 北京字跳网络技术有限公司 Dependency processing method and device for module assembly, computer equipment and storage medium
CN112256247B (en) * 2020-10-09 2023-07-28 北京字跳网络技术有限公司 Method, device, computer equipment and storage medium for processing dependence of module assembly
CN115344243A (en) * 2022-10-17 2022-11-15 中邮消费金融有限公司 Component packaging method and system of X6 flow chart

Also Published As

Publication number Publication date
CN109542450B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN109542450A (en) Transformer station process layer intelligent assembly implementation method and device
CN110376959B (en) Soft PLC configuration software generation system based on FPGA platform
CN102929911B (en) Substation and scheduling station method of integrated modeling
Kramer et al. A constructive approach to the design of distributed systems
US7949947B2 (en) Method and system for bi-directional data conversion between IEC 61970 and IEC 61850
CN103197948B (en) A kind of electric intelligent devices communicating stipulations script resolving method
CN105577446B (en) Lightweight embedded network management system and method
CN110347383A (en) The front end development approach and device of cross-platform desktop application
CN106371869B (en) IEC61850 configuration software implementation method for bay level equipment of intelligent substation
CN102567022B (en) Frame-type design method of instrument system for spectrum analyzers
CN102270261A (en) Design method for intelligent transformer station model based on CAD (Computer-Aided Design) graph and model integration
CN101458633B (en) Method for accessing host program by script program, and system and apparatus thereof
CN113051040A (en) Remote distributed joint simulation method in different places
CN106709143A (en) VFTO batch simulation analysis method and system based on ATP automatic modeling
CN102023859B (en) Digital development environment-oriented software integration method with reliability, maintainability and supportability
CN102929681A (en) Frame code automatic generating method of virtual test distributed type object model
CN106934105B (en) Stable control closed loop simulation system based on RTDS
CN103942092A (en) HLA co-simulation method supporting LabView graphical programming
CN113904946A (en) Communication simulation interrupt control method and system
CN116414436A (en) Compatible unified development platform development method, device, medium and equipment
CN102750183B (en) Numerical simulation open-type application program interface of electric power system
CN109001985B (en) Photovoltaic power station modeling method and device based on codes
CN103577563A (en) Substation model migrating method
CN110750258A (en) Reusable monitoring software design method based on XML
CN115081395B (en) Kubernetes-based visual form and YAML bidirectional conversion method and device

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