## Control Mode 2 (Mode=2)

In this mode the controller designed for reactive power compensation will take the power factor to the desired set point (variable PF). However, the voltage regulation function will take no effect, which means that the current source Is will be off (Zero).

Then, to calculate the percentage of reactive power that must be compensated by this controller the power flowing through the UPFC must be calculated, which is performed using the following expression:

Using the power calculated in (6) the reactive power to compensate will be given as follows:

Then, using (8) and the input voltage it is possible to calculate the compensating current source Ic as follows: