Manufacturing methods related to anodizing of metal parts are described. The rotary head includes: a housing forming an internal chamber, a hydraulically driven motor, and a rotation transmission mechanism disposed in the chamber. In the event of a defective plug-in connection, the diagnostic signal influences the power supply of the active circuit.