A parallel and off-line switching system and method based on single-port multiplexing

By using single-port multiplexing technology and hard-level signal transmission, the problems of large number of ports, high cost, and long switching time in the grid-connected and off-grid switching process of energy storage inverters are solved, and fast and seamless switching of load power supply without interruption is achieved.

CN123184151APending Publication Date: 2026-11-27FOXESS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611658786.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing energy storage inverters suffer from problems such as a large number of ports, high cost, long switching time, complex communication links, and power supply interruption to the load during grid-connected and off-grid switching processes, making it difficult to meet the power supply requirements of precision loads.

Method used

Employing single-port multiplexing technology, the system integrates a switching unit, a data acquisition unit, and a control processor to achieve autonomous detection of the power grid status and transmission of hard-level signals, thereby shortening switching time, maintaining pulse transmission without blocking, and achieving seamless switching by combining online angular frequency tracking.

Benefits of technology

The number of AC ports in the energy storage inverter has been reduced, lowering costs, shortening switching time, avoiding secondary power outages, ensuring uninterrupted power supply to the load, and making grid connection faster and more reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184151A_ABST
    Figure CN123184151A_ABST
Patent Text Reader

Abstract

The application relates to a parallel-off-grid switching system and method based on single-port multiplexing, and relates to the technical field of energy storage inverter and micro-grid parallel-off-grid switching. The energy storage inverter is provided with only one AC output port, and parallel-grid and off-grid power is borne through the same busbar multiplexing; the switching device integrates a switching unit, an acquisition unit and an independent control processor, transmits a differential pressure and a phase difference through a bus, and transmits a tripping and closing signal through a hard level transmission without protocol analysis. When parallel-off-grid switching is performed, the acquisition unit is autonomously detected, the control processor drives the switching to disconnect from the grid, and the hard level triggers the inverter to switch to off-grid after the disconnection is confirmed; when off-grid-to-parallel switching is performed, the inverter does not lock the pulse all the time, the online angle frequency is adjusted to chase the grid, a hard level closing signal is sent after the amplitude, the frequency and the phase simultaneously reach a threshold, double-voltage sources are connected in parallel, and load power supply is uninterrupted. The application reduces the number of ports, shortens the switching time, avoids secondary power failure, can reduce communication overhead and cost, and improves the working stability of the load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of energy storage converter and microgrid grid-connected / off-grid switching technology, specifically to a grid-connected / off-grid switching system and method based on single-port multiplexing. Background Technology

[0002] Energy storage inverters (also known as energy storage converters or PCS) typically need to switch between grid-connected and off-grid operation modes. In related technologies, energy storage inverters generally have independent grid-connected and off-grid AC ports. The grid-connected port is connected to the grid via a grid-connected switch, while the off-grid port is connected to the load via an off-grid switch. The two ports respectively handle grid-connected power transmission and off-grid load power supply. This dual-port structure places high demands on the number of inverter ports, internal relay configuration, and external wiring, resulting in higher overall unit and installation costs.

[0003] In the grid-connected to off-grid direction, the relevant switching devices mostly adopt a static transfer switch (STS) in conjunction with an energy management system (EMS) to make decisions step by step. The signal needs to pass through the EMS, the communication controller and then to the inverter. The communication link is long and the logic interaction is complex. The switching time is usually on the order of tens of milliseconds, which is difficult to meet the strict requirements of precision loads for power interruption time.

[0004] In the off-grid to grid-connected direction, to avoid the impact caused by the direct parallel connection of the inverter's off-grid voltage source and the grid voltage source, related technologies generally adopt a "stop the pulse first, then close the switch, and then establish voltage" approach. That is, the inverter pulse is blocked first, the off-grid output is stopped, and the grid-connected output is re-established after the grid connection point switch is closed. This method objectively creates a secondary power outage gap between blocking the pulse and re-establishing voltage, resulting in discontinuous voltage across the load. Some products also require operators to manually complete the first push-pull unlocking, wait for a fixed countdown, and then perform the second push-pull closing, resulting in low automation and long switching time.

[0005] Before switching from off-grid to on-grid, it is common practice to perform phase-locked loop and pre-synchronization on the inverter output to make its amplitude, frequency and phase close to the grid before closing the circuit. However, the relevant pre-synchronization schemes are still accompanied by pulse blocking in the closing process, or require the main controller to make complex adjustments to the power and battery state of charge. The system structure and control logic are complex, and it is still difficult to achieve uninterrupted power supply to the load while simplifying the hardware ports. Summary of the Invention

[0006] A primary objective of this invention is to overcome at least one of the aforementioned deficiencies by providing a grid-connected / off-grid switching system and method based on single-port multiplexing. This application can reduce the number of AC ports of the energy storage inverter, shorten the grid-connected to off-grid switching time, and avoid secondary power outages caused by pulse blocking during the off-grid to grid-connected process, thereby achieving seamless grid-connected / off-grid switching without interruption of load power supply.

[0007] To achieve the above objectives, the technical solution adopted by the present invention is as follows: This invention provides a grid-connected / off-grid switching system based on single-port multiplexing, including an energy storage inverter, a grid-connected / off-grid switching device, a power grid, and a load. The energy storage inverter has only one AC output port, which is connected to an AC bus and simultaneously carries grid-connected power and off-grid load power via the AC bus. The grid-connected / off-grid switching device integrates a switching unit, a data acquisition unit, and a control processor. The switching unit is connected in series between the power grid and the AC bus. The data acquisition unit is coupled to the power supply line between the power grid and the switching unit. The control processor is electrically connected to both the data acquisition unit and the switching unit. The grid-connected / off-grid switching device and the energy storage inverter are connected by a bus communication link and a hard-level link. The bus communication link is used to transmit the voltage difference and phase difference between the grid and the output of the energy storage inverter. The hard-level link includes a first signal line and a second signal line. The first signal line is connected between the control processor and the energy storage inverter and is used to transmit the tripping status level. The second signal line is connected between the energy storage inverter and the control processor and is used to transmit the closing control level. The level signals transmitted by the first signal line and the second signal line are not parsed by the communication protocol of the bus communication link. The control processor is configured to directly respond to the level change of the second signal line and output a drive signal to drive the switching unit to close. The acquisition unit is configured to autonomously detect the power grid status, and when a power grid abnormality is detected, the control processor locally drives the switching unit to disconnect the power grid. The energy storage inverter is configured to maintain pulse generation and not block pulses throughout the entire process of switching from off-grid to grid-connected.

[0008] The technical solution adopted in this application differs from the traditional method of "inverter detecting undervoltage and then commanding an external switch to trip." In this system, the detection of grid anomalies and switch tripping are both autonomously completed by the switching device: the acquisition unit autonomously detects the grid status, and when a grid anomaly is detected, the control processor locally drives the switching unit to disconnect from the grid. After confirming disconnection, the inverter hardware interrupt is triggered by a hard level via the first signal line, causing the inverter to switch to off-grid pulse generation while the load continues to be powered. In the off-grid to grid-connected direction, the inverter maintains pulse generation throughout the process without blocking the pulse. After obtaining the voltage difference and phase difference on both sides via the bus, it adjusts its own output angular frequency online to actively catch up with the grid. When the amplitude difference, frequency difference, and phase difference simultaneously meet the closing conditions, the inverter is hard-closed via the second signal line, connecting the inverter to the grid in parallel without interrupting the load power supply. Subsequently, the tripping status level is reset and the inverter switches to grid connection.

[0009] According to one embodiment of the present invention, the bus communication link is an RS485 bus or a CAN bus, and the bus core wire, the first signal line, the second signal line, and the power supply VCC line and GND line of the bus communication link are integrated into the same communication port cable.

[0010] According to one embodiment of the present invention, the acquisition unit includes a voltage sampling circuit, a phase and zero-crossing detection circuit, and a power acquisition circuit. The input terminals of the voltage sampling circuit, the phase and zero-crossing detection circuit, and the power acquisition circuit are all coupled to the power supply line between the power grid and the switching unit, and the output terminals are all electrically connected to the signal input terminal of the control processor. The control output terminal of the control processor is electrically connected to the control terminal of the switching unit and the first signal line, respectively. The bus communication link is electrically connected to the control processor.

[0011] According to one embodiment of the present invention, the control processor is configured to output a tripping state level to the energy storage inverter via the first signal line only after confirming that the switching unit has disconnected from the power grid, thereby forming a state feedback lockout.

[0012] According to one embodiment of the present invention, the control processor is configured to automatically and sequentially complete the power grid anomaly detection, switch unit tripping, switch tripping status notification and switch closing control, without requiring manual unlocking operation and fixed countdown throughout the process.

[0013] Specifically, this invention provides a method for switching between parallel and offline networks based on single-port multiplexing, based on the parallel and offline switching system described above, characterized by including a parallel-to-offline switching process and an offline-to-parallel switching process: The grid-connected to off-grid switching process is as follows: the acquisition unit of the grid-connected to off-grid switching device autonomously detects the grid status. When an abnormality is detected in the grid, the control processor drives the switching unit to disconnect from the grid locally. After confirming that the switching unit has disconnected, the tripping status level is output through the first signal line. The energy storage inverter responds to the tripping status level through the inverter controller and switches from grid-connected mode to off-grid mode to generate a waveform while keeping the load continuously powered. The off-grid to grid-connected process is as follows: the acquisition unit detects the grid status, and the control processor determines that the grid has recovered. During this period, the switching unit remains disconnected, and the energy storage inverter continues to emit pulses without blocking them. The voltage difference and phase difference between the grid and the off-grid output of the energy storage inverter are obtained through the bus communication link. The energy storage inverter adjusts its own output angular frequency online to make its off-grid output actively catch up with the grid. When the amplitude difference, frequency difference, and phase difference between the output and the grid simultaneously meet the closing conditions, the energy storage inverter outputs a closing control level through the second signal line. The control processor directly responds to the level change of the second signal line and outputs a drive signal to close the switching unit without parsing the communication protocol of the bus communication link, so that the energy storage inverter is connected in parallel with the grid and the power supply to the load is uninterrupted. Then, it is reset through the first signal line and switches to grid-connected mode.

[0014] According to one embodiment of the present invention, the energy storage inverter adjusts its output angular frequency online according to the following iterative relationship. : in, For grid phase, The output phase of the energy storage inverter. For proportional gain, For integral gain, For discrete control time.

[0015] According to one embodiment of the present invention, the closing condition is that the amplitude difference |ΔV|, frequency difference |Δf|, and phase difference |Δθ| are all not greater than their respective preset thresholds. When any difference does not meet the corresponding preset threshold, the energy storage inverter continues to adjust the output angular frequency online to catch up until the three differences are simultaneously met before outputting the closing control level through the second signal line.

[0016] According to one embodiment of the present invention, both the grid-connected to off-grid process and the off-grid to grid-connected process are automatically completed by the control processor and the energy storage inverter, without the need for manual opening and closing unlocking operations, nor the need for a fixed delay countdown.

[0017] In particular, the present invention also provides a computing device including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer program to implement the method described above.

[0018] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described above. The computer-readable storage medium is preferably a non-volatile readable storage medium.

[0019] Compared with existing technologies, the advantages and beneficial effects of the parallel-to-offline handover system and method based on single-port multiplexing in this patent application are as follows: This application places grid status detection, anomaly judgment, and switch tripping on the switching device side, which is completed locally and autonomously by an independent control processor. After confirming the tripping, a hard-level signal directly triggers a hardware interrupt in the inverter, eliminating the need for the inverter to detect anomalies and issue tripping commands step by step, thus shortening the grid-connected to off-grid transition time. Furthermore, by maintaining pulse transmission throughout the off-grid to grid-connected transition process without blocking the pulse, combined with online angular frequency catching up and hard closing after the amplitude, frequency, and phase simultaneously reach the set thresholds, the inverter and the grid can be connected in parallel without power interruption, overcoming the secondary power outage caused by "stopping the pulse first, then closing, and then building up voltage". Moreover, the hard-level link transmits real-time tripping and closing signals without communication protocol parsing, forming a fast and slow dual-track link, which ensures real-time performance while simplifying wiring and reducing communication overhead and costs.

[0020] Furthermore, this application utilizes a single AC output port of the energy storage inverter to multiplex grid-connected power and off-grid load power via the same AC bus, eliminating the need for a separate off-grid AC port. This helps reduce the configuration of inverter ports and internal relays, and lowers the overall unit and wiring costs.

[0021] In addition, this application uses a hardware interlocking timing mechanism to confirm that the switching unit has indeed disengaged before outputting the tripping status level, as well as rapid disconnection and synchronous closing, which helps to avoid arcing during the closing and opening / closing processes with faults and improves switching reliability. Attached Figure Description

[0022] The following sections will describe some specific embodiments of the invention in detail by way of example and not limitation, with reference to the accompanying drawings. The same reference numerals in the drawings denote the same or similar parts or portions. Those skilled in the art should understand that these drawings are not necessarily drawn to scale. In the drawings: Figure 1 This is a schematic diagram of the circuit structure of a grid-connected / off-grid switching system according to an embodiment of the present invention; Figure 2 This is a schematic diagram of a communication port cable according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the frame structure of the acquisition unit according to an embodiment of the present invention; Figure 4 This is a flowchart illustrating the process of switching from grid connection to off-grid operation according to one embodiment of the present invention; Figure 5 This is a flowchart illustrating the off-grid to on-grid transition process according to one embodiment of the present invention; Figure 6This is a structural diagram of a computing device according to another embodiment of this application; Figure 7 This is a computer-readable storage medium structure diagram according to another embodiment of this application.

[0023] The annotations in the attached figures are explained as follows: 1. Energy storage inverter; 11. Inverter circuit; 12. First switch; 13. Inverter controller; 14. AC output port; 2. On-grid / off-grid switching device; 21. Switching unit; 22. Acquisition unit; 221. Voltage sampling circuit; 222. Phase and zero-crossing detection circuit; 223. Power acquisition circuit; 23. Control processor; 3. Power grid; 4. Load; 5. Second switch; 6. AC bus; 7. Communication port cable; 8. Electricity meter. Detailed Implementation

[0024] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0026] Please see Figure 1 The grid-connected / off-grid switching system of this embodiment includes an energy storage inverter 1, a grid-connected / off-grid switching device 2, a power grid 3, and a load 4. The energy storage inverter 1 internally includes an inverter circuit 11, a first switch 12, and an inverter controller 13. The inverter circuit 11 is connected to the energy storage inverter 1's only AC output port 14 via the first switch 12. This AC output port 14 is connected to the AC bus 6. That is, the energy storage inverter 1 has only one AC output port 14; both grid-connected power transmission and off-grid load power supply are completed through this port and the same AC bus 6, achieving single-port multiplexing.

[0027] The grid-connected / off-grid switching device 2 integrates a switching unit 21, a data acquisition unit 22, and a control processor 23. The switching unit 21 is connected in series between the power grid 3 and the AC bus 6. The power grid 3 is connected to the AC bus 6 via the switching unit 21, and the load 4 is connected to the AC bus 6 via the second switch 5. The data acquisition unit 22 is coupled to the power supply line between the power grid and the switching unit, and is used to acquire the voltage, phase, and power signals of the power grid 3. The control processor 23 is electrically connected to the data acquisition unit 22 and the switching unit 21, respectively, and is responsible for anomaly detection and switching operation.

[0028] It should be noted that, due to the presence of the acquisition unit 22 in the grid-connected / off-grid switching device 2, it can maintain power monitoring of the power grid 3 and thus function as a traditional electricity meter. That is, the electricity meter function is integrated into the acquisition unit 22, eliminating the need for a separate electricity meter and saving equipment costs. Alternatively, an electricity meter 8 can be installed independently of the acquisition unit 22, as long as the power grid 3 is connected to the AC bus 6 via the electricity meter 8 and can perform power consumption statistics. Of course, depending on the scenario, there may be situations where no electricity meter is needed, which will not be elaborated upon here.

[0029] In grid-connected mode, the first switch 12, switch unit 21, and second switch 5 are closed. The power grid 3 supplies power to the load 4 via switch unit 21 and AC bus 6. Simultaneously, the energy storage inverter 1 is connected to the grid via AC output port 14. In off-grid mode, switch unit 21 disconnects from the power grid 3, while the first switch 12 and second switch 5 remain closed. The energy storage inverter 1 supplies power to the load 4 via the first switch 12, AC output port 14, AC bus 6, and second switch 5. Therefore, the same AC output port 14 is reused in both modes, eliminating the need for a separate off-grid AC port for the load 4.

[0030] Please see Figure 1 and Figure 2 A bus communication link and a hard-level link are set between the off-grid switching device 2 and the energy storage inverter 1, thus establishing a dual communication link, wherein: The bus communication link is connected to the control processor 23, using RS485 bus or CAN bus, to transmit data with relatively low real-time requirements, such as voltage difference and phase difference between the grid 3 and the output of the energy storage inverter 1. The hard-level link includes a first signal line and a second signal line: the first signal line is connected to the inverter controller 13 via the grid-connected / off-grid switching device 2, and is used to transmit the tripping status level of the switching unit 21; the second signal line is connected to the control processor 23 via the energy storage inverter 1, and is used to transmit the closing control level. The control processor 23 directly responds to the level change of the second signal line without bus communication protocol parsing, that is, it outputs a drive signal to drive the switching unit 21 to close. Both the first and second signal lines transmit high and low levels, without bus communication protocol parsing or software protocol stack forwarding.

[0031] Please continue reading. Figure 2In one implementation, the two cores of the bus communication link, the first signal line core, the second signal line core, and the power supply VCC and GND cores are integrated into the same communication port cable 7. When RS485 is used, the two bus cores are RS485A and RS485B cores, meaning the communication port cable 7 is a six-core cable. Using a single cable to simultaneously carry communication, hard-level triggering, and power supply simplifies the wiring between the device and the inverter. The high level of the first and second signal lines is typically 5V, and the low level is typically 0V; the VCC voltage is typically +12V. Furthermore, the effective trigger level is determined by the selected inverter interface and can be adjusted according to operating conditions.

[0032] It should also be noted that the first signal line and the second signal line are connected to the communication port of the inverter controller 13. The level signals transmitted through the first signal line and the second signal line can be directly input to the inverter controller 13 through the communication port or sent out by the inverter controller 13 to the grid-connected / off-grid switching device 2 through the communication port. The inverter controller 13 does not need to perform bus communication protocol parsing on the level signals transmitted through the first signal line and the second signal line, nor does it need to forward the software protocol stack.

[0033] Please see Figure 3 The acquisition unit 22 includes a voltage sampling circuit 221, a phase and zero-crossing detection circuit 222, and a power acquisition circuit 223. The input terminals of all three acquisition circuits are coupled to the power supply line between the power grid and the switching unit, and their output terminals are electrically connected to the signal input terminal of an independently configured control processor 23. The control processor 23 processes and judges the acquired signals uniformly. The control output terminal of the control processor 23 is electrically connected to the control terminal of the switching unit 21 and the first signal line, respectively, and the bus communication link is electrically connected to the control processor 23. The voltage sampling, phase and zero-crossing detection, and power acquisition circuits described above can all be implemented using existing devices in the art.

[0034] The switching unit 21 may be a semiconductor static switch, a magnetic latching relay, or a composite switch composed of a semiconductor static switch and a magnetic latching relay.

[0035] In one embodiment, both opening and closing of the switching unit 21 are driven by the control processor 23 via a drive circuit. The second signal line is the switching output from the energy storage inverter 1 to the control processor 23. Its high and low levels (e.g., 5V / 0V) are only used as logic inputs to the control processor 23 and are not directly connected to the power circuit of the switching unit 21. The control processor 23 detects the level changes of the second signal line in real time. When it detects the closing control level (e.g., high level), it outputs the closing drive signal directly through its control output terminal without going through the bus communication protocol parsing. For example, when the switching unit 21 is a magnetic latching relay, the closing drive signal can be applied to the set coil of the magnetic latching relay through an isolation optocoupler and a coil driver chip; when the switching unit 21 is a semiconductor static switch, the closing drive signal can be applied to the gate (control electrode) of the power semiconductor device through an isolation driver and a gate amplifier circuit; when the switching unit 21 is a composite switch, the closing drive signal first turns on the semiconductor static switch and then pulls in the magnetic latching relay. When the circuit breaker is tripped, the control processor 23 outputs a tripping drive (or cancels the set position and outputs a reset) through the same drive path. The isolation, level matching, and power drive mentioned above are all implemented using conventional devices in the field, and the 5V level of the second signal line does not carry out power drive.

[0036] Please see Figure 4 During grid-connected operation, the acquisition unit 22 continuously and autonomously acquires and monitors the status of the power grid 3. When the acquisition unit 22 detects a power grid anomaly (such as undervoltage, exceeding limits, etc.) and sends the signal to the control processor 23, it does not wait for the energy storage inverter 1 to issue a tripping command, but instead drives the switch unit 21 to disconnect from the power grid 3 locally. After the control processor 23 detects the status of the switch unit 21 or judges the data acquired by the acquisition unit 22, and confirms that the switch unit 21 has indeed disconnected, it outputs a tripping status level through the first signal line (in one embodiment, a high level indicates that the switch unit 21 has disconnected and the energy storage inverter 1 needs to switch to off-grid operation). The tripping status level output through the first signal line is directly sent to the inverter controller 13, which preempts the normal task in the form of an external interrupt. While the load 4 is still continuously powered by the AC bus 6, the inverter switches from grid-connected mode to off-grid mode to generate waves and establish an off-grid voltage to support the load 4.

[0037] The above sequence of "first confirming that the switch unit 21 is disconnected, and then setting the trip status level" constitutes a hardware interlock. That is to say, the off-grid voltage is not triggered when it is not confirmed that the grid side has been disconnected, thereby avoiding the inverter's off-grid voltage source from being connected in parallel with the abnormal grid, and also avoiding arcing caused by switching on and off with faults.

[0038] In terms of time budgeting, the time from the detection of an abnormality to the disconnection of the switching unit 21 is defined as the tripping time t1, and the time from the triggering of the tripping state level to the off-grid response wave of the energy storage inverter is defined as the response time t2 of the energy storage inverter 1. The total grid-to-off-grid switching time Ttotal =t1+t2. Based on testing under the condition of a 220V / 50Hz, 10kW residential single-phase photovoltaic-storage integrated machine supporting a 10kW precision server load, the interrupt response time of the inverter controller 13 on this embodiment platform is less than 1μs, t1 is less than 8ms, t2 is less than 2ms, and T... total The overall time should be less than 10ms.

[0039] Please see Figure 5 When the power grid 3 returns to normal, the switch unit 21 remains disconnected. The energy storage inverter 1 continues to generate waves and does not block pulses throughout the process, continuously supplying power to the load 4 via the AC bus 6, without any interruption gaps.

[0040] To describe the voltages on both the inverter side and the grid side, the symbol definitions are given first: v grid (t) represents the instantaneous voltage of the power grid, V grid ω represents the voltage amplitude of the power grid. grid Let θ be the angular frequency of the power grid. grid For grid phase; v inv (t) represents the instantaneous off-grid output voltage of the inverter, V. inv Its voltage amplitude, ω inv Its output angular frequency, θ inv Its output phase; For discrete control time, , These represent the proportional gain and integral gain, respectively. The voltages on both sides are expressed as follows: v grid (t)=V grid sin(ω grid t+θ grid ), v inv (t)=V inv sin(ω inv t+θ inv ).

[0041] The acquisition unit 22 detects the grid-side voltage and phase, and sends the voltage difference and phase difference between the grid and the off-grid output to the energy storage inverter 1 via the bus communication link and the control processor 23. The energy storage inverter 1 adjusts its output angular frequency online with the grid as the target, enabling the off-grid output to actively catch up with the grid. In one embodiment, the output angular frequency is updated according to the following PI iterative relationship: .

[0042] Among them, proportional gain Integral gain The specific value can be adjusted by technicians according to equipment parameters and working scenarios, and will not be elaborated here. When the phase difference has not converged, the energy storage inverter 1 continues to chase according to the above closed loop and does not close the circuit.

[0043] For proportional gain Integral gain The value of should first be known in relation to the proportional gain. It provides a fast phase difference response and integral gain. This eliminates the steady-state phase difference.

[0044] Among them, proportional gain The initial values ​​are generally determined based on the initial angular frequency compensation Δω and phase difference Δθ. If the proportional gain... If the proportional gain is too high (e.g., >10), the initial frequency will change drastically, easily causing system oscillations and even leading to excessive current surges during grid connection; if the proportional gain is too high... If the value is too small (e.g., <0.5), the catch-up speed is too slow, and the grid connection time is prolonged. (Regarding proportional gain...) Once determined, set the integral gain proportionally. In engineering, it is often taken = / 20 to Between / 5. Generally speaking, the proportional gain The empirical value is between 1 and 5, and through optimization and adjustment, the preferred range is 2.5 to 3.0.

[0045] Additionally, define the amplitude difference ΔV = |V grid V inv | Frequency difference Δf = |ω grid ω inv | / (2π), Phase difference Δθ=|θ grid θ inv |, corresponding to preset thresholds δ V δ f δ θ The closing condition is determined to be met only when all three of the following conditions are met simultaneously: ΔV≤δ V Δf≤δ f Δθ≤δ θ .

[0046] In one implementation, δ is typically taken as... V =5V, δ f =0.05Hz, δ θ=3°; The above thresholds are typical values ​​given by the scheme, and their final values ​​and applicable ranges can also be adapted and adjusted by technicians according to equipment parameters and working scenarios. If any difference does not meet the corresponding threshold, the angular frequency is adjusted online to catch up until all three conditions are met simultaneously.

[0047] When the above three elements (amplitude difference |ΔV|, frequency difference |Δf|, and phase difference |Δθ|) simultaneously meet the preset threshold, the energy storage inverter 1 outputs a closing control level to the control processor 23 via the second signal line. The control processor 23 directly responds to the level change of the second signal line and outputs a drive signal to drive the switch unit 21 to close without bus communication protocol parsing. The energy storage inverter 1 is then connected in parallel with the grid 3 without any time difference. Since the amplitude, frequency, and phase of both sides are aligned before closing, and the pulse is not blocked throughout the process, the voltage of the AC bus 6 at both ends of the load 4 is uninterrupted and does not drop at the moment of closing, realizing uninterrupted off-grid to grid-connected power supply to the load. After closing, the level is reset via the first signal line (in one embodiment, a low level indicates grid connection), and the energy storage inverter 1 switches to grid-connected mode.

[0048] In one implementation, the control processor 23 is configured to operate in automatic mode: when switching from grid-connected to off-grid, it automatically completes grid anomaly detection, switch unit tripping, and switch tripping status notification; when switching from off-grid to grid-connected, it automatically cooperates with the inverter to complete grid recovery detection, online pre-synchronization, three-factor (amplitude, frequency, phase) judgment, and switch closing control. Both bidirectional switching require no operator intervention for the first push-pull unlocking, fixed countdown waiting, and second push-pull closing. The specific entry / exit trigger conditions and execution actions of automatic mode are the same as in the aforementioned implementation method and will not be repeated here.

[0049] This application also provides a computing device, see embodiments thereof. Figure 6 The computing device includes a memory 1120, a processor 1110, and a computer program stored in the memory 1120 and executable by the processor 1110. The computer program is stored in a space 1130 for program code in the memory 1120. When executed by the processor 1110, the computer program implements a method step 1131 according to the invention.

[0050] This application also provides a computer-readable storage medium. (See attached embodiments.) Figure 7 The computer-readable storage medium includes a storage unit for program code, the storage unit being provided with a program 1132 for performing the method steps according to the invention, the program being executed by a processor.

[0051] This application also provides a computer program product containing instructions. When the computer program product is run on a computer, it causes the computer to perform the method steps according to the invention.

[0052] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When a computer loads and executes the computer program instructions, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0053] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0054] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing a processor. The program can be stored in a computer-readable storage medium, which is a non-transitory medium, such as random access memory, read-only memory, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof.

[0055] The above embodiments are only for illustrating the technical concept and features of the present invention. Their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They should not be used to limit the scope of protection of the present invention. All equivalent changes or modifications made in accordance with the spirit and essence of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A grid-connected / off-grid switching system based on single-port multiplexing, comprising an energy storage inverter, a grid-connected / off-grid switching device, a power grid, and a load, characterized in that, The energy storage inverter has only one AC output port, which is connected to the AC bus and carries grid-connected power or off-grid load power through the AC bus. The grid-connected / off-grid switching device integrates a switching unit, a data acquisition unit, and a control processor. The switching unit is connected in series between the power grid and the AC bus. The data acquisition unit is coupled to the power supply line between the power grid and the switching unit. The control processor is electrically connected to both the data acquisition unit and the switching unit. The grid-connected / off-grid switching device and the energy storage inverter are connected by a bus communication link and a hard-level link. The bus communication link is used to transmit the voltage difference and phase difference between the grid and the output of the energy storage inverter. The hard-level link includes a first signal line and a second signal line. The first signal line is connected between the control processor and the energy storage inverter and is used to transmit the tripping status level. The second signal line is connected between the energy storage inverter and the control processor and is used to transmit the closing control level. The level signals transmitted by the first signal line and the second signal line are not parsed by the communication protocol of the bus communication link. The control processor is configured to directly respond to the level change of the second signal line and output a drive signal to drive the switching unit to close. The acquisition unit is configured to autonomously detect the power grid status, and when a power grid abnormality is detected, the control processor locally drives the switching unit to disconnect the power grid. The energy storage inverter is configured to maintain pulse generation and not block pulses throughout the entire process of switching from off-grid to grid-connected.

2. The on-grid / off-grid switching system according to claim 1, characterized in that, The bus communication link is an RS485 bus or a CAN bus, and the bus core wire, the first signal line, the second signal line, and the power supply VCC line and GND line of the bus communication link are integrated into the same communication port cable.

3. The on-grid / off-grid switching system according to claim 1, characterized in that, The acquisition unit includes a voltage sampling circuit, a phase and zero-crossing detection circuit, and a power acquisition circuit. The input terminals of the voltage sampling circuit, the phase and zero-crossing detection circuit, and the power acquisition circuit are all coupled to the power supply line between the power grid and the switching unit, and the output terminals are all electrically connected to the signal input terminal of the control processor. The control output terminal of the control processor is electrically connected to the control terminal of the switching unit and the first signal line, respectively. The bus communication link is electrically connected to the control processor.

4. The on-grid / off-grid switching system according to any one of claims 1 to 3, characterized in that, The control processor is configured to output a trip status level to the energy storage inverter via the first signal line only after confirming that the switching unit has disconnected from the power grid.

5. The grid-connected / off-grid switching system according to claim 1, characterized in that, The control processor is configured to automatically complete the power grid anomaly detection, switch unit tripping, switch tripping status notification, and switch closing control, without requiring manual unlocking or a fixed countdown.

6. A method for parallel / offline handover based on single-port multiplexing, based on the parallel / offline handover system according to any one of claims 1 to 5, characterized in that, This includes the process of switching from grid connection to off-grid and the process of switching from off-grid to grid connection: The grid-connected to off-grid switching process is as follows: the acquisition unit of the grid-connected to off-grid switching device autonomously detects the grid status. When an abnormality is detected in the grid, the control processor drives the switching unit to disconnect from the grid locally. After confirming that the switching unit has disconnected, the tripping status level is output through the first signal line. The energy storage inverter responds to the tripping status level through the inverter controller and switches from grid-connected mode to off-grid mode to generate a waveform while keeping the load continuously powered. The off-grid to grid-connected process is as follows: the acquisition unit detects the grid status, and the control processor determines that the grid has recovered. During this period, the switching unit remains disconnected, and the energy storage inverter continues to emit pulses without blocking them. The voltage difference and phase difference between the grid and the off-grid output of the energy storage inverter are obtained through the bus communication link. The energy storage inverter adjusts its own output angular frequency online to make its off-grid output actively catch up with the grid. When the amplitude difference, frequency difference, and phase difference between the output and the grid simultaneously meet the closing conditions, the energy storage inverter outputs a closing control level through the second signal line. The control processor directly responds to the level change of the second signal line and outputs a drive signal to close the switching unit without parsing the communication protocol of the bus communication link, so that the energy storage inverter is connected in parallel with the grid and the power supply to the load is uninterrupted. Then, it is reset through the first signal line and switches to grid-connected mode.

7. The on-grid / off-grid handover method according to claim 6, characterized in that, The energy storage inverter adjusts its output angular frequency online according to the following iterative relationship. : in, For grid phase, The output phase of the energy storage inverter. For proportional gain, For integral gain, For discrete control time.

8. The on-grid / off-grid handover method according to claim 6, characterized in that, The closing condition is that the amplitude difference |ΔV|, frequency difference |Δf|, and phase difference |Δθ| are all not greater than their respective preset thresholds. When any difference does not meet the corresponding preset threshold, the energy storage inverter continues to adjust the output angular frequency online to catch up until the three differences are simultaneously met before outputting the closing control level through the second signal line.

9. The on-grid / off-grid handover method according to any one of claims 6 to 8, characterized in that, Both the grid connection and off-grid switching processes are automatically completed by the control processor and the energy storage inverter, without the need for manual opening and closing or unlocking operations, or a fixed delay countdown.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the on-grid to off-grid switching method as described in any one of claims 6 to 9.