The wire rope is widely used in engineering as a flexure component.It is necessary that the wire rope defect must be detected for certain damage would be inevitable occurred in the using process.In this article, the brief introduction about the state of the wire rope defect in the domestic is given.The hall element differential arrangement form has been selected to design the detection sensor of localized faults based on the principle of magnetic flux leakage detection.The wire ropes with different diameters have corresponding excitation structures.Using PDE tool box of MATLAB to simulate the magnetic flux leakage generated from different conditions of broken wires, from which curves of broken wire length and depth influence on the magnetic flux leakage could be received.The corresponding relationships between the magnetic flux leakage and the broken wires have been obtained by analyzing the curves.