Here is the tutorial.
Open the file attached.
In previous tutorial we have added the gravity and contact. If you want to refer to those tutorial then http://grabcad.com/questions/tutorial-adding-contact-to-motion-study-in-solidworks & http://grabcad.com/questions/tutorial-adding-gravity-to-motion-study-in-solidworks
Click on the motor icon.
Selct the circular face.
Set the motor speed to 10rpm.
Click OK and the rotary motor is assigned.
Now you can play the motion.
To save the animation click the floppy icon.
Change aspect ratio to 4:3.
Change image size to 640 by 480 and frames per second to 15. The image size should be even if you want to use XviD video compressor. Click Save.
Change compressor to XviD MPEG-4 Codec.
It will start saving the video frame by frame. Once done the motion will stop.