sensor circuit diagram of automatic grinding machine