Abstract. Aiming at enhancing the performance of a robotic system, i.e. of a robot manipulator, it is extremely important to ensure the safety of its functioning and the convenience of operating it. Special attention is required if there is a possibility of a collision, especially with costly equipment or with a person. Among the different means and approaches to prevent or react to such situations, implementation of forcetorque control is considered in this paper. A trajectory task is analysed and an impedance control law is employed to achieve the desired robot behaviour. The effectiveness of the approach has been verified by using a 6-DoF elbow manipulator to perform two types of operations: a peg-in-hole task and path execution with obstacles on the way.