Translating Cam Mechanism

The green input cam reciprocates. The blue follower rests during cam’s right to left motion and moves during return.
The inconstant depth of the horizotal groove helps the red pin move clockwise.