how the motor of grinding machines works