Hollow encoder for industrial applications, Encoder for rotary shafts