The magnetic grid displacement sensor consists of components such as a magnetic ruler, magnetic head, and detection circuit. When the magnetic head moves relative to the magnetic grid, it can read out the magnetic signal on the magnetic grid, thereby converting the measured displacement into an electrical signal. The measurement range is 50~1000mm; The measurement accuracy reaches ± 1 μ m/m; The linearity reaches 1%. The advantages are simple structure, convenient use, large measurement range, fast working speed, and low cost; The disadvantages are the need for shielding and dust prevention, the continuous weakening of magnetic signal strength over time, and the need to re record magnetism, which brings inconvenience to use.