Can someone show me how to set up an 8 pin relay?

Ok so I'm a complete noob at relays, and well, circuits too. So would someone be able to expain in the most uncomplicated, simple minded way possible how to set up an 8 pin octal relay. This one to be exact.

Basically, I have a DC power source, and a DC motor. All I want is for the motor to turn one direction, then when the relay time is up, for the current to reverse and the motor to turn in the other direction. As it's a repeating relay, I want this to continue until I turn it off.

Would someone be able to draw up which wires go where on the actual 8 pin socket? Or if there's anything I need to add for this to work could you draw that too?

Gibling, you need more than a simple timed relay for your application.

You must have limit switches to detect when the container is at the limits of it's travels.
You can use Hall-effect sensors, but they can fail. A normally-closed switch that breaks the circuit when activated would provide a degree of safety to prevent damage when failure occurs.

You must keep in mind that everything will eventually break/wear out/fail, and to build things so that when failures occur, nothing bad will happen.

It will prove impossible to simply set a time on a relay, and have the barrel rotate horizontally/vertically to arrive in the exact same position every time.

The best use for the timer relay would be to provide a "coast-down" delay for the motor when a limit is reached.

Ok thanks guys. I'll mention all the technical/safety details to my boss, and hopefully he'll take them into consideration and/or get a professional to build what we need. This has turned out to be much more complicated that I imagined. Mad props to y'alls!

Indeed, you must stop the motor before reversing it. Otherwise it will burn. Shame I don't have old school assignments saved anymore, I did this same thing with couple timed relays. It also had a safety switch so that the direction couldn't reverse if the motor was running.