Repairs or maintenance of machinery or equipment shall be performed only after the power is off, and the machinery or equipment blocked against hazardous motion. Machinery or equipment motion or activation is permitted to the extent that adjustments or testing cannot be performed without motion or activation, provided that persons are effectively protected from hazardous motion.