1. An X-ray device for a medical workstation, having a robot (R) having a plurality of axes ( 9 ), a control device ( 10 ) that is set up to actuate the axes ( 9 ) for a motion of the robot (R), and an attaching device ( 8 ), and a carrying device ( 11 ) situated on the attaching device ( 8 ), having an x-ray source ( 12 ) and an x-ray receiver ( 14 ) [Translator's note: This should apparently be ( 13 ) instead of ( 14 ).], wherein a 3D model ( 15 , 15 a ) of the robot (R) with positioned carrying device ( 11 ) is stored in the control device ( 10 ), which models the spatial extension of the robot (R) with positioned carrying device ( 11 ) while the robot (R) is in motion; the 3 D model ( 15 , 15 a ) also models the spatial extension of at least one additional device ( 3 , 4 , R 2 ) of the medical workstation ( 1 , 21 ) and/or of a living organism ( 5 ) present within the medical workstation ( 1 , 21 ), and the control device ( 10 ) detects a potential collision of the X-ray device ( 2 ) with the additional device ( 3 , 4 , R 2 ) and/or the living organism ( 5 )on the basis of the 3D model ( 15 , 15 a ) and causes the robot (R) to initiate an action to prevent the potential collision.