Abstract: This research covers industrial plant-connected wind turbine system control. An algorithm permits a control structure that uses a four-leg inverter linked to the grid to inject energy and operate as an active power filter, reducing load current disturbances and improving power quality. Algorithms enable this control structure. A four-wire system considers linear and nonlinear three-phase and single-phase loads. The utility-side controller supplies active and reactive power and adjusts for reactive, nonlinear, and unbalanced single- and intra-phase demands during wind turbine connection. Besides providing power, this is done. If there is no wind power, the controller uses the DC-link capacitor and grid-connected power converter to improve power quality. The proposed control structure is based on conservative power theory decompositions, which distinguishes it from previous techniques. This option separates the inverter control power and current references, giving a broad variety of adaptable, selective, and powerful functions. Real-time software benchmarking has tested the recommended control technique for comprehensive real-time implementation. The real-time simulator "FACTS" and the DSP microcontroller test and implement the control strategy in hardware-in-the-loop. These results confirmed our power quality improvement control, allowing us to omit passive filters. This created an electronic smart grid-based control system that was more efficient, adaptive, and reliable.