is measured and applied to current mode control 108 the output of multiplier 106 is the current reference signal i s ref which is also applied to current mode control 108 the output of the current mode control 108 drives the pulse width modulation generator 110 which sets the pulse width and frequency in the ac power converter 100 the input current is is switched and shaped by the ac power converter into the required sinusoidal shape with magnitude and phase angle according to the is u2014 ref fig1 shows a version of the new input voltage control scheme for bi directional ac dc power converters 100 with both active and reactive power flow control the mains voltage v s at which this power converter is installed is sensed as a feedback variable shown in dashed lines from this sensed voltage signal the phase angle and or the frequency of the ac mains voltage can be obtained from circuit 118 the sensed mains voltage is compared with a mains voltage reference v s u2014 ref in comparator 116 the mains voltage reference can be derived with the droop characteristic circuit 113 based on the magnitude of the pwm signal m the reactive power q and the input current i s as depicted in fig1 the droop characteristic circuit can comprise a feedback gain k applied to signal m.