The image of magnetic field is traditionally obtained by spreading magnetic powder manually or by sparse arrays of magnetic needles, obtaining the images of the magnetic field in different permanent magnet shapes and do repeated tests on the permanent magnet are in need. Based on programmable logic controller (PLC) motion control, the servo control and mechanical system have been built, the control strategy is discussed and the software is programmed. 2D FEM model of a test permanent magnet bar is built. Compared with the FEM simulation results, the system has achieved the goal that spreading magnetic powder quickly and evenly in the appointed area.