How to add constraints to a cam and follower for kinematic analysis

I have a cam and follower. I applied the constraints for the cam and axle. What type of constraint should be added to model the follower and its reciprocating movement as the cam rotates?