block diagram of grinding machine