Voltage compensating circuits are connected serially to a power system,
including capacitors each having different charging voltages (in
relationship of approximately 2.sup.k (K=0, 1, 2, . . . ) times the
smallest charging voltage value). The voltage compensating circuits
convert DC voltages in the capacitors into AC voltages and output the AC
voltages, respectively. The voltages of the capacitors are detected as
detected values V1 to V3. The detected values V1 to V3 are used as bit
signals for a reference value to check a voltage dip amount of the power
system with the reference value and to convert the voltage dip amount
into a binary signal. A combination is selected from the voltage
compensating circuits in accordance with the binary signal so that the
sum of output voltages of the selected voltage compensating circuits
compensates the voltage dip of the power system.