The pipes automatic grinding machine automatically grindes pipes and gas cylinders at the predetermined points to then perform the measurement of hardness. There are two heads to perform the operation both above and below. The grinding heads are pneumatically operated and controlled.