An intelligent power factor compensation method, system and medium thereof

By detecting the reactive power value, the relay is automatically turned on or off, which solves the problem of contact adhesion caused by the fixed conduction time of the relay, extends the service life of the relay, reduces operating costs, and improves the stability of the power system.

CN117856280BActive Publication Date: 2024-09-13ZHEJIANG JINNENG ELECTRIC POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311845465.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-09-13
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

The conduction time of the relay in the prior art is fixed, which leads to contact adhesion easily occurring after being triggered multiple times, which increases the difficulty of disconnection and the instability of the power system.

Method used

By detecting the reactive power value and comparing it with the preset threshold, the relay is automatically controlled to be turned on or off, and the delay protection is used to shorten the relay energization time and reduce the risk of contact oxidation and adhesion.

Benefits of technology

It effectively shortens the energization time of the relay, extends its service life, reduces operating costs, and improves the stability and efficiency of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117856280B
    Figure CN117856280B
Patent Text Reader

Abstract

The present application relates to the field of power transmission, and in particular to an intelligent power factor compensation method, system and medium thereof, which includes detecting and obtaining a reactive power value; determining a compensation signal by comparing the reactive power value with a preset reactive power threshold; if the reactive power value is lower than the reactive power threshold, outputting the corresponding compensation signal to turn on the relay for compensation; if the reactive power value is higher than the reactive power threshold, outputting the corresponding compensation signal to disconnect the relay. The present application has the effect of shortening the power-on time and protecting the relay contacts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power transmission, and in particular to an intelligent power factor compensation method, system and medium thereof. Background Art

[0002] In the process of power grid transmission, the existence of reactive power will lead to problems such as decreased power factor, increased power loss, line overload, and reduced power system stability. Therefore, when the power factor decreases, compensation is needed to make the power factor close to 1, reduce the reactive component, and improve the stability and efficiency of the power system.

[0003] Now, when the reactive power reaches a certain value, the compensation cabinet is usually turned on by a relay to compensate the power grid. However, the conduction time of the relay is often a fixed time, that is, the fixed time for the power grid compensation. After being triggered and used for a long time and many times, the relay is prone to contact adhesion due to long-term conduction, which increases the difficulty of disconnection. That is, when the disconnection time is reached, the force of the opening switch must first overcome the adhesion force before the contacts can be disconnected to achieve circuit breaking. Summary of the invention

[0004] In order to improve the problem that the conduction time of the relay is often fixed, resulting in the contact sticking easily after multiple triggering, the present application provides an intelligent power factor compensation method, system and medium thereof.

[0005] The present application provides an intelligent power factor compensation method, which adopts the following technical solution:

[0006] An intelligent power factor compensation method, comprising:

[0007] Detect and obtain reactive power value;

[0008] Determining a compensation signal by comparing the reactive power value with a preset reactive power threshold;

[0009] If the reactive power value is greater than the reactive power threshold, outputting the corresponding compensation signal to turn on the relay for compensation;

[0010] If the reactive power value is lower than the reactive power threshold, the corresponding compensation signal is output to disconnect the relay.

[0011] By adopting the above technical solution, when the reactive power is too large, that is, the reactive power value is greater than the reactive power threshold, the compensation cabinet is automatically turned on through the relay for reactive compensation. When the reactive power is compensated to a specified level, that is, the reactive power value is less than the reactive power threshold, the relay is actively disconnected, thereby effectively shortening the power-on time of the relay, reducing the electric shock, oxidation and adhesion caused by long-term conduction of the relay, protecting the relay and extending its service life.

[0012] Optionally, after the step of outputting the corresponding compensation signal to turn on the relay for compensation if the reactive power value is lower than the reactive power threshold, the method further includes:

[0013] After delaying for a preset protection time threshold, reactive power is detected;

[0014] If the reactive power value is still lower than the reactive power threshold, outputting the corresponding compensation signal to continue to keep the relay turned on for compensation;

[0015] If the reactive power value is higher than the reactive power threshold, the corresponding compensation signal is output to disconnect the relay.

[0016] By adopting the above technical solution, the use time of the detection equipment is reduced. When the relay is just turned on and compensated through the compensation cabinet, the reactive power decreases. Therefore, there is no need to detect during this period at the beginning. It can be skipped by delaying the protection time threshold. At the same time, the detection equipment is given time to rest, which also reduces the use time, extends the service life and reduces the cost of use.

[0017] Optionally, the reactive power detection step includes:

[0018] Detect and obtain active power detection value, power factor detection value, and total power detection value;

[0019] A reactive power calculation value is determined by the active power detection value, the power factor detection value and the total power detection value, and the reactive power calculation value is used as the reactive power value.

[0020] By adopting the above technical solution, the active power, power factor and total power of the power grid are detected, and then the reactive power calculation value is obtained by calculation and used as the reactive power value for calculation, thereby reducing the equipment cost required to obtain the reactive power value.

[0021] Optionally, the reactive power calculation value is compared with a preset first judgment threshold value, and if the reactive power calculation value is higher than the first judgment threshold value, the reactive power is detected to obtain a reactive power detection value;

[0022] The reactive power detection value is compared with a preset second judgment threshold. If the reactive power detection value is higher than the second judgment threshold, the reactive power detection value is used as the reactive power value, and the priority of the reactive power detection value is higher than the priority of the reactive power calculation value.

[0023] By adopting the above technical solution, when the reactive power value is about to reach the reactive power threshold, the device for directly detecting reactive power is started, and the reactive power detection value is obtained to replace the reactive power calculation value as the reactive power value to participate in the calculation, which is more accurate. While ensuring accuracy, it reduces the use time of the device for directly detecting reactive power, extends its service life and reduces costs.

[0024] Optionally, if the reactive power detection value is higher than the second judgment threshold;

[0025] Determine a deviation value by using the reactive power detection value and the reactive power calculation value;

[0026] By comparing the deviation value with a preset deviation threshold, if the deviation value is less than the deviation threshold, stop detecting reactive power and use the calculated reactive power value as the reactive power value. When the calculated reactive power value is higher than the second judgment threshold, detect reactive power and use the detected reactive power value as the reactive power value.

[0027] By adopting the above technical solution, the error between the reactive power calculation value and the reactive power detection value is judged by the deviation value. If the error is small enough, the reactive power calculation value is used to replace the reactive power detection value, thereby further reducing the operating time of the equipment that directly detects reactive power and extending its service life.

[0028] Optionally, if the deviation value is greater than the deviation threshold;

[0029] The reactive power detection value and the reactive power calculation value are obtained multiple times through a preset deviation detection time threshold and a preset deviation detection number threshold, and the deviation value is calculated;

[0030] Compare the multiple deviation values ​​with the deviation threshold to determine the number of deviations;

[0031] The deviation times value is judged and compared with a preset deviation times threshold value. If the deviation times value is greater than the deviation times threshold value, a corresponding alarm signal is output to the user, and the reactive power detection value is used as the reactive power value.

[0032] By adopting the above technical solution, if the error between the reactive power calculation value and the reactive power detection value is too large, it means that the detection equipment of the reactive power calculation value is faulty, so the reactive power detection value is used to replace the reactive power calculation value as the reactive power value to participate in the calculation, thereby improving accuracy. At the same time, the user is reminded through an alarm signal to facilitate maintenance.

[0033] Optionally, detection is started from the deviation value calculated last time to obtain the interval time value;

[0034] The interval time value is compared with a preset interval time threshold. If the interval time value is greater than the interval time threshold, the reactive power calculation value is calculated, the reactive power detection value is detected, and the deviation value is determined by the reactive power calculation value and the reactive power detection value.

[0035] By adopting the above technical solution, the deviation value is calculated regularly, thereby realizing regular inspection of the accuracy of the reactive power calculation value, and improving the accuracy of the reactive power calculation value.

[0036] The present application provides an intelligent power factor compensation system, which adopts the following technical solutions:

[0037] An intelligent power factor compensation system, comprising:

[0038] A detection module, used for detecting and obtaining the reactive power value and outputting it;

[0039] A database is used to store data, the data includes threshold data and log data, the threshold data includes the reactive power threshold; a processor is used to receive reactive power values, and call the reactive power threshold from the database for calculation and processing, obtain the compensation signal and output it to the relay for on-off control of the compensation cabinet.

[0040] By adopting the above technical solution, the reactive power value is obtained through the detection module, the data is stored in the database, and the data in the database is called and calculated by the processor, so as to realize automatic judgment of the relay conduction time and on-off control.

[0041] Optionally, the detection module includes an active detection module and a reactive detection module, the active detection module is used to detect active power, power factor and total power, obtain the active power detection value, the power factor detection value and the total power detection value, and output them to the processor for calculation and processing; the reactive detection module is used to directly detect reactive power, obtain the reactive power detection value and output it to the processor for calculation and processing; the processor is used to determine whether the reactive detection module is involved in the detection work based on the reactive power calculation value and the reactive power detection value.

[0042] By adopting the above technical solution, the processor determines whether to start the active power detection module to calculate the reactive power calculated value as the reactive power value, or to start the reactive power detection module to directly detect the reactive power detection value as the reactive power value according to the reactive power value. Without affecting the accuracy of the reactive power value, the operating time of the reactive power detection module is reduced and the service life is extended.

[0043] The present application provides a computer-readable storage medium, which adopts the following technical solution:

[0044] A computer-readable storage medium stores a computer program of an intelligent power factor compensation method that can be loaded and executed by a processor.

[0045] By adopting the above technical solution, the computer program is stored in a computer-readable storage medium.

[0046] In summary, the present application includes at least one of the following beneficial technical effects:

[0047] 1. Compared with the current reactive power compensation for a fixed time, it effectively shortens the power-on time and avoids oxidation and adhesion of the switch contacts caused by long-term power-on of the relay.

[0048] 2. Protect testing equipment, extend service life and reduce operating costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flow chart of an intelligent power factor compensation method in Example 1 of the present application.

[0050] Figure 2 This is a module diagram of an intelligent power factor compensation system in Example 1 of the present application.

[0051] Figure 3 It is a flow chart of an intelligent power factor compensation method in Example 2 of the present application.

[0052] Figure 4 It is a flowchart of step S3.

[0053] Figure 5 It is a flowchart of step S4.

[0054] Figure 6 It is a flowchart diagram of step S5.

[0055] Figure 7 It is a flowchart of step S6.

[0056] Figure 8 It is a flowchart of step S7.

[0057] Fig. 9 This is a module schematic diagram of an intelligent power factor compensation system in Example 2 of the present application.

[0058] Explanation of the accompanying drawings: 1. Detection module; 11. Active power detection module; 12. Reactive power detection module; 2. Database; 3. Processor. DETAILED DESCRIPTION

[0059] The following is combined with Figure 1-9 This application is described in further detail.

[0060] Embodiment 1 of the present application discloses an intelligent power factor compensation method. Figure 1 , the intelligent power factor compensation method includes the following steps:

[0061] S1, detect and obtain reactive power value;

[0062] S11, determining a compensation signal by comparing the reactive power value with a preset reactive power threshold;

[0063] S12, if the reactive power value is greater than the reactive power threshold, output a corresponding compensation signal to turn on the relay for compensation;

[0064] S13. If the reactive power value is lower than the reactive power threshold, a corresponding compensation signal is output to disconnect the relay.

[0065] For example: Assume that the reactive power threshold is [1,2]. If the reactive power value is 3>2, the corresponding compensation signal is output to the relay, so that the relay turns on the compensation cabinet, thereby performing compensation. During the compensation process, the reactive power value is continuously detected; if the reactive power value is 1.5, 1<1.5<2, the current state is maintained; if the reactive power value is 0.5<1, the corresponding compensation signal is output to the relay, so that the relay is disconnected and the compensation of the compensation cabinet is stopped.

[0066] The implementation principle of an intelligent power factor compensation method in Example 1 of the present application is: when the reactive power value reaches the maximum value of the reactive power threshold range, the relay is turned on to enable the compensation cabinet to perform reactive compensation until the reactive power value is reduced to below the minimum value of the reactive power threshold range, and then the contacts of the relay are disconnected.

[0067] Embodiment 1 of the present application discloses an intelligent power factor compensation system. Figure 2 The intelligent power factor compensation system includes a detection module 1, a database 2 and a processor 3. The detection module 1 is used to obtain the reactive power value and output it to the processor 3 for calculation. In this embodiment, the detection module 1 can use a device that directly detects reactive power, such as a reactive detector, etc., or a device that indirectly detects reactive power, such as a power factor meter, a power meter, etc. to detect active power, power factor and total power to calculate reactive power. The database 2 is used to store data, and the data includes various threshold data in this application and log data formed by storing data of the working status of the power grid. In this embodiment, the threshold data includes a reactive power threshold. The processor 3 is used to receive the reactive power value of the detection module 1, and call the reactive power threshold from the database 2 for calculation and processing, obtain a compensation signal and output it to the relay to control the on and off of the compensation cabinet.

[0068] The processor 3 may include a central processing unit such as a CPU or MPU or a host system built around a CPU or MPU, including hardware or software. After the meter has a processor 3, people can freely control the metering instrument by programming so that it can run according to people's wishes. The processor 3 can control local measurement transmission, remote measurement transmission, remote communication, etc. through internal protocols. Internal protocols generally refer to all protocols that achieve mutual communication or linking within the same metering instrument or the same system, including: human-computer interaction protocols, software / hardware (interface) protocols, chip bus (C-Bus) protocols, internal bus (I-Bus) protocols, etc. Some or all of the protocols. With the development of integrated circuit technology, some protocols belonging to the external bus (E-Bus) protocol are also classified as internal protocols after the external bus (E-Bus) is integrated into the chip.

[0069] Embodiment 1 of the present application discloses a computer-readable storage medium. Figure 1 The computer-readable storage medium is used to store a computer program of an intelligent power factor compensation method that can be loaded and executed by a processor.

[0070] Computer-readable storage media include, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0071] Embodiment 2:

[0072] Different from the first embodiment, the second embodiment of the present application discloses an intelligent power factor compensation method. Figure 3 The intelligent power factor compensation method further includes the following steps between step S12 and step S13:

[0073] S2, after delaying for a preset protection time threshold, detecting reactive power;

[0074] S21, if the reactive power value is still lower than the reactive power threshold, output a corresponding compensation signal to keep the relay turned on for compensation;

[0075] S22. If the reactive power value is higher than the reactive power threshold, a corresponding compensation signal is output to disconnect the relay.

[0076] For example: let the protection time threshold be a, let the reactive power threshold be [1,2]. If the reactive power value is 3>2, when the corresponding compensation signal is output to turn on the relay to make the compensation cabinet work for compensation, the detection or calculation of reactive power is stopped, and timing is started at the same time. After the timing reaches the protection time threshold, that is, after the delay of a, the detection or calculation of reactive power is restarted, so that the equipment used to detect or calculate reactive power can get a rest and extend its service life.

[0077] Reference Figure 4 , step S1 further comprises the following steps:

[0078] S3, detecting and obtaining an active power detection value, a power factor detection value, and a total power detection value;

[0079] S31. Determine a reactive power calculation value through the active power detection value, the power factor detection value and the total power detection value, and use the reactive power calculation value as the reactive power value.

[0080] For example: If the active power detection value is P, if the power factor detection value is The apparent power can be calculated Calculate the reactive power value

[0081] Reference Figure 5 , before step S12, the following steps are also included:

[0082] S4, comparing the reactive power calculation value with a preset first judgment threshold, if the reactive power calculation value is higher than the first judgment threshold, detecting the reactive power to obtain a reactive power detection value;

[0083] S41. Compare and judge the reactive power detection value with a preset second judgment threshold. If the reactive power detection value is higher than the second judgment threshold, the reactive power detection value is used as the reactive power value, and the priority of the reactive power detection value is higher than the priority of the reactive power calculation value.

[0084] For example: Set the reactive power threshold to [1,2], the first judgment threshold to 1.5, and the second judgment threshold to [1.4,1.8]. If the reactive power calculation value is 1.6>1.5, then stop detecting the active power detection value, the power factor detection value, and the total power detection value, and stop calculating the reactive power calculation value. Start the device that directly detects reactive power to obtain the reactive power detection value. If the reactive power detection value is 1.5>1.4, then use the reactive power detection value instead of the reactive power calculation value as the reactive power value for calculation.

[0085] Reference Figure 6 , step S41 further comprises the following steps:

[0086] S5. If the reactive power detection value is higher than the second judgment threshold;

[0087] S51, determining a deviation value through a reactive power detection value and a reactive power calculation value;

[0088] S52. Compare and judge the deviation value with the preset deviation threshold. If the deviation value is less than the deviation threshold, stop detecting reactive power and use the calculated reactive power value as the reactive power value. Until the calculated reactive power value is higher than the second judgment threshold, detect reactive power and use the detected reactive power value as the reactive power value.

[0089] For example: Assume the deviation threshold is 1%, if the reactive power calculation value is 1.6>1.5, if the reactive power detection value is 1.59>1.4, the calculated deviation value is At this time, stop directly detecting reactive power, and use the calculated reactive power value as the reactive power value for calculation until the calculated reactive power value rises to greater than 1.8; if the calculated reactive power value is 1.9>1.8, stop detecting the active power detection value, the power factor detection value, and the total power detection value, and stop calculating the calculated reactive power value at the same time, and start the device for directly detecting reactive power to obtain the reactive power detection value, and use the reactive power detection value as the reactive power value for calculation.

[0090] Reference Figure 7 , further comprising the following steps:

[0091] S6. If the deviation value is greater than the deviation threshold;

[0092] S61, obtaining reactive power detection values ​​and reactive power calculation values ​​multiple times through a preset deviation detection time threshold and a preset deviation detection number threshold, and calculating the deviation value;

[0093] S62, comparing the multiple deviation values ​​with the deviation threshold to determine the number of deviations;

[0094] S63, comparing the deviation times value with a preset deviation times threshold value, if the deviation times value is greater than the deviation times threshold value, outputting a corresponding alarm signal to the user, and taking the reactive power detection value as the reactive power value.

[0095] For example: suppose the deviation number threshold is d, if the calculated deviation value is 2%>1%, suppose the deviation detection time threshold is b, and suppose the deviation detection number threshold is c, it means that c reactive power detection values ​​and reactive power calculation values ​​are obtained within a time, so as to obtain c consecutive deviation values ​​through calculation. If there are e deviation values ​​greater than 1% among the c deviation values, that is, the deviation number value is e, and if e>d, then the corresponding alarm signal is output to the user, and the reactive power detection value is used as the reactive power value; the alarm signal indicates that the error of the equipment for detecting active power, power factor, and total power is too large, and a fault may occur. If the price of the detection equipment purchased by the user at the beginning is low and the error itself is too large, then the user can ignore this alarm signal.

[0096] Reference Figure 8 , which also includes the following steps:

[0097] S7, starting detection from the deviation value obtained by the last calculation, and obtaining the interval time value;

[0098] S71. Compare and judge the interval time value with the preset interval time threshold. If the interval time value is greater than the interval time threshold, calculate the reactive power calculation value, detect the reactive power detection value, and determine the deviation value through the reactive power calculation value and the reactive power detection value.

[0099] For example: Assume that the interval time threshold is t. Each time the deviation value is calculated, the interval time value will be reset. If the interval time value between two deviation values ​​is less than t, the interval time value will be reset directly. If the interval time value between the deviation values ​​is greater than t, the detection device will be actively started to obtain the reactive power detection value and the reactive power calculation value, so as to actively calculate the deviation value.

[0100] Embodiment 2 of the present application discloses an intelligent power factor compensation system. Fig. 9 , intelligent power factor compensation system, the detection module 1 includes an active detection module 11 and a reactive detection module 12, the active detection module 11 is used to detect active power, power factor and total power, obtain active power detection value, power factor detection value and total power detection value and output them to the processor 3 for calculation and processing. The reactive detection module 12 is used to directly detect reactive power, obtain reactive power detection value and output it to the processor 3 for calculation and processing. The processor 3 is used to determine whether the reactive detection module 12 participates in the detection work according to the reactive power calculation value and the reactive power detection value. The price of the equipment for detecting active power, power factor and total power is lower than that of the equipment for directly detecting reactive power.

[0101] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. An intelligent power factor compensation method, characterized in that: include: Detect and obtain reactive power value; Determining a compensation signal by comparing the reactive power value with a preset reactive power threshold; If the reactive power value is greater than the reactive power threshold, outputting the corresponding compensation signal to turn on the relay for compensation; If the reactive power value is lower than the reactive power threshold, outputting the corresponding compensation signal to disconnect the relay; The step of detecting and obtaining the reactive power value comprises: Detect and obtain active power detection value, power factor detection value, and total power detection value; Determine a reactive power calculation value through the active power detection value, the power factor detection value and the total power detection value, and use the reactive power calculation value as the reactive power value; By comparing the reactive power calculation value with a preset first judgment threshold, if the reactive power calculation value is higher than the first judgment threshold, detecting reactive power to obtain a reactive power detection value; By comparing the reactive power detection value with a preset second judgment threshold, if the reactive power detection value is higher than the second judgment threshold, the reactive power detection value is used as the reactive power value, and the priority of the reactive power detection value is higher than the priority of the reactive power calculation value; After the step of outputting the corresponding compensation signal to turn on the relay for compensation if the reactive power value is lower than the reactive power threshold, the method further includes: After delaying for a preset protection time threshold, reactive power is detected; If the reactive power value is still lower than the reactive power threshold, outputting the corresponding compensation signal to continue to keep the relay turned on for compensation; If the reactive power value is higher than the reactive power threshold, outputting the corresponding compensation signal to disconnect the relay; If the reactive power detection value is higher than the second judgment threshold; Determine a deviation value by using the reactive power detection value and the reactive power calculation value; By comparing the deviation value with a preset deviation threshold, if the deviation value is less than the deviation threshold, stop detecting reactive power and use the calculated reactive power value as the reactive power value. When the calculated reactive power value is higher than the second judgment threshold, detect reactive power and use the detected reactive power value as the reactive power value.

2. The intelligent power factor compensation method according to claim 1, characterized in that: include: If the deviation value is greater than the deviation threshold; The reactive power detection value and the reactive power calculation value are obtained multiple times through a preset deviation detection time threshold and a preset deviation detection number threshold, and the deviation value is calculated; Compare the multiple deviation values ​​with the deviation threshold to determine the number of deviations; The deviation times value is judged and compared with a preset deviation times threshold value. If the deviation times value is greater than the deviation times threshold value, a corresponding alarm signal is output to the user, and the reactive power detection value is used as the reactive power value.

3. The intelligent power factor compensation method according to claim 1, characterized in that: include: Starting detection from the deviation value obtained by the last calculation, obtaining the interval time value; The interval time value is compared with a preset interval time threshold. If the interval time value is greater than the interval time threshold, the reactive power calculation value is calculated, the reactive power detection value is detected, and the deviation value is determined by the reactive power calculation value and the reactive power detection value.

4. An intelligent power factor compensation system, according to the intelligent power factor compensation method of claim 1, characterized in that: include: A detection module (1), used for detecting and obtaining the reactive power value and outputting it; A database (2) for storing data, the data including threshold data and log data, the threshold data including the reactive power threshold; The processor (3) is used to receive the reactive power value and call the reactive power threshold from the database (2) for calculation and processing, obtain the compensation signal and output it to the relay to perform on-off control of the compensation cabinet.

5. The intelligent power factor compensation system according to claim 4, characterized in that: The detection module (1) comprises an active detection module (11) and a reactive detection module (12); the active detection module (11) is used to detect active power, power factor and total power, obtain the active power detection value, the power factor detection value and the total power detection value, and output them to the processor (3) for calculation and processing; the reactive detection module (12) is used to directly detect reactive power, obtain the reactive power detection value and output it to the processor (3) for calculation and processing; the processor (3) is used to determine whether the reactive detection module (12) is involved in the detection work according to the reactive power calculation value and the reactive power detection value.

6. A computer-readable storage medium, characterized in that: A computer program according to any one of claims 1 to 3 of the intelligent power factor compensation method is stored and can be loaded and executed by a processor.