Rotary Table

Violet piston makes orange table go up and down.
At any height the table can receive the rotation from a motor via belt drive and two long pins that can slide in two tubes of blue pulley.