A milking robot for automated milking of milking animals, comprising a cylinder supporting movement of at least one movable component. The cylinder has a wall with a ventilation opening and a cylinder rod which can move in and out of the cylinder. The cylinder wall surrounds at least one variable volume part for movement of the cylinder rod. The opening configures the cylinder to remain in virtual pressure equilibrium with an environment. A gas capture device is connected which has a variable volume and which together with the variable volume part, forms an air-tight gas volume. Thus the variable volume part is kept at almost ambient pressure, so that no unnecessary counter-pressure occurs in the cylinder, during extension and retraction of the cylinder rod. Also less to no exchange of gas and dirt with the environment can take place for longer life and better reliability of the cylinder.