Need help in animation

Hello guys, I have this design of telescopic gate and I need some help in constraining the parts and in the animation, the file is attached down below...
2 Answers

Well a lot of your constraints you have put in are wrong. secondly I cannot how your gate works, one is the gears but the second gate seems to be some sort of pulley system ?
Why dont you place the gates at the final position and make a few pictures then maybe we can help you.
I think this is what you would like :- https://www.youtube.com/watch?v=ASAxH51ify8

Here is a video what I have done https://youtu.be/OxMNZyodl4Q
The Files are in rar format IV 2010 so that most people can see them
Use the DRIVE constraint