Electromagnetic bearing also used as feed in one axis or positioning in two axis