This application claims priority benefit of Chinese Patent Application No. 202010481773.1 filed on 1 Jun. 2020. The above-referenced application is hereby incorporated herein by reference.
The invention relates to electric device detections, especially to testing methods for conduct synchronism of dual power transfer switches.
In the field of power distribution, a dual power transfer switch is necessary switchgear for important power-using place. The dual power transfer switches switch a load side from current failed power side to another normal power side to ensure normal operation of electrical equipment once the current power supply fails. Circuit switching is completed by contact conversion of power transfer switch, therefore, conduct transition time value is one of important parameters reflecting speed of circuit switching. According to the number of poles, dual power transfer switches can be classified into three-pole dual power transfer switch and four-pole dual power transfer switch. Take the four-pole dual power transfer switch as an example, the four-pole dual power transfer switch has four linked contact groups for switching the load side from a first power side to a second power side or switching the load side from the second power side back to the first power side. Errors in processing and manufacturing may cause the four groups of linked contact groups to not be able to fully synchronize their actions, that is, contact groups of some poles will be disconnected first, while contact groups of another some poles will be disconnected later. Contact groups of some poles will be connected first, while contact groups of another some poles will be connected later, such asynchronous action may cause the load side to run under a phase loss state for a certain period of time. Phase loss operation is harmful to some equipments, therefore, contact synchronization is one of the important parameters reflecting switch performance.
The present invention aims to provide testing methods for conduct synchronism of dual power transfer switch, which are used to collect ON-OFF conditions of a contacts group of the dual power transfer switch when circuit is switched once and to test a conduct synchronism of the switch.
Such object is achieved by providing a testing method for conduct synchronism of dual power transfer switch as defined in claim 1, further advantageous according to the invention will be apparent from the dependent claims.
The present invention provides a testing method for conduct synchronism of dual power transfer switch, the method comprises:
a corresponding step for corresponding a contacts group of a dual power transfer switch to a key of a computer keyboard, for corresponding a contacts group state to a key state, for corresponding a first keys group composed of multiple keys to a first power contacts group composed of multiple contacts groups of a first power side, and for corresponding a second keys group composed of another multiple keys to a second power contacts group composed of multiple contacts groups of a second power side;
a frequency obtaining step for obtaining a device frequency value of a computer;
a count value obtaining step for obtaining and storing a first values group of a counter of the computer when the first keys group is closed, each value of the first values group corresponding to a count value of the counter when a corresponding key of the first keys group is closed; and for obtaining and storing a second values group of the counter of the computer when the second keys group is closed, each value of the second values group corresponding to a count value of the counter when a corresponding key of the second keys group is closed; and
a computing step for respectively calculating difference values between one value in the first values group and other values in the first values group, for dividing the difference values by the device frequency value to obtain a first difference values group composed of multiple time difference values; for respectively calculating difference values between one value in the second values group and other values in the second values group, and for dividing the difference values by the device frequency value to obtain a second difference values group composed of multiple time difference values.
The present invention further aims to provide testing apparatuses for conduct synchronism of dual power transfer, which are used to collect ON-OFF conditions of a contacts group of the dual power transfer switch when circuit is switched once and to test a conduct synchronism of the switch.
Such object is achieved by providing a testing apparatuses for conduct synchronism of dual power transfer, the apparatus comprises:
a corresponding unit for corresponding a contacts group of a dual power transfer switch to a key of a computer keyboard, for corresponding a contacts group state to a key state, for corresponding a first keys group composed of multiple keys to a first power contacts group composed of multiple contacts groups of a first power side, and for corresponding a second keys group composed of another multiple keys to a second power contacts group composed of multiple contacts groups of a second power side;
a frequency obtaining unit for obtaining a device frequency value of the computer;
a first count value obtaining unit for obtaining a first values group of a counter of the computer when the first keys group is closed, each value of the first values group corresponding to a count value of the counter when a corresponding key of the first keys group is closed;
a second count value obtaining unit for obtaining a second values group of the counter of the computer when the second keys group is closed, each value of the second values group corresponding to a count value of the counter when a corresponding key of the second keys group is closed;
a first storage unit for storing the first values group;
a second storage unit for storing the second values group;
a third storage unit for storing the device frequency value of the computer;
a computing unit for respectively calculating difference values between one value in the first values group and other values in the first values group, for dividing the difference values by the device frequency value to obtain a first difference values group composed of multiple time difference values; for respectively calculating difference values between one value in the second values group and other values in the second values group, and for dividing the difference values by the device frequency value to obtain a second difference values group composed of multiple time difference values;
a fourth storage unit for storing the first difference values group; and
a fifth storage unit for storing the second difference values group.
1. Contacts groups of dual power transfer switch correspond to keys of computer keyboard and contacts group states correspond to key states, the number of keys of one keyboard varies from 61 to 104, therefore, the number of corresponding contacts groups is between 61 and 104. One pole of switch needs 2 keys to correspond to one contacts group, so one four-pole switch needs 8 keys to correspond, therefore one keyboard can simultaneously test conduct synchronism of 7 to 13 four-pole switches. So efficiency of using the testing method or apparatus disclosed in the present invention to test conduct synchronism of dual power switch is significantly improved.
2. Since test accuracy of collecting and testing method disclosed in the present invention is based on equipment frequency of computer, current common computer equipment frequency is above 1000000 hz, therefore, using the testing method or apparatus disclosed in the present invention to test conduct synchronism of dual power transfer switch can obtain microsecond test accuracy, test accuracy is significantly improved.
3. Obtain and store a first values group of a counter of a computer when a first keys group is closed, so that the computer always collects and stores the current first values group when the contacts remains on a first power side, the first values group comprises count values of contacts group of each pole on the first power side. When a contacts group is disconnected, that is, a moment when the first keys group is disconnected, the computer no longer collects and stores a count value corresponding to each pole. Therefore, the count value stored in a storage unit is a first values group at a moment when the contacts group is disconnected, this first values group accurately reflects count values at a moment when the contacts group of each pole on the first power side is disconnected.
4. Obtain and store a second values group of the counter of the computer when a second keys group is closed, then respectively calculate difference values between one value in the first values group and other values in the first values group to obtain a first difference values group composed of multiple time difference values and respectively calculate difference values between one value in the second values group and other values in the second values group to obtain a second difference values group composed of multiple time difference values. Set the computing step directly when the second values group is collected, so that when contacts touch a second power side, that is, a moment when the second keys group is closed, the computer collects and stores the second values group of the current counter, each value in this second values group accurately reflects a count value at a moment when a contacts group of a corresponding pole on the second power side is closed, and respectively calculate difference values between one value in the first values group and other values in the first values group to obtain a first difference values group composed of multiple time difference values and respectively calculate difference values between one value in the second values group and other values in the second values group to obtain a second difference values group composed of multiple time difference values. The first difference values group and the second difference values group accurately reflect conduct synchronism of each pole of dual power transfer switch.
5. The second values group of the counter is obtained and stored when the second key group is closed according to values of a second auxiliary parameters group. Since the second auxiliary parameters group is set, values of the second values group are obtained based on values of the second auxiliary parameters group, therefore, only when values of the second auxiliary parameters group meets a preset condition, the computer obtains and stores the count value of the counter when the contacts group is closed, it is ensured that the second values group participating in calculation is the count value at a moment of closed or opened of contacts group of each pole.
6. Values of the second auxiliary parameters group are changed after obtaining and storing the second values group, this arrangement makes values of the second auxiliary parameters group change after the computer collects the second values group when the contacts group connects the second power side. Since obtaining of value of the second values group is based on values of the second auxiliary parameters group, after values of the second auxiliary parameters group changes, the computer no longer obtains or stores a count value of the counter when the contacts group is closed. It is ensured that each value of the second values group obtained and stored by the computer is a count value at a moment when each pole contacts group is closed.
7. When values of the second auxiliary parameters group, a value of the first position parameter, and a state of the second keys group meet preset conditions, respectively calculate difference values between one value in the first values group and other values in the first values group to obtain a first difference values group composed of multiple time difference values and respectively calculate difference values between one value in the second values group and other values in the second values group to obtain a second difference values group composed of multiple time difference values. Such arrangement enables the testing method or apparatus disclosed in the present invention to not only test a conduct synchronism of a dual power transfer switch from a first power side to a second power side, but also to continue to test a conduct synchronism of the dual power transfer switch from the second power side back to the first power side without changing wiring method between dual power transfer switch terminals and the collecting device. Therefore, the testing method or apparatus disclosed in the present invention can continuously and uninterruptedly test a conduct synchronism of each pole in multiple transition cycles of dual power transfer switch so as to provide basic data for further judging influence of frequent operations on conduct transition time.
Further characteristics and advantages of the invention will emerge from the description of preferred, non-limiting examples of which are provided in the attached drawings, in which:
The description in this application “change or store a certain parameter” means “change or store a value of the corresponding parameter”, take “first position parameter” as an example, “change a first position parameter” means “change a value of the first position parameter”, “store a first position parameter” means “store a value of the first position parameter”.
An example of contacts movement of one pole of a dual power transfer switch is shown in
At step 101, a corresponding step comprises corresponding a contacts group of the dual power transfer switch to a key of the computer keyboard; corresponding a contacts group state to a key state; corresponding a first keys group composed of multiple keys to the first power contacts group composed of multiple contacts groups of the first power side; and corresponding a second keys group composed of another multiple keys to the second power contacts group composed of multiple contacts groups of the second power side.
As an exemplary embodiment, the first keys group comprises first key Q, second key E, third key U, and fourth key O. The second keys group comprises fifth key W, sixth key R, seventh key I, and eighth key P. The first power contacts group comprises a first contacts group, a second contacts group, a third contacts group, and a fourth contacts group. The second power contacts group comprises a fifth contacts group, a sixth contacts group, a seventh contacts group, and an eighth contacts group. Phase A, phase B, phase C, and phase N of the first power side respectively correspond to the first contacts group, the second contacts group, the third contact group, and the fourth group. First key Q, second key E, third key U, and fourth key O respectively correspond to the first contacts group, the second contacts group, the third contact group, and the fourth group. Phase A, phase B, phase C, and phase N of the second power side respectively correspond to the fifth contacts group, the sixth contacts group, the seventh contact group, and the eighth group. fifth key W, sixth key R, seventh key I, and eighth key P respectively correspond to the fifth contacts group, the sixth contacts group, the seventh contact group, and the eighth group. Therefore, the first contacts group and the fifth contacts group correspond to a same pole, the second contacts group and the sixth contacts group correspond to a same pole, the third contacts group and the seventh contacts group correspond to a same pole, the fourth contacts group and the eighth contacts group correspond to a same pole. An opened state of a contacts group corresponds to a reset state of a key of the computer keyboard, a closed state of the contacts group corresponds to a closed state of the key of the computer keyboard. Take one pole of the switch as an example, the computer obtains character Q once the first contacts group is closed, the computer stops obtaining character Q once the first contacts group is opened. The computer obtains character W once the fifth contacts group is closed, the computer stops obtaining character W once the fifth contacts group is opened.
At step 102, a frequency obtaining step is for obtaining a device frequency value of the computer.
Take programming language C++ as an example, the device frequency value of the computer can be obtained through command “QueryPerformanceFrequency ( )”.
At step 103, a count value obtaining step is for obtaining and storing a first values group of a counter of the computer when the first keys group is closed, each value of the first values group corresponding to a count value of the counter when a corresponding key of the first keys group is closed.
At step 104, the count value obtaining step is further for obtaining and storing the second values group of the counter of the computer when the second keys group is closed, each value of the second values group corresponding to a count value of the counter when a corresponding key of the second keys group is closed.
A corresponding count value is calibrated by obtaining a count value of the counter and storing the current count value when current event occurs. Specifically, obtaining a first value of the counter of the computer when first key Q is closed, and storing the first value; obtaining a second value of the counter of the computer when second key E is closed, and storing the second value; obtaining a third value of the counter of the computer when third key U is closed, and storing the third value; obtaining a fourth value of the counter of the computer when fourth key O is closed, and storing the fourth value. A values group composed of the first value, the second value, the third value, and the fourth value is represented as the first values group. Obtaining a fifth value of the counter of the computer when fifth key W is closed, and storing the fifth value; obtaining a sixth value of the counter of the computer when sixth key R is closed, and storing the sixth value; obtaining a seventh value of the counter of the computer when seventh key I is closed, and storing the seventh value; obtaining an eighth value of the counter of the computer when eighth key P is closed, and storing the eighth value. Another values group composed of the fifth value, the sixth value, the seventh value, and the eighth value is represented as the second values group. In a process of the dual power transfer switch switching the load side from the first power side to the second power side, the first power contacts group changes from original closed state to opened state, and the second power contacts group changes from original opened state to closed state. In terms of two keys corresponding to a same pole, fifth key W changes from opened state to closed state after first key Q changes from closed state to opened state, sixth key R changes from opened state to closed state after second key E changes from closed state to opened state, seventh key I changes from opened state to closed state after first key U changes from closed state to opened state, eighth key P changes from opened state to closed state after first key O changes from closed state to opened state.
Take programming language C++ as an example, it can be determined whether a current key is pressed through command “GetAsyncKeyState ( )”, that is, it is determined whether first key Q, second key E, third key U, fourth key O, fifth key W, sixth key R, seventh key I, or eighth key P is pressed. Current a counter value can be obtained and stored through command “QueryPerformanceCounter ( )”. Therefore, a count value of the counter when each key in the first keys group is closed and another count value of the counter when each key in the second keys group is closed are obtained through command “if (GetAsyncKeyState ( )<0) {QueryPerformanceCounter ( )}”, that is, the first values group composed of count values of the counter when each contacts group in the first power contacts group is closed and the second values group composed of count values of the counter when each contacts group in the second power contacts group is closed are obtained.
Since program is executed according to commands, and a value stored in each parameter is replaced by another value currently obtained, the computer will overwrite a count value previously stored with another count value currently obtained when the first contacts group is closed, therefore the first value is updated in real time. The computer no longer obtains or stores a count value when the first contacts group changes from closed state to opened state, therefore, the first value stored is a count value obtained by the computer at a moment when the first contacts group changes from closed to opened, so the first value is real and valid. In the same way, the second value, the third value, and the fourth value are also true and valid, that is, the first values group is true and valid.
At step 105, a computing step is for respectively calculating difference values between one value in the first values group and other values in the first values group; and for dividing the difference values by the device frequency value to obtain a first difference values group composed of multiple time difference values.
At step 106, the computing step is further for respectively calculating difference values between one value in the second values group and other values in the second values group; and for dividing the difference values by the device frequency value to obtain a second difference values group composed of multiple time difference values.
At step 107, a storing step is for storing the first difference values group and the second difference values group.
The first difference values group accurately reflects synchronism of disconnecting the first power side by contact groups of each pole of the dual power switch, the second difference values group accurately reflects synchronism of disconnecting the second power side by contact groups of each pole of the dual power switch.
As an illustrative example, the first value is used as a reference value in the first values group, calculate a difference value between the first value and the first value, calculate another difference value between the second value and the first value, calculate another difference value between the third value and the first value, calculate another difference value between the fourth value and the first value, respectively divide these difference values by the device frequency value to get a time value in time unit, the time value obtained is calibrated as a time value for a contact group of a corresponding phase to disconnect the first power side earlier or later than phase A contact group. Therefore, each time value in the first difference values group can accurately reflect disconnection synchronism of contact group of each pole of switch. Similarly, the fifth value is used as another reference value in the second values group, calculate a difference value between the fifth value and the fifth value, calculate another difference value between the sixth value and the fifth value, calculate another difference value between the seventh value and the fifth value, calculate another difference value between the eighth value and the fifth value, respectively divide these difference values by the device frequency value to get another time value in time unit, the time value obtained is calibrated as a time value for a contact group of a corresponding phase to connect the second power side earlier or later than phase A contact group. Therefore, each time value in the second difference values group can accurately reflect disconnection synchronism of contact group of each pole of switch.
Test accuracy of testing method is based on computer equipment frequency, and current common computer equipment frequency is above 1000000 hz, therefore, using the testing method disclosed in the present invention to test conduct synchronism of dual power transfer switch can obtain microsecond test accuracy, test accuracy is significantly improved. Contacts groups of dual power transfer switch correspond to keys of computer keyboard and contacts group states correspond to key states, the number of keys of one keyboard varies from 61 to 104, therefore, the number of corresponding contacts groups is between 61 and 104. One pole of switch needs 2 keys to correspond to one contacts group, so one four-pole switch needs 8 keys to correspond, Therefore, one keyboard can simultaneously test conduct synchronism of 7 to 13 four-pole switches. So efficiency of using the testing method disclosed in the present invention to test conduct synchronism of dual power switch is significantly improved.
At step 201, providing the first auxiliary parameters group.
As an illustrative example, the dual power transfer switch switches the load side from the first power side to the second power side. The first auxiliary parameters group comprises a first auxiliary parameter, a second auxiliary parameter, a third auxiliary parameter, and a fourth auxiliary parameter. Initialize values of all auxiliary parameters in the first auxiliary parameters group to 0 in an early stage of collecting and measuring program. The first auxiliary parameters group is used to assist in execution of command for obtaining the first values group. A preset condition for obtaining the first values group is that each value of the first auxiliary parameters group is 0. Specifically, a command for obtaining the first value is executed once the first auxiliary parameter is 0, another command for obtaining the second value is executed once the second auxiliary parameter is 0, another command for obtaining the third value is executed once the third auxiliary parameter is 0, another command for obtaining the fourth value is executed once the fourth auxiliary parameter is 0.
At step 202, it is detected that the first keys group is pressed.
At step 203, it is determined whether each value of the first auxiliary parameters group meets the preset condition.
At step 204, if each value of the first auxiliary parameters group meets the preset condition, the computer obtains and stores the first values group; if any value of the first auxiliary parameters group does not meet the preset condition, the computer abandons obtaining the first values group.
Determine whether the first auxiliary parameters group meets the preset condition when the first power contacts group of the dual power transfer switch is closed, i.e., first key Q, second key E, third key U, and fourth key O are all closed. Since each value of the first auxiliary parameters group has been initialized to 0, the first auxiliary parameters group satisfies the preset condition, the computer obtains count values of the counter at this time, and stores obtained count values in the first values group. Specifically, obtain and store the first value when the first contacts group corresponding to first key Q is closed according to the first auxiliary parameter, obtain and store the second value when the second contacts group corresponding to first key E is closed according to the second auxiliary parameter, obtain and store the third value when the third contacts group corresponding to first key U is closed according to the third auxiliary parameter, obtain and store the fourth value when the fourth contacts group corresponding to first key O is closed according to the fourth auxiliary parameter.
The first power contacts group and the second power contacts group maintain their current positions before the dual power transfer switch is switched, so the first power contacts group is kept closed, therefore, the computer continuously obtains current count value of the counter and stores it in the first values group, thus, after the first power contact group is closed, each value in the first values group is continuously updated in real time under a condition that each value of the first auxiliary parameters group is 0. When the first power contacts group remains closed, and each value of the first auxiliary parameters group is other numbers other than 0, that is, each value of the first auxiliary parameters group does not meet the preset condition, the computer abandons obtaining current count value of the counter. Count values of the counter when the first keys group is closed can be obtained through following commands.
if (GetAsyncKey State (‘q’)<0 && (na==0)) QueryPerformanceCounter ( )}
if (GetAsyncKey State (‘e’)<0 && (nb==0)) QueryPerformanceCounter ( )}
if (GetAsyncKey State (‘u’)<0 && (nc==0)) QueryPerformanceCounter ( )}
if (GetAsyncKey State (‘o’)<0 && (nn==0)) QueryPerformanceCounter ( )}
That is, count values of the counter when the first power contacts group is closed can be obtained, among them, “na”, “nb”, “nc”, and “nn” are the first auxiliary parameter, the second auxiliary parameter, the third auxiliary parameter, and the fourth auxiliary parameter, respectively.
At step 301, providing the second auxiliary parameters group.
As an illustrative example, the dual power transfer switch switches the load side from the first power side to the second power side. The second auxiliary parameters group comprises a fifth auxiliary parameter, a sixth auxiliary parameter, a seventh auxiliary parameter, and an eighth auxiliary parameter. Initialize each auxiliary parameter in the second auxiliary parameters group to 0 in an early stage of collecting and measuring program, the second auxiliary parameters group is used to assist in execution of command for obtaining the second values group, a preset condition for obtaining the second values group is that each value of the second auxiliary parameters group is 0. Specifically, a command for obtaining the fifth value is executed once the fifth auxiliary parameter is 0, another command for obtaining the sixth value is executed once the sixth auxiliary parameter is 0, another command for obtaining the seventh value is executed once the seventh auxiliary parameter is 0, another command for obtaining the eighth value is executed once the eighth auxiliary parameter is 0.
At step 302, it is detected that the second keys group is pressed.
At step 303, it is determined whether each value of the second auxiliary parameters group meets the preset condition.
At step 304, if each value of the second auxiliary parameters group meets the preset condition, the computer obtains and stores the second values group; if any value of the second auxiliary parameters group does not meet the preset condition, the computer abandons obtaining the second values group.
When the second power contacts group of the dual power transfer switch is closed, i.e., fifth key W, sixth key R, seventh key I, and eighth key P are all closed. Determine whether the second auxiliary parameters group meets the preset condition. Since each auxiliary parameter in the second auxiliary parameters group has been initialized to 0, the second auxiliary parameters group meets the preset condition, the computer obtains count values of the counter at this time, and stores obtained count values in the second values group, then changes each auxiliary parameter of the second auxiliary parameters group from 0 to 1. Specially, obtain and store the fifth value when the fifth contacts group corresponding to fifth key W is closed according to a value of the fifth auxiliary parameter, and then change the value of the fifth auxiliary parameter from 0 to 1. Obtain and store the sixth value when the sixth contacts group corresponding to sixth key R is closed according to a value of the sixth auxiliary parameter, and then change the value of the sixth auxiliary parameter from 0 to 1. Obtain and store the seventh value when the seventh contacts group corresponding to sixth key I is closed according to a value of the seventh auxiliary parameter, and then change the value of the seventh auxiliary parameter from 0 to 1. Obtain and store the eighth value when the eighth contacts group corresponding to eighth key P is closed according to a value of the eighth auxiliary parameter, and then change the value of the eighth auxiliary parameter from 0 to 1. Since each auxiliary parameter of the second auxiliary parameters group is updated to 1 and no longer meets the preset condition for obtaining the second values group, the computer no longer obtains or stores the second values group. Therefore, current the second values group is a count value of the counter obtained by the computer at a moment when the second power contacts group is closed.
Although the second keys group continues to be closed, however, because each auxiliary parameter of the second auxiliary parameters group does not satisfy the preset condition for obtaining and storing the second values group, the computer abandons obtaining the second values group. Count values of the counter of the second keys group at a moment of closing can be obtained through following commands.
if (GetAsyncKeyState (‘w’)<0 && (ra==0)) {QueryPerformanceCounter ( ); ra++;}
if (GetAsyncKeyState (‘r’)<0 && (rb==0)) {QueryPerformanceCounter ( ); rb++;}
if (GetAsyncKey State (‘i’)<0 && (rc==0)) {QueryPerformanceCounter ( ); rc++;}
if (GetAsyncKeyState (‘p’)<0 && (rn==0)) {QueryPerformanceCounter ( ); rn++;}
That is, count values of the counter at a moment when the second power contacts group is closed can be obtained, among them, “na”, “nb”, “nc”, and “nn” are the fifth auxiliary parameter, the sixth auxiliary parameter, the seventh auxiliary parameter, and the eighth auxiliary parameter, respectively.
At step 401, providing the first position parameter.
As an illustrative example, initialize a value of the first position parameter to 0 in an early stage of collecting and measuring program. The first position parameter is used to assist in indicating a power information currently connected to the load side.
At step 402, obtaining the first values group.
At step 403, changing the value of the first position parameter.
The first values group having been obtained means that the first power contacts group is closed, it also means that current the load side is powered by the first power side, information of current working power can be displayed on screen through command “cout”. Execution condition of a display command is that the first keys group is closed and the value of the first position parameter is 0. Since the first position parameter has been initialized to 0, the screen shows that the first power side connects to the load side after all keys in the first keys group are pressed, i.e., after the computer obtains all values of the first values group, then the value of the first position parameter is changed from 0 to 1. Since the value of the first position parameter at this time is not 0, the display command is no longer executed to ensure that only one power message is displayed in one switch process so as to avoid the power message reappearing on the entire screen.
At step 501, providing the second auxiliary parameters group.
The second auxiliary parameters group is used as a basis for judging whether to obtain and store the second values group during a process of switching the dual power transfer switch from the first power side to the second power side.
At step 502, obtaining and storing the second values group.
The computer obtains and stores the second values group once the second power contacts group changes from opened state to closed state (i.e., the second keys group is closed) after the dual power switch is switched from the first power side to the second power side.
At step 503, changing values of the second auxiliary parameters group.
Values of the second auxiliary parameters group are changed after the second values group is obtained and stored. Since the dual power transfer switch switches the load side from the first power side to the second power side, a moment when the second values group is obtained and stored is a moment when the second keys group is closed. Therefore, after obtaining and storing the second values group, values of the second auxiliary parameters group are changed so that the preset condition for obtaining the second value group is not satisfied, thereby avoiding the second values group currently stored from being updated, it is ensured that values of the second values group are real and valid.
At step 601, providing the second position parameter.
As an illustrative example, initialize a value of the second position parameter to 0 in an early stage of collecting and measuring program. The second position parameter is used to assist in indicating a power information currently connected to the load side.
At step 602, obtaining the second values group.
At step 603, changing values of the second position parameter.
The second values group having been obtained means that the second power contacts group is closed, it also means that current the load side is powered by the second power side, information of current working power can be displayed on screen through command “cout”. Since an initial value of the second position parameter is 0, the value of the second position parameter changes from 0 to 1 after the dual power transfer switch is switched from the first power side to the second power side (i.e., after the computer obtains the second values group.) Therefore execution condition of a display command is that the second keys group is closed and the value of the second position parameter is 1. Therefore the screen shows that the second power side connects to the load side after all keys in the second keys group are pressed, i.e., after the computer obtains all values of the second values group, then the value of the second position parameter is changed from 1 to 2. Since the value of the second position parameter at this time is not 1, the display command is no longer executed to ensure that only one power message is displayed in one switch process so as to avoid the power message reappearing on the entire screen.
At step 701, providing the first auxiliary parameters group.
The first auxiliary parameters group is used as a basis for judging whether to obtain and store the first values group during a process of switching the dual power transfer switch from the second power side back to the first power side after switching from the first power side to the second power side.
At step 702, obtaining and storing the first values group.
The computer obtains and stores the first values group once the first power contacts group changes from opened state to closed state (i.e., the first keys group is closed) after the dual power switch is switched from the second power side back to the first power side.
At step 703, changing values of the first auxiliary parameters group.
Values of the first auxiliary parameters group are changed after the first values group is obtained and stored. Since the dual power transfer switch switches the load side from the second power side back to the first power side, a moment when the first values group is obtained and stored is a moment when the first keys group is closed. Therefore, after obtaining and storing the first values group, values of the first auxiliary parameters group are changed so that the preset condition for obtaining the first value group is not satisfied, thereby avoiding the first values group currently stored from being updated, it is ensured that values of the first values group are real and valid.
At step 801, obtaining and storing the first values group.
The first power contacts group switches from closed state to opened state after the dual power transfer switch switches the load side from the first power side to the second power side, the first values group stored in the computer is a group of count values of the counter at a moment when the first power contacts group is opened.
At step 802, changing a value of the first position parameter.
The value of the first position parameter is changed after the first values group is stored to avoid the power message reappearing on the entire screen.
At step 803, obtaining and storing the second values group.
The second power contacts group switches from opened state to closed state after the dual power transfer switch switches the load side from the first power side to the second power side, the computer obtains and stores the second values group.
At step 804, changing the second auxiliary parameters group.
Values of the second auxiliary parameters group are changed after the second values group is stored so that values of the second auxiliary parameters group do not meet the preset condition for obtaining the second values group, therefore, the second values group stored is a group of count values of the counter at a moment when the second power contacts group is closed.
At step 805, determining whether values of the second auxiliary parameter and the first position parameter, and state of the second keys group meet preset conditions.
The preset conditions are as followed. Each value of all auxiliary parameters in the second auxiliary parameters group is 1, a value of the first position parameter is 1, and state of each key of the second keys group is closed. Specifically, the second keys group being closed indicates that the second power contacts group is currently closed; the first position parameter is 1, which indicates that the load side currently connecting to the second power side is shown on the screen; each value of all auxiliary parameters in the second auxiliary parameters group is 1, which indicates that the computer has obtained and stored count values of the counter at a moment when the second keys group is closed.
At step 806, respectively calculating difference values between one value in the first values group and other values in the first values group, then dividing the difference values by the device frequency value to obtain a first difference values group composed of multiple time difference values.
At step 807, respectively calculating difference values between one value in the second values group and other values in the second values group, then dividing the difference values by the device frequency value to obtain a second difference values group composed of multiple time difference values.
At step 808, storing the first difference values group and the second difference values group.
At step 809, outputting the first difference values group and the second difference values group.
The computing step is executed when values of the second auxiliary parameters group, a value of the first position parameter, and a state of the second keys group meet preset condition.
As an illustrative example, the first value is used as a reference value in the first values group, calculate a difference value between the first value and the first value, calculate another difference value between the second value and the first value, calculate another difference value between the third value and the first value, calculate another difference value between the fourth value and the first value, respectively divide these difference values by the device frequency value to get a time value in time unit, the time value obtained is calibrated as a time value for a contact group of a corresponding phase to disconnect the first power side earlier or later than phase A contact group. Therefore, each time value in the first difference values group can accurately reflect disconnection synchronism of contact group of each pole of switch. Similarly, the fifth value is used as another reference value in the second values group, calculate a difference value between the fifth value and the fifth value, calculate another difference value between the sixth value and the fifth value, calculate another difference value between the seventh value and the fifth value, calculate another difference value between the eighth value and the fifth value, respectively divide these difference values by the device frequency value to get another time value in time unit, the time value obtained is calibrated as a time value for a contact group of a corresponding phase to connect the second power side earlier or later than phase A contact group. Therefore, each time value in the second difference values group can accurately reflect disconnection synchronism of contact group of each pole of switch. Store the first difference values group and the second difference values group after the computing step, and time values can be displayed on screen through command “cout”.
At step 810, changing values of the first auxiliary parameters group, values of the second auxiliary parameters group, and the value of the second position parameter.
One transition cycle of the dual power transfer switch is that the load side switches from the first power side to the second power side and then from the second power side back to the first power side. In a first half transition cycle, the conduct synchronism calibrates a synchronism of each pole contact group disconnecting the first power side and a synchronism of each pole contact group connecting the second power side. In a second half transition cycle, the conduct synchronism calibrates a synchronism of each pole contact group disconnecting the second power side and a synchronism of each pole contact group connecting the first power side. Therefore, before entering a next half transition cycle, the auxiliary parameters group used to assist in obtaining the first values group and the second values group needs to be changed to meet the preset condition for obtaining the first values group and the second values group, and the second position parameter is changed to correctly indicate a power information currently connected to the load side.
At step 901, obtaining and storing the second values group.
The second power contacts group switches from closed state to opened state after the dual power transfer switch switches the load side from the second power side back to the first power side, the second values group stored in the computer is a group of count values of the counter at a moment when the second power contacts group is opened.
At step 902, changing a value of the second position parameter.
The value of the second position parameter is changed after the second values group is stored to avoid the power message reappearing on the entire screen.
At step 903, obtaining and storing the first values group.
The first power contacts group switches from opened state to closed state after the dual power transfer switch switches the load side from the second power side back to the first power side, the computer obtains and stores the first values group.
At step 904, changing the first auxiliary parameters group.
Values of the first auxiliary parameters group are changed after the first values group is stored so that values of the first auxiliary parameters group do not meet the preset condition for obtaining the first values group, therefore, the first values group stored is a group of count values of the counter at a moment when the first power contacts group is closed.
At step 905, determining whether values of the first auxiliary parameter and the second position parameter, and state of the first keys group meet preset conditions.
The preset conditions are as followed. Each value of all auxiliary parameters in the first auxiliary parameters group is 2, a value of the second position parameter is 2, and state of each key of the first keys group is closed. Specifically, the first keys group being closed indicates that the first power contacts group is currently closed; the second position parameter is 2, which indicates that the load side currently connecting to the first power side is shown on the screen; each value of all auxiliary parameters in the first auxiliary parameters group is 2, which indicates that the computer has obtained and stored count values of the counter at a moment when the first keys group is closed.
At step 906, respectively calculating difference values between one value in the first values group and other values in the first values group, then dividing the difference values by the device frequency value to obtain a first difference values group composed of multiple time difference values.
At step 907, respectively calculating difference values between one value in the second values group and other values in the second values group, then dividing the difference values by the device frequency value to obtain a second difference values group composed of multiple time difference values.
At step 908, storing the first difference values group and the second difference values group.
At step 909, outputting the first difference values group and the second difference values group.
The computing step is executed when values of the second auxiliary parameters group, a value of the first position parameter, and a state of the second keys group meet preset condition.
As an illustrative example, the first value is used as a reference value in the first values group, calculate a difference value between the first value and the first value, calculate another difference value between the second value and the first value, calculate another difference value between the third value and the first value, calculate another difference value between the fourth value and the first value, respectively divide these difference values by the device frequency value to get a time value in time unit, the time value obtained is calibrated as a time value for a contact group of a corresponding phase to disconnect the first power side earlier or later than phase A contact group. Therefore, each time value in the first difference values group can accurately reflect disconnection synchronism of contact group of each pole of switch. Similarly, the fifth value is used as another reference value in the second values group, calculate a difference value between the fifth value and the fifth value, calculate another difference value between the sixth value and the fifth value, calculate another difference value between the seventh value and the fifth value, calculate another difference value between the eighth value and the fifth value, respectively divide these difference values by the device frequency value to get another time value in time unit, the time value obtained is calibrated as a time value for a contact group of a corresponding phase to connect the second power side earlier or later than phase A contact group. Therefore, each time value in the second difference values group can accurately reflect disconnection synchronism of contact group of each pole of switch. Store the first difference values group and the second difference values group after the computing step, and time values can be displayed on screen through command “cout”.
At step 910, changing values of the first auxiliary parameters group, values of the second auxiliary parameters group, and the value of the second position parameter.
One transition cycle of the dual power transfer switch is that the load side switches from the first power side to the second power side and then from the second power side back to the first power side. In a first half transition cycle, the conduct synchronism calibrates a synchronism of each pole contact group disconnecting the first power side and a synchronism of each pole contact group connecting the second power side. In a second half transition cycle, the conduct synchronism calibrates a synchronism of each pole contact group disconnecting the second power side and a synchronism of each pole contact group connecting the first power side. Therefore, before entering a next half transition cycle, the auxiliary parameters group used to assist in obtaining the first values group and the second values group needs to be changed to meet the preset condition for obtaining the first values group and the second values group, and the first auxiliary parameter and the second auxiliary parameter are changed to correctly indicate a power information currently connected to the load side. Method for changing parameter value includes but not limited to initialize the parameter value.
Testing method disclosed by the embodiment not only test a conduct synchronism of a dual power transfer switch from a first power side to a second power side, but also continues to test another conduct synchronism of the dual power transfer switch from the second power side back to the first power side without changing wiring method between the dual power transfer switch terminal and the collecting device. Therefore, the testing method disclosed by the embodiment can continuously and uninterruptedly test conduct synchronism of each pole in multiple transition cycles of dual power transfer switch so as to provide basic data for further judging influence of frequent operations on conduct transition time.
Specially, the corresponding unit is used for corresponding a contacts group of the dual power transfer switch to a key of a computer keyboard, for corresponding a contacts group state to a key state, for corresponding the first keys group composed of multiple keys to the first power contacts group composed of multiple contacts groups of the first power side, and for corresponding the second keys group composed of another multiple keys to the second power contacts group composed of multiple contacts groups of the second power side.
The frequency obtaining unit is used for obtaining the device frequency value of the computer.
The first count value obtaining unit is used for obtaining the first values group of the counter of the computer when the first keys group is closed, each value of the first values group corresponding to a count value of the counter when a corresponding key of the first keys group is closed.
The second count value obtaining unit is used for obtaining the second values group of the counter of the computer when the second keys group is closed, each value of the second values group corresponding to a count value of the counter when a corresponding key of the second keys group is closed.
The first storage unit is used for storing the first values group.
The second storage unit is used for storing the second values group.
The third storage unit is used for storing the device frequency value of the computer.
The computing unit is used for respectively calculating difference values between one value in the first values group and other values in the first values group and for dividing the difference values by the device frequency value to obtain a first difference values group composed of multiple time difference values. The computing unit is further used for respectively calculating difference values between one value in the second values group and other values in the second values group and for dividing the difference values by the device frequency value to obtain a second difference values group composed of multiple time difference values.
The fourth storage unit is used for storing the first difference values group.
The fifth storage unit is used for storing the second difference values group.
Optionally, the testing apparatus further comprises the output unit for outputting the time value on the screen.
Specially, the auxiliary unit is used for providing the auxiliary parameter, the auxiliary parameter comprises the first auxiliary parameters group and the second auxiliary parameters group, the first auxiliary parameters group comprises the first auxiliary parameter, the second auxiliary parameter, the third auxiliary parameter, and the fourth auxiliary parameter. The second auxiliary parameters group comprises the fifth auxiliary parameter, the sixth auxiliary parameter, the seventh auxiliary parameter, and the eighth auxiliary parameter. The position unit is used for providing a position parameter, the position parameter comprises the first position parameter and the second position parameter. The value changing unit is used for changing values of parameters, the value changing unit comprises a first value changing unit, a second value changing unit, and a third value changing unit.
Specially, the first count value obtaining unit is used for obtaining and storing the first value when the first contacts group corresponding to a first key is closed according to a value of the first auxiliary parameter, obtaining and storing the second value when the second contacts group corresponding to a second key is closed according to a value of the second auxiliary parameter, obtaining and storing the third value when the third contacts group corresponding to a third key is closed according to a value of the third auxiliary parameter, and obtaining and storing the fourth value when the fourth contacts group corresponding to a fourth key is closed according to a value of the fourth auxiliary parameter.
Specially, the second count value obtaining unit is used for obtaining and storing the fifth value when the fifth contacts group corresponding to a fifth key is closed according to a value of the fifth auxiliary parameter, obtaining and storing the sixth value when the sixth contacts group corresponding to a sixth key is closed according to a value of the sixth auxiliary parameter, obtaining and storing the seventh value when the seventh contacts group corresponding to a seventh key is closed according to a value of the seventh auxiliary parameter, and obtaining and storing the eighth value when the eighth contacts group corresponding to an eighth key is closed according to a value of the eighth auxiliary parameter.
The first value changing unit is used to change a value of the first position parameter or values of the first auxiliary parameters group after obtaining and storing the first values group. The second value changing unit is used to change values of the second auxiliary parameters group or a value of the second position parameter after obtaining and storing the second values group. The third value changing unit is used to change values of the first auxiliary parameters group, values of the second auxiliary parameters group, and a value of the second position parameter according to values of the second auxiliary parameters group, a value of the first position parameter, and a state of each key of the second keys group. The computing unit executes the computing step when values of the second auxiliary parameters group, a value of the first position parameter, and state of each key of the second keys group meet the preset condition.
Optionally, the third value changing unit is also used to change values of the first auxiliary parameters group, values of the second auxiliary parameters group, a value of the first position parameter, and a value of the second position parameter according to values of the first auxiliary parameters group, the value of the second position parameter, and state of each key of the first keys group. The computing unit is also used to executes the computing step when values of the first auxiliary parameters group, a value of the second position parameter, and state of each key of the first keys group meet the preset condition.
Optionally, the testing apparatus further comprises the output unit for outputting the time value, and the output unit outputs the time value on the screen, as shown in Tables 2-4.
Tables 2-4 are recording tables for testing conduct synchronism of dual power transfer switch using a testing apparatus provided by an exemplary embodiment of the present application, these three recording tables record synchronism data of contact groups corresponding to 10 consecutive transition cycles. “Power -A- is working!” means that the current load side is connected to the first power side, “Power -B- is working!” means that the current load side is connected to the second power side. “From A to B” means that the load side is switched from the first power side to the second power side, “From B to A” means that the load side is switched from the second power side back to the first power side. Values after “1A:”, “1B:”, “1C:” and “1N:” respectively represent time values of early or late disconnection of phase A, phase B, phase C, and phase N relative to phase A. A positive number means late disconnection, and a negative number means early disconnection, a unit of value is microseconds. Values after “2A:”, “2B:”, “2C:” and “2N:” respectively represent time values of early or late connection of phase A, phase B, phase C, and phase N relative to phase A. A positive number means late connection, and a negative number means early connection, a unit of value is microseconds.
Number | Date | Country | Kind |
---|---|---|---|
2020104817731 | Jun 2020 | CN | national |