Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of FTU controller configuration method, apparatus and system, electronics to set
It is standby, to simplify the configuration process of FTU controller, the workload of developer is reduced, to improve working efficiency.
In a first aspect, the embodiment of the invention provides a kind of FTU controller configuration methods, comprising: obtain and controlled with above-mentioned FTU
The corresponding modular configuration diagram of the objective function of device processed;Target corresponding with above-mentioned objective function is generated according to above-mentioned modular configuration diagram
Computer program;Above-mentioned target computer program is sent to above-mentioned FTU controller, so that above-mentioned FTU controller passes through load
Above-mentioned target computer program is run to realize above-mentioned objective function.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein root
Target computer program corresponding with above-mentioned objective function, this method further include: by above-mentioned mould are generated according to above-mentioned modular configuration diagram
Block configuration diagram is converted into the corresponding descriptive computer language of figure, obtains target computer program.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein on
Stating modular configuration diagram includes the relation information between multiple configuration modules and above-mentioned multiple configuration modules, and above-mentioned configuration module includes
Input module, comparison module, control input module, logic module, time delay module and output module.
Second aspect, the embodiment of the present invention also provide a kind of FTU controller configuration device, comprising:
Module is obtained, for obtaining modular configuration diagram corresponding with the objective function of above-mentioned FTU controller;
Generation module, for generating the corresponding target computer program of above-mentioned objective function according to above-mentioned modular configuration diagram;
Sending module, for above-mentioned target computer program to be sent to above-mentioned FTU controller, so that upper FTU control
Device realizes above-mentioned objective function by the load operating target computer program.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein on
The generation module for stating FTU controller configuration device is specifically used for:
Above-mentioned modular configuration diagram is converted into the corresponding descriptive computer language of figure, obtains target computer program.
The third aspect, the embodiment of the present invention also provide a kind of FTU controller configuration system, including such as above-mentioned second aspect or
Device and FTU controller described in its first possible embodiment, above-mentioned FTU controller are connect with described device.
In conjunction with the third aspect, the embodiment of the invention provides the first possible embodiments of the third aspect, wherein on
Stating FTU controller includes central processor CPU, telemetering amount input interface, intake interface, the amount of outputing interface, memory, modulus
Converter ADC, Ethernet interface, RS232/485 interface and Debug debug printing interface;Above-mentioned telemetering amount input interface passes through
Above-mentioned ADC is connect with above-mentioned CPU, above-mentioned intake interface, the above-mentioned amount of outputing interface, above-mentioned memory, above-mentioned Ethernet interface,
Above-mentioned RS232/485 interface and above-mentioned Debug debugging printing interface are connect with above-mentioned CPU.
In conjunction with the first possible embodiment of the third aspect, the embodiment of the invention provides second of the third aspect
Possible embodiment, wherein above-mentioned CPU is collection Digital Signal Processing DSP unit, floating point calculator FPU unit double-core
CPU。
In conjunction with the first possible embodiment of the third aspect, the embodiment of the invention provides the third of the third aspect
Possible embodiment, wherein above-mentioned memory includes FLASH memory and FRAM memory.
Fourth aspect, the embodiment of the present invention also provide a kind of FTU controller configuration electronic equipment, including memory, processing
Device is stored with the computer program that can be run on above-mentioned processor in above-mentioned memory, which executes the computer journey
Method described in above-mentioned first aspect or its any possible embodiment is realized when sequence.
The embodiment of the present invention bring it is following the utility model has the advantages that
In the embodiment of the present invention, modular configuration diagram corresponding with the objective function of FTU controller is obtained;Matched according to the module
It sets figure and generates target computer program corresponding with objective function;The target computer program is sent to FTU controller, so that
FTU controller realizes objective function by the load operating target computer program.Function is being carried out to FTU controller in this way
When configuration, does not need developer and directly write complicated computer program, therefore FTU controller provided in an embodiment of the present invention
Configuration method, apparatus and system, electronic equipment simplify the configuration process of FTU controller, reduce the work of developer
Amount, to improve work efficiency.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification and attached drawing
Specifically noted structure is achieved and obtained.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Current various examination criterias and each power supply company are very big to FTU controller function demand differenceization, it is therefore desirable to FTU
Controller developer develops the hardware circuit of different editions according to different functional requirements, then modifies computer program, opens
Real-time multi-task operating system matched with hardware is issued to meet customer need, but this development scheme increases to developer
Add hard work amount, is based on this, a kind of FTU controller configuration method provided in an embodiment of the present invention, apparatus and system, electricity
Sub- equipment can simplify the configuration process of FTU controller, reduce the workload of developer, to improve working efficiency.
To be configured to a kind of FTU controller disclosed in the embodiment of the present invention first convenient for understanding the present embodiment
Method describes in detail.
The embodiment of the invention provides a kind of FTU controller configuration method, this method be can be, but not limited to by configuration software
It executes.Referring to Fig. 1, method includes the following steps:
Step S102 obtains modular configuration diagram corresponding with the objective function of FTU controller.
Specifically, objective function includes realizing normal monitoring and fault identification, isolation and the non-faulting section of distribution line
The functions such as restore electricity;Modular configuration diagram can be the group that can be realized specific function obtained in such a way that module is built
State.Such as user can build multiple configuration modules by configuration software, the mould of accomplished overload warning function
Block configuration diagram.
Step S104 generates target computer program corresponding with above-mentioned objective function according to above-mentioned modular configuration diagram.
In some possible embodiments, the process of step S104 is as follows: above-mentioned modular configuration diagram being converted into corresponding
The descriptive computer language of figure, obtains target computer program.
Above-mentioned target computer program is sent to above-mentioned FTU controller by step S106, so that FTU controller is by adding
The carrying row target computer program realizes objective function.
In the embodiment of the present invention, modular configuration diagram corresponding with the objective function of FTU controller is obtained;Matched according to the module
It sets figure and generates target computer program corresponding with objective function;The target computer program is sent to FTU controller, so that
FTU controller realizes objective function by the load operating target computer program.Function is being carried out to FTU controller in this way
When configuration, does not need developer and directly write complicated computer program, therefore FTU controller provided in an embodiment of the present invention
Configuration method simplifies the configuration process of FTU controller, reduces the workload of developer, to improve work efficiency.
Fig. 2 is a kind of function execution flow chart of modular configuration diagram provided in an embodiment of the present invention, as shown in Fig. 2, above-mentioned
Modular configuration diagram includes the relation information between multiple configuration modules and multiple configuration modules, configuration module include input module,
Comparison module, control input module, logic module, time delay module and output module.
Optionally, the input terminal of above-mentioned input module output end and comparison module connects, comparison module output end and control
Input module output end is connect with the input terminal of logic module respectively, and the output end of logic module and the input terminal of time delay module connect
It connects, the output end of time delay module and the input terminal of output module connect;Alternatively, the input of input module output end and comparison module
End connection, comparison module output end and control input module output end are connect with the input terminal of logic module respectively, logic module
Output end and output module input terminal connect.
In some possible embodiments, above-mentioned input module includes that voltage input unit, electric current input unit, frequency are defeated
Enter one of unit, power incoming unit, phase input unit, harmonic wave input unit, difference input unit or a variety of;It is above-mentioned
Comparison module include over-voltage comparing unit, under-voltage comparing unit, overcurrent comparing unit, undercurrent comparing unit, overfrequency comparing unit,
One of low frequency comparing unit is a variety of;Above-mentioned control input module includes throwing to move back control word input unit;Above-mentioned logic mould
Block include with door (&) or door (+), NOT gate (!), one of XOR gate (⊕) or a variety of;Above-mentioned time delay module includes that delay is single
Member.Above-mentioned output module includes device LED (Light Emitting Diode, light emitting diode) lamp, device relay, event
One of journal SOE (Sequence OfEvent, sequence of event) logout, global variable are a variety of.
The function of above-mentioned modular configuration diagram executes process: firstly, according to objective function demand to each in input module
Measured value and calculated value are configured, and institute's Configuration Values are supplied to comparison module and are compared, then by control input module control
System is thrown and is moved back, and carries out judgement by logical function module later and is then output to time delay module, delay function starting is finally sent to defeated
Module out, the operations such as output module carries out LED light light on and off according to objective function demand, relay is cut-off.
In order to make it easy to understand, the present embodiment also provides the structural schematic diagram of two kinds of modular configuration diagrams, below with reference to Fig. 3 and
Modular configuration diagram is specifically introduced in Fig. 4.
In power industry application, the long-term running overload of transformer can be such that transformer calorific value increases, meeting when serious
Burn transformer, it is therefore desirable to which FTU controller provides overload warning function, and transformer is made to trigger alarm under Overload
Signal is sent to main website, and operator is prompted to be further processed.Based on this, module as shown in Figure 3 is present embodiments provided
Configuration diagram.
Specifically, as shown in figure 3, developer configures input module first, Ia electric current input unit, Ib are chosen
Electric current input unit, Ic electric current input unit, then overcurrent comparing unit is chosen from comparison module, then from control input module
Control word is moved back in middle selection KG5 overload throwing, then choose respectively from logic module or door and and gate cell, finally choose starting
Time delay module and alarm lamp and SOE event recording unit;Ia electric current input unit, Ib electric current input unit, the input of Ic electric current are single
Member is connected with corresponding overcurrent comparing unit respectively, and overcurrent comparing unit is compared the current signal of input, will compare knot
Fruit is sent to logic sum gate unit connected to it, and above-mentioned logic sum gate send judging result to coupled logical AND gate list
Member, logical AND gate judges that control word cell and logic sum gate signal are moved back in coupled KG5 overload throwing simultaneously, by judging result
It is sent to failure wave-recording and start-up study unit, finally issues signal, output is recorded to LED light and SOE time respectively, and
With a failure wave-recording file, above-mentioned modular configuration diagram is completed.
Overtension may burn out electrical equipment or even systemic breakdown in electric system, in order to avoid overtension bring
Harm can be used FTU controller monitoring voltage, overvoltage warning message is sent to main website after overvoltage alarm, prompts behaviour
It is further processed as personnel.Based on this, modular configuration diagram as shown in Figure 4 is present embodiments provided.
Specifically, as shown in figure 4, developer configures input module first, Ua voltage input unit, Ub are chosen
Voltage input unit and Uc voltage input unit are as input unit, then overvoltage comparing unit is chosen from comparison module, so
Afterwards from control input module in choose KG6 overvoltage throwing move back control word, then from logic module respectively choose or door and with door
Unit finally chooses start-up study module and alarm lamp and SOE event recording unit;Ua voltage input unit, Ub voltage input
Unit and Uc voltage input unit are connected as input unit with corresponding overvoltage comparing unit, and overvoltage comparing unit is to defeated
The voltage signal entered is compared, and comparison result is sent to logic sum gate unit connected to it, above-mentioned logic sum gate will judge
As a result it send to coupled logical AND gate unit, throwing moves back control word and judges whether that throwing is moved back, and logical AND gate judges simultaneously and its phase
Control word and logic sum gate signal are moved back in KG6 overvoltage throwing even, and output is recorded to LED light and SOE time respectively, and adjoint
One failure wave-recording file, above-mentioned modular configuration diagram are completed.
Corresponding to above-mentioned FTU controller configuration method, a kind of FTU controller configuration device is present embodiments provided, referring to
Fig. 5, the device include:
Module 52 is obtained, for obtaining modular configuration diagram corresponding with the objective function of above-mentioned FTU controller;
Generation module 54, for generating the corresponding object-computer journey of above-mentioned objective function according to above-mentioned modular configuration diagram
Sequence;
Sending module 56, for above-mentioned target computer program to be sent to above-mentioned FTU controller, so that FTU controller
Above-mentioned objective function is realized by the load operating target computer program.
Above-mentioned generation module 54 is specifically used for: above-mentioned modular configuration diagram is converted into the corresponding descriptive machine word of figure
Speech, obtains target computer program.
Optionally, above-mentioned modular configuration diagram includes the relationship letter between multiple configuration modules and the multiple configuration module
Breath, the configuration module include input module, comparison module, control input module, logic module, time delay module and output module.
In the embodiment of the present invention, modular configuration diagram corresponding with the objective function of FTU controller is obtained;Matched according to the module
It sets figure and generates target computer program corresponding with objective function;The target computer program is sent to FTU controller, so that
FTU controller realizes objective function by the load operating target computer program.Function is being carried out to FTU controller in this way
When configuration, does not need developer and directly write complicated computer program, therefore FTU controller provided in an embodiment of the present invention
Configuration device simplifies the configuration process of FTU controller, reduces the workload of developer, to improve work efficiency.
The present embodiment additionally provides a kind of FTU controller configuration system, as shown in fig. 6, the system includes such as above-mentioned implementation
The FTU controller configuration device 62 and FTU controller 64, FTU controller 64 of example are connect with FTU controller configuration device 62.
In the embodiment of the present invention, modular configuration diagram corresponding with the objective function of FTU controller is obtained;Matched according to the module
It sets figure and generates target computer program corresponding with objective function;The target computer program is sent to FTU controller, so that
FTU controller realizes objective function by the load operating target computer program.Function is being carried out to FTU controller in this way
When configuration, does not need developer and directly write complicated computer program, therefore FTU controller provided in an embodiment of the present invention
Configuration system simplifies the configuration process of FTU controller, reduces the workload of developer, to improve work efficiency.
Referring to Fig. 7, the embodiment of the present invention also provides a kind of structural schematic diagram of FTU controller, as shown in fig. 7, FTU is controlled
Device includes central processor CPU, telemetering amount input interface, intake interface, the amount of outputing interface, memory, analog-digital converter ADC
(Analog-Digital Convert, analog-digital converter), Ethernet interface, RS232/485 interface and Debug debugging printing connect
Mouthful;Telemetering amount input interface is connect by ADC with CPU, above-mentioned intake interface, the above-mentioned amount of outputing interface, above-mentioned memory, on
Ethernet interface, above-mentioned RS232/485 interface and above-mentioned Debug debugging printing interface is stated to connect with above-mentioned CPU.
Optionally, above-mentioned CPU is collection Digital Signal Processing DSP (Digital Signal Processing, digital signal
Processing) unit, floating point calculator FPU (Float Point Unit, FPU Float Point Unit) unit double-core CPU.
Optionally, above-mentioned memory includes FLASH memory and FRAM (Ferromagnetic Random Access
Memory, magnetic RAM) memory.
Specifically, in some possible embodiments, then CPU, which is connected by parallel bus with ADC module, connect simulation
Input port is measured, is connected by parallel bus with on-off state input port, on-off state is obtained, passes through parallel bus and ether
Network interface is connected, and and PERCOM peripheral communication, the amount of outputing interface is exported with switch state by bus and is connected, state is distally sent
The information of amount, by UART, (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiving-transmitting are passed
Defeated device) (RS232/485) and external communication, pass through SPI (Serial Peripheral Interface, Serial Peripheral Interface (SPI))
Universal serial bus is connected with FLASH chip, by IIC (Inter-Integrated Circuit, IC bus) agreement with
The connection of FRAM chip, is connected by USB (Universal Serial Bus, universal serial bus) with DEBUG printing interface.
According to above-mentioned FTU controller, input, delivery outlet are configured using FTU controller configuration facility, and combine function
Energy module and logic module, can be realized the control to monostatic configuration and logic circuit.
Referring to Fig. 8, the embodiment of the present invention also provides a kind of electronic equipment 100, comprising: processor 40, memory 41, bus
42 and communication interface 43, the processor 40, communication interface 43 and memory 41 are connected by bus 42;Processor 40 is for holding
The executable module stored in line storage 41, such as computer program.
Wherein, memory 41 may include high-speed random access memory (RAM, Random Access Memory),
It may further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least
One communication interface 43 (can be wired or wireless) realizes the communication between the system network element and at least one other network element
Connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 42 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data
Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 8, it is not intended that an only bus or
A type of bus.
Wherein, memory 41 is for storing program, and the processor 40 executes the journey after receiving and executing instruction
Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle
In device 40, or realized by processor 40.
Processor 40 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 40 or the instruction of software form.Above-mentioned
Processor 40 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at
Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the storage medium of field maturation.The storage medium is located at memory 41, and processor 40 reads the information in memory 41, in conjunction with
Its hardware completes the step of above method.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description,
The specific work process of system and electronic equipment, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
FTU controller configuration device, system and electronic equipment provided in an embodiment of the present invention, and it is provided by the above embodiment
FTU controller configuration method technical characteristic having the same reaches identical technology so also can solve identical technical problem
Effect.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, section or code of table, a part of above-mentioned module, section or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base
Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that
It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule
The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
A kind of computer program product of FTU controller configuration method is carried out provided by the embodiment of the present invention, including is deposited
The computer readable storage medium of the executable non-volatile program code of processor, the instruction that above procedure code includes are stored up
It can be used for executing method above-mentioned in previous methods embodiment, specific implementation can be found in embodiment of the method, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of said units,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if above-mentioned function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes in each embodiment of the present invention
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of program code.
Finally, it should be noted that above above-described embodiment, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, protection scope of the present invention answers above-mentioned be subject to the protection scope in claims.