Abstract: In the case of an encoder with a housing, which can be assembled, for flanging at the front end to a motor, which has a motor shaft protruding into the housing at at least one flange plane, the housing consists of a base plate with an inner part and an upper part of the housing, which can be fitted into one another for the assembly. On the inner part of the housing, bayonet segments are disposed, which engage corresponding recesses of the upper part of the housing and at which guiding surfaces are constructed, which form a sliding guide with corresponding counter surfaces at the upper part of the housing. In a roof surface of the upper part of the housing, a contact surface for adjusting a timing disk on the motor shaft is formed concentrically with the latter, which has a guiding shaft for the motor shaft with a borehole.