Encoder and motor fault diagnostic added