with a transversal pin displaced by a slot or a cam along a predetermined path