Automatic control of positioning along the joint during EBW in conditions of action of magnetic fields