Caterpillar has written off $US580 million due to accounting fraud in China.