Electric energy meter, control method of load switch of electric energy meter, and computer device
By introducing the intermediate control logic of the total pull-closing state, the state conflict problem of the smart power meter load switch control software is solved, achieving better scalability and maintenance.
Patent Information
- Application Number
- CN202510684564.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2025-08-15
AI Technical Summary
The load switch control software of existing smart power meters is designed in complex ways. As the control source increases, errors are easily introduced and the logic is messy, resulting in conflicts in the control state and not strong maintenance and scalability.
Introduce the intermediate state (total pull-closing state), and by controlling the source-to-total pull-closing state-relay, it avoids direct control of the relay, and only the total pull-closing state controls the relay to resolve the logical conflicts between the control sources.
When expanding the control source, relay control conflicts are avoided, software maintenance and expansion are improved, and the safe and reliable operation of the load switch is ensured.
Smart Images

Figure CN120498124A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of load switch control, and in particular to an electric energy meter and a control method for a load switch thereof, and a computer device. Background Art
[0002] In addition to basic energy metering, smart energy meters also offer electrical monitoring and fee control functions. Fee control refers to controlling the opening and closing of load switches through metering and billing users. Examples include remote tripping and closing for arrears, local tripping and closing for arrears, and remote top-up closing. With the development of new power systems and increased focus on electricity safety, energy meters are becoming increasingly versatile and capable of controlling functions. In addition to basic fee control, they also include overcurrent and overload tripping. With the revision of the State Grid smart energy meter standard, multiple power control levels for power adjustment and terminal overheating tripping have been added. The potential for further expansion of load switch control functions in the future will lead to an increasing number of trigger sources for the opening and closing of smart energy meters. Ensuring the safe and reliable opening and closing of the meter when multiple opening and closing control sources are present presents significant challenges for the design of the smart meter's opening and closing software.
[0003] Since the smart energy meter itself has only one hardware load switch control circuit, in the early stage of smart energy meter design, due to the small number of opening and closing control sources, the software design of the energy meter relay control part generally adopts the following method: when a certain control source meets the opening condition, the relay controlling the load switch is directly operated to perform the opening action; when a certain control source meets the closing condition, it is first determined whether other control sources meet the closing condition. If so, the relay controlling the load switch is directly operated to perform the closing action, otherwise the closing operation is not performed.
[0004] With the continuous increase in the number of control sources for the opening and closing of smart meters, the original load switch control software design concept has become increasingly complex. Every time a control source is added, the software changes are large and prone to errors. Different functional modules are operated and controlled separately, resulting in control state conflicts and messy logic, and the existence of bugs. The software maintainability and scalability of the load switch control function are not strong. Summary of the Invention
[0005] The object of the present invention is to provide a control method and computer device for an electric energy meter and a load switch thereof, so as to solve the technical problem in the prior art that each control source is directly associated with a relay, resulting in a conflict in the control state of the control source.
[0006] To solve the above technical problems, the present invention provides a method for controlling a load switch of an electric energy meter. The method comprises:
[0007] S1. If any control source meets the closing condition, the closing state of the control source is set to the closing state; otherwise, the closing state of the control source is set to the closing state;
[0008] The control source is used to represent the control logic for opening or closing the load switch;
[0009] S2. If the closing and opening states of all control sources are in the closed state, the total closing and opening state of the load switch is set to the closed state; otherwise, the total closing and opening state of the load switch is set to the closed state;
[0010] S3. If the main closing state is closed, the load switch is controlled to close; otherwise, the load switch is controlled to close.
[0011] The beneficial effect of the above technical solution is that the technical solution of the control method of the load switch of an electric energy meter of the present invention belongs to an improved invention. Compared with the prior art, when the control source meets the closing and opening control conditions, the present invention does not directly operate the relay that controls the load switch, but sets an intermediate state (i.e., the total closing and opening state) to control the relay of the load switch according to the intermediate state. That is, the control process is changed from the control source-relay in the prior art to the control source-total closing and opening state-relay, that is, the state of each control source only affects the total closing and opening state, and only the total closing and opening state can affect the final relay. When the control source is expanded, when the logic of the newly added control source conflicts with the original control source, it only affects the intermediate closing and opening state, and will not cause a control conflict of the relay. Moreover, for the relay, since it is only controlled by the total closing and opening state, it will not cause a control conflict of the relay. The present invention solves the technical problem in the prior art that each control source is directly associated with the relay, resulting in a control state conflict of the control source.
[0012] Furthermore, S3 further includes: determining whether the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle at every interval of a timing cycle;
[0013] If the current total closing and opening state is different from the total closing and opening state of the previous timing cycle, the load switch is controlled to close and open according to the current total closing and opening state, and then the total closing and opening state of the previous timing cycle is set as the current total closing and opening state.
[0014] Furthermore, if the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle, the current timing cycle is exited.
[0015] The present invention also provides a technical solution for an electric energy meter: an electric energy meter including a load switch and a load switch controller, wherein the load switch controller is configured to execute a computer program to implement the steps of a method for controlling a load switch of the electric energy meter as described below, the method comprising:
[0016] S1. If any control source meets the closing condition, the closing state of the control source is set to the closing state; otherwise, the closing state of the control source is set to the closing state;
[0017] The control source is used to represent the control logic for opening or closing the load switch;
[0018] S2. If the closing and opening states of all control sources are in the closed state, the total closing and opening state of the load switch is set to the closed state; otherwise, the total closing and opening state of the load switch is set to the closed state;
[0019] S3. If the main closing state is closed, the load switch is controlled to close; otherwise, the load switch is controlled to close.
[0020] The beneficial effect of the above technical solution is that the technical solution of an electric energy meter of the present invention belongs to an improved invention. Compared with the prior art, when the control source meets the closing and opening control conditions, the present invention does not directly operate the relay that controls the load switch, but sets an intermediate state (i.e., the total closing and opening state) to control the relay of the load switch according to the intermediate state. That is, the control process is changed from the control source-relay in the prior art to the control source-total closing and opening state-relay, that is, the state of each control source only affects the total closing and opening state, and only the total closing and opening state can affect the final relay. When the control source is expanded, when the logic of the newly added control source conflicts with the original control source, it only affects the intermediate closing and opening state, and will not cause a control conflict of the relay. Moreover, for the relay, since it is only controlled by the total closing and opening state, it will not cause a control conflict of the relay. The present invention solves the technical problem in the prior art that each control source is directly associated with the relay, which makes the load switch software design difficult to expand.
[0021] Furthermore, S3 further includes: determining whether the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle at every interval of a timing cycle;
[0022] If the current total closing and opening state is different from the total closing and opening state of the previous timing cycle, the load switch is controlled to close and open according to the current total closing and opening state, and then the total closing and opening state of the previous timing cycle is set as the current total closing and opening state.
[0023] Furthermore, if the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle, the current timing cycle is exited.
[0024] The present invention also provides a technical solution for a computer device: a computer device including a processor, wherein the processor is configured to execute a computer program to implement the steps of the following method for controlling a load switch of an electric energy meter, the method comprising:
[0025] S1. If any control source meets the closing condition, the closing state of the control source is set to the closing state; otherwise, the closing state of the control source is set to the closing state;
[0026] The control source is used to represent the control logic for opening or closing the load switch;
[0027] S2. If the closing and opening states of all control sources are in the closed state, the total closing and opening state of the load switch is set to the closed state; otherwise, the total closing and opening state of the load switch is set to the closed state;
[0028] S3. If the main closing state is closed, the load switch is controlled to close; otherwise, the load switch is controlled to close.
[0029] The beneficial effect of the above technical solution is that the technical solution of a computer device of the present invention belongs to an improved invention. Compared with the prior art, when the control source meets the closing and closing control conditions, the present invention does not directly operate the relay that controls the load switch, but sets an intermediate state (i.e., the total closing and closing state) to control the relay of the load switch according to the intermediate state. That is, the control process is changed from the control source-relay in the prior art to the control source-total closing and closing state-relay, that is, the state of each control source only affects the total closing and closing state, and only the total closing and closing state can affect the final relay. When the control source is expanded, when the logic of the newly added control source conflicts with the original control source, it only affects the intermediate closing and closing state, and will not cause control conflicts of the relay. Moreover, for the relay, since it is only controlled by the total closing and closing state, it will not cause control conflicts of the relay. The present invention solves the technical problem in the prior art that each control source is directly associated with the relay, resulting in control state conflicts of the control source.
[0030] Furthermore, S3 further includes: determining whether the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle at every interval of a timing cycle;
[0031] If the current total closing and opening state is different from the total closing and opening state of the previous timing cycle, the load switch is controlled to close and open according to the current total closing and opening state, and then the total closing and opening state of the previous timing cycle is set as the current total closing and opening state.
[0032] Furthermore, if the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle, the current timing cycle is exited. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is an overall logic diagram of an implementation method of a load switch control method of an electric energy meter according to the present invention;
[0034] Figure 2 A flow chart showing the closing and closing states of a single control source in an embodiment of a method for controlling a load switch of an electric energy meter according to the present invention;
[0035] Figure 3 This is a flow chart of the total opening and closing states of an embodiment of a method for controlling a load switch of an electric energy meter according to the present invention;
[0036] Figure 4 A load switch control schematic diagram of an implementation method for controlling a load switch of an electric energy meter according to the present invention. DETAILED DESCRIPTION
[0037] Compared with the prior art, when the control source meets the closing and opening control conditions, the present invention does not directly operate the relay that controls the load switch, but sets an intermediate state (i.e., the total closing and opening state) and controls the relay of the load switch according to the intermediate state. That is, the control process is changed from the control source-relay in the prior art to the control source-total closing and opening state-relay, that is, the state of each control source only affects the total closing and opening state, and only the total closing and opening state can affect the final relay. When the control source is expanded, when the logic of the newly added control source conflicts with the original control source, it only affects the intermediate closing and opening state, and will not cause a control conflict of the relay. Moreover, for the relay, since it is only controlled by the total closing and opening state, it will not cause a control conflict of the relay. The present invention solves the technical problem in the prior art that each control source is directly associated with the relay, resulting in a control state conflict of the control source.
[0038] Implementation method for controlling the load switch of the electric energy meter:
[0039] For the control of the load switch of the energy meter, the priority of opening is higher than the priority of closing. As long as one control source meets the opening condition, the energy meter relay will be in the opening state; only when all control sources meet the closing condition, the energy meter load switch will be in the closing state, such as Figure 1 shown.
[0040] A method for controlling a load switch of an electric energy meter, the method comprising:
[0041] S1. If any control source meets the disconnection condition, the corresponding disconnection state of the control source is set to the disconnected state; otherwise, the corresponding disconnection state of the control source is set to the closed state. The control source is used to represent the control logic for disconnecting / closing the load switch, such as remote tripping / closing due to arrears, local tripping / closing due to arrears, and remote top-up closing.
[0042] like Figure 2 As shown, for each control source, a closing state is set. When control source 1 meets the closing condition, the closing state of control source 1 is changed to the closing state; otherwise, the closing state of control source 1 is changed to the closing state. The closing state of control source 2 and other control sources is similar.
[0043] S2. If the opening and closing states corresponding to all control sources are in the closed state, the total opening and closing state corresponding to the load switch is set to the closed state; otherwise, the total opening and closing state corresponding to the load switch is set to the open state.
[0044] like Figure 3 As shown, the closing and opening states corresponding to all control sources are judged and combined to form a total closing and opening state. If the states of all closing sources are in the closing state, the total closing and opening state is changed to the closing state; otherwise, as long as there is a closing source in the closing state, the total closing and opening state is changed to the closing state.
[0045] S3. If the main closing state is closed, the load switch is controlled to close; otherwise, the load switch is controlled to close.
[0046] like Figure 4 As shown, the energy meter checks the total closing and closing state for 1 second (i.e., the timing cycle), comparing the current total closing and closing state with the previous total closing and closing state (i.e., the previous timing cycle). If the two total closing and closing state are consistent, the system exits. If not, the current total closing and closing state is further determined. If the current total closing and closing state is both closed, the relay is controlled to close; otherwise, the relay is controlled to close. The current total closing and closing state is then assigned to the previous total closing and closing state.
[0047] In other embodiments, the timing period can be set to other values, such as 1.5 seconds or 0.5 seconds, and this embodiment does not limit the value of the timing period. The timing period is set to ensure real-time performance between the control command and execution. Generally speaking, the timing period should be controlled in seconds.
[0048] In other embodiments, the operation of periodically judging the total closing and opening state may not be performed. When the closing and opening state corresponding to the control source changes, the current total closing and opening state may be judged automatically according to the above steps and the load switch may be closed and opened.
[0049] Electricity meter implementation method:
[0050] An electric energy meter includes a load switch and a load switch controller. The load switch controller includes a processor configured to execute a computer program to implement the steps of the above-described method for controlling the load switch of the electric energy meter. The specific method for controlling the load switch of the electric energy meter has been described in sufficient detail in the above-described embodiment of the method for controlling the load switch of the electric energy meter and will not be repeated here.
[0051] Specifically, the processor may be a CPU, or other general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor may also be a processor that supports the Advanced RISC Machine (ARM) architecture.
[0052] Computer device implementation method:
[0053] A computer device includes a processor configured to execute a computer program to implement the steps of the method for controlling a load switch of an electric energy meter as described above. The specific method for controlling a load switch of an electric energy meter has been described in sufficient detail in the embodiment of the method for controlling a load switch of an electric energy meter and will not be repeated here.
[0054] Specifically, the processor may be a CPU, or other general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor may also be a processor that supports the Advanced RISC Machine (ARM) architecture.
[0055] Finally, it should be noted that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments without inventive effort, or replace some of the technical features therein with equivalents. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A method for controlling a load switch of an electric energy meter, characterized in that: The method includes: S1. If any control source meets the closing condition, the closing state of the control source is set to the closing state; otherwise, the closing state of the control source is set to the closing state; The control source is used to represent the control logic for opening or closing the load switch; S2. If the closing and opening states of all control sources are in the closed state, the total closing and opening state of the load switch is set to the closed state; otherwise, the total closing and opening state of the load switch is set to the closed state; S3. If the main closing state is closed, the load switch is controlled to close; otherwise, the load switch is controlled to close.
2. The method for controlling a load switch of an electric energy meter according to claim 1, wherein: S3 further includes: every time interval of a timing cycle, determining whether the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle; If the current total closing and opening state is different from the total closing and opening state of the previous timing cycle, the load switch is controlled to close and open according to the current total closing and opening state, and then the total closing and opening state of the previous timing cycle is set as the current total closing and opening state.
3. The method for controlling a load switch of an electric energy meter according to claim 2, wherein: If the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle, the current timing cycle will be exited.
4. An electric energy meter comprising a load switch and a load switch controller, wherein the load switch controller comprises a processor, characterized in that: The processor is configured to execute a computer program to implement the steps of a method for controlling a load switch of an electric energy meter as described below, the method comprising: S1. If any control source meets the closing condition, the closing state of the control source is set to the closing state; otherwise, the closing state of the control source is set to the closing state; The control source is used to represent the control logic for opening or closing the load switch; S2. If the closing and opening states of all control sources are in the closed state, the total closing and opening state of the load switch is set to the closed state; otherwise, the total closing and opening state of the load switch is set to the closed state; S3. If the main closing state is closed, the load switch is controlled to close; otherwise, the load switch is controlled to close.
5. The electric energy meter according to claim 4, characterized in that: S3 further includes: every time interval of a timing cycle, determining whether the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle; If the current total closing and opening state is different from the total closing and opening state of the previous timing cycle, the load switch is controlled to close and open according to the current total closing and opening state, and then the total closing and opening state of the previous timing cycle is set as the current total closing and opening state.
6. The electric energy meter according to claim 5, characterized in that: If the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle, the current timing cycle will be exited.
7. A computer device comprising a processor, characterized in that: The processor is configured to execute a computer program to implement the steps of a method for controlling a load switch of an electric energy meter as described below, the method comprising: S1. If any control source meets the closing condition, the closing state of the control source is set to the closing state; otherwise, the closing state of the control source is set to the closing state; The control source is used to represent the control logic for opening or closing the load switch; S2. If the closing and opening states of all control sources are in the closed state, the total closing and opening state of the load switch is set to the closed state; otherwise, the total closing and opening state of the load switch is set to the closed state; S3. If the main closing state is closed, the load switch is controlled to close; otherwise, the load switch is controlled to close.
8. The computer device according to claim 7, wherein: S3 further includes: every time interval of a timing cycle, determining whether the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle; If the current total closing and opening state is different from the total closing and opening state of the previous timing cycle, the load switch is controlled to close and open according to the current total closing and opening state, and then the total closing and opening state of the previous timing cycle is set as the current total closing and opening state.
9. The computer device according to claim 8, wherein: If the current total closing and opening state is the same as the total closing and opening state of the previous timing cycle, the current timing cycle will be exited.