Controlling Rotation Around a Point

Inputs: green shaft driven by grey motor and pink crank driven by green motor.
It is a combination of two parallelogram mechanisms.
Yellow bar moves around a point at various angles.
This mechanism is used for moving the welding head.