Move mecahnism in CATIA using formulas and parameters?

Dear all,

I would like to know if somebody could give me tips about how to create movements us with a 2d mecahnisms using formulas and parameters and formulas in catia.

The idea is to move this mecahnism in a x max position and y min , as well as rotating some of its components ( attached the mechanism )

Thanks in advance

Kind Regards

Toni Perez