Compression representation method for fundamental wave parameters in alternating current parameters
By judging the preset values of the full-wave current and voltage, and using the low bits of active and reactive power to specify the sign bits of the fundamental wave parameters, the problem of large storage space for fundamental wave parameters is solved, achieving the effect of data compression without reducing accuracy, which is suitable for the storage and transmission of AC power.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BENGBU POWER SUPPLY COMPANY STATE GRID ANHUI ELECTRIC POWER
- Filing Date
- 2024-10-30
- Publication Date
- 2026-05-01
AI Technical Summary
In the existing technology, the fundamental frequency parameter of AC current needs to be stored using 28 bytes, which is a large amount of data and results in a large storage space occupation.
By determining whether the full-wave current and voltage are greater than preset values, the sign bits of the fundamental current and voltage are specified using the least significant and second least significant bits of active and reactive power, thus compressing the representation of the fundamental parameters so that they can be stored using 4 bytes.
It achieves high data compression rate, saves storage space, and does not affect the comprehensive measurement accuracy of three-phase AC signals. It simplifies the representation method and is suitable for AC power storage and transmission.
Abstract
Description
Technical Field
[0001] This invention relates to the field of AC power parameter data processing technology, and in particular to a method for compressed representation of fundamental parameters in AC power parameters. Background Technology
[0002] Alternating current (AC) is a common form of electricity in power systems, where voltage and current alternate. Fundamental voltage and fundamental current are the main electrical parameters in AC, possessing both real and imaginary parts. Generally, the full-wave voltage and current of each phase in a three-phase AC system can be represented using 2 bytes, while active and reactive power require 4 bytes. Due to the presence of both real and imaginary parts, the fundamental voltage and fundamental current require 8 bytes to represent.
[0003] The reason why fundamental voltage and fundamental current need to be represented by 8 bytes is that, under good AC quality conditions, the fundamental and full-wave amplitudes are basically equal. Generally, the full-wave amplitude is greater than the fundamental amplitude. Because it has positive and negative values, both the real and imaginary parts need to be represented by 4 bytes, meaning 8 bytes are needed to represent one fundamental parameter. Therefore, there is a problem with the existing technology: each phase parameter requires 28 bytes to store, resulting in a large data volume. Summary of the Invention
[0004] The purpose of this invention is to provide a compressed representation method for the fundamental wave parameter in AC power parameters, which has the advantages of high data compression rate, intuitive and fast operation, and does not affect the comprehensive measurement accuracy of three-phase AC power signals.
[0005] This invention is achieved through the following technical solution:
[0006] A method for compressed representation of fundamental parameters in alternating current parameters includes the following steps:
[0007] Step 1: Determine if the full-wave current is greater than the preset value.
[0008] If so, proceed to the next step;
[0009] If not, use 2 bytes to represent the real part of the fundamental current (including the sign bit) and 2 bytes to represent the imaginary part of the fundamental current (including the sign bit);
[0010] Step 2: Determine whether the real part of the fundamental current is negative.
[0011] If so, specify the least significant bit of the active power as 1, indicating that the sign of the real part of the fundamental current is negative, and use 2 bytes to represent the absolute value of the real part of the fundamental current;
[0012] If not, specify the least significant bit of the active power as 0, indicating that the imaginary part of the fundamental current is positive, and use 2 bytes to represent the real part of the fundamental current.
[0013] Step 3: Determine if the imaginary part of the fundamental current is negative.
[0014] If so, specify the second least significant bit of the active power as 1, indicating that the imaginary part of the fundamental current is negative, and use 2 bytes to represent the absolute value of the imaginary part of the fundamental current;
[0015] If not, specify the second least significant bit of the active power as 0, indicating that the imaginary part of the fundamental current is positive, and use 2 bytes to represent the value of the imaginary part of the fundamental current;
[0016] Step 4: Determine if the full-wave voltage is greater than the preset value.
[0017] If so, proceed to the next step;
[0018] If not, use 2 bytes to represent the real part of the fundamental voltage (including the sign bit) and 2 bytes to represent the imaginary part of the fundamental voltage (including the sign bit);
[0019] Step 5: Determine if the real part of the fundamental voltage is negative.
[0020] If so, specify the least significant bit of reactive power as 1, indicating that the sign of the real part of the fundamental voltage is negative, and use 2 bytes to represent the absolute value of the real part of the fundamental voltage;
[0021] If not, specify the minimum reactive power as 0, indicating that the real part of the fundamental voltage is positive, and use 2 bytes to represent the real part value of the fundamental voltage.
[0022] Step Six: Determine if the imaginary part of the fundamental voltage is negative.
[0023] If so, specify the second least significant bit of reactive power as 1, indicating that the sign of the imaginary part of the fundamental voltage is negative, and use 2 bytes to represent the absolute value of the imaginary part of the fundamental voltage;
[0024] If not, specify the second least significant bit of reactive power as 0, indicating that the imaginary part of the fundamental voltage is positive, and use 2 bytes to represent the value of the imaginary part of the fundamental voltage.
[0025] In summary, the beneficial technical effects of the present invention are as follows:
[0026] 1. High data compression rate: By compressing the fundamental voltage and fundamental current into 4 bytes for storage, compared with the traditional 8-byte storage method, storage space is saved, making data transmission faster and occupying less storage space.
[0027] 2. No impact on accuracy: Although a data compression method is used, it can still accurately represent the real and imaginary parts of the fundamental voltage and fundamental current without affecting the overall measurement accuracy.
[0028] 3. Simplified representation: The sign bits of the fundamental voltage and fundamental current are compressed under specific conditions, making the representation more concise and easier to understand and process.
[0029] 4. Wide applicability: This compression method is applicable to the storage and transmission of fundamental voltage and fundamental current in alternating current, and has high versatility and practicality. Detailed Implementation
[0030] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention.
[0031] This invention discloses a method for compressing the fundamental parameters in AC power parameters, which is mainly used for storing and transmitting the fundamental voltage and fundamental current parameters of AC power.
[0032] In practice, when the total wave exceeds a certain preset value, the sign bits of the real and imaginary parts of the fundamental wave are compressed to the last two bits of the corresponding power. That is, the sign bit of the fundamental current is compressed to the last two bits of the active power, and the sign bit of the fundamental voltage is compressed to the last two bits of the reactive power.
[0033] When the total current exceeds a certain preset value, the representation of the real and imaginary parts of the fundamental current may exceed the range of two bytes. In this case, the least significant and second least significant bits of the active power can be used to specify the signs of the real and imaginary parts of the fundamental current. When the total current is less than the preset value, two bytes are used to represent the real and imaginary parts (including the sign bit), and it is not necessary to compress the sign bit into the last two bits of the active power.
[0034] When the full-wave voltage is greater than a certain preset value, the representation of the real and imaginary parts of the fundamental voltage may exceed the range of 2 bytes. In this case, the least significant and second least significant bits of the reactive power can be used to specify the signs of the real and imaginary parts of the fundamental voltage. When the full-wave voltage is less than the preset value, 2 bytes are used to represent the real and imaginary parts (including the sign bit), and it is not necessary to compress the sign bit into the last 2 bits of the reactive power.
[0035] A sign bit value of 0 indicates positive, and 1 indicates negative. This method reduces storage space usage and improves data transmission efficiency while maintaining data accuracy.
[0036] This technical solution can effectively represent and store AC parameters, optimize data compression and transmission, and provide convenience for AC quality monitoring and control.
[0037] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Therefore, all equivalent changes made in accordance with the structure, shape, and principle of the present invention should be covered within the scope of protection of the present invention.
Claims
1. A method for compressed representation of the fundamental frequency parameter in alternating current parameters, characterized in that, Includes the following steps: Step 1: Determine if the full-wave current is greater than the preset value. If so, proceed to the next step; If not, use 2 bytes to represent the real part of the fundamental current (including the sign bit) and 2 bytes to represent the imaginary part of the fundamental current (including the sign bit); Step 2: Determine whether the real part of the fundamental current is negative. If so, specify the least significant bit of the active power as 1, indicating that the sign of the real part of the fundamental current is negative, and use 2 bytes to represent the absolute value of the real part of the fundamental current; If not, specify the least significant bit of the active power as 0, indicating that the imaginary part of the fundamental current is positive, and use 2 bytes to represent the real part of the fundamental current. Step 3: Determine if the imaginary part of the fundamental current is negative. If so, specify the second least significant bit of the active power as 1, indicating that the imaginary part of the fundamental current is negative, and use 2 bytes to represent the absolute value of the imaginary part of the fundamental current; If not, specify the second least significant bit of the active power as 0, indicating that the imaginary part of the fundamental current is positive, and use 2 bytes to represent the value of the imaginary part of the fundamental current; Step 4: Determine if the full-wave voltage is greater than the preset value. If so, proceed to the next step; If not, use 2 bytes to represent the real part of the fundamental voltage (including the sign bit) and 2 bytes to represent the imaginary part of the fundamental voltage (including the sign bit); Step 5: Determine if the real part of the fundamental voltage is negative. If so, specify the least significant bit of reactive power as 1, indicating that the sign of the real part of the fundamental voltage is negative, and use 2 bytes to represent the absolute value of the real part of the fundamental voltage; If not, specify the minimum reactive power as 0, indicating that the real part of the fundamental voltage is positive, and use 2 bytes to represent the real part value of the fundamental voltage. Step Six: Determine if the imaginary part of the fundamental voltage is negative. If so, specify the second least significant bit of reactive power as 1, indicating that the sign of the imaginary part of the fundamental voltage is negative, and use 2 bytes to represent the absolute value of the imaginary part of the fundamental voltage; If not, specify the second least significant bit of reactive power as 0, indicating that the imaginary part of the fundamental voltage is positive, and use 2 bytes to represent the value of the imaginary part of the fundamental voltage.
2. The method for compressed representation of fundamental parameters in AC power parameters according to claim 1, characterized in that... In step one, the preset value of the full-wave current is determined.
3. The method for compressed representation of fundamental parameters in AC current parameters according to claim 1, characterized in that... In step four, the preset value of the full-wave voltage is determined.
4. The method for compressed representation of fundamental parameters in AC power parameters according to claim 1, characterized in that... The sign bit has a value of 0 for positive and 1 for negative.