Uninterruptible power system, control apparatus of the same and method of controlling the same

An uninterruptible power system includes a power conversion apparatus, a switch unit and a control apparatus. The switch unit outputs a mains voltage in a line mode, and output an alternating conversion voltage in a battery mode. The control apparatus is configured to generate a base triangular wave signal according to the mains voltage. When the uninterruptible power system is in a battery mode and the control apparatus detects the regeneration of the mains voltage, the control apparatus is configured to determine whether a cross-over value of the base triangular wave signal is within a predetermined range when the mains voltage is at a zero-cross point. The control apparatus is configured to control the switch unit to output the mains voltage instead of the alternating conversion voltage when the cross-over value of the base triangular wave signal is within the predetermined range.

BACKGROUND OF THE INVENTION

Field of the Invention

The present invention relates to an uninterruptible power system, a control apparatus for uninterruptible power system and method for uninterruptible power system, especially to an off-line square wave uninterruptible power supply, a control apparatus for off-line square wave uninterruptible power system and method for off-line square wave uninterruptible power system.

Description of Prior Art

As the progress of society, the demand for quality of power supply is higher. To ensure the safety of electric utility, the uninterruptible power system is popular design trend. The off-line uninterruptible power system is attractive and has extensive application due to the advantages of compact size, light weight and low price.

FIG. 1shows a block diagram of a prior art off-line uninterruptible power system. The off-line uninterruptible power system mainly comprises a power conversion apparatus2receiving a mains voltage Vac and outputting an alternating conversion voltage Vo, a switch unit3receiving the mains voltage Vac and the alternating conversion voltage Vo, a control apparatus4configured to sense the mains voltage Vac and the alternating conversion voltage Vo and to control the power conversion apparatus2and the switch unit3. The power conversion apparatus2comprises a charging unit21electrically connected with a battery unit22, a DC to DC conversion unit23electrically connected with the battery unit22and a DC to AC conversion unit24. When the mains voltage Vac is normal, the mains voltage Vac is outputted to a load (not shown) through the switch unit3and charges the battery unit22in the power conversion apparatus2. When the control apparatus4detects that the mains voltage Vac is interrupted or the mains voltage Vac is abnormal at a detection point X, the battery unit22supplies the alternating conversion voltage Vo to the switch unit3through the DC to DC conversion unit23and the DC to AC conversion unit24. The switch unit3then outputs the alternating conversion voltage Vo to the load.

The alternating conversion voltage Vo outputted by the above mentioned off-line uninterruptible power system may have waveform of square wave or sinusoidal wave. The former one is popular due to versatility and cost consideration. However, the above mentioned off-line uninterruptible power system has following drawbacks:

1. The above mentioned off-line uninterruptible power system has risk of instantaneous short circuit because it lacks the phase locking function between the mains voltage Vac and the power conversion apparatus2.

2. The actual switching time of the switch unit3has a delay time with the command issuing time of the control apparatus. The switch unit3may be damaged by excessive switching stress because the switch unit3has above delay time and fails to achieve switching at zero crossing point of the mains voltage.

It is desirable to provide an uninterruptible power system, a control apparatus and method for the power conversion apparatus, which utilizes the phase locking function to prevent from instantaneous short circuit problem and damaging of switch unit due to excessive switching stress.

SUMMARY OF THE INVENTION

According to one aspect of the present invention, the present invention provides an uninterruptible power system operable in a line mode or a battery mode, the uninterruptible power system comprising: a power conversion apparatus configured to receive a mains voltage and generate an alternating conversion voltage; a switch unit configured to receive the mains voltage and the alternating conversion voltage, and to output the mains voltage in the line mode and output the alternating conversion voltage in the battery mode; and a control apparatus configured to sense the mains voltage and the alternating conversion voltage, and control the power conversion apparatus and the switch unit, wherein the control apparatus is further configured to generate a base triangular wave signal according to the mains voltage in the line mode and determine whether a cross-over value of the base triangular wave signal is within a predetermined range at a zero-crossing point of the mains voltage when the uninterruptible power system is operating in the battery mode and the mains voltage resumes; and wherein the control apparatus is further configured to control the switch unit to output the mains voltage instead of the alternating conversion voltage and change the uninterruptible power system from operating in the battery mode to operating in the line mode when the cross-over value of the base triangular wave signal is within the predetermined range at the zero-crossing point of the mains voltage.

According to one embodiment, the control apparatus is configured to adjust a frequency of the base triangular wave signal when the control apparatus determines that the cross-over value of the base triangular wave signal is not within a predetermined range at the zero-crossing point of the mains voltage. The control apparatus is configured to decrease the frequency of the base triangular wave signal when the base triangular wave signal has falling edge and the cross-over value of the base triangular wave signal is smaller than the predetermined range at the zero-crossing point of the mains voltage. The control apparatus is configured to increase the frequency of the base triangular wave signal when the base triangular wave signal has falling edge and the cross-over value of the base triangular wave signal is larger than the predetermined range at the zero-crossing point of the mains voltage.

According to another embodiment, the predetermined range is comprised of a tolerance range from a middle value of the base triangular wave signal; the tolerance value is 10% of the absolute value of the peak-to-valley voltage of the base triangular wave signal.

According to still another embodiment, in the line mode, the control apparatus is configured to generate the base triangular wave signal with middle values corresponding to rising-edge zero-crossing points and falling-edge zero-crossing points of the mains voltage, wherein the control apparatus is configured to control the power conversion apparatus to output the alternating conversion voltage having same frequencies, peaks and valleys as the mains voltage when the uninterruptible power system changes from the line mode to the battery mode.

According to still another embodiment, the control apparatus comprises a carrier controller configured to receive the mains voltage and generate the base triangular wave signal and a switch triggering signal, a pulse controller configured to receive the alternating conversion voltage and the switch triggering signal and output a pulse width modulation (PWM) signal and a switch control signal, wherein the power conversion apparatus is controllable by the PMW signal and the switch unit is controllable by the switch control signal.

According to still another embodiment, the pulse controller further comprises: a feedback controller configured to receive the alternating conversion voltage and output a conversion control voltage signal, a pulse width modulation (PWM) unit configured to receive the base triangular wave signal and the conversion control voltage signal and generate the PWM signal, wherein the PWM unit outputs the PWM signal in the battery mode.

According to still another embodiment, the carrier controller further comprise a mains sensing unit configured to receive the mains voltage and generate a mains zero-crossing signal according to the mains zero-crossing point of the mains voltage, a carrier generator configured to receive the mains zero-crossing signal and output the base triangular wave signal, a base triangular wave voltage sampling unit configured to receive the base triangular wave signal and output a sampling voltage value, and a determination unit configured to receive the mains zero-crossing signal and output a determination signal to the carrier generator and output the switch triggering signal, wherein the determination unit is configured to determine whether the cross-over value of the base triangular wave signal is within the predetermined range at zero-crossing point of the mains voltage.

According to still another embodiment, the carrier generator further comprises a frequency adjusting unit configured to receive the determination signal and output a frequency adjusting signal, and a carrier count resetting unit configured to receive the mains zero-crossing signal and the frequency adjusting signal and output the base triangular wave signal, wherein the frequency adjusting unit is configured to adjust a frequency of the base triangular wave signal according to the determination signal when the uninterruptible power system changes from the battery mode to the line mode.

According to still another embodiment, the pulse controller further comprises a switch controller configured to receive the switch triggering signal and generate a switch control signal for controlling the switch unit. The switch controller further comprises a switch delay time table; the switch delay time table provides a delay time according to a type of the switch unit, the switch controller switches the switch unit with reference to the delay time when the uninterruptible power system changes from the battery mode to the line mode.

According to another aspect of the present invention, the present invention provides a control apparatus for an uninterruptible power system operated in a line mode or a battery mode, the control apparatus comprising: a carrier controller for receiving a mains voltage and generating a base triangular wave signal and a switch triggering signal; and a pulse controller for receiving an alternating conversion voltage output from a power conversion apparatus and receiving the switch triggering signal, the pulse controller being configured to generate a pulse width modulation (PWM) signal for controlling the power conversion apparatus and generating a switch control signal for controlling a switch unit, wherein the control apparatus generates the base triangular wave signal according to the mains voltage in the line mode; wherein the control apparatus is configured to determine if a cross-over value of the base triangular wave signal is within a predetermined range at a zero-crossing point of the mains voltage when the uninterruptible power system is operated in the battery mode and the mains voltage resumes, and wherein the control apparatus is further configured to control the switch unit to output the mains voltage instead of the alternating conversion voltage when the cross-over value of the base triangular wave signal is within the predetermined range at the zero-crossing point of the mains voltage.

According to still another aspect of the present invention, the present invention provides a method of controlling an uninterruptible power system, the method comprising: (a) providing the uninterruptible power system operable in a line mode or a battery mode; (b) receiving a mains voltage by the uninterruptible power system operating in the line mode; (c) generating a base triangular wave signal according to the mains voltage; (d) generating an alternating conversion voltage according to the mains voltage; (e) operating the uninterruptible power system in the battery mode and outputting the alternating conversion voltage; (f) receiving a resumed mains voltage by the uninterruptible power system; (g) determining if a cross-over value of the base triangular wave signal is within a predetermined range at a zero-crossing point of the resumed mains voltage; and (h) outputting the resumed mains voltage instead of the alternating conversion voltage when the cross-over value of the base triangular wave signal is within the predetermined range at zero-crossing point of the resumed mains voltage.

DETAILED DESCRIPTION OF THE INVENTION

Referring toFIG. 2, the uninterruptible power system100can be operated in a line mode LM or a battery mode BM, and receives a mains voltage Vac. When the mains voltage Vac has normal frequency and normal root means square (RMS) value, the uninterruptible power system100operates in the line mode. When the mains voltage Vac is abnormal or fails, the uninterruptible power system100operates in the battery mode. As shown inFIG. 2, the uninterruptible power system100comprises a power conversion apparatus2for receiving the mains voltage Vac and outputting an alternating conversion voltage Vo, a switch unit3for receiving the mains voltage Vac and the alternating conversion voltage Vo. The switch unit3outputs the mains voltage Vac in the line mode LM and outputs the alternating conversion voltage Vo in the battery mode BM. The switch unit3may be implemented by, but is not limited to, a double pole double throw relay. The uninterruptible power system100further comprises a control apparatus4configured to sense the mains voltage Vac and the alternating conversion voltage Vo and to control the power conversion apparatus2and the switch unit3. The control apparatus4further comprises a carrier controller41for receiving the mains voltage Vac and then generating a base triangular wave signal Sc and a switch triggering signal Rt. The control apparatus4further comprises a pulse controller42for receiving the alternating conversion voltage Vo, the base triangular wave signal Sc and the switch triggering signal Rt, and outputting a pulse width modulation signal PWM and a switch control signal Rc. The pulse width modulation signal PWM is used to control the power conversion apparatus2, and the switch control signal Rc is used to control the switch unit3.

FIG. 3shows an internal block diagram of the control apparatus4. With reference also toFIG. 2, the carrier controller41further comprises a mains sensing unit411for receiving the mains voltage Vac and generating a mains zero-crossing signal Sz according to a mains zero-crossing point zc of the mains voltage Vac; and a carrier generator412for receiving the mains zero-crossing signal Sz and outputting the base triangular wave signal Sc. The carrier controller41further comprises a base triangular wave voltage sampling unit413for receiving the base triangular wave signal Sc and recording (generating) a sampling voltage value Vs; a determination unit414for receiving the mains zero-crossing signal Sz and the sampling voltage value Vs, outputting a determination signal Sd to the carrier generator412, and outputting the switch triggering signal Rt. The carrier generator412further comprises a frequency adjusting unit4122for receiving the determination signal Sd and outputting a frequency adjusting signal Sf; and a carrier count resetting unit4121for receiving the mains zero-crossing signal Sz and the frequency adjusting signal Sf and outputting the base triangular wave signal Sc. The detailed operation and determination method for the control apparatus4and the determination unit414is described later in this specification.

With reference toFIG. 3and also toFIG. 2, the pulse controller42further comprises a feedback controller421for receiving the alternating conversion voltage Vo and outputting a conversion control voltage signal Vc, a pulse width modulation (PWM) unit422for receiving the base triangular wave signal Sc and the conversion control voltage signal Vc, and outputting the pulse width modulation signal PWM, The pulse controller42further comprises a switch controller423for receiving the switch triggering signal Rt and outputting the switch control signal Rc for controlling the switch unit3. The switch controller423comprises a built-in switch delay time table4231.

Referring toFIG. 4with reference also toFIGS. 2 and 3, when the mains voltage Vac is present, the uninterruptible power system100is operated in the line mode LM. When the mains voltage Vac is not available, the uninterruptible power system100is switched from the line mode LM to the battery mode BM. In the line mode LM, the mains sensing unit411generates the mains zero-crossing signal Sz according to the mains voltage Vac rising-edge zero-crossing point zu and falling-edge zero-crossing point zd, as shown inFIG. 4. The mains zero-crossing signal Sz is a continuous square wave. The rising edges and the falling edges of the mains zero-crossing signal Sz corresponds to the to the rising-edge zero-crossing points zu and the falling-edge zero-crossing points zd of the mains voltage Vac, respectively.

The carrier generator412receives the mains zero-crossing signal Sz and outputs the base triangular wave signal Sc. Shown inFIG. 4, the base triangular wave signal Sc is a continuous triangular signal. The base triangular wave signal Sc is generated such that the rising edges of the mains zero-crossing signal Sz corresponds to the falling edge mid-point and of the base triangular wave signal Sc, and the falling edges of the mains zero-crossing signal Sz corresponds to the rising edge mid-point mu of the base triangular wave signal Sc. Moreover, the control apparatus4resets the base triangular wave signal Sc at the time point 90 degrees lag to the rising-edge zero-crossing point zu of the mains voltage Vac. In the line mode LM, the count resetting unit4121continually counts and resets the base triangular wave signal Sc such that the alternating conversion voltage Vo can be in phase with the mains voltage Vac when the switch unit3switches the uninterruptible power system100to the battery mode BM. In the line mode LM, the PWM unit422does not output the pulse width modulation signal PWM and the power conversion apparatus2does not output the alternating conversion voltage Vo. As indicated by dashed line of the alternating conversion voltage Vo inFIG. 4, there is no alternating conversion voltage Vo in the line mode LM. When the mains voltage Vac is not available or the mains sensing unit411detects an abnormal mains voltage, the mains sensing unit411generates mains zero-crossing signal Sz with continuous high level as shown inFIG. 4. However, the specific waveform is not a limitation of the present invention and the mains sensing unit411can generate mains zero-crossing signal Sz with other kinds of waveforms as long as the control apparatus4can identify that the mains voltage is not available or is abnormal.

As shown inFIG. 4, the uninterruptible power system100is switched from the line mode LM to the battery mode BM when the mains sensing unit411detects that the mains voltage is not available or is abnormal. The count resetting unit4121continually performs counting and resetting based on the original base triangular wave signal Sc generated according to the mains voltage Vac. At this time, the PWM unit422outputs the pulse width modulation signal PWM according to the base triangular wave signal Sc and the conversion control voltage signal Vc. The pulse width modulation signal PWM is used to control the power conversion apparatus2to output the alternating conversion voltage Vo with the same frequencies and the same peak/valley positions as those of the mains voltage Vac to succeed the power supplied by the mains voltage Vac. The determination unit414knows the mains voltage Vac being unavailable from the mains sensing unit411and outputs the switch triggering signal Rt to the switch controller423. The switch controller423outputs the switch control signal Rc for controlling the switch unit3to output the alternating conversion voltage Vo instead of the mains voltage Vac. Moreover, abnormal mains voltage means that the mains voltage Vac has abnormal voltage value or abnormal frequency. In one embodiment, to prevent the control apparatus4from erroneous operation caused by noise in the mains voltage Vac, abnormal voltage value means the RMS value of the mains voltage Vac is not in the ranges of 90 Vac˜145 Vac and abnormal frequency means the frequency of the mains voltage Vac is not within rated frequency ±5 Hz.

Referring toFIG. 5Awith reference also toFIGS. 2 and 3, when the mains voltage Vac is not available, the uninterruptible power system100is operated in battery mode BM. At this time, the PWM unit422outputs the pulse width modulation signal PWM according to the base triangular wave signal Sc and the conversion control voltage signal Vc. The pulse width modulation signal PWM is used to control the power conversion apparatus2to output the alternating conversion voltage Vo. When the mains voltage resumes (regenerates), the mains sensing unit411sends the mains zero-crossing signal Sz while the base triangular wave voltage sampling unit413receives the base triangular wave signal Sc and outputs a sampling voltage value closest to the mains zero-crossing point zc and a cross-over value Vzc, which is the value of the base triangular wave signal Sc at the moment of mains zero-crossing point zc. The determination unit414determines whether a slope between the sampling voltage value Vs and the cross-over value Vzc is smaller than zero. The determination unit414further determines whether the cross-over value Vzc is within a predetermined range Cr when the slope is smaller than zero. The sampling voltage values Vs are generated by sampling the voltage value of the base triangular wave signal Sc with the sampling period, which is, for example but not limited to, 300 μSec. Moreover, the base triangular wave voltage sampling unit413outputs at least one sampling voltage value Vs to the determination unit414such that the determination unit414can determine the slope of the base triangular wave signal Sc at the zero-crossing point zc of the mains voltage Vac. For example, the base triangular wave voltage sampling unit413outputs two sampling voltage values Vs to the determination unit414such that the determination unit414can determine the slope of the base triangular wave signal Sc at the zero-crossing point zc of the mains voltage Vac more precisely. As shown inFIG. 5A, the transition between the battery mode BM and the line mode LM may be determined by the rising-edge zero-crossing point zu of the mains voltage Vac and the falling edge mid-point and of the base triangular wave signal Sc. However, the actual circuit can be implemented in other ways. Moreover, the transition between the battery mode BM and the line mode LM may also be determined by the falling-edge zero-crossing point zd of the mains voltage Vac and the rising edge mid-point mu of the base triangular wave signal Sc.

FIG. 5Bshows the waveforms illustrating the transition between the battery mode BM and the line mode LM. With reference also toFIGS. 2 to 4, the operation of the uninterruptible power system of the present invention is illustrated with the first to fifth triangular waves A˜E, which have phase differences between each other. The first triangular wave A leads the second triangular wave B, and the third to fifth triangular waves C˜E lag the second triangular wave B. As shown inFIG. 5B, the first triangular wave A leads the second triangular wave B and the falling edge mid-point md of the first triangular wave A leads the zero-crossing point zc of the resumed mains voltage Vac. The falling edge mid-point md of the second triangular wave B is within the predetermined range Cr at the zero-crossing point zc of the resumed mains voltage Vac. The third to fifth triangular waves C˜E lag the second triangular wave B and the falling edge mid-points md of the third to fifth triangular waves C˜E lag the zero-crossing point zc of the resumed mains voltage Vac. After the mains voltage Vac is resumed, if the base triangular wave signal Sc has the waveform of the second triangular wave B (namely, the falling edge mid-point md of the base triangular wave signal Sc is within the predetermined range Cr at the zero-crossing point zc of the resumed mains voltage Vac), the PWM unit stops outputting the PWM signal. At this time, the determination unit414generates the switch triggering signal Rt and sends the switch triggering signal Rt to the switch controller423. The switch controller423sends the switch control signal Rc to control the switch unit3such that the output of the switch unit3is switched from the alternating conversion voltage Vo to the mains voltage Vac. The predetermined range Cr is a tolerance value from a middle value of the base triangular wave signal Sc. The tolerance value may be, for example but not limited to, 10% absolute value of the peak-to-valley voltage of the base triangular wave signal Sc. Moreover, the tolerance value can be smaller for more precise determination, or the tolerance value can be larger for allowing switching with larger zero-crossing error.

With reference toFIG. 5Band further toFIGS. 2 and 3, after the mains voltage Vac is resumed, the mains sensing unit411will sense and output the mains zero-crossing signal Sz, while the base triangular wave voltage sampling unit413will receive the base triangular wave signal Sc and outputs a sampling voltage value with sampling time closest to the mains zero-crossing point zc. The determination unit414determines whether the slope between the sampling voltage value Vs and the cross-over value Vzc is smaller than zero. When the slope is not smaller than zero, the base triangular wave signal may have waveforms as fourth and fifth triangular waves D˜E shown inFIG. 5B, and the fourth and fifth triangular waves D˜E lags the second triangular wave B. At this time, if the determination unit414determines that the cross-over value Vzc is not within the predetermined range Cr, the determination unit414sends the determination signal Sd to the frequency adjusting unit4122, and the frequency adjusting unit4122sends the frequency adjusting signal Sf to the carrier count resetting unit4121to increase the frequency of the base triangular wave signal Sc. When the slope is smaller than zero, the determination unit414determines whether the cross-over value Vzc is within the predetermined range Cr. If the cross-over value Vzc is not within the predetermined range Cr, the base triangular wave signal may have waveforms as first and third triangular waves A, C shown inFIG. 5B. If the falling edge mid-point md of the base triangular wave signal Sc leads the zero-crossing point zc of the resumed mains voltage Vac, the base triangular wave signal Sc may have waveform as the first triangular wave A, which leads the second triangular wave B, and the associated cross-over value Vzc is smaller than the predetermined range Cr. The determination unit414sends the determination signal Sd to the frequency adjusting unit4122, and the frequency adjusting unit4122sends the frequency adjusting signal Sf to the carrier count resetting unit4121to decrease the frequency of the base triangular wave signal Sc. If the falling edge mid-point md of the base triangular wave signal Sc lags the zero-crossing point zc of the resumed mains voltage, the base triangular wave signal Sc may have waveform as the third triangular wave C, which lags the second triangular wave B. At this time, the associated cross-over value Vzc is larger than the predetermined range Cr. The determination unit414sends the determination signal Sd to the frequency adjusting unit4122, and the frequency adjusting unit4122sends the frequency adjusting signal Sf to the carrier count resetting unit4121to increase the frequency of the base triangular wave signal Sc.

Referring toFIG. 6with reference also toFIGS. 2 and 3, the uninterruptible power system is switched to the battery mode BM from the line mode LM in a manner similar to that disclosed inFIG. 4, the detailed description is not repeated here for brevity. The transition between the battery mode BM and the line mode LM is determined with reference to the rising-edge zero-crossing point zu of the mains voltage Vac and the falling edge mid-point md of the base triangular wave signal Sc. However, the actual circuit can be implemented in other ways. For example, the transition between the battery mode BM and the line mode LM may be determined with reference to the falling-edge zero-crossing point zd of the mains voltage Vac and the rising edge mid-point mu of the base triangular wave signal Sc. The other examples are not described in further detail for brevity.

As shown inFIG. 6, after the mains voltage is resumed, the uninterruptible power system100has a frequency adjusting region Tadj. During the frequency adjusting region Tadj, the uninterruptible power system100adjusts the base triangular wave signal Sc such that the falling edge mid-point md of the base triangular wave signal Sc is within the predetermined range Cr at the moment the rising-edge zero-crossing point zu of the mains voltage Vac occurs (namely, at the time of the rising-edge zero-crossing point zu of the mains voltage Vac). When the falling edge mid-point md of the base triangular wave signal Sc is within the predetermined range Cr at the time of the rising-edge zero-crossing point zu, the uninterruptible power system100is switched from the battery mode BM to the line mode LM. Simply put, during the frequency adjusting region Tadj, the uninterruptible power system100increases or decreases the frequency of the base triangular wave signal Sc. Moreover, with the increment or decrement of the frequency of the base triangular wave signal Sc, the power conversion apparatus2also increases or decreases the frequency of the alternating conversion voltage Vo.

As shown inFIG. 6, in the initial period of the frequency adjusting region Tadj, the base triangular wave signal Sc has waveform as the first triangular wave A inFIG. 5B. After the mains power is resumed, the mains sensing unit411senses and outputs the mains zero-crossing signal Sz. The base triangular wave voltage sampling unit413receives the base triangular wave signal Sc and samples the base triangular wave signal Sc to output the sampling voltage value Vs. The determination unit414determines that a slope between the sampling voltage value Vs and the cross-over value Vzc is smaller than zero and the cross-over value Vzc is smaller than the predetermined range Cr (namely, not within the predetermined range Cr). The determination unit414sends the determination signal Sd (indicating frequency decrement) to the frequency adjusting unit4122, and the frequency adjusting unit4122sends the frequency adjusting signal Sf to the carrier count resetting unit4121to decrease the frequency of the base triangular wave signal Sc. After a plurality of triangular wave signal elapses, the falling edge mid-point and of the base triangular wave signal Sc is within the predetermined range Cr at the time of the rising-edge zero-crossing point zu. The PWM unit422stops outputting the PWM signal. At this time, the determination unit414generates the switch triggering signal Rt and outputs the switch triggering signal Rt to the switch controller423. The switch controller423sends the switch control signal Rc to the switch unit3such that the switch unit3switches the output from the alternating conversion voltage Vo to the mains voltage Vac, namely, the uninterruptible power system100is switched from battery mode BM to line mode LM. It should be noted the embodiment inFIG. 6is exemplified with the base triangular wave signal Sc having the waveform as the first triangular wave A inFIG. 5B, but similar adjustments can be applied to base triangular wave signal Sc having the waveforms as the triangular waves C˜E inFIG. 5B.

After the uninterruptible power system100is switched to line mode LM, the alternating conversion voltage Vo is depicted with dashed line to denote that it is not output. In the line mode LM, the mains sensing unit411generates the mains zero-crossing signal Sz according to the rising-edge zero-crossing point zu and the falling-edge zero-crossing point zd of the mains voltage Vac. The mains zero-crossing signal Sz is shown as a continuous square wave. The rising edges and the falling edges of the mains zero-crossing signal Sz corresponds to the to the rising-edge zero-crossing points zu and the falling-edge zero-crossing points zd of the mains voltage Vac, respectively. The carrier generator412receives the mains zero-crossing signal Sz and outputs the base triangular wave signal Sc. The base triangular wave signal Sc is a continuous triangular signal. The base triangular wave signal Sc is generated such that the rising edges of the mains zero-crossing signal Sz corresponds to the falling edge mid-point and of the base triangular wave signal Sc, and the falling edges of the mains zero-crossing signal Sz corresponds to the rising edge mid-point mu of the base triangular wave signal Sc. Moreover, the control apparatus4resets the base triangular wave signal Sc at the time point 90 degrees lag to the rising-edge zero-crossing point zu of the mains voltage Vac. Therefore, the base triangular wave signal Sc has a small triangular surge after the uninterruptible power system100is switched to line mode LM. The carrier count resetting unit4121keeps counting and resetting the base triangular wave signal Sc to ensure that the alternating conversion voltage Vo is in phase with the mains voltage Va for when the switch unit3switches the operation of the uninterruptible power system100to battery mode BM again.

FIG. 7is a flowchart showing the uninterruptible power system100switched from battery mode BM to line mode LM. With reference also toFIGS. 2˜3and5, from a battery mode BM (S100), the carrier controller41of the control apparatus keeps sensing the mains zero-crossing signal Sz (S110) and determines that the mains voltage Vac is resumed when the mains zero-crossing signal Sz is detected. At this time, the determination unit414of the carrier controller41determines whether the slope between the sampling voltage value Vs and the cross-over value Vzc is smaller than zero (S112˜S120). If the slope is not less than zero and the cross-over value Vzc is not within the predetermined range Cr (S124), the determination unit414sends the determination signal Sd (indicating frequency increment) to the frequency adjusting unit4122(S128). The uninterruptible power system100is still in battery mode BM after step S128. If the slope is less than zero, the determination unit414of the carrier controller41determines whether the cross-over value Vzc is within the predetermined range Cr (S122). If the cross-over value Vzc is within the predetermined range Cr, the uninterruptible power system100is switched to line mode (S132). If the cross-over value Vzc is not within the predetermined range Cr, the determination unit414further determines whether the cross-over value Vzc is larger than the predetermined range Cr (S126). If the cross-over value Vzc is larger than the predetermined range Cr, the determination unit414sends the determination signal Sd (indicating frequency increment) to the frequency adjusting unit4122(S128). The uninterruptible power system100is still in battery mode BM after step S128. If the cross-over value Vzc is less than the predetermined range Cr, the determination unit414sends the determination signal Sd (indicating frequency decrement) to the frequency adjusting unit4122(S130). The uninterruptible power system100is still in battery mode BM after step S130.

FIG. 8shows the waveforms of the uninterruptible power system100according to another embodiment, wherein a delay time is present in the switch unit. With reference also toFIGS. 2 and 3, when the uninterruptible power system100is switched from the battery mode BM to the line mode LM, and the control apparatus4sends the switch control signal Rc to the switch unit3, a delay time DT is present in the switch unit3. As a result, the switch unit3will switch from the battery mode BM to the line mode LM after the delay time DT and the uninterruptible power system100cannot be switched at the mains zero-crossing point zc and the switch unit3suffers larger mains voltage Vac. In this embodiment, the switch controller423has a built-in switch delay time table4231, which is dependent on the types of the switch unit3. Before the uninterruptible power system100is to be switched from the battery mode BM and resumed to line mode LM, the switch controller423provides the delay time DT, according to the type of the switch unit3and the switch delay time table4231, to the switch unit3. The switch controller423switches the switch unit3in advance by the delay time DT. As shown inFIG. 8, after the mains voltage Vac is resumed, the uninterruptible power system100is to be switched from the battery mode BM to the line mode LM if the slope of the base triangular wave signal Sc is less than zero and the cross-over value Vzc is within the predetermined range Cr. The actual switch time is half period (of the triangular wave) delay from the phase lock time (at the time the determination unit determines that the base triangular wave signal Sc is less than zero and the cross-over value Vzc is within the predetermined range Cr). However, the switch controller423sends the switch control signal Rc to the switch unit3in advance by the delay time DT to take the delay time of the switch unit in consideration. Therefore the switch unit3can achieve zero cross switching at the mains zero-crossing point zc when the uninterruptible power system100is switched from the battery mode BM to the line mode LM.

To sum up, one or more embodiments of the present invention have at least one of the following advantages:

1. The phase lock control for the uninterruptible power system can be realized and the instantaneous short circuit in switching can be prevented. The uninterruptible power system has simple implementation and wide application.

2. The control apparatus can sense the right time point for in-phase switching. A delay time is introduced for actual switching such that the uninterruptible power system can achieve zero cross switching at the mains zero-crossing point of the mains voltage, thus preventing the damage due to excess switching stress.

Thus, particular embodiments have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims may be performed in a different order and still achieve desirable results.