The coil is suspended in an external magnetic field and the current running through it adjusted so that the attraction between the two magnets balances the gravitationalforce on the suspended mass.
At Oort-cloud distances, the strength of this combined gravity adds up to the same sort of force as that exerted by the solar gravitational field, enfeebled as it is by its remoteness from the sun.