The invention relates to a retaining device for an instrument, comprising at least one joint having at least two parts that can be moved relative to each other and at least one drive unit associated with the joint. The drive unit is designed to move the joint by driving at least one of the parts of the joint that can be moved relative to each other. The retaining device also comprises a securing device, which has a locking mechanism associated with the joint and a release unit that can be activated, wherein the locking mechanism interacts with the release unit in such a way that the locking mechanism holds the joint in a locked position as long as the release unit is not activated. The securing device is designed to permit a motion of the joint out of the particular locked position within a specified range of motion even if the release unit is not activated. The invention further relates to a corresponding securing device for a retaining device and to an operating method for said securing device.