Grinding data automatic setting function