Cam and Crank Slider Mechanism

Input is the yellow cam. Stroke length of the orange output slider can be adjusted by moving the red slider.