The existing publications on the analysis of power quality indicators in modern electric power supply systems are void of a comprehensive approach to improving these indicators in power systems by implementing multipulse connections. To the authors’ knowledge, this paper is the first to analyze current harmonic distortions in an 18-pulse connection of three-level active front-ends (AFE) featuring a programmed PWM. Raw data were obtained from, and current quality was analyzed for the power circuit of the main electric drive actuating the rolls in the rolling stand of a plate mill. The key feature of such circuitry is that the synchronous motor of each work roll is connected to the grid with an 18-pulse connection that uses three phase-shift transformers, where the phase shifts are 0° (delta/delta), 20° (delta/polygon) and −20° (delta/polygon). The circuitry connects three frequency converters (FC) with the AFEs in parallel. Phase-shift transformers were found to periodically overheat in the process. When overheating occurred, a programmed PWM voltage waveform was applied where harmonics 17 and 19 were eliminated. The goal and objectives were to analyze why the transformer would overheat and to find out how the issue could be addressed. The authors developed a simulation model of the research object in order to assess power quality parameters. Simulation results obtained in Matlab/Simulink were used to estimate the total harmonic distortions (THD) and individual harmonic factors for up to the 50th secondary transformer winding and grid harmonic with four different programmed AFE PWM voltage waveforms. The results helped find the best such waveform to prevent phase-shift transformers from overheating; one with harmonics 5, 7, 17 and 19 eliminated. The experimental and mathematical modeling results in the paper were confirmed by positive effects after industrial implementation of the system. Research performed directly on the operating equipment has been classified by the company and is not publicly available. These results are highly versatile and could be used in similar research on other circuitries to ensure the electromagnetic compatibility of nonlinear power-consuming devices.