A rotary encoder comprising: a housing, an axial bushing, a shaft having a bearing configuration, said bearing configuration being internally connected to said axial bushing arranged in said housing, the bearing configuration being configured to allow rotation of the shaft relative to said housing, the bushing being configured to allow rotation relative to said housing when a rotational force between the bushing and the housing exceeds a predetermined threshold value, a rotor being attached to said shaft, a fixed portion (260; 280) comprising a stator, an arrangement (245; 247; 205; 241; 242) configured to determine malfunction of the bearing configuration, said arrangement comprising a detection device and a connection device (245, 247), the detection device being configured to determine whether the connection device (245, 247) is operably connected between the fixed portion (260; 280) of said rotary encoder and said bushing, and to output the status of the connection to a control arrangement via a link, whereby if there is no connection, said detection device is configured to determine a rotation of said bushing associated with malfunction of the bearing configuration, characterized in that said connection device (245, 247) comprises an electrical circuit to which an electrical signal is provided, wherein said fixed portion comprises said stator, said electrical circuit being connected between said stator and said bushing, wherein said detection device, when determining whether there is a connection, is configured to determine whether there is an electrical signal, wherein malfunction of the bearing configuration is determined if there is no electrical signal, wherein said electrical circuit comprises at least one electrical conductor being connected to said bushing via a contacting member. a housing, an axial bushing, a shaft having a bearing configuration, said bearing configuration being internally connected to said axial bushing arranged in said housing, the bearing configuration being configured to allow rotation of the shaft relative to said housing, the bushing being configured to allow rotation relative to said housing when a rotational force between the bushing and the housing exceeds a predetermined threshold value, a rotor being attached to said shaft, a fixed portion (260; 280) comprising a stator, an arrangement (245; 247; 205; 241; 242) configured to determine malfunction of the bearing configuration, said arrangement comprising a detection device and a connection device (245, 247), the detection device being configured to determine whether the connection device (245, 247) is operably connected between the fixed portion (260; 280) of said rotary encoder and said bushing, and to output the status of the connection to a control arrangement via a link, a rotor being attached to said shaft, a fixed portion (260; 280) comprising a stator, an arrangement (245; 247; 205; 241; 242) configured to determine malfunction of the bearing configuration, said arrangement comprising a detection device and a connection device (245, 247), the detection device being configured to determine whether the connection device (245, 247) is operably connected between the fixed portion (260; 280) of said rotary encoder and said bushing, and to output the status of the connection to a control arrangement via a link, whereby if there is no connection, said detection device is configured to determine a rotation of said bushing associated with malfunction of the bearing configuration, characterized in that said connection device (245, 247) comprises an electrical circuit to which an electrical signal is provided, wherein said fixed portion comprises said stator, said electrical circuit being connected between said stator and said bushing, wherein said detection device, when determining whether there is a connection, is configured to determine whether there is an electrical signal, wherein malfunction of the bearing configuration is determined if there is no electrical signal, wherein said electrical circuit comprises at least one electrical conductor being connected to said bushing via a contacting member.