Control method and device of control system, storage medium and electric appliance

文档序号:1340920 发布日期:2020-07-17 浏览:35次 中文

阅读说明:本技术 一种控制系统的控制方法、装置、存储介质及电器 (Control method and device of control system, storage medium and electric appliance ) 是由 赖海龙 梁景梅 冯智斌 陆信平 于 2020-02-25 设计创作,主要内容包括:本发明提供一种控制系统的控制方法、装置、存储介质及电器,所述方法包括:在所述控制系统需要断开感性负载时,获取所述控制系统的感性负载回路的电流值;判断所述感性负载回路的电流值是否为电流过零点;当判断所述电流值为过零点时,执行感性负载断开控制。本发明提供的方案能够减小感性负载断开时的感应电动势,减弱电磁干扰。(The invention provides a control method, a control device, a storage medium and an electric appliance of a control system, wherein the method comprises the following steps: when the control system needs to cut off the inductive load, acquiring the current value of an inductive load loop of the control system; judging whether the current value of the inductive load loop is a current zero crossing point; and when the current value is judged to be the zero crossing point, executing inductive load disconnection control. The scheme provided by the invention can reduce the induced electromotive force when the inductive load is disconnected and weaken the electromagnetic interference.)

1. A control method of a control system, characterized by comprising:

when the control system needs to cut off the inductive load, acquiring the current value of an inductive load loop of the control system;

judging whether the current value of the inductive load loop is a current zero crossing point;

and when the current value is judged to be the zero crossing point, executing inductive load disconnection control.

2. The method of claim 1, wherein performing inductive load disconnect control comprises:

and the power supply of the relay of the inductive load is cut off, so that the corresponding inductive load is stopped.

3. The method of claim 1 or 2, further comprising:

when the current value is judged to be a zero crossing point, setting a preset zero crossing point flag bit to be 1;

performing inductive load disconnect control, further comprising:

detecting whether the zero crossing point flag bit is set to be 1;

and if the zero crossing point flag bit is detected to be 1, the power supply of a relay of the inductive load is cut off, and the zero crossing point flag bit is set to be 0.

4. A method according to any of claims 1-3, wherein the situation where the control system needs to disconnect an inductive load comprises:

the control system actively disconnects the inductive load and/or receives a command to disconnect the inductive load.

5. A control apparatus of a control system, characterized by comprising:

the acquisition unit is used for acquiring the current value of an inductive load loop of the control system when the control system needs to disconnect the inductive load;

the judging unit is used for judging whether the current value of the inductive load loop is a current zero crossing point or not;

and the execution unit is used for executing inductive load disconnection control when the judgment unit judges that the current value is a zero crossing point.

6. The apparatus of claim 5, wherein the execution unit performs inductive load disconnection control, comprising:

and the power supply of the relay of the inductive load is cut off, so that the corresponding inductive load is stopped.

7. The apparatus of claim 5 or 6, further comprising:

the setting unit is used for setting a preset zero crossing point flag bit to be 1 when the judging unit judges that the current value is the zero crossing point;

the execution unit, which executes inductive load disconnection control, further includes:

detecting whether the zero crossing point flag bit is set to be 1;

if the zero crossing point flag bit is detected to be 1, the power supply of a relay of the inductive load is cut off;

the setting unit is further configured to: and after the execution unit cuts off the power supply of a relay of the inductive load, setting the zero crossing point flag position to be 0.

8. The apparatus according to any of claims 5-7, wherein the condition that the control system needs to disconnect an inductive load comprises:

the control system actively disconnects the inductive load and/or receives a command to disconnect the inductive load.

9. A storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.

10. An electrical appliance comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps of the method of any one of claims 1 to 4 or a control device comprising the control system of any one of claims 8 to 14.

Technical Field

The present invention relates to the field of control, and in particular, to a control method and apparatus for a control system, a storage medium, and an electrical appliance.

Background

Alternating current voltage and current have zero crossing points, and when inductive loads such as an alternating current water pump or a motor are disconnected to generate overvoltage or overcurrent, the problem of electromagnetic interference occurs, and the reliability of a circuit is influenced. Most of the existing solutions are to add a bleeding circuit in an inductive load control circuit to absorb the overvoltage or overcurrent generated by the inductive load disconnection, such as a rc module, the position of the rc module needs to be reserved on a motherboard, if there are multiple inductive loads, the multiple rc modules are needed to absorb the overvoltage or overcurrent generated by the inductive load disconnection, which causes the motherboard to be larger and the cost to be increased.

Disclosure of Invention

The present invention is directed to overcome the above-mentioned drawbacks of the prior art, and provides a control method, a control device, a storage medium, and an electrical apparatus of a control system, so as to solve the problem of electromagnetic interference caused by overvoltage or overcurrent when an inductive load is disconnected in the prior art.

One aspect of the present invention provides a control method for a control system, including: when the control system needs to cut off the inductive load, acquiring the current value of an inductive load loop of the control system; judging whether the current value of the inductive load loop is a current zero crossing point; and when the current value is judged to be the zero crossing point, executing inductive load disconnection control.

Optionally, performing an inductive load disconnect control comprises: and the power supply of the relay of the inductive load is cut off, so that the corresponding inductive load is stopped.

Optionally, the method further comprises: when the current value is judged to be a zero crossing point, setting a preset zero crossing point flag bit to be 1; performing inductive load disconnect control, further comprising: detecting whether the zero crossing point flag bit is set to be 1; and if the zero crossing point flag bit is detected to be 1, the power supply of a relay of the inductive load is cut off, and the zero crossing point flag bit is set to be 0.

Optionally, the control system is adapted to disconnect an inductive load, comprising: the control system actively disconnects the inductive load and/or receives a command to disconnect the inductive load.

Another aspect of the present invention provides a control apparatus of a control system, including: the acquisition unit is used for acquiring the current value of an inductive load loop of the control system when the control system needs to disconnect the inductive load; the judging unit is used for judging whether the current value of the inductive load loop is a current zero crossing point or not; and the execution unit is used for executing inductive load disconnection control when the judgment unit judges that the current value is a zero crossing point.

Optionally, the execution unit, performing inductive load disconnection control, includes: and the power supply of the relay of the inductive load is cut off, so that the corresponding inductive load is stopped.

Optionally, the method further comprises: the setting unit is used for setting a preset zero crossing point flag bit to be 1 when the judging unit judges that the current value is the zero crossing point; the execution unit, which executes inductive load disconnection control, further includes: detecting whether the zero crossing point flag bit is set to be 1; if the zero crossing point flag bit is detected to be 1, the power supply of a relay of the inductive load is cut off; the setting unit is further configured to: and after the execution unit cuts off the power supply of a relay of the inductive load, setting the zero crossing point flag bit to be 0.

Optionally, the control system is adapted to disconnect an inductive load, comprising: the control system actively disconnects the inductive load and/or receives a command to disconnect the inductive load.

A further aspect of the invention provides a storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the methods described above.

Yet another aspect of the present invention provides an appliance comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods described above when executing the program.

In a further aspect, the invention provides an electric appliance comprising a control device of the control system described in any one of the preceding claims.

According to the technical scheme of the invention, when the control system needs to cut off the inductive load, whether the current value of the inductive load loop is the current zero crossing point is judged; when the current value is judged to be a zero crossing point, executing inductive load disconnection control, and delaying disconnection of the inductive load by judging the current zero crossing point, so that the induced electromotive force when the inductive load is disconnected can be reduced, and the electromagnetic interference is weakened; the inductive electromotive force generated in the circuit can be reduced by delaying the disconnection of the inductive load, the reliability of the switch can be improved, and the service life of the switch can be prolonged; in addition, the inductive load is cut off after delay, so that the arc extinguishing effect is achieved, and the safety of the circuit can be improved; therefore, the invention can weaken the electric arc and electromagnetic interference generated when the inductive load circuit is disconnected from the source generated by overcurrent, and ensure the normal work of the circuit.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:

FIG. 1 is a method diagram illustrating an embodiment of a method for controlling a control system according to the present invention;

FIG. 2 is a method diagram illustrating an embodiment of a method for controlling a control system according to the present invention;

fig. 3 is a schematic structural diagram of an embodiment of a control device of the control system provided by the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

The invention provides a control method of a control system. The control method is directed to a control system with inductive load control, wherein inductive load refers to various loads with alternating current and direct current electromagnetic coils, and generally presents the characteristics of inductance, such as a motor, a water pump, a valve body coil, a coil of a pulse electromagnetic counter and the like. The control system with inductive load control may for example comprise a control system of an appliance, such as a control of a water pump and/or a motor of an air conditioner, a domestic appliance, a refrigerator, a washing machine or the like. The method of the invention can be used in the main chip of the electric appliance.

Fig. 1 is a method schematic diagram of an embodiment of a control method of a control system provided by the present invention.

As shown in fig. 1, according to an embodiment of the present invention, the control method of the control system includes at least step S110, step S120, and step S130.

Step S110, when the control system needs to disconnect the inductive load, obtaining a current value of an inductive load loop of the control system.

The case where the control system needs to disconnect the inductive load may specifically include that the control system actively disconnects the inductive load and/or receives an instruction to disconnect the inductive load. For example, when a user enters a cleaning mode to operate the motor to descend, the motor stops when the user presses a down "xxx" button again, and at the moment, the control system passively receives an instruction of disconnecting the inductive load; for another example, in an air conditioning system, when the air conditioner fails, the fan motor needs to actively disconnect the inductive load.

In a specific embodiment, the current of the inductive load loop may be sampled by a load current sampling circuit in the control system, and then the current value of the inductive load loop is obtained through calculation. For example, when the control system actively disconnects or passively receives an instruction to disconnect the inductive load, the main chip first samples the current of the inductive load loop into the main chip through the load current sampling circuit, and then obtains the specific current value of the inductive load loop through calculation, for example, the effective current value of the inductive load loop is calculated as the current value of the inductive load loop through AD (analog quantity and digital quantity) conversion inside the main chip.

Step S120, determining whether the current value of the inductive load loop is a current zero crossing point.

And judging whether the current value of the inductive load loop obtained after sampling and calculation by the main chip is a current zero crossing point, for example, judging the current zero crossing point when the effective value of the current after AD conversion is 0.

And step S130, when the current value is judged to be the zero crossing point, executing preset inductive load disconnection control.

Specifically, when the current value is judged to be the zero crossing point, the power supply of the relay of the inductive load is cut off, so that the corresponding inductive load is stopped.

In a specific embodiment, when the current value is judged to be the zero crossing point, a preset zero crossing point flag bit is set to 1. Accordingly, the performing of the inductive load disconnection control specifically includes: detecting whether the zero crossing point flag bit is set to be 1; and if the zero crossing point flag bit is detected to be 1, the power supply of a relay of the inductive load is cut off, and the zero crossing point flag bit is set to be 0.

Specifically, when the current value of the inductive load loop is judged to be the current zero crossing point, the preset zero crossing point flag bit is set to be 1, and the inductive load is switched off as a program function; the zero crossing point flag bit is circularly detected in the program, when the zero crossing point flag bit is detected to be 0, the program directly exits, and when the zero crossing point flag bit is detected to be 1, the following actions are executed:

1) disconnecting the inductive load relay to supply power, and stopping the inductive load as expected;

2) the zero crossing flag bit is reset to 0.

And if the current value is judged to be a non-zero crossing point, continuously sampling the current of the inductive load loop until the current value of the inductive load loop is detected to be a zero crossing point, and entering the inductive load disconnection program.

The inductive load has a characteristic of suppressing a current change, and an induced electromotive force is inevitably generated by a current change in the inductor coil, and the generated induced electromotive force is larger as the current change rate is higher. The high frequency components of the induced electromotive force are coupled into the detection circuit by radiation, causing electromagnetic interference. According to the embodiment of the invention, the inductive load is delayed to be disconnected by judging the zero crossing point of the current, so that the induced electromotive force when the inductive load is disconnected can be reduced, and the electromagnetic interference is weakened. Meanwhile, the inductive load is generally controlled by the relay circuit on the circuit, and the inductive electromotive force generated in the circuit can be reduced by delaying the disconnection of the inductive load, so that the relay switch can be more reliable and safer when being disconnected; when the inductive load is disconnected, an arc discharge phenomenon may occur, and the inductive load is disconnected after a delay, so that an arc extinguishing effect is achieved.

Optionally, a bleeding circuit may be further added in the inductive load circuit to absorb the over-current, so that, in combination with the technical solution in the foregoing embodiment of the present invention, strong electromagnetic interference caused by the disconnection of the inductive load can be more effectively avoided.

For clearly illustrating the technical solution of the present invention, the following describes an execution flow of the control method of the control system according to a specific embodiment.

Fig. 2 is a schematic method diagram of a control method of the control system according to an embodiment of the present invention. The embodiment shown in fig. 2 includes steps S201 to S208.

In step S201, when the inductive load needs to be disconnected, disconnection is prepared.

Step S202, current sampling is carried out on the inductive load loop through the current sampling circuit, and the current value of the inductive load loop is obtained through calculation.

Step S203, determining whether the current value of the inductive load loop is a zero crossing point, if yes, executing step S204, otherwise, returning to step S202, and continuing to sample the current of the inductive load loop.

In step S204, if the current value of the inductive load loop is judged to be the zero crossing point, the zero crossing point is marked at position 1.

Step S205, the inductive load disconnection control routine is entered.

Step S206, performing loop detection on the zero-crossing point flag bit, and detecting whether the zero-crossing point flag bit is set to 1, if so, performing step S207, and if the zero-crossing point flag bit is set to 0, performing step S208.

Step S207, if the zero crossing point flag bit is detected to be 1, executing an inductive load disconnection control program, that is, disconnecting the power supply of the inductive load relay to stop the inductive load, and setting the zero crossing point flag bit to be 0.

In step S208, if the zero crossing point flag bit is detected to be 0, the inductive load disconnection control program is directly exited.

The invention also provides a control device of the control system. The control device is used for a control system with inductive load control, wherein inductive load refers to various loads with alternating current and direct current electromagnetic coils, generally presents inductive characteristics, and comprises a motor, a water pump, a valve body coil, a coil of a pulse electromagnetic counter and the like. The control system with inductive load control may for example comprise a control system of an appliance, such as a control of a water pump and/or a motor of an air conditioner, a domestic appliance, a refrigerator, a washing machine or the like. The device of the invention can be used in particular in the main chip of an electrical appliance.

Fig. 3 is a block diagram of a control device of the control system according to an embodiment of the present invention. As shown in fig. 3, the control device 100 of the control system includes an acquisition unit 110, a determination unit 120, and an execution unit 130.

The obtaining unit 110 is configured to obtain a current value of an inductive load loop of the control system when the control system needs to disconnect an inductive load; the judging unit 120 is configured to judge whether a current value of the inductive load loop is a current zero crossing point; the executing unit 130 is configured to execute inductive load disconnection control when the determining unit determines that the current value is a zero crossing point.

The obtaining unit 110 obtains a current value of an inductive load loop of the control system when the control system needs to be disconnected. The case where the control system needs to disconnect the inductive load may specifically include that the control system actively disconnects the inductive load and/or receives an instruction to disconnect the inductive load. For example, when a user enters a cleaning mode to operate the motor to descend, the motor stops when the user presses a down "xxx" button again, and at the moment, the control system passively receives an instruction of disconnecting the inductive load; for another example, in an air conditioning system, when the air conditioner fails, the fan motor needs to actively disconnect the inductive load.

In a specific embodiment, the obtaining unit 110 may perform current sampling on the inductive load loop through a load current sampling circuit in the control system, and then obtain a current value of the inductive load loop through calculation. For example, when the control system actively disconnects or passively receives an instruction to disconnect the inductive load, the current of the inductive load loop is sampled into the main chip by the load current sampling circuit, and then a specific current value of the inductive load loop is obtained by calculation, for example, an effective current value of the inductive load loop is calculated as a current value of the inductive load loop through AD (analog to digital) conversion inside the main chip.

The determining unit 120 determines whether the current value of the inductive load loop is a current zero crossing point. And judging whether the current value of the inductive load loop obtained after sampling and calculation is a current zero crossing point, for example, judging the current zero crossing point when the current effective value after AD conversion is 0.

When the determining unit 120 determines that the current value is a zero crossing point, the executing unit 130 executes inductive load disconnection control. Specifically, when the determining unit 120 determines that the current value is a zero crossing point, the executing unit 130 disconnects the power supply of the relay of the inductive load, so as to stop the corresponding inductive load.

In a specific embodiment, the apparatus 100 further includes a setting unit (not shown) configured to set a preset zero-crossing flag to be 1 when the determining unit determines that the current value is a zero-crossing point; accordingly, the executing unit 130 specifically performs the inductive load disconnection control including: detecting whether the zero crossing point flag bit is set to be 1; if the zero crossing point flag bit is detected to be 1, the power supply of a relay of the inductive load is cut off; the setting unit is further configured to: and after the execution unit cuts off the power supply of a relay of the inductive load, setting the zero crossing point flag position to be 0.

Specifically, when the determining unit 120 determines that the current value of the inductive load loop is a current zero crossing point, the setting unit sets the preset zero crossing point flag bit to 1, and the executing unit 130 enters an inductive load disconnection program function; the zero crossing point flag bit is circularly detected in the program, when the zero crossing point flag bit is detected to be 0, the program directly exits, and when the zero crossing point flag bit is detected to be 1, the execution unit 130 cuts off the power supply of the inductive load relay, so that the inductive load is stopped as expected; the setting unit resets the zero-crossing point flag bit to 0.

If the determining unit 120 determines that the current value is a non-zero crossing point, the obtaining unit 110 continues to sample the current of the inductive load loop until detecting that the current value of the inductive load loop is a zero crossing point, and the above-mentioned inductive load disconnection procedure of the unit 130 is executed.

The invention also provides a storage medium corresponding to the control method of the control system, on which a computer program is stored, which program, when executed by a processor, carries out the steps of any of the methods described above.

The invention also provides an electric appliance corresponding to the control method of the control system, which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of any one of the methods.

The invention also provides an electric appliance corresponding to the control device of the control system, which comprises the control device of any one of the control systems.

Therefore, according to the scheme provided by the invention, when the control system needs to be disconnected, whether the current value of the inductive load loop is the current zero crossing point is judged; when the current value is judged to be a zero crossing point, executing inductive load disconnection control, and delaying disconnection of the inductive load by judging the current zero crossing point, so that the induced electromotive force when the inductive load is disconnected can be reduced, and the electromagnetic interference is weakened; the inductive electromotive force generated in the circuit can be reduced by delaying the disconnection of the inductive load, the reliability of the switch can be improved, and the service life of the switch can be prolonged; in addition, the inductive load is cut off after delay, so that the arc extinguishing effect is achieved, and the safety of the circuit can be improved; therefore, the invention can weaken the electric arc and electromagnetic interference generated when the inductive load circuit is disconnected from the source generated by overcurrent, and ensure the normal work of the circuit.

The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Other examples and implementations are within the scope and spirit of the invention and the following claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwired, or a combination of any of these. In addition, each functional unit may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.

In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.

The units described as separate parts may or may not be physically separate, and the parts serving as the control device may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.

The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种短路保护电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类