The invention discloses an absolute
grating ruler multi-track encoding method. In order to solve problems, such as the accumulative error of
incremental encoding and the
hardware complexity of absolute encoding, etc., in the micro-
nano machining measurement process, the invention adopts an absolute encoding method based on p-element M-sequence pseudo-random codes suitable for single track and multiple tracks. The encoding method is suitable for a straight line absolute position
encoder, and a disk absolute angle
encoder, locating can be performed at any time, and the boot back-to-zero operation does not needed. Moreover, an
incremental encoding strip is provided, so measurement accuracy can be improved by suing the phase segmentation method. The encoding method is an absolute position encoding method has advantages of easy generation, replication and
processing, large encoding capacity, low decoding cost and
macro-micro composite performance. The encoding method comprises ordinary single-track binary M-sequence absolute
grating ruler straight-line encoding, a M-sequence disk
encoder, code expanding method multi-code-channel pseudo-random code straight-line encoding and code expanding method p-element M-sequence pseudo-random codes, and the maximum encoding method is obtained by
combing the above the encoding methods.