role of plc in controlling the grinding process in a surface grinding machine