Relay zero crossing point switching method
By obtaining the timestamp of the relay and the grid voltage, and using the controller to adjust the closing time of the relay, the electrical shock problem caused by the relay not closing at zero point in the photovoltaic energy storage system is solved, and a more stable system operation is achieved.
Patent Information
- Application Number
- CN202410789271.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-27
AI Technical Summary
When the existing photovoltaic energy storage system is connected to the grid, the relay does not close at zero point when it is closed, causing electrical shock and switching temperature to soar.
By obtaining the timestamp and grid voltage of the relay during the closing process, the controller is used to adjust the closing time of the relay according to the deviation, so that it can complete the zero-crossing switching within the preset range of the voltage to ensure that the relay is closed at the zero point.
It effectively avoids the electrical shock at the moment when the relay is closed, reduces the temperature rise at the switch, and improves the stability of the system and the life of the components.
Smart Images

Figure CN118553560A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of photovoltaic new energy technology improvement, and in particular relates to a method for zero-crossing switching of a relay. Background Art
[0002] In order to alleviate the power shortage caused by the increasing demand for electricity, photovoltaic clean energy has been vigorously promoted, and in Europe, the United States, Japan and other regions, self-built photovoltaic networking systems are becoming increasingly popular.
[0003] The components of the existing photovoltaic energy storage system are: photovoltaic modules, grid-connected inverter modules, energy storage modules and power grids. The photovoltaic module converts solar energy into electrical energy, and the inverter module converts the single-phase direct current of the photovoltaic module or energy storage module into alternating current and outputs it to the load or feeds it into the power grid.
[0004] When the existing photovoltaic energy storage system is connected to the grid, the relay is not closed at zero point when it is closed. The resulting problem is that the moment the relay is closed, it causes electrical shock, that is, the temperature at the switch soars. Summary of the invention
[0005] The purpose of the present invention is to provide a method for relay zero-point switching, aiming to solve the technical problem that the relay does not close at zero when closing, which causes electrical shock at the moment of relay closing.
[0006] The present invention is achieved by a method for relay zero-crossing switching, wherein the method for relay zero-crossing switching comprises the following steps:
[0007] S1, obtain the timestamp M and grid voltage V of each node during the closing process of the relay, and make the relay perform the closing action;
[0008] S2, obtain the voltage V2 and timestamp M2 at the moment of relay closing through the sensor and upload them to the controller;
[0009] S3, the controller obtains the deviation value through the function V2=Asin(ωt+Ф) according to the voltage at the moment when the relay is closed;
[0010] S4, correcting the offset of the relay according to the acquired timestamp and delay time of each node;
[0011] S5, adjusting the relay to complete zero-crossing switching when closing within a preset range of the voltage V2 according to the obtained offset;
[0012] Among them, A is the amplitude, ω is the angular frequency, ω=2πf, f is the grid frequency, Ф is the initial phase, and t is the time.
[0013] A further technical solution of the present invention is: in the step S1, the time T0 when the controller sends the relay closing instruction, the time T1 when the relay receives the instruction, the relay closing time T2 and the zero-crossing time T3 of the AC sine wave are obtained.
[0014] A further technical solution of the present invention is: in the step S3, the time difference T1-T0 between the relay closing instruction time T0 issued by the instruction at each time point and the relay receiving instruction time T1 is obtained, and the deviation ΔT1=T1-T0; the time difference T2-T1 between the relay closing time T2 and the relay receiving instruction time T1 is obtained, and the deviation ΔT2=T2-T1.
[0015] A further technical solution of the present invention is: in the step S3, the time difference T2-T3 or T3-T2 between the relay closing time T2 and the zero-crossing time T3 of the sine wave is obtained, and the deviation ΔT3=T2-T3 or T3-T2.
[0016] A further technical solution of the present invention is: in the step S4, the deviation between each time node is calculated based on the obtained time nodes of the relay closing command time T0, the relay receiving command time T1, the relay closing time T2 and the AC sine wave zero crossing time T3, and the offset t3 of the relay closing command issuance time that is moved forward or delayed backward is corrected based on the obtained deviation.
[0017] A further technical solution of the present invention is: the preset range of the voltage V2 in step S5 is ±5V.
[0018] Another object of the present invention is to provide an energy storage device, wherein a method for performing relay zero-crossing switching in a control module of the energy storage device is provided, and the energy storage device comprises:
[0019] Battery cell modules, used to store and release electrical energy;
[0020] A relay module, wherein the relay module is connected to the power grid and the battery module respectively, and the relay module is used to connect the power grid and the battery module, or disconnect the power grid and the battery module;
[0021] Information acquisition module, used to obtain grid voltage and timestamp;
[0022] A control module is used to control the relay to be connected or disconnected according to the grid voltage and the timestamp obtained by the information acquisition module.
[0023] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method for zero-crossing switching of a relay when executing the computer program.
[0024] Another object of the present invention is to provide a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method for implementing zero-crossing switching of a relay are implemented.
[0025] Another object of the present invention is to provide a computer program product, comprising a computer program, which implements the steps of the method for zero-crossing switching of a relay when executed by a processor.
[0026] The beneficial effect of the present invention is that when the photovoltaic energy storage system is connected to the grid by the method, the relay is closed at zero point when it is closed, so that the relay will not cause electrical shock at the moment of closing. The method is simple to calculate and occupies less resources of the controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of a method for zero-crossing switching of a relay provided in an embodiment of the present invention.
[0028] Figure 2 is a schematic diagram of a sine function provided in an embodiment of the present invention Figure 1 .
[0029] Figure 3 is a schematic diagram of a sine function provided in an embodiment of the present invention Figure 2 . DETAILED DESCRIPTION
[0030] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0031] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0032] The alternating current of the power grid conforms to a sinusoidal waveform. There is a delay from the time the relay receives a closing command to the time it actually closes. In addition, the delay between different relays of the same brand and model cannot be consistent. Therefore, it is impossible to set a uniform advance amount to make the relay close at zero point using the advance amount.
[0033] like Figure 1 As shown, a flow chart of the method for relay zero-crossing switching provided by the present invention is described in detail as follows:
[0034] Step S1, obtain the timestamp M and grid voltage value V of each node in the closing process of the relay, and make the relay execute the closing action; the controller of the photovoltaic energy storage system sends the relay closing instruction at time T0, receives the closing instruction at the relay end at time T1, and executes the closing instruction. The relay is closed after a delay of T2 time, and the AC sine wave crosses the zero point at time T3 after closing; in the process of receiving the instruction, the grid voltage value V1 is also automatically obtained, and each time point and voltage value V are recorded and temporarily saved, such as Figure 2 -3.
[0035] Step S2, obtain the voltage V2 and timestamp m2 at the moment of relay closure through the sensor and upload them to the controller; multiple sensors are set in the system, and the voltage V2 and timestamp m2 at the moment of relay closure are obtained through each sensor. After obtaining, the voltage V2 and timestamp m2 nodes are sent to the controller in the photovoltaic energy storage system as the basis for subsequent calculations. V2 is the voltage when the relay is actually closed, and m2 is the time point when the relay is actually attracted. There is a delay from the control center sending instructions to the actual attraction of the relay. In this process, the voltage V and time m will change accordingly.
[0036] Step S3, the controller obtains the deviation according to the voltage at the moment the relay is closed through the function V2=Asin(ωt+Ф); in the photovoltaic energy storage system, the controller obtains the delay time t1 by calculating the function according to the acquired node data and the voltage V2 at the moment the relay is closed. The function formula is: V2=Asin(ωt+Ф), where A is the amplitude, the magnitude extreme value of the sine wave, ω is the angular frequency, which determines the speed of change, ω=2πf, f is the grid frequency, where the Chinese grid frequency is 50Hz, the grid frequency of the United States and Japan is 60Hz, 2π is a sine cycle, Ф is the initial phase, representing the initial position, t is the time, and the control center sends The moment of the command is different from the moment when the relay executes the action; when calculating the delay time or the advance time, the time difference T1-T0 between the relay closing command time T0 issued by the command obtained at each time point and the relay receiving command time T1 is obtained, that is, the deviation ΔT1, ΔT1=T1-T0; the time difference T2-T1 between the relay closing time T2 and the relay receiving command time T1 is obtained, that is, the deviation ΔT2, ΔT2=T2-T1; the time difference T2-T3 or T3-T2 between the relay closing time T2 and the zero-crossing time T3 of the sine wave is obtained, that is, the deviation ΔT3, ΔT3=T2-T3 or T3-T2.
[0037] In actual operation, it is impossible to determine whether the actual closing time node T2 of the relay is before or after the sine wave zero crossing point T3 (1 / 2f). Therefore, it is necessary to first determine the position of node T2. In this case, time node T2 is divided into two cases. In the first case, time node T2 is before time node T3, that is, when T2 < T3, the corrected relay closing instruction is issued at time T0′.
[0038] =(T0-0)+(T3-T2)=T0+ΔT3; that is, based on the time node T0 when the relay closing command is issued, the delay time is the deviation ΔT3, then the offset t3=T0+T3-T2.
[0039] In the second case, when the time node T2 is after the time node T3, that is, when T2>T3, when (T1-T0)+(T2-T1)<1 / 2f and / or T2-T3≤T0-0 are satisfied, the zero-crossing point is corrected to fall at 1 / 2f(π), and the corrected relay closing instruction issuance time T0′=(T0-0)-(T2-T3)=T0-ΔT3, that is, the time is shifted forward by the deviation amount ΔT3 based on the time node T0 of the relay closing instruction issuance, and the offset amount t3=T0-T2-T3. When any of the conditions (T1-T0)+(T2-T1)<1 / 2f and / or T2-T3≤T0-0 are not satisfied, the zero-crossing point is corrected to fall at 1 / f(2π). The corrected time when the relay closing command is issued is T0′=T0+1 / f-(T3-0), that is, the delay time is 1 / f-(T3-0) based on the time node T0 when the relay closing command is issued, and the offset t3=1 / f-T3.
[0040] Step S4, correct the advance amount of the relay according to the acquired timestamps and delay times of each node; after the control obtains the corresponding parameters, according to the delay time t1=T2-T1 and the deviation t2=T3-T2, correct the offset t3=T0+ΔT1 of the relay according to the delay time.
[0041] Step S5, adjusting the relay to close within the preset range of voltage V2 according to the obtained offset t3 to complete zero-crossing switching, wherein the preset voltage range value in this process is ±5 V. Repeating the above steps can keep the relay closed at the zero-crossing point.
[0042] It is understandable that there is a time delay in the process from the controller sending the closing command to the relay receiving the closing command. That is to say, when the controller sends the closing command, the relay still needs a period of time to receive the command from the controller, and it also takes a certain execution time from the time the relay receives the closing command to the time the closing action is actually performed. AC power is a sine function wave with high frequency changes in a short period of time. Therefore, the time from the controller sending the command to the time the relay receives the command plus the time from the time the relay receives the command to the time the closing action is completed is enough to cause a large change in the amplitude of the AC sine wave. That is to say, there is an unpredictable time deviation between the moment when the AC power is at zero and the moment when the relay performs the closing action. Therefore, when the relay is actually closed, the AC power is no longer at zero. When the relay is closed at a time when it is not at zero, a large instantaneous current will be generated, thereby causing an impact on the components connected to the relay. As the number of times the relay is opened and closed increases, the components will age faster after being subjected to frequent impacts until the components are broken down.
[0043] This method effectively eliminates the problem that when the photovoltaic energy storage system is connected to the grid, the relay does not close at the zero point when closing. The resulting problem is that the electrical shock is caused at the moment the relay closes, that is, the temperature at the switch soars.
[0044] Another object of the present invention is to provide an energy storage device, wherein a method for performing relay zero-crossing switching in a control module of the energy storage device is provided, and the energy storage device comprises:
[0045] Battery cell modules, used to store and release electrical energy;
[0046] A relay module, wherein the relay module is connected to the power grid and the battery cell module respectively, and the relay module is used to connect the power grid and the battery cell module, or disconnect the power grid and the battery cell module;
[0047] Information acquisition module, used to obtain grid voltage and timestamp;
[0048] A control module is used to control the relay to be connected or disconnected according to the grid voltage and the timestamp obtained by the information acquisition module.
[0049] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for zero-crossing switching of a relay when executing the computer program.
[0050] Another object of the present invention is to provide a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method for implementing zero-crossing switching of a relay are implemented.
[0051] Another object of the present invention is to provide a computer program product, comprising a computer program, which implements the steps of the method for zero-crossing switching of a relay when executed by a processor.
[0052] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for zero-crossing switching of a relay, characterized in that: The method for relay zero-crossing switching comprises the following steps: S1, obtain the timestamp M and grid voltage V of each node during the closing process of the relay, and make the relay perform the closing action; S2, obtain the voltage V2 and timestamp M2 at the moment of relay closing through the sensor and upload them to the controller; S3, the controller obtains the deviation value through the function V2=Asin(ωt+Ф) according to the voltage at the moment when the relay is closed; S4, correcting the offset of the relay according to the acquired timestamp and delay time of each node; S5, adjusting the relay to complete zero-crossing switching when closing within a preset range of the voltage V2 according to the obtained offset; Among them, A is the amplitude, ω is the angular frequency, ω=2πf, f is the grid frequency, Ф is the initial phase, and t is the time.
2. The method for relay zero-crossing switching according to claim 1, characterized in that: In the step S1, the time T0 when the controller sends the relay closing instruction, the time T1 when the relay receives the instruction, the relay closing time T2 and the zero-crossing time T3 of the AC sine wave are obtained.
3. The method for relay zero-crossing switching according to claim 2, characterized in that: In the step S3, the time difference T1-T0 between the relay closing instruction time T0 issued by the instruction at each time point and the relay receiving instruction time T1 is obtained, and the deviation ΔT1=T1-T0; the time difference T2-T1 between the relay closing time T2 and the relay receiving instruction time T1 is obtained, and the deviation ΔT2=T2-T1.
4. The method for relay zero-crossing switching according to claim 3, characterized in that: In the step S3, the time difference T2-T3 or T3-T2 between the relay closing time T2 and the zero-crossing time T3 of the sine wave is obtained, and the deviation ΔT3=T2-T3 or T3-T2.
5. The method for relay zero-crossing switching according to claim 4, characterized in that: In the step S4, the deviation between each time node is calculated based on the obtained time nodes of the relay closing command time T0, the relay receiving command time T1, the relay closing time T2 and the AC sine wave zero crossing time T3, and the offset t3 of the relay closing command issuance time is corrected based on the obtained deviation.
6. The method for relay zero-crossing switching according to claim 5, characterized in that: The preset range of the voltage V2 in step S5 is ±5V.
7. An energy storage device, characterized in that: The control module of the energy storage device executes the method for relay zero-crossing switching according to any one of claims 1 to 6, and the energy storage device comprises: Battery cell modules, used to store and release electrical energy; A relay module, wherein the relay module is connected to the power grid and the battery module respectively, and the relay module is used to connect the power grid and the battery module, or disconnect the power grid and the battery module; Information acquisition module, used to obtain grid voltage and timestamp; A control module is used to control the relay to be connected or disconnected according to the grid voltage and the timestamp obtained by the information acquisition module.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
