In my case I have assigned pin for the shaft & later defined force motor for the same. But If i run the analysis the shaft is rotating clock & anti clockwise .How to control, only it should run clockwise direction ?
You probably have a motor profile defined that does this, such as a sine profile in conjunction with position.
There are many ways to control a motor's motion. Typically I find that I have to use the user defined profiles along with postion to get a profile I really want to use with full control.
There is a little insight into this in this document: Radial Ball Bearing: Checking your mechanism links