Based on the mechanical power and the losses, the dc current is calculated, taking actual dc voltage into account, by establishing a power balance with a very fast intergal controller.