Relay zero-crossing switching method and device, and storage medium
By connecting relay drive modules and buffer modules in the electrical system, the zero -point control relay is used to solve the problem of contact with the contacts caused by the transient impact current, which improves the reliability and cutting efficiency of the relay driver.
Patent Information
- Application Number
- CN202411525390.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-01-28
AI Technical Summary
In electrical systems, when the relay absorbs high-power inductive load, it may cause the contacts to stick to each other due to transient shock current, which will cause them to be out of control and difficult to close. In the prior art, series diodes or capacitors are easily burned out, reducing the reliability of relay driving. .
Proposal a relay with zero -shot cutting method. By connecting the relay driving module and the buffer module in the doting system, disconnect the relay before connecting to the external AC power supply at the power supply port. Direction to avoid the contacts caused by the transient impact current, and the operation of the buffer module is gradually stopped to avoid the high rise of the silicon.
The relay in the load motor driver module effectively avoids the problem of losing control due to the transient impact current to the contact of the contact, which improves the reliability of the relay driver, and improves relay cutting efficiency through the update period.
Smart Images

Figure CN119381205A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of relay switching, in particular to a relay zero-crossing switching method and equipment, and a storage medium. Background Art
[0002] In electrical systems, relays are common components, usually used to control the power supply of some auxiliary equipment. However, if the back-end controls a high-power inductive load, such as a high-power DC motor, at the moment the relay is energized, excessive inrush current may cause the relay contacts to stick, resulting in the motor being out of control and unable to shut down.
[0003] In the prior art, most of them adopt the method of adding diodes or capacitors in series to protect the relays. However, the capacitors or diodes in series are easy to burn out, resulting in low reliability of relay driving. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a relay zero-crossing switching method and device, and a storage medium to prevent the relay in the drive module of the load motor from losing control due to the contact sticking caused by transient impact current, thereby improving the reliability of the relay drive.
[0005] To achieve the above-mentioned purpose, one aspect of an embodiment of the present application proposes a relay zero-crossing switching method, which is applied to a switching system, wherein the system includes: a power supply port, a load motor, a buffer module, a zero-crossing detection module and a relay driving module;
[0006] The buffer module and the relay driving module are both connected to the load motor, the buffer module, the zero-crossing detection module and the relay driving module are all connected to the power supply port, the power supply port is used to be connected to an external AC power supply, and the zero-crossing detection module is used to detect the zero-crossing point of the external AC power supply;
[0007] The method comprises:
[0008] Initializing the relay driving module and controlling the relay in the relay driving module to disconnect;
[0009] Responding to a start instruction, controlling the buffer module to operate according to the start instruction, and maintaining the operation for a set time period;
[0010] Detecting the running state of the load motor, and determining whether the running state is a normal starting state;
[0011] If so, when the zero-crossing detection module detects a zero-crossing point within the set time period, the relay in the relay driving module is controlled to be turned on and the buffer module is controlled to stop running, and the set time period is updated according to the set time step.
[0012] Furthermore, the relay zero-crossing switching method further comprises:
[0013] When the zero-crossing point does not exist within the set time period, detecting the current voltage at the power supply port;
[0014] Determining whether the current voltage is within a set zero point range;
[0015] If so, according to the current voltage, the relay in the relay driving module is controlled to be turned on and the buffer module is controlled to stop running, and the set time period is updated according to the set time step.
[0016] Further, the determining whether the current voltage is within the set zero point range includes:
[0017] When the current voltage is outside the set zero point range, the set time period is extended, and according to the extended set time period, the buffer module is controlled to maintain operation until the zero-crossing detection module detects the zero-crossing point.
[0018] Further, the detecting the running state of the load motor and judging whether the running state is a normal starting state specifically includes:
[0019] Detecting the impact current of the load motor, and obtaining the duration and occurrence time of the impact current;
[0020] According to the duration and the occurrence time, determining whether the inrush current exists in the first half of the set time period;
[0021] If so, it is considered that the operating state is a normal startup state.
[0022] Further, when the zero-crossing detection module detects a zero-crossing point within a set time period, updating the set time period according to the set time step specifically includes:
[0023] Updates the set time period by shortening the set time period according to the set time step.
[0024] Further, when there is no zero-crossing point within the set time period, updating the set time period according to the set time step specifically includes:
[0025] Updates the set time period by extending the set time period according to the set time step.
[0026] Furthermore, the relay zero-crossing switching method further comprises:
[0027] Responding to a stop instruction, and controlling the relay in the relay driving module to remain on according to the stop instruction;
[0028] When the zero-crossing detection module detects a zero-crossing point, the buffer module is controlled to operate, and the relay in the relay driving module is controlled to be disconnected;
[0029] The input cutoff signal is adjusted, and the buffer module is controlled to gradually stop running according to the adjusted cutoff signal.
[0030] Furthermore, the buffer module includes a thyristor, and the cutoff signal of the adjustment input specifically includes:
[0031] According to the set cut-off step length, the driving current input to the thyristor is reduced to gradually control the buffer module to stop running.
[0032] To achieve the above purpose, another aspect of an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned relay zero-crossing switching method when executing the computer program.
[0033] To achieve the above objectives, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the relay zero-crossing switching method described above is implemented.
[0034] The embodiments of the present application include at least the following beneficial effects: The present application provides a relay zero-crossing switching method and device, and a storage medium. The scheme connects the relay driving module and the buffer module in parallel, and before the power supply port is connected to the external AC power supply, the relay in the relay driving module is controlled to be disconnected. When the power supply port is connected to the external AC power supply, the buffer module is turned on according to the start instruction, and the operation is maintained for a set time period. When it is determined that the load motor is running stably, at the zero-crossing point within the set time period, the relay in the relay driving module is controlled to be turned on, and the power supply port and the load motor are turned on to avoid the relay in the driver module of the load motor from being out of control due to the transient impact current causing the contacts to stick and die, and the buffer module is cut off to avoid the problem of excessive temperature rise of the thyristor, thereby improving the reliability of the relay drive. In addition, on the premise that the zero-crossing point can be determined within the current set time period, the set time period is updated according to the set time step, the operation set time period is shortened, and the relay switching efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flowchart of a relay zero-crossing switching method provided by an embodiment of the present application;
[0036] Figure 2 This is a circuit diagram of a switching system provided in one embodiment of the present application.
[0037] Reference numerals: 100, power supply port, 200, control module, 300, buffer module, 400, zero-crossing detection module, 500, relay drive module. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0039] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0040] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0042] In order to make the inventive concept of the present application easy to understand, before describing the embodiments of the present application in detail, the English abbreviations (terms) / related concepts involved in the embodiments of the present application are first described. The English abbreviations (terms) / related concepts involved in the embodiments of the present application are subject to the following explanations.
[0043] Inrush current: When the load is energized, a large current is usually generated, and the current rises from zero to the peak value in a very short time.
[0044] As described in the background technology, in electrical systems, relays are common components, usually used to control the power supply of some auxiliary equipment. However, if the back-end controls a high-power inductive load, such as a high-power DC motor, at the moment when the relay is closed, excessive inrush current may cause the relay contacts to stick, resulting in the motor being out of control and unable to be turned off. In the prior art, most of them will adopt the method of adding diodes or capacitors in series to protect the relay, but the capacitors or diodes in series are easy to burn out, resulting in low reliability of relay drive.
[0045] Based on this, the embodiments of the present invention propose a relay zero-crossing switching method and device, and a storage medium to prevent the relay in the drive module of the load motor from losing control due to the contact sticking caused by transient impact current, thereby improving the reliability of the relay drive.
[0046] Reference Figure 2 In one aspect of the present invention, a relay zero-crossing switching method is applied to a switching system, which includes: a power supply port 100, a load motor, a control module 200, a buffer module 300, a zero-crossing detection module 400 and a relay driving module 500.
[0047] The load motor is electrically connected to the output end of the buffer module 300 and the output end of the relay driving module 500, respectively, and the power supply port 100 is electrically connected to the input end of the buffer module 300, the power supply end of the zero-crossing detection module 400, and the power supply end of the relay driving module 500. The input end of the control module 200 is connected to the output end of the buffer module 300, and the output end of the control module 200 is electrically connected to the output end of the relay driving module 500 and the output end of the buffer module 300.
[0048] The relay driving module 500 includes: a relay and a first transistor circuit. The control module 200 is electrically connected to the driving coil of the relay through the first transistor circuit, and the switch of the relay is electrically connected to the power supply port 100 and the load motor respectively.
[0049] The buffer module 300 includes: a thyristor and a second triode circuit. The control module 200 is connected to the driving end of the thyristor through the second triode circuit. The thyristor is electrically connected to the power supply port 100 and the load motor respectively.
[0050] That is, the buffer module 300 and the relay driving module 500 are connected in parallel.
[0051] Figure 1 is an optional flow chart of the relay zero-crossing switching method provided in the embodiment of the present application, Figure 1 The method may include but is not limited to including S100 to S400.
[0052] S100, initializing the relay drive module and controlling the relay in the relay drive module to disconnect;
[0053] S200, responding to the start instruction, controlling the buffer module to operate according to the start instruction, and maintaining the operation for a set time period;
[0054] S300, detecting the running state of the load motor and determining whether the running state is a normal starting state;
[0055] S400, if yes, then when the zero-crossing detection module detects a zero-crossing point within the set time period, the relay in the relay driving module is controlled to be turned on and the buffer module is controlled to stop running, and the set time period is updated according to the set time step.
[0056] S100 to S400 shown in the embodiment of the present application, by connecting the relay drive module and the buffer module in parallel, before the power supply port is connected to the external AC power supply, the relay in the relay drive module is controlled to be disconnected, when the power supply port is connected to the external AC power supply, the buffer module is turned on according to the start instruction, and the operation is maintained for a set time period, when it is determined that the load motor is running stably, then at the zero point within the set time period, the relay in the relay drive module is controlled to be turned on, and the power supply port and the load motor are turned on to avoid the relay in the drive module of the load motor from losing control due to the transient impact current causing the contacts to stick and die, and the buffer module is cut off to avoid the problem of excessive temperature rise of the thyristor, thereby improving the reliability of the relay drive. In addition, on the premise that it is determined that the zero point can be determined within the current set time period, the set time period is updated according to the set time step, the operation set time period is shortened, and the relay switching efficiency is improved.
[0057] The specific implementation methods of the above steps are introduced below.
[0058] In S100, the relay driving module is initialized, and the contacts of the relays in the relay driving module are kept disconnected.
[0059] That is to say, before the power supply port is connected to the external AC power supply, the relay in the relay drive module is not conducting and the contacts of the relay are disconnected.
[0060] In S200, when the power supply port is connected to an external AC power supply, the buffer module is controlled to conduct and operate in response to a start-up instruction, and the power supply port is connected to the load motor. The buffer module maintains operation according to a set time period until the contacts of the relay are energized to prevent the relay from being turned on and the buffer module from being turned off and still receiving an inrush current. This prevents the relay from being mistakenly put into operation and avoids the situation where the thyristor in the buffer module is damaged due to excessive temperature rise.
[0061] That is to say, when the power supply port is connected to an external AC power supply, the buffer module connects the power supply port with the load motor and maintains the set time period. The relay drive module cannot connect the power supply port with the load motor. Through the power supply port and the buffer module, the AC power supply can power the load motor.
[0062] When the power supply port is connected to an external AC power supply, in response to a start-up instruction, the zero-crossing detection module is controlled to operate.
[0063] In S300, the running state of the load motor is detected to determine whether the load motor is in a normal starting state.
[0064] It can be known from S200 that after the AC power is supplied to the load motor through the buffer module, the load motor is made to run in advance, and the operating status of the load motor is detected. By detecting the impact current in the operating current, it is determined whether the load motor is in a stable state, that is, whether it is in a normal starting state, so as to cut in the relay drive module and supply power to the load motor in a stable state, thereby solving the problem that excessive impact current may cause the relay contacts to stick and satisfying the reliable control of high-power loads in the electrical system.
[0065] In S400, when the load motor is in a normal starting state, at the moment when the zero crossing point is detected within the set time period, the relay contacts in the relay driving module are controlled to be energized to turn on the relay. At the same time, the buffer module is controlled to be cut off and stop running, so that the external AC power supply can supply power to the load motor through the relay instead of supplying power to the load motor through the buffer module, thereby realizing the input of the relay of the driving module.
[0066] When it is determined that the zero-crossing point can be determined within the current set time period, the set time period is shortened according to the set time step to update the set time period.
[0067] The initially set time period in S200 may be determined or adjusted according to load characteristics such as the power factor and frequency response of the load motor.
[0068] In some embodiments, in S300, determining whether the running state is a normal startup state specifically includes:
[0069] S310, detecting the impact current of the load motor, and obtaining the duration and occurrence time of the impact current;
[0070] In this embodiment, the impact current of the load motor is detected. That is, the running current of the load motor is detected, and the impact current is screened out from the running current according to the current value.
[0071] Obtain the duration and occurrence time of the impact current.
[0072] S320: Determine whether the inrush current exists in the first half of the set time period according to the duration and the occurrence time.
[0073] In this embodiment, the duration and occurrence time are used to determine whether the impact current occurs in the first half of the set time period, and no impact current occurs in the second half of the set time period. This determines whether the impact current detected by S310 is caused by the connection to an external AC power supply, so as to determine whether the load motor is running stably and is in a normal starting state.
[0074] S321, if yes, it is considered that the running state is a normal startup state.
[0075] In this embodiment, when it is determined that no surge current occurs in the second half of the set time period, it is considered that the load motor is running stably and is in a normal starting state, and the relay contacts can be controlled to be closed to prevent excessive surge current from causing the relay contacts to stick.
[0076] S322, if not, extend the set time period according to the duration, and control the buffer module to maintain operation according to the extended set time period until the operating current of the load motor is stable.
[0077] In this embodiment, since in actual applications, most of the impact currents are transient currents, a small part of the impact currents may last longer due to factors such as the external AC power supply. Therefore, when the set time period is too short, it is necessary to extend the set time period according to the duration. According to the extended set time period, the buffer module is controlled to maintain operation until the operating current of the load motor is stabilized.
[0078] In some embodiments, in S400, when the zero-crossing detection module detects a zero-crossing point within a set time period, the following steps are also included:
[0079] S410, when there is no zero-crossing point within the set time period, detecting the current voltage;
[0080] In this embodiment, when the zero-crossing detection module cannot detect the zero-crossing point within the set time period, the current voltage at the power supply port is detected, that is, the current voltage of the external AC power supply is detected.
[0081] That is to say, when the set time period is too short, the zero-crossing detection module cannot detect the zero-crossing point within the time period, and then detects the current voltage at the power supply port.
[0082] S420, determining whether the current voltage is within the set zero point range;
[0083] In this embodiment, it is determined whether the current voltage is within the set zero point range, wherein the set zero point range can be set to 0V to +5V and -5V to 0V.
[0084] S421: If yes, then according to the current voltage, the relay in the relay driving module is controlled to be turned on and the buffer module is controlled to stop running, and the set time period is updated according to the set time step.
[0085] In this embodiment, if the current voltage is within the set zero point range, it is considered to be near the zero point. Under this condition, the relay contacts in the relay drive module can be controlled to close and turn on the relay. At the same time, the buffer module is controlled to be cut off and stop running, so that the external AC power supply can supply power to the load motor through the relay instead of supplying power to the load motor through the buffer module, thereby realizing the input of the relay of the drive module.
[0086] When it is determined that there is no zero crossing point within the set time period, the set time period is extended according to the set time step to update the set time period, so that the next time the external AC power supply is connected and the load motor is driven, it runs according to the updated set time period.
[0087] For example, if the current voltage is +3V and is within the set time period of 0V to +5V, it is considered to be near the zero point. At the moment when the current voltage is +3V, the relay contacts in the relay drive module are controlled to be energized, turning on the relay. At the same time, the buffer module is controlled to stop running, the thyristor is controlled to be cut off, and the external AC power supply supplies power to the load motor through the power supply port and the relay drive module.
[0088] S422, if not, extend the set time period, and control the buffer module to maintain operation according to the extended set time period until the zero-crossing detection module detects a zero-crossing point.
[0089] In this embodiment, if the current voltage is not within the set zero point range, it is considered that the external AC power still needs time to reach the zero point, so the set time period is extended. During the extended time period, the buffer module maintains operation until the zero-crossing detection module detects the zero-crossing point, so that the relay contacts in the relay drive module are energized at the zero-crossing point to turn on the relay. At the same time, the buffer module is controlled to stop operating at the zero-crossing point to realize the input of the relay of the drive module.
[0090] In some embodiments, the relay zero-crossing switching method further includes:
[0091] S500, responding to the stop instruction, and controlling the relay in the relay driving module to maintain conduction according to the stop instruction.
[0092] In this embodiment, when the motor is powered off, some transient voltage or current phenomena may be generated, thereby affecting the relay driving module.
[0093] In response to the stop instruction, the contacts of the relay in the relay drive module are controlled to remain attracted through the start instruction to maintain conduction, so as to avoid the transient voltage or transient current affecting the relay drive module when the load motor is powered off.
[0094] S600, when the zero-crossing detection module detects a zero-crossing point, the buffer module is controlled to operate, and the relay in the relay driving module is controlled to be disconnected.
[0095] In this embodiment, if the zero-crossing detection module detects a zero-crossing point, the buffer module is controlled to operate and the thyristor is turned on. At the same time, the contacts of the relay in the relay drive module are disconnected, so that when the zero-crossing point is reached, the relay drive module is cut out and the buffer module is put into operation to avoid transient voltage or transient current affecting the relay drive module when the load motor is powered off, so as to meet the reliable control of high-power loads in the electrical system.
[0096] S700, adjusting the input cutoff signal, and according to the adjusted cutoff signal, the buffer module gradually stops running.
[0097] In this embodiment, the cutoff signal input to the buffer module is adjusted, and the buffer module is gradually controlled to stop running according to the adjusted cutoff signal, so as to gradually turn off the thyristor.
[0098] The drive current is reduced according to the set cut-off step length, and the thyristor is gradually turned off according to the reduced drive current.
[0099] Since the sudden cutoff of thyristors will produce a large current conversion rate and may cause damage to the thyristors, gradually shutting down the thyristors can reduce the impact on the external AC power supply and load motor, extend the service life of the thyristors, and improve the stability and reliability of the entire power system.
[0100] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above relay zero-crossing switching method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0101] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0102] Electronic equipment includes:
[0103] The processor may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0104] The memory can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory, and the processor is called to execute the relay zero-crossing switching method of the embodiment of this application;
[0105] Input / output interface, used to realize information input and output;
[0106] Communication interface, used to realize communication interaction between this device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0107] The bus, which transfers information between the various components of the device (such as the processor, memory, input / output interfaces, and communication interfaces);
[0108] The processor, memory, input / output interface and communication interface are connected to each other through a bus inside the device.
[0109] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned relay zero-crossing switching method is implemented.
[0110] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0111] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0112] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0113] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0114] The preferred embodiments of the present invention are described in detail above, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A relay zero-crossing switching method, characterized in that: Applied to a switching system, the system comprises: a power supply port, a load motor, a buffer module, a zero-crossing detection module and a relay drive module; The buffer module and the relay driving module are both connected to the load motor, the buffer module, the zero-crossing detection module and the relay driving module are all connected to the power supply port, the power supply port is used to be connected to an external AC power supply, and the zero-crossing detection module is used to detect the zero-crossing point of the external AC power supply; The method comprises: Initializing the relay driving module and controlling the relay in the relay driving module to disconnect; Responding to a start instruction, controlling the buffer module to operate according to the start instruction, and maintaining the operation for a set time period; Detecting the running state of the load motor, and determining whether the running state is a normal starting state; If so, when the zero-crossing detection module detects a zero-crossing point within the set time period, the relay in the relay driving module is controlled to be turned on and the buffer module is controlled to stop running, and the set time period is updated according to the set time step.
2. The relay zero-crossing switching method according to claim 1, characterized in that: Also includes: When the zero-crossing point does not exist within the set time period, detecting the current voltage at the power supply port; Determining whether the current voltage is within a set zero point range; If so, according to the current voltage, the relay in the relay driving module is controlled to be turned on and the buffer module is controlled to stop running, and the set time period is updated according to the set time step.
3. The relay zero-crossing switching method according to claim 2, characterized in that: The determining whether the current voltage is within the set zero point range includes: When the current voltage is outside the set zero point range, the set time period is extended, and according to the extended set time period, the buffer module is controlled to maintain operation until the zero-crossing detection module detects the zero-crossing point.
4. The relay zero-crossing switching method according to claim 1, characterized in that: The detecting the running state of the load motor and judging whether the running state is a normal starting state specifically includes: Detecting the impact current of the load motor, and obtaining the duration and occurrence time of the impact current; According to the duration and the occurrence time, determining whether the inrush current exists in the first half of the set time period; If so, it is considered that the operating state is a normal startup state.
5. The relay zero-crossing switching method according to claim 1, characterized in that: When the zero-crossing detection module detects a zero-crossing point within the set time period, updating the set time period according to the set time step specifically includes: Updates the set time period by shortening the set time period according to the set time step.
6. The relay zero-crossing switching method according to claim 2, characterized in that: When there is no zero-crossing point within the set time period, updating the set time period according to the set time step specifically includes: Updates the set time period by extending the set time period according to the set time step.
7. The relay zero-crossing switching method according to claim 1, characterized in that: Also includes: Responding to a stop instruction, and controlling the relay in the relay driving module to remain on according to the stop instruction; When the zero-crossing detection module detects a zero-crossing point, the buffer module is controlled to operate, and the relay in the relay driving module is controlled to be disconnected; The input cutoff signal is adjusted, and the buffer module is controlled to gradually stop running according to the adjusted cutoff signal.
8. The relay zero-crossing switching method according to claim 7, characterized in that: The buffer module includes a thyristor, and the cutoff signal of the adjustment input specifically includes: According to the set cut-off step length, the driving current input to the thyristor is reduced to gradually control the buffer module to stop running.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the relay zero-crossing switching method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the relay zero-crossing switching method according to any one of claims 1 to 8 is implemented.