A magnetically guided endoscopy capsule is separated from the surface of water with the aim of immersing the capsule completely in water, using the least possible magnetic force. A brief force curve (F_mag(t)) is thereby automatically generated on the capsule by a solenoid system, by one or more force pulses. Assuming that the capsule floats on the water surface at the start of the force curve, a force curve is applied generating an odd number of force pulses having a step profile. Each odd force pulse brings about at least a partial immersion of the endoscopy capsule in the liquid, and each even force pulse bring about at least a partial emersion of the endoscopy capsule out of the liquid.