The invention relates to a zeroing
algorithm of a pointer instrument. The zeroing
algorithm concretely includes the zeroing steps that 1, it is assumed that a pointer is located at the position farthest from a zeroing mechanical limit during working of the instrument; 2, a stepping motor rotates rapidly by X degrees in the direction of the zeroing mechanical limit; 3, with a current position beinga hypothetical zero position, the stepping motor rotates
clockwise from a farm end mechanical limit to the zeroing mechanical limit; 4, the stepping motor rotates multiples times in the direction ofthe zeroing mechanical limit, and rotation lasts for multiple milliseconds each time; 5, it is set that the stepping motor rotates
clockwise from the zeroing mechanical limit to the far end mechanicallimit, and if the current position is set to be a scale zero position, zeroing is completed. Through the zeroing
algorithm, whether the pointer of the instrument is located at one initial position oranother, the pointer can return to the same position rapidly and accurately, accordingly, the problem is solved that since the initial positions of the pointer are different, zeroing errors are generated, and it is guaranteed that the instrument can be normally used through one-time power-on zeroing under any condition. Through the algorithm, zeroing speed is high, uniformity is good, and errorsare small.