CN116027102A - Power calculation method and device of electric power instrument and electric power instrument - Google Patents

Power calculation method and device of electric power instrument and electric power instrument Download PDF

Info

Publication number
CN116027102A
CN116027102A CN202310316758.5A CN202310316758A CN116027102A CN 116027102 A CN116027102 A CN 116027102A CN 202310316758 A CN202310316758 A CN 202310316758A CN 116027102 A CN116027102 A CN 116027102A
Authority
CN
China
Prior art keywords
value
power
electric power
instrument
meter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310316758.5A
Other languages
Chinese (zh)
Inventor
王飞
崔安江
李志远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Longdian Huaxin Holding Group Co ltd
Original Assignee
Shenzhen Longdian Huaxin Holding Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Longdian Huaxin Holding Group Co ltd filed Critical Shenzhen Longdian Huaxin Holding Group Co ltd
Priority to CN202310316758.5A priority Critical patent/CN116027102A/en
Publication of CN116027102A publication Critical patent/CN116027102A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application is applicable to the technical field of electric power meters, and provides a power calculation method and device of an electric power meter and the electric power meter, wherein the method comprises the following steps: reading a value of a power register of the power meter, the value being capable of reflecting power information of the power meter; determining an initial power value of the electric power instrument according to the numerical value; reading a flag value of a signal flag bit of the electric power instrument, wherein the flag value is used for indicating whether the positive direction and the negative direction of a sampling line of a current signal of the electric power instrument are reversely connected; and calculating the final power value of the electric power instrument according to the initial power value and the sign value. By the method, the accuracy of the obtained final power value can be improved.

Description

Power calculation method and device of electric power instrument and electric power instrument
Technical Field
The application belongs to the technical field of electric power meters, and particularly relates to a power calculation method and device of an electric power meter, the electric power meter and a computer readable storage medium.
Background
The electric power metering instrument (hereinafter referred to as an ammeter for short) generally adopts manganese copper or a mutual inductor as a current signal sampling component, and sampling lines of the manganese copper, the mutual inductor and other sampling components are directional. The positive and negative directions of the sampling lines must be properly connected to the metering integrated circuit (Integrated Circuit, IC) or else power calculation errors may be caused.
For the above reasons, the enterprises producing the electric meter do not send the electric meter with the wrong sampling line of the current to the clients, because even if the electric meter is sent to the clients, the clients cannot normally use the electric meter, and finally the events of returning goods, reworking, even canceling orders and the like are necessarily caused, so that huge losses are caused to the enterprises.
To ensure that the positive and negative directions of the sampling lines of the ammeter are correctly wired, enterprises must strictly keep in charge in each link. Some enterprises design special structures, so that the connector sockets of the sampling lines of the manganese copper and the mutual inductor can only be welded in a unique direction, and in this way, although the welding of the pipeline can be ensured not to be reversed, the misoperation during production is avoided, but the situation that the suppliers can not reverse the positive and negative directions of the lines inside the sampling line connectors of the manganese copper and the mutual inductor can not be ensured. And the other enterprises choose to intercept in the ammeter calibration stage, for example, the software is designed to only allow forward calibration and prohibit reverse calibration, once the ammeter with the reverse connection of the positive and negative directions of the sampling line appears, the ammeter returns to be wrong during calibration, the calibration software prompts the mistake, and the enterprises repair and rework the ammeter prompting the mistake.
If enterprises are strict in management, measures are taken in place, and the inspection is enhanced in each production process, the problem that the sampling lines of the manganese copper and the mutual inductor are reversely connected in the positive and negative directions can be avoided, but the reworking of the electric soldering iron and the like can increase the cost and reduce the production efficiency.
Disclosure of Invention
The embodiment of the application provides a power calculation method and device of an electric power instrument, the electric power instrument and a computer readable storage medium, and can solve the problem that the power metering error of the electric power instrument can be avoided only by avoiding the positive and negative direction errors of a sampling line in the conventional method.
In a first aspect, an embodiment of the present application provides a power calculation method of an electric power meter, including:
reading a value of a power register of the power meter, the value being capable of reflecting power information of the power meter;
determining an initial power value of the electric power instrument according to the numerical value;
reading a flag value of a signal flag bit of the electric power instrument, wherein the flag value is used for indicating whether the positive direction and the negative direction of a sampling line of a current signal of the electric power instrument are reversely connected;
and calculating the final power value of the electric power instrument according to the initial power value and the sign value.
In a second aspect, an embodiment of the present application provides a power calculation device of an electric power meter, including:
the numerical reading module is used for reading the numerical value of the power register of the electric power instrument, and the numerical value can reflect the power information of the electric power instrument;
the initial power value calculation module is used for determining the initial power value of the electric power instrument according to the numerical value;
the sign value reading module is used for reading a sign value of a signal sign bit of the electric power instrument, and the sign value is used for indicating whether the positive direction and the negative direction of a sampling line of a current signal of the electric power instrument are reversely connected;
and the final power value calculation module is used for calculating the final power value of the electric power instrument according to the initial power value and the sign value.
In a third aspect, embodiments of the present application provide a power meter comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements a method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product for causing an electrical meter to perform the method of the first aspect described above when the computer program product is run on the electrical meter.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
in the embodiment of the application, the initial power value is calculated according to the numerical value read from the power register of the electric power instrument, and the final power value is calculated according to the initial power value and the sign value for indicating whether the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are reversed. Whether the positive direction and the negative direction of the sampling line of the current signal are connected with each other or not can influence whether the sign corresponding to the power is positive or negative, so that the final power value of the electric power instrument can be accurately calculated according to the initial power value and the sign value. Meanwhile, the reworking action of the electric soldering iron is not required to be carried out on the electric instrument with the sampling line connected reversely in the positive and negative directions, so that the production efficiency of the electric instrument is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic flow chart of a power calculation method of an electric power meter according to an embodiment of the present application;
FIG. 2 is a four-quadrant schematic diagram provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a power calculation device of an electric power meter according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electric power meter according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
Embodiment one:
in the enterprise production process, the accuracy of the connection in the positive direction and the negative direction (namely, no connection in the reverse direction) of the sampling line of the power meter is ensured, so that the power meter provided for a customer can calculate the correct power. In order to ensure the connection accuracy of the positive and negative directions of the sampling lines, the positive and negative direction sampling lines are usually marked, for example, red marks are used for marking the positive direction sampling lines, and black marks are used for marking the negative direction sampling lines; alternatively, if the connector of the sampling line is foolproof, the connector socket of the sampling line can only be welded in a unique direction. Or, executing a meter calibration operation on the electric power meter, identifying whether the positive direction and the negative direction of the electric power meter are connected reversely according to the meter calibration result, and screening out the electric power meter with the positive direction and the negative direction connected reversely.
Although the power calculated by the power meter provided to the customer can be ensured to be correct by the method, the electric soldering iron reworking and the like increase the cost and reduce the production efficiency.
In order to ensure that the power calculated by the power meter provided to the customer is correct at a low cost, embodiments of the present application provide a power calculation method for the power meter.
In the power calculation method of the electric power instrument provided by the embodiment of the application, an initial power value is calculated according to the numerical value read from the power register of the electric power instrument, and a final power value is calculated according to the initial power value and a sign value indicating whether the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are reversed.
The power calculation method of the power meter provided by the embodiment of the application is described below with reference to the accompanying drawings.
Fig. 1 shows a flow chart of a power calculation method of an electric power meter according to an embodiment of the present application, where the method may be applied to an electric power meter, and is described in detail as follows:
step S11, reading the value of the power register of the electric power instrument, wherein the value can reflect the power information of the electric power instrument.
The electric power instrument comprises an electric energy meter and an alternating current collection type concentrator. The power meter can adopt manganese copper or a mutual inductor as a sampling line of a current signal of the power meter.
In particular, a power register is provided within the power meter for recording power information related to the power of the power meter. The power information may include a voltage sampling value obtained by sampling a voltage of the electric power instrument, and a current sampling value obtained by sampling a current of the electric power instrument. The power information may also include a power value (e.g., including a value obtained by multiplying a voltage sample value and a current sample value), and the like.
In this embodiment, after the electric power meter is used, the micro control unit (Microcontroller Unit, MCU) of the electric power meter may read the numerical value recorded in the power register in real time or according to a preset reading period, and the specific reading time may be set according to the actual requirement, so as to improve the flexibility of reading the numerical value.
And step S12, determining the initial power value of the electric power instrument according to the numerical value.
The initial power value of the present application is a power value determined according to a value read from the power register, so that in order to facilitate distinction from a power value finally determined later, a power value determined first (i.e., a power value determined directly according to the read value) is referred to as an initial power value, and a power value finally determined is referred to as a final power value.
Specifically, if the read value is a voltage sampling value and a current sampling value, the read voltage sampling value and the current sampling value are multiplied, and the obtained result is used as the initial power value in the embodiment of the present application. If the read voltage sampling value is an instantaneous voltage sampling value, the read current sampling value is an instantaneous current sampling value, a plurality of instantaneous power values are calculated according to the plurality of instantaneous voltage sampling values and the plurality of instantaneous current sampling values, then an average value of the instantaneous power values is calculated according to the plurality of instantaneous power values, and the calculated average value is used as the initial power value.
Specifically, if the read value is a power value, the read value is taken as the initial power value.
Of course, if the value read is not the above-listed value (e.g., voltage sample value, power value), then the method corresponding to the meaning of the value itself is selected to determine the initial power value of the power meter.
And S13, reading a flag value of a signal flag bit of the electric power instrument, wherein the flag value is used for indicating whether the positive direction and the negative direction of a sampling line of a current signal of the electric power instrument are reversely connected.
In this embodiment of the present application, a signal flag bit is newly added in a program of an electric power meter, and a flag value on the signal flag bit is used to indicate whether a positive direction and a negative direction of a sampling line of a current signal of the electric power meter are connected reversely. For example, a flag value of "1" may be used to indicate that the positive and negative directions of the sampling line of the current signal of the electric power meter are reversed, and a flag value of "0" may be used to indicate that the positive and negative directions of the sampling line of the current signal of the electric power meter are not reversed, so that if the flag value read from the signal flag bit of the electric power meter is "1", it may be determined that the positive and negative directions of the sampling line of the current signal of the electric power meter are reversed.
It should be noted that, in actual situations, values other than "0" and "1" may be adopted as the flag values in the embodiments of the present application, and it is only necessary to ensure that the flag values indicating whether the positive and negative directions of the sampling line of the current signal are reversed are two different values.
And step S14, calculating the final power value of the electric power instrument according to the initial power value and the sign value.
Specifically, whether the sign corresponding to the final power value of the electric power instrument is positive or negative is determined according to the sign value, and a specific numerical value corresponding to the final power of the electric power instrument is determined according to the initial power value.
In the embodiment of the application, the initial power value is calculated according to the numerical value read from the power register of the electric power instrument, and the final power value is calculated according to the initial power value and the sign value for indicating whether the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are reversed. Whether the positive direction and the negative direction of the sampling line of the current signal are connected with each other or not can influence whether the sign corresponding to the power is positive or negative, so that the final power value of the electric power instrument can be accurately calculated according to the initial power value and the sign value. Meanwhile, the reworking action of the electric soldering iron is not required to be carried out on the electric instrument with the sampling line connected reversely in the positive and negative directions, so that the production efficiency of the electric instrument is improved.
Embodiment two:
in some embodiments, before the step S13, the method further includes:
a1, acquiring a verification power value of the electric power instrument, wherein the verification power value is the power value obtained when the electric power instrument is calibrated.
Specifically, the power meter is calibrated before the power meter is sent to a user for use. In this embodiment of the application, calibrating the electric power meter is mainly used for detecting the appearance structure of the electric power meter and calculating the calibration power value of the electric power meter.
The MCU of the power instrument acquires a power register value from a power register (such as a metering chip power register) and then converts the power register value again to obtain the verification power value.
It should be noted that, in the embodiment of the present application, even if the positive and negative directions of the sampling line of the electric power meter are detected to be reversed in the meter calibration process, the error reporting is not performed as in the existing meter calibration method. This is because in the embodiment of the present application, even if the positive and negative directions of the sampling line are detected to be reversed, the repair is not performed again, so that the error is not reported any more and the meter calibration efficiency can be improved.
A2, setting a flag value of the signal flag bit according to the check power value.
Specifically, the flag value is set according to the relation between the verification power value and the preset value, for example, when the verification power value is smaller than the preset value, the positive and negative directions of the sampling line are considered to be reversed, otherwise, the positive and negative directions of the sampling line are considered to be not reversed.
In some embodiments, the predetermined value may be set to 0, where if the check power value is determined to be less than 0, the positive and negative directions of the sampling line are determined to be reversed, and if the check power value is determined to be not less than 0, the positive and negative directions of the sampling line are determined to be not reversed. Of course, in practical situations, the preset value may also be set to other values, for example, to a value close to 0, which is not limited herein.
Because the magnitude of the power value can reflect whether the positive direction and the negative direction of the sampling line of the electric power instrument are connected reversely or not, and the verification power value is the power value obtained when the electric power instrument is calibrated, in the embodiment of the application, the mark value on the signal mark position is set according to the verification power value, the mark value on the signal mark position of the electric power instrument can be set in time before the electric power instrument is provided for a user to use, and the accuracy of the set mark value can be ensured.
In some embodiments, if the number of phases of the power meter is equal to 1, the step A1 may directly obtain the verification power value on the corresponding phase of the power meter, and if the number of phases of the power meter is greater than 1, the step A1 includes:
and acquiring the verification power value of the electric power instrument on each phase.
Correspondingly, the step A2 includes:
and setting a flag value of the signal flag bit of the corresponding phase according to the check power value of each phase.
Correspondingly, the step S13 includes:
and reading the mark value of the signal mark bit on the phase corresponding to the initial power value of the electric power instrument.
In the embodiment of the application, the situation that the power meter has multiple phases is considered, and each corresponding sampling line is independent, so that each phase of the power meter needs to be checked respectively to ensure the accuracy of a checking result. In the process of calibrating the meter, the calibration power value of the electric power meter on each phase is obtained, so that the marker value on the signal marker bit on the corresponding phase is set according to the calibration power value, and the accuracy of the set marker value is improved. For example, assuming that the power meter is a three-phase electric energy meter having an a phase, a B phase, and a C phase, the flag value on the signal flag bit on the a phase is set using the check power value on the a phase, the flag value on the signal flag bit on the B phase is set using the check power value on the B phase, and the flag value on the signal flag bit on the C phase is set using the check power value on the C phase. When the sign value is set, the final power value of the electric power instrument is calculated according to the final power value of a specific phase (such as A phase) to be calculated later, the value of a power register on the A phase is read, the initial power value of the electric power instrument on the A phase is calculated according to the value on the A phase, and then the final power value of the electric power instrument on the A phase is calculated according to the sign value on the A phase and the initial power value on the A phase.
In some embodiments, in order to improve accuracy of a final power value of the obtained power meter, the power calculation method of the power meter provided in the embodiments of the present application further includes:
and sending out prompt information according to the setting result of the mark value, wherein the prompt information is used for indicating whether the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are reversely connected.
Because the sign value is used for indicating whether the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are connected reversely, the prompt information sent according to the setting result of the sign value can also reflect whether the positive direction and the negative direction of the sampling line are connected reversely. Specifically, the prompt information may be directly represented by a flag value, for example, when the flag value is "0", the prompt information is "0". Of course, the prompt information may also be expressed by text, for example, when the sign value indicates that the positive and negative directions of the sampling line are reversed, the prompt information may be "the positive and negative directions of the sampling line are reversed".
In this embodiment of the present application, the prompt information may be output through voice, or may be output through a display screen or the like.
Because the sign value is automatically set by the electric power instrument according to the verification power value, namely, the user cannot know the sign value currently set by the electric power instrument, prompt information is sent out according to the setting result of the sign value, so that the user can timely know whether the positive direction and the negative direction of the sampling line of the electric power instrument are reversed, the user can manually confirm the electric power instrument according to the prompt information, and further the accuracy of the final power value of the electric power instrument is improved. For example, after the user judges that the positive direction and the negative direction of the sampling line of the electric power instrument are connected reversely according to the prompt information, the user can select to manually check the sampling line, if the result of the manual check is that the positive direction and the negative direction of the sampling line are not connected reversely, a sign value resetting instruction can be sent to the electric power instrument, and the electric power instrument updates the set sign value according to the sign value resetting instruction, so that the accuracy of the final power value calculated later is improved.
Embodiment III:
in some embodiments, the step S14 includes:
b1, if the sign value indicates that the positive and negative directions of the sampling line of the current signal of the electric power instrument are reversed, the opposite number of the initial power value is taken as the final power value of the electric power instrument.
And B2, if the sign value indicates that the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are not reversed, the initial power value is taken as the final power value of the electric power instrument.
Specifically, if the flag value is "1", the positive and negative directions of the sampling line are reversed, and if the flag value is "0", the positive and negative directions of the sampling line are not reversed. Assuming that the initial power value is "W", when the flag value of the electric power meter is "0", the final power value of the electric power meter is "W", and when the flag value of the electric power meter is "1", the final power value of the electric power meter is "-W".
It should be noted that, if the electric power meter is a multi-phase electric power meter, the final power value is the final power value on the phase corresponding to the sign value.
In this embodiment of the present application, it is considered that the positive and negative direction connection of the sampling line may cause the initial power value of the electric power meter to become a value smaller than 0, so when the positive and negative direction connection of the sampling line is determined, the opposite number of the initial power value is used as the final power value of the electric power meter, and when the positive and negative direction connection of the sampling line is determined, the initial power value is used as the final power value of the electric power meter, so that the accuracy of the obtained final power value can be ensured.
Embodiment four:
in some embodiments, after the step S14, the method further includes:
and calculating the active power and the four-quadrant reactive power of the electric power instrument according to the final power value.
Specifically, according to the final power value and the target time length, the active electric energy of the electric power instrument in the target time length is calculated. It should be noted that since the power is directional, the active power of the power meter in the forward and reverse directions can be calculated from the direction of the final power value.
In this embodiment of the present application, the four-quadrant reactive power specifically refers to reactive power of the electric power meter in a quadrant, a two quadrant, a three quadrant, and a four quadrant, respectively. In the four-quadrant diagram shown in fig. 2, P represents reactive power, Q represents active power, and in the first quadrant, the active power is positive, and the reactive power is positive; in the second quadrant, the active power is positive and the reactive power is negative; in the third quadrant, the active power is negative and the reactive power is negative; in the fourth quadrant, the active power is negative and the reactive power is positive.
Further, inductive reactive power and capacitive reactive power can be calculated from reactive power: inductive reactive power = sum of reactive power in one and three quadrants, capacitive reactive power = sum of reactive power in two and four quadrants.
Since the calculation of the active power and the four-quadrant reactive power are both related to the final power value, the final power value calculated in the embodiment of the present application is accurate, and thus the active power and the four-quadrant reactive power calculated from the final power value are also accurate.
In some embodiments, considering that after the embodiment of the present application determines that the positive and negative directions of the sampling line are reversed, the reversed power meter is not re-docked for maintenance, in order to reduce interference to a user, the power calculation method of the power meter provided in the embodiment of the present application further includes:
and in the process of calibrating the electric power instrument, if a reverse event is verified, the electric power instrument does not respond, wherein the reverse event is used for indicating that the positive direction and the negative direction of the sampling line of the electric power instrument are connected reversely.
In the prior art, the electric instrument is calibrated by finding out the electric instrument with the opposite positive and negative directions of the sampling line so as to carry out reworking welding treatment on the found electric instrument. That is, when the positive and negative directions of the power meters are reversed, a reverse event is recorded so that the user can determine which power meters need to be reworked for the welding process according to the reverse event. In the embodiment of the application, the accurate final power value can be obtained without reworking and welding the electric power instrument with the sampling line connected reversely in the positive and negative directions, so that the interference to the user can be reduced without responding to the occurrence of the reverse event, and the good experience of the user is improved.
In some embodiments, the color of the sampling lines in the positive and negative directions of the current signal of the power meter of the embodiments of the application is the same.
In this embodiment of the application, considering that there is no need to distinguish the positive and negative directions of the sampling lines from the appearance, therefore, the colors of the sampling lines in the positive and negative directions of the set current signal are the same, that is, in the production process of the electric instrument, there is no need to distinguish the sampling lines in the positive and negative directions, so that the production efficiency of the electric instrument can be effectively improved.
In some embodiments, the joints of the sampling lines in the positive and negative directions of the current signal of the electric power instrument have no foolproof structure.
In this application embodiment, only can weld towards unique direction in consideration of need not to guarantee the joint socket of sampling line, consequently, need not to set up at the joint of sampling line and prevent slow-witted structure to improve the simplicity of electric power instrument's structure, and then greatly improved electric power instrument's production efficiency.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Fifth embodiment:
corresponding to the methods described in the first to fourth embodiments, fig. 3 shows a block diagram of a power calculation device of an electric power meter provided in the embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 3, the power calculation device 3 of the electric power meter includes: numerical value reading module 31, initial power value calculation module 32, sign value reading module 33, final power value calculation module 34. Wherein:
the value reading module 31 is configured to read a value of a power register of the electric power meter, where the value can reflect power information of the electric power meter.
The initial power value calculation module 32 is configured to determine an initial power value of the electric power meter according to the value.
And a flag value reading module 33, configured to read a flag value of a signal flag bit of the electric power meter, where the flag value is used to indicate whether a positive direction and a negative direction of a sampling line of a current signal of the electric power meter are reversed.
And a final power value calculation module 34, configured to calculate a final power value of the electric power meter according to the initial power value and the flag value.
In the embodiment of the application, the initial power value is calculated according to the numerical value read from the power register of the electric power instrument, and the final power value is calculated according to the initial power value and the sign value for indicating whether the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are reversed. Whether the positive direction and the negative direction of the sampling line of the current signal are connected with each other or not can influence whether the sign corresponding to the power is positive or negative, so that the final power value of the electric power instrument can be accurately calculated according to the initial power value and the sign value. Meanwhile, the reworking action of the electric soldering iron is not required to be carried out on the electric instrument with the sampling line connected reversely in the positive and negative directions, so that the production efficiency of the electric instrument is improved.
In some embodiments, the power calculation device 3 of the power meter provided in the embodiments of the present application further includes:
and the verification power value acquisition module is used for acquiring the verification power value of the electric power instrument, wherein the verification power value is the power value obtained when the electric power instrument is calibrated.
And the mark value setting module is used for setting the mark value of the signal mark bit according to the check power value.
In some embodiments, the number of phases of the power meter is greater than 1, and the verification power value obtaining module is specifically configured to:
and acquiring the verification power value of the electric power instrument on each phase.
Correspondingly, the flag value setting module is specifically configured to:
and setting a flag value of the signal flag bit of the corresponding phase according to the check power value of each phase.
Correspondingly, the above-mentioned flag value reading module 33 is specifically configured to:
and reading the mark value of the signal mark bit on the phase corresponding to the initial power value of the electric power instrument.
In some embodiments, the power calculation device 3 of the power meter provided in the embodiments of the present application further includes:
and the prompt information sending module is used for sending prompt information according to the setting result of the mark value, wherein the prompt information is used for indicating whether the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are reversely connected.
In some embodiments, the final power value calculation module 34 includes:
and a first final power value calculation unit configured to, if the flag value indicates that the positive and negative directions of the sampling line of the current signal of the electric power meter are reversed, take the opposite number of the initial power values as the final power value of the electric power meter.
And a second final power value calculation unit configured to use the initial power value as a final power value of the electric power meter if the flag value indicates that the positive and negative directions of the sampling line of the current signal of the electric power meter are not reversed.
In some embodiments, the power calculation device 3 of the power meter provided in the embodiments of the present application further includes:
and the electric energy calculation module is used for calculating the active electric energy and the four-quadrant reactive electric energy of the electric power instrument according to the final power value.
In some embodiments, the power calculation device 3 of the power meter provided in the embodiments of the present application further includes:
and the reverse event neglecting module is used for not responding if the reverse event is checked in the operation of calibrating the electric power instrument, wherein the reverse event is used for indicating the positive and negative direction connection of the sampling line of the electric power instrument.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
Example six:
fig. 4 is a schematic structural diagram of an electric power meter according to an embodiment of the present application. As shown in fig. 4, the electric power meter 4 of this embodiment includes: at least one processor 40 (only one processor is shown in fig. 4), a memory 41 and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the processor 40 implementing the steps in any of the various method embodiments described above when executing the computer program 42.
The power meter 4 may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the power meter 4 and is not meant to be limiting of the power meter 4, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 40 may be a central processing unit (Central Processing Unit, CPU), the processor 40 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may in some embodiments be an internal storage unit of the power meter 4, such as a hard disk or a memory of the power meter 4. The memory 41 may also be an external storage device of the power meter 4 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the power meter 4. Further, the memory 41 may include both the internal storage unit and the external storage device of the power meter 4. The memory 41 is used for storing an operating system, an application program, a boot loader (BootLoader), data, other programs, and the like, such as program codes of the computer programs. The above-described memory 41 may also be used to temporarily store data that has been output or is to be output.
In some embodiments, the color of the sampling lines in the positive and negative directions of the current signal of the power meter 4 is the same.
In this embodiment of the application, considering that there is no need to distinguish the positive and negative directions of the sampling lines from the appearance, therefore, the colors of the sampling lines in the positive and negative directions of the set current signal are the same, that is, in the production process of the electric instrument, there is no need to distinguish the sampling lines in the positive and negative directions, so that the production efficiency of the electric instrument can be effectively improved.
In some embodiments, the joints of the sampling lines in the positive and negative directions of the current signal of the electric power meter 4 have no foolproof structure.
In this application embodiment, only can weld towards unique direction in consideration of need not to guarantee the joint socket of sampling line, consequently, need not to set up at the joint of sampling line and prevent slow-witted structure to improve the simplicity of electric power instrument's structure, and then greatly improved electric power instrument's production efficiency.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
Embodiments of the present application provide a computer program product that, when run on a power meter, causes the power meter to perform steps that may be performed in the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/power meter, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (12)

1. A power calculation method of an electric power meter, comprising:
reading a value of a power register of the power meter, the value being capable of reflecting power information of the power meter;
determining an initial power value of the electric power instrument according to the numerical value;
reading a flag value of a signal flag bit of the electric power instrument, wherein the flag value is used for indicating whether the positive direction and the negative direction of a sampling line of a current signal of the electric power instrument are reversely connected;
and calculating the final power value of the electric power instrument according to the initial power value and the sign value.
2. The power calculation method of an electric power meter according to claim 1, further comprising, before the reading of the flag value of the signal flag bit of the electric power meter:
acquiring a verification power value of the electric power instrument, wherein the verification power value is a power value obtained when the electric power instrument is calibrated;
and setting a mark value of the signal mark bit according to the verification power value.
3. The power calculation method of an electric power meter according to claim 2, wherein the number of phases of the electric power meter is greater than 1, and the obtaining the verification power value of the electric power meter includes:
acquiring a verification power value of the electric power instrument on each phase;
the setting the flag value of the signal flag bit according to the check power value includes:
setting a mark value of the signal mark bit on the corresponding phase according to the verification power value on each phase;
the reading the flag value of the signal flag bit of the electric power instrument comprises the following steps:
and reading the mark value of the signal mark bit on the phase corresponding to the initial power value of the electric power instrument.
4. The power calculation method of an electric power meter according to claim 2, further comprising:
and sending out prompt information according to the setting result of the mark value, wherein the prompt information is used for indicating whether the positive direction and the negative direction of a sampling line of a current signal of the electric power instrument are connected reversely.
5. The power calculation method of an electric power meter according to any one of claims 1 to 4, wherein the calculating a final power value of the electric power meter based on the initial power value and the flag value includes:
if the sign value indicates that the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are reversely connected, the opposite number of the initial power value is used as the final power value of the electric power instrument;
and if the sign value indicates that the positive direction and the negative direction of the sampling line of the current signal of the electric power instrument are not reversed, the initial power value is used as the final power value of the electric power instrument.
6. The power calculation method of an electric power meter according to any one of claims 1 to 4, further comprising, after the calculation of the final power value of the electric power meter:
and calculating the active power and the four-quadrant reactive power of the electric power instrument according to the final power value.
7. The power calculation method of an electric power meter according to any one of claims 2 to 4, further comprising:
and in the operation of calibrating the electric power instrument, if a reverse event is verified, the electric power instrument does not respond, wherein the reverse event is used for indicating that the positive direction and the negative direction of the sampling line of the electric power instrument are connected reversely.
8. A power computing device of an electric power meter, comprising:
the numerical reading module is used for reading the numerical value of the power register of the electric power instrument, and the numerical value can reflect the power information of the electric power instrument;
the initial power value calculation module is used for determining the initial power value of the electric power instrument according to the numerical value;
the sign value reading module is used for reading a sign value of a signal sign bit of the electric power instrument, and the sign value is used for indicating whether the positive direction and the negative direction of a sampling line of a current signal of the electric power instrument are reversely connected;
and the final power value calculation module is used for calculating the final power value of the electric power instrument according to the initial power value and the sign value.
9. A power meter comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the computer program.
10. The power meter of claim 9, wherein the sampling lines of the current signal of the power meter in the positive and negative directions are the same color.
11. The power meter of any one of claims 9 or 10, wherein the junction of sampling lines in the positive and negative directions of the current signal of the power meter is free of foolproof structures.
12. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
CN202310316758.5A 2023-03-29 2023-03-29 Power calculation method and device of electric power instrument and electric power instrument Pending CN116027102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310316758.5A CN116027102A (en) 2023-03-29 2023-03-29 Power calculation method and device of electric power instrument and electric power instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310316758.5A CN116027102A (en) 2023-03-29 2023-03-29 Power calculation method and device of electric power instrument and electric power instrument

Publications (1)

Publication Number Publication Date
CN116027102A true CN116027102A (en) 2023-04-28

Family

ID=86070808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310316758.5A Pending CN116027102A (en) 2023-03-29 2023-03-29 Power calculation method and device of electric power instrument and electric power instrument

Country Status (1)

Country Link
CN (1) CN116027102A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430346A (en) * 2008-07-31 2009-05-13 上海贝岭股份有限公司 Reverse indication method, apparatus for electric energy measuring chip and its order structure
CN103163409A (en) * 2011-12-19 2013-06-19 上海安科瑞电气股份有限公司 Method and device used for correcting inverse current wiring of field electric instrument
JP2015233360A (en) * 2014-06-09 2015-12-24 Necプラットフォームズ株式会社 Power measuring device and power measuring method
US20160091538A1 (en) * 2013-06-13 2016-03-31 Mitsubishi Electric Corporation Power measurement device, determination method, and program
CN109782059A (en) * 2018-12-24 2019-05-21 浙江恒业电子有限公司 A kind of method of the accurate reversed active energy of metering
CN115598566A (en) * 2022-12-13 2023-01-13 麦田能源有限公司(Cn) Method and device for checking electric meter wiring, processor and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430346A (en) * 2008-07-31 2009-05-13 上海贝岭股份有限公司 Reverse indication method, apparatus for electric energy measuring chip and its order structure
CN103163409A (en) * 2011-12-19 2013-06-19 上海安科瑞电气股份有限公司 Method and device used for correcting inverse current wiring of field electric instrument
US20160091538A1 (en) * 2013-06-13 2016-03-31 Mitsubishi Electric Corporation Power measurement device, determination method, and program
JP2015233360A (en) * 2014-06-09 2015-12-24 Necプラットフォームズ株式会社 Power measuring device and power measuring method
CN109782059A (en) * 2018-12-24 2019-05-21 浙江恒业电子有限公司 A kind of method of the accurate reversed active energy of metering
CN115598566A (en) * 2022-12-13 2023-01-13 麦田能源有限公司(Cn) Method and device for checking electric meter wiring, processor and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈坚伟 等: "电流互感器同名端接反的软件解决方法", 《电世界》, vol. 53, no. 7, pages 43 - 45 *

Similar Documents

Publication Publication Date Title
CN108445438B (en) Method and device for detecting wrong wiring of electric energy metering device
CN110196404B (en) Charging pile metering chip calibration method and device and terminal equipment
CN108923957B (en) Distribution network terminal DTU fault elimination method and device and terminal equipment
CN108955901A (en) A kind of infrared measurement of temperature method, system and terminal device
CN111381150A (en) Chip automatic verification system and method thereof
CN116027102A (en) Power calculation method and device of electric power instrument and electric power instrument
CN116359833B (en) Centralized verification method, device and equipment for electric energy meter and storage medium
CN110940874B (en) Calibration method, server and medium for nuclear power station transformer protection device
CN115792782B (en) CT saturation recognition method and device, electronic equipment and storage medium
CN116663490A (en) Verification method, platform, device and medium of asynchronous memory chip
CN110032484A (en) The test macro and method of a kind of server and its vdd voltage in memory
CN109934722A (en) Verify adjustment method, device and the electronic equipment of rule
CN112213577B (en) Method and device for detecting electrical operation, computer key and storage medium
CN114519267A (en) Data updating method of underground cable model
CN111324979B (en) Rail mechanical property parameter identification method and terminal equipment
CN112444670A (en) Electric energy metering method and electric energy metering device applied to three-phase three-wire electric energy meter
CN112557749A (en) Electric energy metering method and electric energy metering device of three-phase four-wire electric energy meter
CN116091247A (en) Different responsibility data separate protection processing method, system, equipment and medium
CN118011275B (en) Automatic checking method and system for CT current virtual loop of main transformer protection bridge of inner bridge connection
CN109239642B (en) Electric energy meter cost control trip test method, system and terminal equipment
CN109684137A (en) A kind of method and system for being detected to target device
CN115238119B (en) Method and device for analyzing position information of oblique photography photo
CN109508270B (en) BIOS register checking and testing method and device
CN113533885A (en) Transformer substation secondary circuit model inspection method and device and terminal equipment
CN116245280A (en) Power metering equipment health assessment method and device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230428