Movatterモバイル変換


[0]ホーム

URL:


CN118655803B - A method and system for controlling electric energy meter based on state machine - Google Patents

A method and system for controlling electric energy meter based on state machine
Download PDF

Info

Publication number
CN118655803B
CN118655803BCN202411127879.6ACN202411127879ACN118655803BCN 118655803 BCN118655803 BCN 118655803BCN 202411127879 ACN202411127879 ACN 202411127879ACN 118655803 BCN118655803 BCN 118655803B
Authority
CN
China
Prior art keywords
state
control
state machine
priority
control command
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.)
Active
Application number
CN202411127879.6A
Other languages
Chinese (zh)
Other versions
CN118655803A (en
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.)
Heilongjiang Electrical Instrument Engineering Technology Research Center Co ltd
Henan Xuji Instrument Co Ltd
Original Assignee
Heilongjiang Electrical Instrument Engineering Technology Research Center Co ltd
Henan Xuji Instrument 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 Heilongjiang Electrical Instrument Engineering Technology Research Center Co ltd, Henan Xuji Instrument Co LtdfiledCriticalHeilongjiang Electrical Instrument Engineering Technology Research Center Co ltd
Priority to CN202411127879.6ApriorityCriticalpatent/CN118655803B/en
Publication of CN118655803ApublicationCriticalpatent/CN118655803A/en
Application grantedgrantedCritical
Publication of CN118655803BpublicationCriticalpatent/CN118655803B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention relates to a state machine-based electric energy meter control method and system, and belongs to the field of electric energy meter control. The method comprises the steps of 1) judging whether a received control command corresponds to a state with highest priority or a current state machine is in the state with highest priority, if so, executing control on the electric energy meter, wherein the state machine is a Mealy type state machine, the state refers to the control state of the state machine, 2) judging whether the control command corresponds to a state with one-level lower priority or the current state machine is in the state with one-level lower priority, if so, executing control on the electric energy meter, if not, and more than three states are included, repeating the step 2), and reducing the priority of the first level on the basis of the previous state until no state with lower priority exists. The method can solve the problems of system stability reduction and maintenance cost increase possibly caused by improper priority treatment.

Description

Electric energy meter control method and system based on state machine
Technical Field
The invention relates to a state machine-based electric energy meter control method and system, and belongs to the field of electric energy meter control.
Background
The internet of things table plays an increasingly important role in daily life. The Internet of things meter can monitor the use condition of electric power in real time, including data such as instantaneous power, voltage, current, etc., through which a user can know the actual consumption condition of the electric power and provide a basis for energy management and control, and can monitor the abnormal condition of an electric power system, such as voltage fluctuation, current overload, etc., and once abnormality occurs, an alarm is given to the user.
The existing internet of things meter only has the functions of electricity conservation, common opening and closing and the like. The intelligent internet of things meter is a new generation intelligent meter, which controls functions of newly increased friendly power utilization switching-on and switching-off, overheat switching-off, overload switching-off and the like, and a certain priority logic relation exists between the newly increased functions and the original functions so as to ensure that the most suitable response can be made under different conditions. The new addition of the functions of friendly power utilization switching-on and switching-off, overheat switching-off, overload switching-off and the like means that the control logic and hardware requirements of the system become more complex, if the priorities are incorrectly processed (especially, the priorities are disordered) in the processing process of different control logics, switching-on and switching-off failure can possibly be caused, so that the stability of the system is reduced, the maintenance cost is increased, the user experience and the service quality are also influenced due to the switching-on and switching-off failure, and a series of problems such as user dissatisfaction, complaint increase and the like are caused.
Disclosure of Invention
The invention aims to provide a state machine-based electric energy meter control method and system, which are used for solving the problems of system stability reduction and maintenance cost increase possibly caused by improper priority treatment (especially wrong priority).
In order to achieve the above object, the present invention provides a method comprising:
A state machine-based electric energy meter control method comprises the following steps:
1) Judging whether the received control command corresponds to the state with the highest priority or the current state machine is in the state with the highest priority or not through a state machine, if so, controlling the state machine to be in the state with the highest priority so as to execute the control on the electric energy meter, and if not, executing the step 2);
2) Judging whether a control command corresponds to a state of a priority level reduction stage or a state of the priority level reduction stage exists or not through a state machine, if so, controlling the state machine to be in the state of the priority level reduction stage so as to execute control on the electric energy meter, if not, repeating the step 2), and repeating the step 2 on the basis of the previous repetition until no state with lower priority level exists.
Further, in step 1), if it is determined that there is no case where the received control command corresponds to the control state with the highest priority and there is a case where the current state machine is in the control state with the highest priority, the control state machine is in the control state with the highest priority, and the control command is stored in the corresponding field of the control state of the state machine corresponding to the control command, so that when the state machine is not in the control state with the highest priority, the control command is processed in steps 1) -2) as the received control command.
Further, in step 2), if it is determined that there is no case where the received control command corresponds to the control state of a certain priority-reduced stage and there is a case where the current state machine is in the control state of the priority-reduced stage, the control state machine is in the control state of the priority-reduced stage, and the control command is stored in the corresponding field of the control state of the state machine corresponding to the control command, so that when the state machine is not in the control state of the priority-reduced stage, the control command is processed in steps 1) to 2) as the received control command.
Further, the control states of the state machine include at least two types of overload/overheat protection states, power-preserving states, friendly power-using states and conventional opening and closing control states.
Further, the control state priority is sequentially from high to low, namely an overload/overheat protection state, a power-saving state, a friendly power-using state and a conventional opening and closing control state.
Further, the mode of controlling the state machine to execute the control on the electric energy meter in the state with the highest priority or in the state with a certain priority lowered by one level comprises the step of controlling the state machine to execute the opening or closing action of the electric energy meter according to the control logic of the state machine in the state and the combination of the current state of the state machine and the received control command in the state with the highest priority or in the state with the certain priority lowered by one level.
The beneficial effects of the invention are as follows:
The invention uses the characteristic that the output of the Mealy type state machine is a joint function formed by the current state and the input of the state machine, judges from the highest priority according to the priority sequence of the control state of the Mealy type state machine, specifically judges whether the control command corresponds to the highest priority state (namely, whether the control command corresponding to the highest priority state appears or not) or the current state machine is in the highest priority state (namely, whether the current state is the highest priority state or not), and keeps the state as long as the highest priority state is to be triggered or already exists, otherwise, continuously judges whether the state of the next lower priority is to be triggered or already exists, which is equivalent to realizing the locking of the current state of the state machine, and keeps the state of the state machine in the current state to execute the control of the electric energy meter as long as the priority of the state corresponding to the received control command is not higher than the priority of the state of the current state machine; when the state corresponding to the received control command is higher than the priority of the state in which the current state machine is located, the state of the state machine is switched to the state corresponding to the control command with higher priority to execute the control of the electric energy meter, thereby ensuring that the control of the electric energy meter is not influenced by the control command with lower priority, meanwhile, as long as a certain control command exists, the priority of the state corresponding to the control command is higher than the priority of the control state in which the current Mealy type state machine is located, the Mealy type state machine can still respond to the control command with higher priority of the corresponding state immediately, rather than continuing to execute the current control state, therefore, the problem of improper priority treatment (especially disorder of priority) can be effectively avoided, namely the problem that the current control state of the Mealy type state machine is lower in priority and is executed preferentially can be effectively avoided, and the stability of the system is effectively improved.
In order to achieve the above object, the present invention further provides:
a state machine-based electric energy meter control system comprises a processor, wherein executable program instructions are stored in the processor and are used for being executed to realize the state machine-based electric energy meter control method.
The electric energy meter control system based on the state machine can achieve the same beneficial effects as the electric energy meter control method based on the state machine.
Drawings
FIG. 1 is a block diagram of the operational flow of a state machine based power meter control method in an embodiment of the state machine based power meter control method of the present invention;
FIG. 2 is a control flow model diagram of a Mealy-type state machine in an embodiment of a state machine-based power meter control method of the present invention;
Fig. 3 is a flow chart of a state machine based power meter control method in an embodiment of the state machine based power meter control method of the present invention.
Detailed Description
The present invention will be further described in detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent.
Electric energy meter control method embodiment based on state machine:
as shown in fig. 1, the present embodiment provides a technical solution of a method for controlling an electric energy meter based on a state machine (specifically, the controlled electric energy meter is an intelligent electric energy meter), which specifically includes the following steps:
1) Judging whether the received control command corresponds to the state with the highest priority or the current state machine is in the state with the highest priority or not through a state machine, if so, controlling the state machine to be in the state with the highest priority so as to execute the control on the electric energy meter, and if not, executing the step 2), wherein the state machines mentioned in the embodiment are all Mealy type state machines;
2) Judging whether a control command corresponds to a state of a priority level reduction stage or a state of the priority level reduction stage exists or not through a state machine, if so, controlling the state machine to be in the state of the priority level reduction stage so as to execute control on the electric energy meter, if not, repeating the step 2), and repeating the step 2) on the basis of the previous repetition until no state with lower priority level exists.
The output signal of the Mealy-type state machine depends not only on the control state in which the current Mealy-type state machine is located, but also on the control command which is currently input to the Mealy-type state machine. Therefore, the embodiment uses the characteristic that the output of the Mealy-type state machine is a joint function formed by the current state and the input of the state machine, and judges from the highest priority according to the priority order of the control states of the Mealy-type state machine, specifically judges whether the control command corresponds to the state with highest priority (namely, whether the control command corresponding to the state with highest priority appears or not) or the current state machine is in the state with highest priority (namely, whether the current state is in the state with highest priority or not), so long as the state with highest priority is to be triggered or already exists, the state is kept, otherwise, whether the state with next lower priority is to be triggered or already exists is continuously judged, which is equivalent to realizing the locking of the current state of the state machine, and if the priority of the state corresponding to the received control command is not higher than the priority of the state where the current state machine is located, the state of the state machine is maintained in the current state where the state is to execute the control of the electric energy meter; when the state corresponding to the received control command is higher than the priority of the state in which the current state machine is located, the state of the state machine is switched to the state corresponding to the control command with higher priority to execute the control of the electric energy meter, thereby ensuring that the control of the electric energy meter is not influenced by the control command with lower priority, meanwhile, as long as a certain control command exists, the priority of the state corresponding to the control command is higher than the priority of the control state in which the current Mealy type state machine is located, the Mealy type state machine can still respond to the control command with higher priority of the corresponding state immediately, rather than continuing to execute the current control state, therefore, the problem of improper priority treatment (especially disorder of priority) can be effectively avoided, namely the problem that the current control state of the Mealy type state machine is lower in priority and is executed preferentially can be effectively avoided, and the stability of the system is effectively improved.
Specifically, the control states of the Mealy-type state machine comprise at least two types of overload/overheat protection states, power-preserving states, friendly power-using states and conventional opening and closing control states. In this embodiment, the Mealy-type state machine includes four control states, which are four key states of overload/overheat protection state, power-saving state, friendly power-using state and conventional switch-off and switch-on control state, respectively.
The control state priority is sequentially from high to low, namely an overload/overheat protection state, a power-saving state, a friendly power-using state and a conventional switching-on/switching-off control state. In this embodiment, the Mealy-type state machine includes four control states, which are respectively an overload/overheat protection state, a power-saving state, a friendly power-using state and a conventional switch-on/off control state, and four key states, where priorities of the four control states are, in order from high to low, the overload/overheat protection state, the power-saving state, the friendly power-using state and the conventional switch-on/off control state. In other embodiments, the control state of the Mealy-type state machine and the priority of the control state can be flexibly set according to requirements.
In summary, the design idea of the scheme is to construct an efficient and safe control state machine based on the Mealy type state machine, and the output signal of the state machine not only depends on the control state of the current Mealy type state machine, but also depends on the control command of the current input Mealy type state machine, namely, in the Mealy type state machine, the output is a joint function of the state and the input. To obtain the output signal of the Mealy-type state machine, it is necessary to know the control state of the current Mealy-type state machine and the control command of the current input Mealy-type state machine, as shown in fig. 3, specifically, taking the case that the Mealy-type state machine includes four control states (overload/overheat protection state, power-preserving state, friendly power-using state and conventional power-off/power-on control state) as an example, the above steps 1) -2) are described in detail:
1) Judging whether the received control command corresponds to the state with the highest priority or the current state machine is in the state with the highest priority or not through a state machine, if so, controlling the state machine to be in the state with the highest priority so as to execute the control on the electric energy meter, and if not, executing the step 2);
And, in step 1), if it is determined that there is no case where the received control command corresponds to the control state having the highest priority and there is a case where the current state machine is in the control state having the highest priority, the control state machine is in the control state having the highest priority, and the control command is stored in the corresponding data field of the control state of the state machine corresponding to the control command, so that when the state machine is not in the control state having the highest priority, the control command is processed in steps 1) -2) as the received control command.
Specifically, in this embodiment, when the control state of the Mealy-type state machine is in the highest priority state (i.e., the overload/overheat protection state), the output of the Mealy-type state machine (i.e., what control state the Mealy-type state machine will enter) depends on the control command of the Mealy-type state machine currently input. Judging whether the control command of the current input Mealy type state machine corresponds to the state with the highest priority of the current Mealy type state machine, if so (namely, the control command is an overload/overheat protection control command), controlling the Mealy type state machine to control an electric energy meter (namely, controlling other related devices to be switched on and off through the electric energy meter) in the state with the highest priority, and if not (namely, the control command is a non-overload/overheat protection control command), maintaining the Mealy type state machine in the overload/overheat protection state, and simultaneously, storing the control command of the current input Mealy type state machine in a corresponding data field of the control state of the Mealy type state machine corresponding to the control command. And storing the control command in a corresponding data field under the condition that the control command currently input into the Mealy type state machine does not correspond to the state with the highest priority of the current Mealy type state machine, so that when the state machine is not in the control state with the highest priority (namely, all control logic in the state with the highest priority of the current Mealy type state machine is executed completely), the control command stored in the corresponding data field is used as the control command input into the Mealy type state machine again to process related steps.
2) Judging whether a control command corresponds to the state of the priority level reduction stage or the current state machine is in the state of the priority level reduction stage or not through a state machine, and if so, controlling the state machine to be in the state of the priority level reduction stage so as to execute control on the electric energy meter;
In step 2), if it is determined that there is no case where the received control command corresponds to the control state of a certain priority-reduced stage and there is a case where the current state machine is in the control state of the priority-reduced stage, the control state machine is in the control state of the priority-reduced stage, and stores the control command in a corresponding field of the control state of the state machine corresponding to the control command, so that when the state machine is not in the control state of the priority-reduced stage, the control command is processed in steps 1) -2) as the received control command.
Specifically, in this embodiment, when the situation in step 1) is absent, that is, when the control state of the Mealy-type state machine is in a control state (such as a power-on state) that is lower in priority by one level than the control state with the highest priority (i.e., an overload/overheat protection state) and the control command currently input to the Mealy-type state machine is not the control command corresponding to the control state with the highest priority (i.e., the overload/overheat protection control command), the output of the Mealy-type state machine (i.e., what control state the Mealy-type state machine will enter) is the control state of the current Mealy-type state machine and the control command currently input to the Mealy-type state machine. Judging whether the control command of the current input Mealy type state machine corresponds to the state that the priority of the current Mealy type state machine is reduced by one level, if so (namely, the control command is a power-saving control command), controlling the Mealy type state machine to execute the control on the electric energy meter in the power-saving state, and if not (namely, the control command is not the power-saving control command), maintaining the Mealy type state machine in the power-saving state, and simultaneously, storing the control command of the current input Mealy type state machine in a corresponding data field of the control state of the Mealy type state machine corresponding to the control command. And storing the control command in a corresponding data field under the condition that the control command of the current input Mealy type state machine does not correspond to the state of the current Mealy type state machine with the lowered priority level, so that when the state machine is not in the state of the lowered priority level (namely, the control logic of the state of the current Mealy type state machine with the lowered priority level is completely executed), the control command stored in the corresponding data field is used as the control command of the input Mealy type state machine again to process related steps.
If not, repeating step 2), and each repetition reduces the priority level by one level based on the previous repetition until no lower-priority state exists.
In this embodiment, on the basis that there is no case where the control command of the current input Mealy type state machine corresponds to the overload/overheat protection state or the current state machine is in the overload/overheat protection state, the control command of the current input Mealy type state machine corresponds to the power-saving state or the current state machine is in the power-saving state, it is determined whether the control command of the current input Mealy type state machine corresponds to the friendly power-saving state, if so (i.e., the control command is the friendly power-saving state control command), the Mealy type state machine is controlled to perform control on the electric energy meter in the friendly power-saving state, and if not (i.e., the control command is not the friendly power-saving control command), the Mealy type state machine is maintained in the friendly power-saving state, and at the same time, the control command of the current input Mealy type state machine is stored in a corresponding data field of the control state of the Mealy type state machine corresponding to the control command. And under the condition that the control command of the current input Mealy type state machine does not correspond to the friendly power utilization state of the current Mealy type state machine, storing the control command in a corresponding data field so as to take the control command stored in the corresponding data field as the control command of the input Mealy type state machine again when the state machine is not in the friendly power utilization state (namely, the control logic of the current Mealy type state machine in the friendly power utilization state is completely executed), and processing related steps.
In this embodiment, based on the condition that there is no control command of the current input Mealy type state machine corresponding to the overload/overheat protection state or the current state machine is in the overload/overheat protection state, the control command of the current input Mealy type state machine corresponding to the power-saving state or the current state machine is in the power-saving state, the control command of the current input Mealy type state machine corresponding to the friendly power-using state or the current state machine is in the friendly power-using state, whether the control command of the current input Mealy type state machine corresponds to the conventional switch-on/off state is determined, and if the control command corresponds to the conventional switch-on/off control command, the Mealy type state machine is controlled to execute the control of the electric energy meter in the conventional switch-on/off state. Based on the above-mentioned judgment of step 1) and step 2), there is no possibility that the control command of the Mealy type state machine is not a conventional opening/closing control command at this time, so there is no case that the relevant command is stored at this time.
As shown in the state machine control flow model diagram of fig. 2, when the Mealy type state machine is performing the control logic corresponding to a certain control state, if the priority of the state corresponding to a certain control command is lower than the state of the current Mealy type state machine, the Mealy type state machine continuously maintains the current state, and stores the control command at the corresponding position, i.e. the Mealy type state machine is not affected by the control command with lower level, and if the priority of the state corresponding to a certain control command is higher than the state of the current Mealy type state machine, the Mealy type state machine will execute the state corresponding to the control command instead, i.e. the Mealy type state machine responds to the control command with higher level in real time. Although the control logic corresponding to the control state of the current Mealy-type state machine is not executed, once a control command with a higher level is encountered, the Mealy-type state machine responds to the control command with a higher priority in real time instead of selecting to continue to execute the control state of the current Mealy-type state machine, so that the problem of improper priority processing can be effectively avoided, namely the problem that the control state of the current Mealy-type state machine is executed preferentially while the priority of the current control state of the Mealy-type state machine is lower can be effectively avoided, and the stability of the system is effectively improved.
Four key states (overload/overheat protection state, power-saving state, friendly power-saving state and conventional switching-on/off control state) included in the Mealy type state machine are specifically designed as configurable modules, and one or more state functions of the four key states are flexibly selected for adaptation according to the requirements of different electric meter types. The electric energy meter control method is designed to utilize the characteristics of a Mealy type state machine, rely on a set of strict and clear flow architecture, accurately analyze and execute received remote control commands through strict and clear logic steps, ensure the accuracy of operation and the safety of a system, select control functions according to different electric meter types, effectively reduce the dependence among functions, improve the flexibility and maintainability of the system, reduce the degree of functional coupling and improve the stability of the system.
The four control states are designed as dynamic optional components, any combination of the four functional states is flexibly integrated according to the unique requirement of a specific instrument type, a set of instruction processing flow which is strictly logically and clearly layered and is constructed by utilizing the characteristics of a Mealy type state machine is combined, remote control instructions are accurately and stably executed, interweaving association among functions is reduced, modularization and decoupling characteristics of a system are enhanced, a series of problems caused by disordered priority order are avoided, user experience is optimized, and a solid foundation is laid for flexibility and reliability of a smart power grid.
State machine based embodiments of a power meter control system:
The embodiment provides a technical solution of an electric energy meter control system based on a Mealy-type state machine, where the system includes a processor, and the processor is configured to implement any one implementation mode of an electric energy meter control method based on a state machine, and specific implementation modes of the embodiment refer to an embodiment of an electric energy meter control method based on a state machine, which is not described herein again.
It should be noted that the above-mentioned embodiments are merely preferred embodiments of the present invention, and the present invention is not limited to the above-mentioned embodiments, but may be modified without inventive effort or equivalent substitution of some of the technical features thereof by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

Translated fromChinese
1.一种基于状态机的电能表控制方法,其特征在于,包括如下步骤:1. A method for controlling an electric energy meter based on a state machine, characterized in that it comprises the following steps:1)通过状态机判断是否存在接收到的控制命令与优先级最高的状态相对应或当前状态机处于该优先级最高的状态的情况;若存在则控制状态机处于该优先级最高的状态下以执行对电能表的控制;若不存在则进行步骤2);所述状态机为Mealy型状态机;所述状态指状态机的控制状态, 包括过载/过热防护状态、保电状态、友好用电状态以及常规拉合闸控制状态中的至少两种类型;1) Determine through the state machine whether the received control command corresponds to the state with the highest priority or the current state machine is in the state with the highest priority; if yes, control the state machine to be in the state with the highest priority to execute the control of the electric energy meter; if no, proceed to step 2); the state machine is a Mealy type state machine; the state refers to the control state of the state machine, including at least two types of overload/overheat protection state, power conservation state, friendly power state and conventional closing and closing control state;2)通过状态机判断是否存在控制命令与优先级降低一级的状态相对应或当前状态机处于该优先级降低一级的状态的情况;若存在则控制状态机处于该优先级降低一级的状态下以执行对电能表的控制;若不存在且状态包含三个以上类型则重复步骤2),每次重复均在前次重复的基础上再降低一级优先级,直至没有优先级更低的状态,以在控制命令对应状态的优先级低于当前状态机所处状态时控制状态机继续维持当前状态、高于当前状态机所处状态时控制状态机转为该控制命令对应的状态。2) Determine through the state machine whether there is a control command corresponding to a state with a lower priority by one level or the current state machine is in a state with a lower priority by one level; if so, the control state machine is in a state with a lower priority by one level to execute control of the electric energy meter; if not and the state contains more than three types, repeat step 2), and each repetition reduces the priority by one level based on the previous repetition until there is no state with a lower priority, so that when the priority of the state corresponding to the control command is lower than the state of the current state machine, the control state machine continues to maintain the current state, and when it is higher than the state of the current state machine, the control state machine switches to the state corresponding to the control command.2.根据权利要求1所述的基于状态机的电能表控制方法,其特征在于,步骤1)中,如果判定不存在接收到的控制命令与优先级最高的控制状态相对应的情况而存在当前状态机处于该优先级最高的控制状态的情况,则控制状态机处于该优先级最高的控制状态下的同时,还将该控制命令存储在状态机的与该控制命令相对应的控制状态的对应域中,以在状态机不处于该优先级最高的控制状态下时,将该控制命令作为接收到的控制命令进行步骤1)-2)的处理。2. The electric energy meter control method based on the state machine according to claim 1 is characterized in that, in step 1), if it is determined that there is no received control command corresponding to the control state with the highest priority but there is a situation where the current state machine is in the control state with the highest priority, then while the control state machine is in the control state with the highest priority, the control command is also stored in the corresponding field of the control state of the state machine corresponding to the control command, so that when the state machine is not in the control state with the highest priority, the control command is treated as the received control command to perform steps 1)-2).3.根据权利要求1或2所述的基于状态机的电能表控制方法,其特征在于,步骤2)中,如果判定不存在接收到的控制命令与某优先级降低一级的控制状态相对应的情况而存在当前状态机处于该优先级降低一级的控制状态的情况,则控制状态机处于该优先级降低一级的控制状态下的同时,还将该控制命令存储在状态机的与该控制命令相对应的控制状态的对应域中,以在状态机不处于该优先级降低一级的控制状态下时,将该控制命令作为接收到的控制命令进行步骤1)-2)的处理。3. The electric energy meter control method based on a state machine according to claim 1 or 2 is characterized in that, in step 2), if it is determined that there is no received control command corresponding to a control state with a priority level reduced by one level and there is a situation where the current state machine is in a control state with a priority level reduced by one level, then while the control state machine is in the control state with a priority level reduced by one level, the control command is also stored in a corresponding field of the state machine's control state corresponding to the control command, so that when the state machine is not in the control state with a priority level reduced by one level, the control command is treated as a received control command to perform steps 1)-2).4.根据权利要求1所述的基于状态机的电能表控制方法,其特征在于,控制状态优先级从高到低依次为:过载/过热防护状态、保电状态、友好用电状态以及常规拉合闸控制状态。4. According to the state machine-based electric energy meter control method of claim 1, it is characterized in that the control state priorities are from high to low: overload/overheat protection state, power conservation state, friendly power use state and conventional closing and closing control state.5.根据权利要求1所述的基于状态机的电能表控制方法,其特征在于,控制状态机处于优先级最高的状态下或某优先级降低一级的状态下以执行对电能表的控制的方式包括:控制状态机处于优先级最高的状态下或某优先级降低一级的状态下,按照状态机处于该状态下的控制逻辑,结合状态机的当前状态和接收到的控制命令,控制电能表的拉闸或合闸动作。5. The state machine-based electric energy meter control method according to claim 1 is characterized in that the method of controlling the state machine to be in the highest priority state or in a state where the priority is reduced by one level to execute control of the electric energy meter includes: controlling the state machine to be in the highest priority state or in a state where the priority is reduced by one level, according to the control logic of the state machine in this state, combined with the current state of the state machine and the received control command, to control the opening or closing action of the electric energy meter.6.一种基于状态机的电能表控制系统,其特征在于,包括处理器,所述处理器中存有可执行程序指令,所述可执行程序指令用于被执行以实现如权利要求1-5任一项所述的基于状态机的电能表控制方法。6. An electric energy meter control system based on a state machine, characterized in that it comprises a processor, wherein the processor stores executable program instructions, and the executable program instructions are used to be executed to implement the electric energy meter control method based on the state machine as described in any one of claims 1-5.
CN202411127879.6A2024-08-162024-08-16 A method and system for controlling electric energy meter based on state machineActiveCN118655803B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202411127879.6ACN118655803B (en)2024-08-162024-08-16 A method and system for controlling electric energy meter based on state machine

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202411127879.6ACN118655803B (en)2024-08-162024-08-16 A method and system for controlling electric energy meter based on state machine

Publications (2)

Publication NumberPublication Date
CN118655803A CN118655803A (en)2024-09-17
CN118655803Btrue CN118655803B (en)2025-01-28

Family

ID=92697431

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202411127879.6AActiveCN118655803B (en)2024-08-162024-08-16 A method and system for controlling electric energy meter based on state machine

Country Status (1)

CountryLink
CN (1)CN118655803B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108962675A (en)*2018-06-072018-12-07宁波三星智能电气有限公司A method of according to control object two priority classes relay
CN110633179A (en)*2019-09-052019-12-31苏州浪潮智能科技有限公司Method and device for checking physical lamp of case
CN117749886A (en)*2023-12-262024-03-22中信科移动通信技术股份有限公司Command execution method, device, communication equipment and readable storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102857946B (en)*2012-03-262015-03-25大唐移动通信设备有限公司State transition method and device
KR101522005B1 (en)*2012-09-062015-05-21한국전자통신연구원Method and apparatus for protection switching
KR20150056397A (en)*2013-11-152015-05-26삼성전자주식회사 broadcast receiving apparatus and method for displaying notice message using the same
CN109215565B (en)*2018-09-212020-07-10华中科技大学 A receiving card and LED display control system
US20200252267A1 (en)*2019-02-042020-08-06Hewlett Packard Enterprise Development LpPriority-based decision making for network switch state change
CN113110152A (en)*2021-04-062021-07-13新石器慧通(北京)科技有限公司Unmanned vehicle driving state switching method and device, electronic equipment and medium
CN113821279A (en)*2021-11-242021-12-21深圳市永联科技股份有限公司State transition method and device and embedded equipment
CN117311857A (en)*2023-09-272023-12-29国网四川省电力公司宜宾供电公司Power grid data operation and maintenance method, system, electronic equipment and medium based on state machine
CN117775013A (en)*2023-12-262024-03-29阿维塔科技(重庆)有限公司Vehicle parking processing method and device and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108962675A (en)*2018-06-072018-12-07宁波三星智能电气有限公司A method of according to control object two priority classes relay
CN110633179A (en)*2019-09-052019-12-31苏州浪潮智能科技有限公司Method and device for checking physical lamp of case
CN117749886A (en)*2023-12-262024-03-22中信科移动通信技术股份有限公司Command execution method, device, communication equipment and readable storage medium

Also Published As

Publication numberPublication date
CN118655803A (en)2024-09-17

Similar Documents

PublicationPublication DateTitle
CN107477820B (en)Air conditioner control system, detection device, air conditioner and readable storage medium
CN111475009B (en)Power consumption reduction circuit of GPU in server and server
CN112966375B (en) Modeling method and system of information-physical components of distribution network based on finite state machine
WO2012016492A1 (en)Power supply module and power supply system
WO2021190094A1 (en)Server and power supply protection system thereof
CN102222901B (en)Sequence control process for modular multi-level flexible direct-current transmission system control equipment
CN111361546B (en) Vehicle control device, method and vehicle
US12078976B2 (en)Systems and methods for building energy management during power-loss event
JP2020048324A (en)Detection device, power conditioner, detection method, and detection program
CN115079800A (en)Intelligent heat dissipation control method and system for IOT (input/output) of server
CN109473974B (en)Power grid regulation and control operation self-adaptive programmed operation method and system
CN115663902B (en) A method for converting island operation to network operation in a flexible direct current transmission system
CN118655803B (en) A method and system for controlling electric energy meter based on state machine
CN108693778B (en)Control method of fixed frequency household appliance, power control module and readable storage medium
CN105244906B (en)Standby state control method, device and system for wind driven generator converter
CN108662723B (en)Air conditioner control method and device, air conditioner and computer readable storage medium
CN112366811A (en)Power supply switching device and method for automatically detecting running state of generator
CN110380503B (en)Factory power supply fast switching method
CN113050500A (en)Rocket power supply control system, and control method and device of rocket power supply system
CN203289457U (en)System controlling power-on/off of computer via network
CN112816805A (en)Flexible direct current converter valve control system and over-current detection method and system
CN116044724B (en)Control method, device, medium and equipment of circulating water pump
CN116961105B (en)Inverter power supply control method, device, system, electronic equipment and medium
CN111082649A (en) A state-jump LLC closed-loop slow start method and device
CN115328248B (en)Voltage self-adaptive adjusting method and device of integrated circuit and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp