A kind of method to set up of intelligent electric energy meter parameter
Technical field:
The invention belongs to parameters of electric energy meter technical field is set, relate to a kind of process that parameters of electric energy meter is set, particularly a kind of method to set up of intelligent electric energy meter parameter.
Background technology:
At present, parameters of electric energy meter is provided with dual mode: the one, design parameter and parameter setting up procedure are integrated in executable program file, executable program file is burned onto in electric energy meter MCU master chip, electric energy meter starts operation, the parameter setting up procedure loads design parameter, has new parameter modification need to provide new program version at every turn; The 2nd, in the electric energy meter start-up course, program is opened up corresponding big or small storage space, and producers' operational power table stage body Lookup protocol parameter software is set to parameter in electric energy meter, then by the program correlative code with the design parameter unloading to the corresponding stored space; National grid increases regulation newly, the model machine of new authentication, and its program must be put on record at state's net, is used for economizing acceptance of the bid electric energy meter program with each net and compares, and whether trace routine changes, and monitor version avoids producer privately to alter the procedure; The first parameter set-up mode, the type specification of electric energy meter (electric current, voltage etc.) difference, parameter are also different, and the program check code of producing the interior program of delivery electric energy meter and state's net backup can be inconsistent, do not meet the national grid requirement; The second parameter set-up mode, producers can not be familiar with function and the parameter of whole electric energy meter, and number of parameters is more, reach tens of even up to a hundred, electric energy meter stage body Automatic parameter arranges software setting, and every parameters of electric energy meter arranges 3 minutes consuming time, each electric energy meter stage body can be put 32 tables, setting completed total about 96 minutes consuming time for whole stage body parameter, length consuming time, and production efficiency is low.
Summary of the invention:
The object of the invention is to overcome the shortcoming that prior art exists, seek to design the method to set up that a kind of intelligent electric energy meter parameter is provided, solve the electric energy meter type distinct program check code that exists in prior art and do not meet the problem that national grid requires to arrange with parameter length consuming time, save the parameter setup times, enhance productivity.
To achieve these goals, the present invention realizes that the concrete technology step of intelligent electric energy meter parameter setting is:
(1), first source code being passed through software translating process generation executable code, is that the executable code that will generate is put on record by national grid;
(2), the structured parameter document of arranging according to the memory address order again is converted into scale-of-two parameter document by scale-of-two conversion instrument;
(3), again after scale-of-two parameter document being converted to the Parameter File of the executable code same format that produces with compilation process, will with Parameter File and the executable code file synthesis executable program of executable code same format;
(4), then will synthesize executable program and be downloaded to data space corresponding to intelligent electric energy meter MCU master chip, download time be 10 ?90 seconds;
(5), intelligent electric energy meter starts, program is completed the setting of intelligent electric energy meter parameter from the data space loading parameters of correspondence.
The present invention compared with prior art, the parameter setting method that provides makes the isolation of program and parameter, guarantees that the electric energy meter program is consistent with the check code of national grid stand-by program; Its principle is reliable, and technological process is simple, and is easy to operate, and the parameter setup times is short, and production efficiency is high.
Description of drawings:
Fig. 1 is workflow schematic block diagram of the present invention.
Embodiment:
Also the invention will be further described by reference to the accompanying drawings below by embodiment.
Embodiment:
The present embodiment realizes that the concrete technology step of intelligent electric energy meter parameter setting is:
(1), source code is generated executable code by the software translating process, be that the executable code that will generate is put on record by national grid;
(2), will be converted into scale-of-two parameter document by scale-of-two conversion instrument according to the structured parameter document that the memory address order is arranged;
(3), scale-of-two parameter document is converted to the Parameter File of the executable code same format that produces with compilation process after, will with Parameter File and the executable code file synthesis executable program of executable code same format;
(4), will synthesize executable program and be downloaded to data space corresponding to electric energy meter MCU master chip, download time be 10 ?90 seconds;
(5), electric energy meter starts, program is completed the setting of intelligent electric energy meter parameter from the data space loading parameters of correspondence.