The positioning mechanism of conventional transfer vehicles commonly employs a hydraulic or pneumatic driving mode, which requires control valves, actuators and pipe fittings, causing problems such as complex composition, high cost and inconvenient hauling of pipes and accessories when installed on transfer vehicles. In order to avoid the above difficulties, an electrical localization mechanism using electromagnets as power units has been designed. First, it explains its working principles and composition. Moreover, the implementation scheme and the structure of the electromagnetic thrust are then detailed, including the frame, the telescopic components and the power equipment. Next, based on the force analysis of the locator, we introduce the calculation of the electromagnetic thrust to the locator and design a reasonable angle between the locator and the pin. Finally, by switching the electromagnet on and off, the mechanism drives the positioning plate to reciprocate, thus enabling multi-position accurate positioning and rapid un-positioning of the transfer vehicle, contributing to the compact, low-cost and environmentally friendly maintenance of the mechanism.