The working principle and function of the encoder: It is a rotary sensor that converts the rotation displacement into a series of digital pulse signals