Adjust the autocollimator and the mirror to ensure that the autocollimator can get the reflected image within the full measuring range. Place the reflector at the initial measurement position of the rail, record the current Y component angle value of the autocollimator, and then move the reflector to complete the measurement of the entire rail according to the initially set intercept b. The angle value of the Y component of the autocollimator reflects the height change of the current position of the guide rail relative to the initial starting position, which is specifically expressed as the slope value of each section relative to the initial position.