Apparatus for treating a component, comprising: a moving carriage comprising a frame, which, along a longitudinal direction, defines a translational axis, along which the moving carriage is translationally movable forwards and backwards, a bogie, which is connected to the frame so as to be rotatable relative to the frame about an axis of rotation, and to which the component is attachable, a first translatory permanent magnet device, which is attached to the frame and which comprises permanent magnets disposed along the longitudinal direction, a rotatory permanent magnet device, which is attached to the bogie, defines a circumferential direction extending around the axis of rotation and comprises permanent magnets disposed along said circumferential direction, and a carriage-side longitudinal guide means, which is attached to the frame, a stationary carriage guide device, which comprises a guide device-side longitudinal guide means, which is complementary to the carriage-side longitudinal guide means and by means of which the carriage is guided in a translational manner, a first translatory electromagnet device, which is attached to the moving carriage guide device and which comprises electromagnets, which are disposed along the longitudinal direction and which interact magnetically with the permanent magnets of the first translatory permanent magnet device, a first rotatory electromagnet device, which is attached to the moving carriage guide device and which comprises electromagnets, which are disposed along the longitudinal direction and which interact magnetically with the permanent magnets of the rotatory permanent magnet device, and a controller, which is connected to the first translatory electromagnet device and to the first rotatory electromagnet device for controlling the electromagnets (133, 153) thereof in order to control the translational movement of the moving carriage along the translational axis by means of the magnetic interaction of the electromagnets of the first translatory electromagnet device with the permanent magnets of the first translatory permanent magnet device and to control the rotational movement of the moving carriage about the axis of rotation by means of the magnetic interaction of the electromagnets of the first rotatory electromagnet device with the permanent magnets of the rotatory permanent magnet device. a moving carriage comprising a frame, which, along a longitudinal direction, defines a translational axis, along which the moving carriage is translationally movable forwards and backwards, a bogie, which is connected to the frame so as to be rotatable relative to the frame about an axis of rotation, and to which the component is attachable, a first translatory permanent magnet device, which is attached to the frame and which comprises permanent magnets disposed along the longitudinal direction, a rotatory permanent magnet device, which is attached to the bogie, defines a circumferential direction extending around the axis of rotation and comprises permanent magnets disposed along said circumferential direction, and a carriage-side longitudinal guide means, which is attached to the frame, a frame, which, along a longitudinal direction, defines a translational axis, along which the moving carriage is translationally movable forwards and backwards, a bogie, which is connected to the frame so as to be rotatable relative to the frame about an axis of rotation, and to which the component is attachable, a first translatory permanent magnet device, which is attached to the frame and which comprises permanent magnets disposed along the longitudinal direction, a rotatory permanent magnet device, which is attached to the bogie, defines a circumferential direction extending around the axis of rotation and comprises permanent magnets disposed along said circumferential direction, and a carriage-side longitudinal guide means, which is attached to the frame, a stationary carriage guide device, which comprises a guide device-side longitudinal guide means, which is complementary to the carriage-side longitudinal guide means and by means of which the carriage is guided in a translational manner, a first translatory electromagnet device, which is attached to the moving carriage guide device and which comprises electromagnets, which are disposed along the longitudinal direction and which interact magnetically with the permanent magnets of the first translatory permanent magnet device, a first rotatory electromagnet device, which is attached to the moving carriage guide device and which comprises electromagnets, which are disposed along the longitudinal direction and which interact magnetically with the permanent magnets of the rotatory permanent magnet device, and a controller, which is connected to the first translatory electromagnet device and to the first rotatory electromagnet device for controlling the electromagnets (133, 153) thereof in order to control the translational movement of the moving carriage along the translational axis by means of the magnetic interaction of the electromagnets of the first translatory electromagnet device with the permanent magnets of the first translatory permanent magnet device and to control the rotational movement of the moving carriage about the axis of rotation by means of the magnetic interaction of the electromagnets of the first rotatory electromagnet device with the permanent magnets of the rotatory permanent magnet device.