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