The paper is about an active control problem. It solves the inverse problem of dynamics and concerns with construction of program motions of non-autonomous mechanical systems. This study is important and necessary in software design of automated systems for control of mechanisms. In particular, it is used in various modeling problems of robot-manipulators. Here, we construct all possible asymptotically stable program motions for a model of robots arm-manipulator, which is simulated by a mechanical system with three degrees of freedom.