Control over Grid Reactive Power by Using a Powerful Regenerative Controlled-Speed Synchronous Motor Drive

: The authors propose a technique for reactive power compensation using a powerful regenerative controlled-speed synchronous motor drive (SMD) based on a three-level (3L) neutral point clamped (NPC) active front-end rectiﬁer (AFE) and a voltage source inverter (VSI). The review of technical solutions for reactive power compensation showed that the limitations on the transmitted reactive power in the system under consideration still have not been studied. The paper provides a mathematical description and proposes synthesis-friendly block diagrams of the mathematical 3L-NPC-AFE-VSI and SMD models. The developed models allow deﬁning the instantaneous values of the total 3L-NPC-AFE power consumed from the grid depending on the SMD load diagram. It is noted that the 3L-NPC-AFE-VSI-SMD system is designed without considering the opportunities for reactive power generation. It was determined that the limit value of reactive power generated by a 3L-NPC-AFE depends on the DC link voltage, the grid current consumption and the modulation index. The possibility of reactive power compensation by the SMD system through a 3L-NPC-AFE was experimentally tested on the main drive of a metal plate hot rolling mill. The analysis of the results obtained showed that during the breakdown, an SMD can generate reactive power equal to 16% of the total rated power using a 3L-NPC-AFE at a rated DC link voltage and without overcurrent. It was shown that generating reactive power is expedient in low-load SMD operation modes or at idle. Research in this area is promising due to the widespread use of high-power SMD based on a 3L-NPC-AFE-VSI and the tightening of requirements for energy saving and efﬁciency and supply voltage quality. The proposed reactive power control technique can be used as part of an industrial smart grid.


Introduction
The increase in the global demand for energy resources resulted in the emergence of new engineering systems based on power conversion equipment that can control large active and reactive power flows producing minimum adverse impacts on the environment and featuring high efficiency. Reactive power compensation technologies allow improving the energy quality and efficiency of various electrical complexes and systems. Most reactive power problems in the grid can be mitigated or solved with passive inductive or capacitive filters, static thyristors (STC) or synchronous reactive power compensators (STATCOM). However, this is expensive and may cause additional EMC problems.
Medium-voltage AC regenerative electric drives (AC RED), based on three-level neutral point clamped (3L-NPC) active front ends (AFE) and voltage source inverters (VSI), have similar opportunities to STATCOMs. These systems were widely introduced in metal plate rolling mills, excavators, electric trains, etc. [1][2][3]. Modern AC REDs have a number of advantages over the previous generation electric drives featuring thyristor rectifier modules, namely: (1) the capacity to regenerate the power to the grid in the generating modes of the electric drive with minimum distortion; (2) the capacity to adjust the cos(ϕ); and (3) the improved harmonic composition of the power consumed from the grid due to the use of specialized AFE pulse width modulation (PWM) algorithms [4,5]. Today, no full understanding has been formed of the reactive power compensation possibilities using high-power AC REDs with an AFE considering the possible limitations and associated problems. However, such modes are used ubiquitously and prove their efficiency.
Gonzalo Alonso Orcajo et al. [6][7][8] demonstrated the possibility of reactive power compensation in the grid via the modernization of several main electric drives of hot rolling mill stands. New electric drives feature three-level NPC AFE converters facilitating the electric motors' consumption of active power to maintain the required rolling process and compensate for some of the reactive power consumed by neighboring devices. In terms of their practical significance, the solutions presented in the articles are straightforward and can be recommended for any other similar systems. However, these works do not cover in detail the issues of determining the possible limitations for reactive power compensation under the maximum current and voltage in the DC bus of the frequency converter. These problems require a deeper theoretical analysis to spread the suggested solutions to a wider class of objects.
In the article [9] by Pandit et al., an excavator power system was reviewed, with the power coefficient in the point of common connection (PCC) selected to provide the maximum reduction of voltage fluctuations on the high-voltage bushing of the excavator. To get the desired cos(ϕ), the high-power AC RED system used an AFE to compensate for the reactive power consumption from the auxiliary loads of the excavator. Note that this was achieved when the voltage in the DC link was two times higher than the voltage in the secondary winding of the transformer. This solution poses some questions about the operating conditions of the AC motor because the high voltage in the DC link has an adverse effect on the electromagnetic processes on the VSI side (low modulation index, higher harmonics, in-phase currents/voltages, etc.).
Brovanov et al. [10] provide a detailed analysis of electromagnetic processes occurring in the power circuit of a three-level converter with the NPC topology in autonomous electric power generation systems. As mentioned before, during the reactive power generation or consumption mode operation, the loads on the semiconductor converter modules become even more unequally distributed while the voltage in the DC link becomes more unbalanced, and the quality of converter power decreases insignificantly. However, these factors do not affect the converter operation if there is proper cooling provided, proper DC link voltage rectification algorithms are used, and proper sine filter parameters are selected.
This paper studies the possibilities and defines limitations in reactive power control using a powerful regenerative controlled-speed synchronous motor drive (SMD) based on a 3L-NPC-AFE. The paper has the following structure. Section 1 reviews the current research and formulates the study problem and objective. Section 2 covers the SMD model development for considering the load diagram impact on reactive power compensation modes. Section 3 analyzes vector diagrams of AFE operation modes. Section 4 gives the mathematical description of a 3L-NPC-AFE-VSI and analyzes the reactive power compensation mode. Section 5 provides the experimental study results. Finally, general conclusions are formulated.

Developing a Mathematical Model of the SMD System
The SMD's mathematical model is required to calculate the current consumption when operating in compliance with a process load diagram. The obtained data are used to form a disturbing effect in the DC voltage maintaining the circuit of the 3L-NPC-AFE control system.
All things considered, 3L-NPC-AFE-VSI-SMD systems are widely applied in the low-speed drives of metallurgical equipment characterized by increased requirements to Designs 2023, 7, 62 3 of 20 the response, overload capacity and speed control quality, in wind turbines and traction drives, as well as in high-performance grinding units in the mining, cement and chemical industries. A simplified diagram of the SMD system is shown in Figure 1. All things considered, 3L-NPC-AFE-VSI-SMD systems are widely applied in the lowspeed drives of metallurgical equipment characterized by increased requirements to the response, overload capacity and speed control quality, in wind turbines and traction drives, as well as in high-performance grinding units in the mining, cement and chemical industries. A simplified diagram of the SMD system is shown in Figure 1. The decisive SMD advantages are the lack of power, overload capacity and current slew rate limitations, as well as the possibility of a significant improvement in dynamics by changing the synchronous motor design. SMDs are developed, as a rule, using custommade high-torque synchronous motors. A high rate of electromagnetic use is decisive for developing their control systems, which predetermined high requirements for the response of the internal stator current control loops [11].
The equivalent circuit of a synchronous machine is derived from a generalized AC machine; the stator and rotor windings are fed with AC and DC, respectively. In the steady state, the rotor rotates simultaneously with the field in the air gap. A diagram of the SM model for mathematical derivations is presented in Figure 2.  The decisive SMD advantages are the lack of power, overload capacity and current slew rate limitations, as well as the possibility of a significant improvement in dynamics by changing the synchronous motor design. SMDs are developed, as a rule, using custommade high-torque synchronous motors. A high rate of electromagnetic use is decisive for developing their control systems, which predetermined high requirements for the response of the internal stator current control loops [11].
The equivalent circuit of a synchronous machine is derived from a generalized AC machine; the stator and rotor windings are fed with AC and DC, respectively. In the steady state, the rotor rotates simultaneously with the field in the air gap. A diagram of the SM model for mathematical derivations is presented in Figure 2.
Designs 2023, 7, x FOR PEER REVIEW 3 of 24 All things considered, 3L-NPC-AFE-VSI-SMD systems are widely applied in the lowspeed drives of metallurgical equipment characterized by increased requirements to the response, overload capacity and speed control quality, in wind turbines and traction drives, as well as in high-performance grinding units in the mining, cement and chemical industries. A simplified diagram of the SMD system is shown in Figure 1. The decisive SMD advantages are the lack of power, overload capacity and current slew rate limitations, as well as the possibility of a significant improvement in dynamics by changing the synchronous motor design. SMDs are developed, as a rule, using custommade high-torque synchronous motors. A high rate of electromagnetic use is decisive for developing their control systems, which predetermined high requirements for the response of the internal stator current control loops [11].
The equivalent circuit of a synchronous machine is derived from a generalized AC machine; the stator and rotor windings are fed with AC and DC, respectively. In the steady state, the rotor rotates simultaneously with the field in the air gap. A diagram of the SM model for mathematical derivations is presented in Figure 2.  As a rule, rotors have a single excitation winding along the longitudinal axis. In some cases, one observes the use of compensated SMs containing an additional transverse excitation winding. In a frequency-controlled drive, this winding is not required; moreover, it has an adverse effect, making it difficult to boost transients. Therefore, it is further assumed that the rotor has a single longitudinal excitation winding. Furthermore, the SM Designs 2023, 7, 62 4 of 20 is assumed to be laminated, so the impact of eddy currents in the massive core parts can be neglected. The voltage equilibrium equation for the stator windings is as follows: where u s = u sa u sb u sc is the stator voltage; i s = i sa i sb i sc is the stator current.
The stator flux linkages are as follows: where i f is the excitation winding current. The stator inductance matrix is expressed as follows: where L ave and M ave are the average values of the self-inductance of the stator phase and the mutual inductance between two stator phases. The matrix of mutual inductances of the stator phase and the excitation winding is as follows: The flux linkage of the excitation winding is as follows: where L ff is the self-inductance of the excitation winding; M f is the maximum mutual inductance between the excitation winding and the stator phase. Due to the synchronous (magnetic and electric) machine rotor asymmetry, equations with constant coefficients can only be obtained when transformations are conducted in the dq0 reference frame, the axes of which are rigidly connected to the rotor. The matrix of this transformation for the stator equation is as follows: The formulas for transforming stator currents into the dq0 axis components obtained from the equation i dq0 = A s i s , have the following form: Designs 2023, 7, 62 5 of 20 Both parts of Equation (1) are multiplied by the As matrix on the left to obtain, in the expanded form, the following: A similar operation conducted with Equation (2) gives the following equations for the stator flux linkages: where L d = L ave + M ave + 3 2 L m ; L q = L ave + M ave − 3 2 L m ; L 0 = L ave − 2M ave . Considering the first Equation (7), the excitation winding flux linkage Equation (5) can be represented as follows: The rotor winding equation is as follows: The SM electromagnetic torque is expressed as follows: The rotor motion equation is as follows: where J is mass moment of inertia; Z p is a pair of poles. Equations (8)-(13) form a complete system of equations for a synchronous machine. It can be transformed into a form suitable for the synthesis of an automated control system. Considering Equations (10) and (11), the following is obtained: from which, (8) and (9), we obtain the following: Substituting Equation (14) into Equation (15) and considering that d/dt = p, we obtain the following: where From Equations (8) and (9), we obtain the following: where From Equations (9) and (14), we obtain the following: where The vector-matrix system of equations is synthesized based on the SM block diagram with the main controlled coordinates i d , i q and ψ f . From Equation (11), considering Equation (10), we obtain the following: where In this case, the longitudinal stator flux linkage can be represented as follows: The block diagram with the main controlled coordinates i d , i q and ψ f was built using Equations (9), (12), (13) and (16)- (20) and is shown in Figure 3. This diagram is convenient for the synthesis of a vector control system.  The SM control algorithm in the reference frame associated with the rotor and the main conditions for implementing it can be formulated if we assume that the stator windings are powered by a VSI operating in the AC power source mode.
The requirements for the optimal use of the SM power-to-size ratio and the installed capacity of the 3L-NPC-AFE-VSI necessitate meeting the following conditions:

•
Providing the SM operation with a rated stator flux linkage within the entire load change and speed control range (except for the field weakening mode with two-zone control): • Providing the SM operation with a power factor equal to (or close to) unity: The SM control algorithm in the reference frame associated with the rotor and the main conditions for implementing it can be formulated if we assume that the stator windings are powered by a VSI operating in the AC power source mode.
The requirements for the optimal use of the SM power-to-size ratio and the installed capacity of the 3L-NPC-AFE-VSI necessitate meeting the following conditions:

•
Providing the SM operation with a rated stator flux linkage within the entire load change and speed control range (except for the field weakening mode with two-zone control): ψ sre f ∼ ψ srate (21) • Providing the SM operation with a power factor equal to (or close to) unity: Based on Equations (21) and (22), the synchronous motor's electromagnetic torque is determined as follows: When conditions (21)-(23) are fulfilled, the stator's full flux linkage vector is always Since the SM's electromagnetic torque is always proportional to the stator and rotor flux linkages, this solves the problem of optimal use of its power-to-size ratio. For vector control of a synchronous motor using Equation (23), the following dependencies were obtained: where I f 0 is the excitation current according to the no-load characteristic. Figure 1 shows the block diagram of a closed-loop control system. The controllers are synthesized in the dq0 coordinate system: the speed control loop with a PI controller is an outer control loop, and the control loops of the stator current components i d and i q and the rotor winding flux linkage ψ f are the inner control loops. The three aforementioned loops in the aggregate make a multidimensional torque loop. The drive signals at the input of the control loops of the longitudinal and transverse components of the stator currents and the flux linkage of the excitation winding are implemented according to function Equations (24)- (26). With a high response of the internal control loops, the function equations compensate for the nonlinearities of the SM's control object in the reference frame selected. Figure 1 shows the compensators of the two main crosslinks for rotational EMF. When choosing the stator current components i d and i q and the excitation winding flux linkage ψ f as the controlled variables, only these internal crosslinks require compensation. The crosslinks between the excitation and longitudinal component circuits are very weak. The compensation of the main SM crosslinks and nonlinearities is achieved by almost full decoupling of the i d , i q and ψ f control loops. Controllers are implemented as active filters. To eliminate the static control error, current PI controllers are used in the dq0 reference frame.
Thus, the 3L-NPC-AFE-VSI-SMD is developed on the basis of the conditions stipulated for the optimal use of the SM and frequency converter powers; thus, the reactive power generation mode will be limited by active power consumption. Therefore, the 3L-NPC-AFE operation opportunities and limitations for the reactive power generation in various drive operation modes should be analyzed in more detail.

AFE Power Description
The possibilities of reactive power compensation within the system of an AFE and the grid can be conveniently reviewed using a single-phase equivalent circuit shown in Figure 4a. The system is shown as the EMF of the AFE E AFE connected over the reduced inductive reactance X L at the terminal point of the secondary transformer winding EMF (grid) E g . The difference between E AFE and E g corresponds to X L , the voltage drop for which is U L . Further, review of the AFE operation using vector diagrams in Figure 4b-d features marked limitations for the maximum current I gmax and AFE EMF E AFEmax . Accounting for these limitations allowed obtaining the acceptable AFE operation range, which is crosshatched with black lines in Figure 3.
consumed from the grid is in phase with grid voltage Eg, which results in a single power coefficient at the converter input. This mode requires adjusting the amplitude and phase of the EAFE converter voltage relative to Eg so that the voltage drop over the reduced inductance UL is perpendicular to Eg. In the upper region of Figure 4c, the AFE operates in the inverter mode. Vector Ig is opposite in phase to vector Eg, which also results in a single power coefficient at the converter input. For this mode, the EAFE voltage phase must outrun voltage Eg by angle α. In the reviewed modes, the AFE can operate at maximum current Igmax. They can be used to determine the possible reactive power generation region.
In the lower region of Figure 4d, the AFE operates in the rectifier mode, and in the upper region of Figure 4d, it operates in the inverter mode with reactive power generation. For them, the voltage drop UL is not perpendicular to Eg, which results in current Ig outrunning or lagging behind Eg. The analysis of the diagram shows that the generated reactive power can also be increased using the additional charging of the capacitors in the DC link. However, it is necessary to account for the consumed active power to prevent the tripping of the maximum permissible AFE current.
The analysis of the vector diagrams of AFE operation in Figure 4 shows that it is possible to compensate for the reactive power both in the motoring and inverter operation modes.   Figure 4b shows the positioning of the vectors during the AFE operation in the reactive power generation mode (similar to a static VAR compensator). This mode is possible during idling operation. Note that in this mode, the maximum reactive current value is severely limited as the ceilings of E AFE are also limited by E AFEmax . It is possible to increase the generated reactive power through the additional charging of the capacitors in the DC link.

EAFE Eg
In the lower region of Figure 4c, the AFE operates in the rectifier mode. Current I g consumed from the grid is in phase with grid voltage E g , which results in a single power coefficient at the converter input. This mode requires adjusting the amplitude and phase of the E AFE converter voltage relative to E g so that the voltage drop over the reduced inductance U L is perpendicular to E g . In the upper region of Figure 4c, the AFE operates in the inverter mode. Vector I g is opposite in phase to vector E g , which also results in a single power coefficient at the converter input. For this mode, the E AFE voltage phase must outrun voltage E g by angle α. In the reviewed modes, the AFE can operate at maximum current I gmax . They can be used to determine the possible reactive power generation region. In the lower region of Figure 4d, the AFE operates in the rectifier mode, and in the upper region of Figure 4d, it operates in the inverter mode with reactive power generation. For them, the voltage drop U L is not perpendicular to E g , which results in current I g outrunning or lagging behind E g . The analysis of the diagram shows that the generated reactive power can also be increased using the additional charging of the capacitors in the DC link. However, it is necessary to account for the consumed active power to prevent the tripping of the maximum permissible AFE current.
The analysis of the vector diagrams of AFE operation in Figure 4 shows that it is possible to compensate for the reactive power both in the motoring and inverter operation modes.
Taking into account an equivalent active resistance R at the common coupling point, the equations for the calculation of active, reactive and apparent power can be composed as follows: where P g , Q g and S g are the dependencies of the active, reactive and apparent powers of the grid and α is the shift angle between E g and E AFE . When AFEs operate in the PWM mode, the maximum amplitude of the continuous (useful) component of the phase voltage E AFEmax is determined by the U dc value and the PWM algorithm. Controlled AFE operation requires the voltage in the U dcmin DC link to be at such a minimum level that allows for blocking of the forward diodes. Thus, the DC link voltage should be higher than the grid voltage amplitude value, considering the voltage drop across the active inductive input impedance.
It is known that six-step control is the best option for the DC link voltage. Currently, for most AFEs as part of an SMD, PWM with selected harmonic elimination (SHE) is used to provide the best quality of converted voltage under the low semiconductor module's switching frequency [11][12][13][14][15]. Along with good electromagnetic compatibility, PWM with SHE facilitates the use of the DC link voltage at the six-step modulation level (K PWM ≈ 2/π) [16][17][18]. The E AFE vector length is controlled using the modulation index m, which is calculated as follows: To define the limit E AFEmax value, the following equation is used: At different m values, the converted power quality parameters change. The relevant studies in the area have shown that the higher the m value, the lower the THD of the converter output voltage [19][20][21][22][23]. In practice, the m value close to 1 (if we describe a range from 0 to 4/π) is chosen while providing a margin for maintaining stable AFE and VSI operation in dynamic modes (a voltage drop in the DC link during shock application of the electric drive load) [24][25][26][27].
Considering the aforementioned Equations (30) and (31), the active, reactive and apparent powers can be determined as follows: Designs 2023, 7, 62 10 of 20 Based on Equations (32)-(34), the limit values of the active, reactive and apparent powers at the set values of the grid voltage and equivalent active inductive impedance on the AFE side can be controlled by the modulation index, the DC link voltage and the shift angle α. The problem of generating reactive power in the system under consideration is solved using an AFE control system.

Synthesis of a 3L-NPC-AFE-VSI Control System
Based on Equations (32)-(34), the limit values of the active, reactive and apparent powers at the set values of the grid voltage and equivalent active inductive impedance on the AFE side can be controlled by the modulation index, the DC link voltage and the shift angle α. The problem of generating reactive power in the system under consideration is solved using an AFE control system. When building a mathematical model, discrete logical functions fabc describing the states of modules in each 3L-NPC-AFE-VSI phase rack should be considered:   When building a mathematical model, discrete logical functions f abc describing the states of modules in each 3L-NPC-AFE-VSI phase rack should be considered: Equations (35) and (36) are optimized to the state of the switching functions F abc generating logic signals (0 or 1) that determine the voltage of the DC link connected to each 3L-NPC-AFE-VSI phase:

Synthesis of a 3L-NPC-AFE-VSI Control System
A system of equations describing electromagnetic processes was built based on Equations (35)-(37) and the voltage and current equilibrium equations obtained with Kirchhoff's laws, as well as the power balance in a three-phase system, as follows: where u abcg , u abcAFE and u abcVSI are the phase voltages; i abcAFE and i abcVSI are the phase currents; F abc12AFE and F abc12VSI are the switching functions in the dq0 reference frame; p is the instantaneous active power; q is the instantaneous reactive power. The system of Equation (38) considers the discrete nature of generating the 3L-NPC-AFE-VSI output voltages and the voltage imbalance in the DC link. Figure 6 shows the block diagram of the developed logical-mathematical model. The AFE control system is further synthesized in a rotating reference frame dq0 directed along the grid vector. After the abc/dq0 coordinate transformation, the system of Equations (38) takes the following form: where u dqg , u dqAFE and u dqVSI are the grid phase voltages; i dqAFE and i dqVSI are the phase currents; R dqAFE , L dqAFE are the active inductive resistances on the AFE side; ω g is the angular grid voltage frequency; F dq12AFE and F dq12VSI are the switching functions.
where udqg, udqAFE and udqVSI are the grid phase voltages; idqAFE and idqVSI are the phase currents; RdqAFE, LdqAFE are the active inductive resistances on the AFE side; ωg is the angular grid voltage frequency; Fdq12AFE and Fdq12VSI are the switching functions. Figure 7 shows the block diagram of the 3L-NPC-AFE-VSI's logical-mathematical model in the dq0 reference frame.  The system of Equation (39) shows that the reactive power consumed is fully determined by the reactive current iqAFE. Emerging iqAFE will cause a sharp increase in the voltage drop across the inductive resistance and, therefore, the need to increase the output voltage EAFE by the voltage drop value XLiq. The values of the maximum generated reactive power and current can be determined from the system of Equations (39) under the condition id = 0 (STATCOM mode) as follows: The Equations system (39) shows that with an increase in the idAFE current, the maximum reactive power will decrease. This is because the maximum apparent power consumption of the semiconductor converter is limited by the maximum active power consumption of the SMD (Sgmax ≈ Pgmax). The reactive power limit is defined as follows: This limitation in the AFE control system is implemented using the dependent current limitation according to the following formula: (32) Figure 7. AFE voltage-oriented control block diagram in the dq0 rotating reference frame.
The system of Equation (39) shows that the reactive power consumed is fully determined by the reactive current i qAFE . Emerging i qAFE will cause a sharp increase in the voltage drop across the inductive resistance and, therefore, the need to increase the output voltage E AFE by the voltage drop value X L i q . The values of the maximum generated reactive power and current can be determined from the system of Equations (39) under the condition i d = 0 (STATCOM mode) as follows: The Equations system (39) shows that with an increase in the i dAFE current, the maximum reactive power will decrease. This is because the maximum apparent power consump-tion of the semiconductor converter is limited by the maximum active power consumption of the SMD (S gmax ≈ P gmax ). The reactive power limit is defined as follows: This limitation in the AFE control system is implemented using the dependent current limitation according to the following formula: (42) Figure 8 shows an AFE control system for reactive power compensation comprising two control loops. The inner current circuit is implemented in the dq0 reference frame, oriented to the grid phase voltage (voltage-oriented control (VOC)) [28][29][30]. The i dAFE current provides DC voltage control. The i qAFE current is used to control reactive power. The circuit includes the following items: input AFE phase current i abcmeg and voltage u abcmeg ; grid angle θ; references i dqref and measured i dqmeg phase currents in the dq0 coordinates; references u dqAFEref and measured instantaneous phase voltage u dqmeg in the dq0 coordinates; reference u dcref and measured u dcmeg DC voltage; and selective harmonic elimination pulse width modulation (SHEPWM). The AFE control system calculates the modulation index m and the shift angle α as follows: Designs 2023, 7, x FOR PEER REVIEW 15 of 24 reference udcref and measured udcmeg DC voltage; and selective harmonic elimination pulse width modulation (SHEPWM). The AFE control system calculates the modulation index m and the shift angle α as follows: Of great promise is AFE control with dependent current limitation to compensate reactive power in a network as part of an industrial smart grid. When implementing reactive power compensation modes, the precalculation or real-time monitoring of reactive power in the grid is required to produce a command for the generation or consumption of reactive power Qref at the local AFE control level.

Laboratory Studies
Validation of mathematical models was carried out at a power conversion equipment laboratory. A photo and the equipment composition are presented in Figure 9. The specifications of the laboratory prototype and the testing system are presented in Table 1. Of great promise is AFE control with dependent current limitation to compensate reactive power in a network as part of an industrial smart grid. When implementing reactive power compensation modes, the precalculation or real-time monitoring of reactive Designs 2023, 7, 62 14 of 20 power in the grid is required to produce a command for the generation or consumption of reactive power Q ref at the local AFE control level.

Laboratory Studies
Validation of mathematical models was carried out at a power conversion equipment laboratory. A photo and the equipment composition are presented in Figure 9. The specifications of the laboratory prototype and the testing system are presented in Table 1.

FPGA
1 × Xilinx XC9536XL-10VQG44C, 10 ns; 36 microelements Microcontrollers 2 × Microchip PIC24F04KA201, 16 bit, 16 MHz; 9 × 10-bit ADCs; sampling rate, 500 ksps Direct access to the control signal of the semiconductor modules was gained through optic fiber inputs. Then, the galvanically isolated voltage probes of the DC and AC links at the converter input were connected to analog outputs. Overvoltage, overcurrent and overheating protection were built into each converter's NPC cells, and the converters were programmed by the researchers using a built-in microcontroller and a complex programmable logic device (CPLD). The mezzanine module was designed to transmit signals from the optic inputs and the analog outputs between the CPLD and the BoomBox control platform, including a digital signal processor (DSP) and a field-programmable gate array (FPGA). The converter control tasks were distributed between the DSP and the FPGA. The FPGA controlled the correct distribution of the IGBT control impulses, and the DSP processed the converter control system program. The computing core of the DSP was a 32-bit TMS320C28346 processor manufactured by Texas Instruments with a clock rate of 300 MHz and featuring 256 MB NOR flash memory, 2 MB RAM and 300 MIPS (with a floating point). To take an oscillogram, Windows TM -based graphic software of the BoomBox control platform was used. The probes were connected to the BoomBox control platform using the plug-and-play method and received directly from the control platform. The output  Direct access to the control signal of the semiconductor modules was gained through optic fiber inputs. Then, the galvanically isolated voltage probes of the DC and AC links at the converter input were connected to analog outputs. Overvoltage, overcurrent and overheating protection were built into each converter's NPC cells, and the converters were programmed by the researchers using a built-in microcontroller and a complex programmable logic device (CPLD). The mezzanine module was designed to transmit signals from the optic inputs and the analog outputs between the CPLD and the BoomBox control platform, including a digital signal processor (DSP) and a field-programmable gate array (FPGA). The converter control tasks were distributed between the DSP and the FPGA. The FPGA controlled the correct distribution of the IGBT control impulses, and the DSP processed the converter control system program. The computing core of the DSP was a 32-bit TMS320C28346 processor manufactured by Texas Instruments with a clock rate of 300 MHz and featuring 256 MB NOR flash memory, 2 MB RAM and 300 MIPS (with a floating point).
To take an oscillogram, Windows TM -based graphic software of the BoomBox control platform was used. The probes were connected to the BoomBox control platform using the plug-and-play method and received directly from the control platform. The output signal was transmitted over a screened twisted pair of probes integrated into RJ45 cables. The program code for the control platform was developed in the MATLAB/Simulink. A fragment of the developed model is shown in Figure 10.
The results of experimental studies of the AFE reactive power generation using the laboratory equipment are presented below. Figure 11 shows an experiment with three reference reactive power generations of 9 kVAr when active power consumption on the load side was from 0 to 8 kW. The AFE control system provided the set with the maximum apparent power of 10 kVA. The measured DC link voltage was constant, 600 V. As noted earlier, if power consumption from the load side increases, the AFE control system reduces the reactive current reference and, as a result, the generated reactive power.
The next experiment with the active power regenerative mode from 0 to 8 kW is shown in Figure 12. As in the previous experiment, the level of generated reactive power decreased with an increase in the regenerative active power, and the apparent power in the system was controlled by the AFE at the reference value of 10 kVA.
The modulation index in both experiments varied from 1.1 at the maximum reactive power generation of 10 kVAR to 1.0 at the minimum 2 kVAR. Thus, the results of the studies performed using the laboratory equipment confirmed the adequacy of the obtained constraints (41) and (42) when using an AFE as a reactive power compensator. signal was transmitted over a screened twisted pair of probes integrated into RJ45 cables. The program code for the control platform was developed in the MATLAB/Simulink. A fragment of the developed model is shown in Figure 10. The results of experimental studies of the AFE reactive power generation using the laboratory equipment are presented below. Figure 11 shows an experiment with three reference reactive power generations of 9 kVAr when active power consumption on the load side was from 0 to 8 kW. The AFE control system provided the set with the maximum apparent power of 10 kVA. The measured DC link voltage was constant, 600 V. As noted earlier, if power consumption from the load side increases, the AFE control system reduces the reactive current reference and, as a result, the generated reactive power. The next experiment with the active power regenerative mode from 0 to 8 kW is shown in Figure 12. As in the previous experiment, the level of generated reactive power decreased with an increase in the regenerative active power, and the apparent power in the system was controlled by the AFE at the reference value of 10 kVA.
The modulation index in both experiments varied from 1.1 at the maximum reactive power generation of 10 kVAR to 1.0 at the minimum 2 kVAR. Thus, the results of the studies performed using the laboratory equipment confirmed the adequacy of the obtained constraints (41) and (42) when using an AFE as a reactive power compensator.

Industrial Experiment
The main drive of a plate mill rolling stand was investigated as the experimental object to verify the adequacy of the developed logical-mathematical models and the proposed reactive power compensation technique. An industrial drive is a system in which a DYMMZ 8025-8V synchronous motor with a rated power of 12 MW of each working roll is connected to three parallel-connected converters based on an AFE (PWM with the SHE algorithm) and a VSI (SVPWM algorithm). The object's electrical circuit is

Industrial Experiment
The main drive of a plate mill rolling stand was investigated as the experimental object to verify the adequacy of the developed logical-mathematical models and the proposed reactive power compensation technique. An industrial drive is a system in which a DYMMZ 8025-8V synchronous motor with a rated power of 12 MW of each working roll is connected to three parallel-connected converters based on an AFE (PWM with the SHE algorithm) and a VSI (SVPWM algorithm). The object's electrical circuit is shown in Figure 13 while the basic specifications of the motor are provided in Table 2, and those of the converter in Table 3.    Based on the initial object parameters, the maximum reactive power of 80 kVAR was found using Equation (40) with a modulation index of 1. When increasing the modulation index to 1.1, the maximum reactive power would increase sharply to 2.5 MVAR. Generating reactive power above these values without increasing the DC link voltage becomes problematic. An increased modulation index may cause unstable operation of the AFE due to voltage drops in the DC link when an abruptly variable load emerges on the SMD side. Increasing the DC link voltage also deteriorates the operating conditions of the SMD and semiconductor modules. Thus, to generate reactive power, the SMD's idle mode and roughing-down conditions were used. Figure 14 shows the SMD operation load diagram for mastering the reactive power generation mode. The modulation index was set to 1.1 where the total generated reactive power was 6 MVAR. Figure 15 shows the active, reactive and apparent power measurement results.

Conclusions
This paper reviews the possibilities of reactive power compensation and power quality improvement in the grid using a high-power 3L-NPC-AFE-VSI-SMD. The analysis of the obtained results led to the following conclusions: 1. The review of previous studies revealed underestimated limitations when implementing reactive power compensation modes using a powerful regenerative controlled-speed synchronous motor drive based on a 3L-NPC-AFE-VSI; Figure 15. Reactive power generation by a 3L-NPC-AFE at 15% of the rated SMD power during the roughing-down.