purpose with an identification system so that each individual cow receives the dosage to which it is entitled optionally there are also feeding stalls where bulk fodder is supplied to the cows from the feeding and watering area 3 the cow can return to the lying and walking area 1 via an exit gate 10 this exit gate 10 is embodied such that the exit gate 10 is always open in the direction toward the lying and walking area 1 exit gate 10 can however also be adjusted to open in both directions the device is controlled by a control system 25 which is coupled to the diverse identification systems the diverse gates the placing robot 24 and the milking installation the operation of the device is as follows from the moment that milking time begins the exit gate 10 is adjusted for instance by control means present in the gate and controlled by control system 25 such that the cows can only walk in a direction d through exit gate 10 any cow which wishes to eat or drink will now be able to pass only via the access gate 6 to the feeding and watering area 3 the cow is identified in access gate 6 by the identification system 11 and guided in a direction al if it must be milked cows which have already been milked or which are dry are guided in a.