Foley Caterpillar mechanic while working on the exhaust system of a rock truck was observed by quarry personnel to take a break for shade and water. When next observed, the mechanic was lying down. The quarry personnel stopped to check mechanic; 911 was called. Health conditions determined heart failure.