Quick Answer
500 grams is not one fixed cup amount for every ingredient. In practical US cup references, 500 grams is about 3.99 cups of all-purpose flour, 2.49 cups of sugar, and 2.2 cups of butter.
That is why a grams-to-cups answer only works when the ingredient is clearly identified first.