An emergency stop device for a rotary platform (1) of milking parlor for a milking parlor that includes at least one component (10, 13a) arranged beside an edge portion (1a, 1b) of the platform (1). The emergency stop device includes a detecting element (13b) adapted to initiate an emergency stop of the rotary platform (1) in a case of an object being detected in a detecting area (13b1) located beside the edge portion (1a, 1b) of the platform (1) at an upstream distance (D) from the component (10, 13a) with respect to the rotary direction of the platform (1). The upstream distance (D) is longer than an estimated stopping distance (d) of the edge portion (1b) when the platform (1) is emergency stopped.