A method and control arrangement for controlling a controlled system with repetitive operating cycle