A method of and arrangement for automatically milking an animal by use of an automatic milking system including a plurality of teat cups, a robot arm for automatic attachment of the teat cups and a control system arranged to control the milking system, wherein the teat cups are used, until a defect is established with respect to a teat cup. In that case, milking of the non-milked teat is automatically taken over by a different teat cup.