Since this is a smaller version of the bigger picture. I would use the motor lobes to raise the rotary pins. (in and out). Not fur sure how this done.
if You give a CAM relation to the pins headers, the will move according to the contour