The actual virus infected Windows systems used to program the industrial controllers. The virus then used those systems to put a rootkit into the actual industrial control systems, and reprogramed those systems with instructions that couldn’t be seen by the operators.
So, Stuxnet implanted programming into the actual systems that controlled the centrifuges. Apparently, the instructions caused the motors to run erratically, running over speed and slowing suddenly to cause physical damage.
Some of the equipment could very well have suffered permanent physical damage.
The reason so many P-1's are off line is that Iran cannot get spare parts for the crude inverters they are using and that are getting hot and acting erratically independent of any program bug.