automation of a grinding mill