Summary of the invention
The objective of the invention is to solve power system security aut.eq. control strategy and import and check the loaded down with trivial details difficult problem of work poor efficiency.The automatic safety device control strategy intelligence that makes up imports and nucleus correcting system can improve the control strategy importing greatly and check efficient and accuracy.
Power system security aut.eq. control strategy provided by the invention intelligence import and nucleus correcting system specifically by the following technical solutions:
A kind of power system security aut.eq. control strategy intelligence imports and nucleus correcting system, described automatic safety device control strategy intelligence import and nucleus correcting system based on the windows operating system platform, be used for the backstage definite value management of automatic safety device strategy, it is characterized by, described automatic safety device control strategy intelligence imports and nucleus correcting system is realized by following steps:
(1) loads the excel form definite value file that issues by dispatching of power netwoks,, form and solidify the definite value message according to the value data in the excel file, the method for operation number and page number value;
(2) described system is issued to the power system security aut.eq. with described curing definite value message, and described automatic safety device is handled and solidified business, and professional being meant of described curing writes the value data in the described definite value file in the automatic safety device;
(3) described automatic safety device returns the result of solidifying successfully or failing and imports for this intelligence and the demonstration of nucleus correcting system man-machine interface after handling the curing business;
(4) load the excel form definite value file that is issued by dispatching of power netwoks, according to the method for operation in the excel file and page number value, form and check message, be handed down to automatic safety device, the man-machine interface of sending value data to give described system on the automatic safety device shows;
(5) serving the value data of stating after step (2) is solidified on the automatic safety device shows for the man-machine interface of this system;
(6) in the man-machine interface of described system, adopt two different forms respectively, an excel form definite value file that issues by dispatching of power netwoks that shows current loading, definite value after another definite value file that issues according to dispatching of power netwoks that shows that automatic safety device calls up solidifies is compared above-mentioned two kinds of definite values;
(7), the definite value after solidifying in the step (2) is done one-time authentication according to comparison result.Described control strategy intelligence importing and nucleus correcting system link to each other with automatic safety device, in the batch solidification process, the excel form definite value file that issues with dispatching of power netwoks is the input data, the excel C++ class excel9 that provides by Microsoft operates the excel file, according to the method for operation described in the definite value file number and page number value, be converted into the definite value message in conjunction with the value data of excel form and be handed down to automatic safety device, after automatic safety device is handled the curing business, promptly the value data in the definite value file is write automatic safety device, give this system, " curing definite value " interface display with the message up sending that solidifies successfully or fail in this system; In batch check process, the excel form value data that issues with dispatching of power netwoks is the input data, the excel C++ class excel9 that provides by Microsoft operates the excel file, according to the method for operation described in the definite value file and page number value, form and check message, be handed down to automatic safety device, send value data to give this system on the automatic safety device, on " check definite value " interface of this system, adopt two forms, a form is used to show the value data that reads from the excel file, a form is used to show from installing the value data after sending and resolving, if both data of corresponding positions are variant, mark discrepant form with color, different with differential, apparent; In checking the definite value process, check and be handed down to automatic safety device by message that the interface form can be resolved the back and show according to receiving the value data of sending on the device according to choosing the method for operation number and page number value at " checking definite value " interface, forming in form; Also design " solidifying separately " function simultaneously at " checking definite value " interface, its design concept is according to the value data in the active sheet, in conjunction with the selected method of operation number and page number value, form the definite value message and be handed down to automatic safety device, finish the curing work of the single method of operation definite value of single page.
This control strategy intelligence imports and nucleus correcting system adopts the serial communication technology, this technology is meant the interface protocol between control strategy intelligence importing and nucleus correcting system and the automatic safety device, and this technology can guarantee that control strategy intelligence imports and the instruction of nucleus correcting system is correctly received and carries out by automatic safety device.
This control strategy intelligence imports and nucleus correcting system adopts multithreading, and this technology is the sub-thread class technology that derives from by the QThread among the QT3.2.1, and main business is the reception of being responsible for serial data, and this technology can guarantee the real-time reception and the processing of serial data.
This invention can effectively solve power system security aut.eq. control strategy and import and check the loaded down with trivial details difficult problem of work poor efficiency, and the system of structure provides " logistics " service as automatic safety device daemon software system in time revising control strategy fast.
Embodiment
The present invention is applicable to the electrical network of implementing to have installed automatic safety device.Power system security aut.eq. control strategy intelligence imports and nucleus correcting system is meant what supporting automatic safety device used, based on the windows operating system platform, thereby upgrade the system that the power system stability operation was kept or improved to its method of operation by control strategy fixed value modification to automatic safety device.
The linkage function relation of system and scheduling and automatic safety device as shown in Figure 1, dispatching of power netwoks is compiled the excel file with value data, be handed down to each factory that automatic safety device has been installed station, these factory's station operations or service engineer move this control strategy intelligence and import and nucleus correcting system software, load described excel definite value file, finish business such as curing in batches, batch check.
Below the technical solution of the present invention is further elaborated:
The present invention uses the control strategy intelligence based on the windows operating system platform to import and system architecture, the control strategy intelligence of nucleus correcting system imports and man-machine interface designing technique, the control strategy intelligence of nucleus correcting system import and read-write technology, the control strategy intelligence of the excel file of nucleus correcting system import and serial communication technology, the control strategy intelligence of nucleus correcting system import and the multithreading of nucleus correcting system, finally can make up to form electric power system control strategy intelligence and import and nucleus correcting system.
As shown in Figure 2, the batch of this control strategy intelligence importing and nucleus correcting system solidifies with the performing step of checking function in batches as follows:
(1) load the excel form definite value file that is issued by dispatching of power netwoks, this document has write down the method for operation and page number value, and the definite value of a page number of each sheet record, wherein method of operation record is more flexible, but must be write as " 0,3-8,10-31 " or " 3-8 " such form; Described system reads all the elements of this document earlier, checks the correctness of definite value file, checks that mainly the validity of file layout and value data are whether in OK range; If the file layout and the value data of all sheet records all meet the requirements in the definite value file, just begin to detect serial communication state with automatic safety device, after detecting communication normally, whether detect the user again enters password correct, if user password is errorless, just begin to read the value data of each sheet, form and solidify message;
(2) described system is issued to the power system security aut.eq. with described curing definite value message, for example, the method of operation that writes down in sheet1 is " 3-8 ", and page number value is 1, just indicates to be handed down to the 1st page the method for operation 3,4,5,6,7,8 successively with solidifying message; Described automatic safety device is handled and is solidified business, and professional being meant of described curing writes the value data in the described definite value file in the automatic safety device;
(3) described automatic safety device returns the result of solidifying successfully or failing and imports for this intelligence and the demonstration of nucleus correcting system man-machine interface after handling the curing business;
(4) load the excel form definite value file that issues by dispatching of power netwoks, read all the elements of this document earlier, check the correctness of definite value file, check that mainly the validity of file layout and value data are whether in OK range; If the file layout and the value data of all sheet records all meet the requirements in the definite value file, just begin to detect serial communication state with automatic safety device, after detecting communication normally, just begin according to the method for operation in the excel file and page number value, form and check message, be handed down to automatic safety device, for example, the method of operation that writes down in sheet1 is " 3-8 ", page number value is 1, just indicate to be handed down to the 1st page the method for operation 3 successively with checking message, 4,5,6,7 and 8, the 1st page of method of operation 3 after automatic safety device will solidify successively, 4,5,6, the man-machine interface of giving described system on 7 and 8 the value data shows;
(5) serving the value data of stating after step (2) is solidified on the automatic safety device shows for the man-machine interface of this system;
(6) in the man-machine interface of described system, adopt two different forms respectively, an excel form definite value file that issues by dispatching of power netwoks that shows current loading, definite value after another definite value file that issues according to dispatching of power netwoks that shows that automatic safety device calls up solidifies, above-mentioned two kinds of definite values are compared, discrepant data are marked with color, apparent;
(7), the definite value after solidifying in the step (2) is done one-time authentication according to comparison result.
As shown in Figure 3, the online definite value function of checking of this control strategy intelligence importing and nucleus correcting system is as follows with independent curing definite value function performing step:
(1) select what a method of operation and page number value, for example, the method for operation 3 and the page number 1;
(2) form calling definite value message, and be handed down to automatic safety device;
(3) receive the value data of the selected method of operation of the step of sending on the automatic safety device 1 and page number value in real time, this value data shows on system interface;
(4) form curing definite value message, issue the selected method of operation of step 1 and the page number of automatic safety device;
(5) receive curing success of sending on the automatic safety device or the message as a result of failing in real time, and on system interface, show.
This control strategy intelligence imports and nucleus correcting system is to cooperate the automatic safety device operation.In engineering construction, under the situation of the normal operation of automatic safety device, after debugging connected with standard serial port line and device with the computer that windows operating system has been installed, move native system, just can operate, be simple and easy to very much usefulness.