The invention provides an
encoder for an output precision detection device, and the
encoder comprises a photoelectric
detector, one side of the photoelectric
detector is provided with a
grating disc, the surface of the photoelectric
detector is fixedly provided with an installation
assembly, and the installation
assembly is connected with external equipment. One side of the
grating disc is fixedly connected with a rotary positioning structure, and the rotary positioning structure is coaxially connected with external equipment; a
ratchet wheel structure is arranged in the rotary positioning structure, and the surface of the
ratchet wheel structure is used in cooperation with the interior of the rotary positioning structure. An abutting structure for resetting the
ratchet wheel structure is arranged on one side of the ratchet wheel structure; by arranging the photoelectric detector, the
grating disc, the installation
assembly, the rotation positioning structure, the ratchet wheel structure and the abutting structure, the
encoder can be coaxial with the frameless
torque motor conveniently, the installation stability of the encoder can be improved, and the problem that the output precision of an existing frameless
torque motor encoder is reduced is solved.