A hydraulic device for back and forth movement as well as locking of a machine part, in particular for opening, closing and clamping half-molds of an injection molding tool of an injection molding machine, comprising:
- a cylinder having a first pressure space with a pressure medium;
- a primary piston which includes at least one piston rod constructed to float in the pressure medium in the first pressure space;
- and
- a secondary piston axially movable in the cylinder and having a recess in which the piston rod of the primary piston is movable, said primary and secondary pistons having opposing sides to define confronting contact surfaces which can be brought to impact one another.