Working principle of hammer grinding machines