Engineering controller design method and system based on PSCAD

By designing simulation models and transfer function models of active and reactive power controllers in PSCAD and combining them with power allocation algorithms, the uncontrollability and intermittent jump problems of new energy power allocation in the power system were solved, and stable control of the power system was achieved.

CN120949663APending Publication Date: 2025-11-14NANJING GUODIAN NANZI POWER GRID AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511119126.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-11
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

In existing technologies, the power allocation of new energy sources in power systems has failed to effectively solve the problem of redistribution of over-limit capacity, resulting in uncontrollability and intermittent jumps in controller simulation models in the simulation of asymmetrical grid-connected converters and high-voltage direct current transmission.

Method used

A PSCAD-based engineering controller design method is adopted. By designing simulation models of active and reactive power controllers for new energy control, and combining them with transfer function simulation models and power allocation algorithms, multi-round allocation of active and reactive power is realized. Capacity adjustment is carried out using the cyclic filling allocation method, thereby increasing the adjustability and stability of the controller.

Benefits of technology

It effectively solved the problem of redistribution of over-limit capacity, improved the controllability and stability of the simulation model, reduced the error between the setpoint and the multi-unit allocation setpoint, and enhanced the control accuracy of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120949663A_ABST
    Figure CN120949663A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power system control, and provides an engineering controller design method and system based on PSCAD (Power System Computer Aided Design), and the method comprises the steps: designing an active controller simulation model for new energy control; designing a reactive power controller simulation model for new energy control; the active power controller simulation model and the reactive power controller simulation model are combined to construct a comprehensive controller simulation model; designing a transfer function simulation model of the new energy controlled object; designing a power distribution algorithm according to the characteristics of the new energy controlled object; and combining the comprehensive controller simulation model with the transfer function simulation model of the new energy controlled object, and performing active and reactive distribution according to a distribution algorithm. According to the distribution algorithm, coefficient adjustment is carried out in a mode of carrying out multi-round distribution through a circulating filling distribution method according to an average distribution mode assisted by fine adjustment of new energy power generation distribution and according to capacity limitation of new energy, and the total line crossing quantity of the previous round is distributed again in the next round.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system control technology, and in particular to a PSCAD-based engineering controller design method and system. Background Technology

[0002] Currently, in power systems, the power simulation software PSCAD is commonly used for power simulation modeling of renewable energy sources. There are existing PSCAD modeling and simulation methods for grid-connected converters with asymmetrical grid connections. Control methods exist for PSCAD simulation models of power system controllers, and simulation models exist for PSCAD high-voltage direct current transmission, etc. PSCAD simulation models aim to accurately reconstruct the power system, laying the foundation for power grid power flow analysis, transient steady-state analysis, phase-locked loop state analysis; torsional vibration analysis of thermal power unit rotors, synchronization analysis of grid connection point frequencies; and analysis of the intermittency and instability of new energy units. Current engineering applications include average allocation, proportional allocation, and similar margin allocation methods. For power allocation of multiple controlled new energy sources, a single-round allocation method is often used, without considering the redistribution of over-limit capacity. Summary of the Invention

[0003] The purpose of this invention is to solve at least one technical problem in the background art and to provide a PSCAD-based engineering controller design method and system.

[0004] To achieve the above objectives, the present invention provides a PSCAD-based engineering controller design method, comprising: Design a simulation model for the active power controller of new energy source control; Design a simulation model of a reactive power controller for new energy control; The active power controller simulation model and the reactive power controller simulation model are combined to construct a comprehensive controller simulation model; Design a simulation model of the transfer function of a new energy controlled object; Design a power allocation algorithm based on the characteristics of the controlled new energy source; The integrated controller simulation model is combined with the transfer function simulation model of the new energy controlled object, and active and reactive power are allocated according to the allocation algorithm.

[0005] According to one aspect of the present invention, the simulation model for the active power controller of the new energy control system includes: The main control signal circuit is enabled by three flag bits; The simulation uses a timer mode to periodically issue commands and dynamically adjust the time period, with a period of 20 seconds. Commands are issued every 5 seconds, and the adjustment process takes place every 15 seconds. The periodic command flag bit enables the active power setting. The ratio droop control is used to compensate for the frequency-power response, which is frequency-power compensation. The periodic signal is used to adjust the active power control signal through a PI controller; An active signal is fed into the upper and lower limit limiting link controller as a single-step limiting signal. During the adjustment process, the parameters of the limiting link are adjusted to control the response slope of the continuous ramp signal. The regulation flag and the power dead zone flag are connected in series in the main circuit of the controller to limit the on / off of the regulation signal of the main circuit of the controller, and the signal is fed back to the output level of the model through the output point. Based on the difference between the drooping active power signal and the sampled signal, and after comparing it with the power dead zone limit, a flag bit designed through the sign function is used to achieve the purpose of disconnecting the regulation signal when the line is crossed, thus forming a simulation model of the new energy active power controller.

[0006] According to one aspect of the present invention, the simulation model for the reactive power controller of the new energy control system includes: The reactive power regulation flag, power factor regulation flag, and voltage regulation flag share a single main control loop, and the three functions of the reactive power controller are segmented and multiplexed. Function 1 directly uses the reactive power signal as the control signal for reactive power regulation; Function 2 converts the power factor signal into a reactive power signal as the control signal; and Function 3 converts the voltage signal into a reactive power signal as the control signal. Analogous to an active power controller, it uses a combination of flag bits and timers to periodically receive reactive power, voltage, and power factor signals; The control margin and stability of the controller are increased by adjusting the error between the set value and the sampled value. At the same time, the control signal is turned on or off by judging whether the difference between the error value and the sampled value exceeds the limit. For the conversion between voltage and reactive power, the voltage setpoint and reactive power setpoint are calculated based on the grid connection point current and the differential compensation method; for the conversion between power factor and reactive power, the power factor setpoint and reactive power setpoint are calculated based on the power factor calculation formula.

[0007] According to one aspect of the present invention, the simulation model for the transfer function of the controlled new energy object includes: The transfer function is designed based on the input-output characteristics of the new energy controlled object. A typical second-order response is used to model the input-output structure with time delay, forming a transfer function simulation model.

[0008] According to one aspect of the present invention, the step of designing a power allocation algorithm based on the characteristics of the controlled new energy source includes: A power allocation algorithm is used to design the power limits and coefficient allocation between the new energy controlled object and the reactive power compensation device.

[0009] According to one aspect of the present invention, the allocation of active and reactive power according to the allocation algorithm includes: The values ​​are distributed evenly based on the deviation between the setpoint and the controlled value. The initial allocation margin is limited based on the capacity of the currently controlled object; The initial redundant deviation values ​​are summed to form the deviation value for the next round. Based on this, the deviation is allocated in the next round until the difference between the total set value and the controlled value is less than a certain threshold.

[0010] To achieve the above objectives, the present invention also provides an engineering controller design system based on PSCAD, comprising: The active power controller simulation model design module is used to design a simulation model of the active power controller for new energy control. The reactive power controller simulation model design module is used to design a reactive power controller simulation model for new energy control. The integrated controller simulation model construction module combines the active power controller simulation model and the reactive power controller simulation model to construct an integrated controller simulation model. The transfer function simulation model design module is used to design the transfer function simulation model of the new energy controlled object. The power allocation algorithm design module designs power allocation algorithms based on the characteristics of the controlled new energy objects. The active and reactive power allocation module combines the integrated controller simulation model with the transfer function simulation model of the new energy controlled object, and allocates active and reactive power according to the allocation algorithm.

[0011] To achieve the above objectives, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the PSCAD-based engineering controller design method as described above.

[0012] To achieve the above objectives, the present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the PSCAD-based engineering controller design method as described above.

[0013] According to the present invention, this invention addresses the shortcomings of uncontrollable simulation models and modules required in engineering applications and the intermittent jumps in renewable energy sources. It models the renewable energy controlled objects using a PSCAD simulation model, including the design of an active power controller, a reactive power controller, the transfer function design of the renewable energy controlled objects, and the debugging and monitoring of the integrated controller. Specifically, it includes the design of multiple allocation algorithms and methods for renewable energy controlled objects. Specifically, it achieves slope control by adding parameter adjustment to the nonlinear link of the active power controller, increases adjustability to engineering requirements by adding a PI controller, and controls the on / off state of signals through feedback of the enable flag. The reactive power controller is designed using a single-path control method sharing multiple flags. The allocation algorithm is based on an average allocation method supplemented by fine-tuning of renewable energy generation allocation. Based on the capacity limitations of renewable energy, it uses a "cyclic filling allocation method" for multi-round allocation to adjust coefficients. The "cyclic filling allocation method" adds multiple rounds of cycles to the original method, redistributing the total excess amount from the previous round in the next round.

[0014] This invention addresses the problems of unallocated redundant capacity and inability to redistribute excess capacity in conventional single-round allocation methods. Its advantages lie in: multi-round allocation carries unallocated capacity from the previous round into the next; and a fixed threshold eps is used to determine the maximum allowable unallocated capacity at the end of the round-robin allocation, further reducing the error between the total setpoint and the allocation setpoints of multiple units. This solves the setpoint allocation problem. Attached Figure Description

[0015] Figure 1 The flowchart schematically illustrates a PSCAD-based engineering controller design method according to one embodiment of the present invention. Detailed Implementation

[0016] The invention will now be discussed with reference to exemplary embodiments. It should be understood that the described embodiments are merely intended to enable those skilled in the art to better understand and thus implement the invention, and are not intended to imply any limitation on the scope of the invention.

[0017] As used herein, the term "comprising" and its variations are to be interpreted as open-ended terms meaning "including but not limited to". The term "based on" is to be interpreted as "at least partially based on". The terms "one embodiment" and "an embodiment" are to be interpreted as "at least one embodiment".

[0018] Figure 1 A flowchart illustrating a PSCAD-based engineering controller design method according to one embodiment of the present invention is shown. Figure 1As shown, in this embodiment, the engineering controller design method based on PSCAD includes: Design a simulation model for the active power controller of new energy source control; Design a simulation model of a reactive power controller for new energy control; The active power controller simulation model and the reactive power controller simulation model are combined to construct a comprehensive controller simulation model; Design a simulation model of the transfer function of a new energy controlled object; Design a power allocation algorithm based on the characteristics of the controlled new energy source; The integrated controller simulation model is combined with the transfer function simulation model of the new energy controlled object, and active and reactive power are allocated according to the allocation algorithm.

[0019] Furthermore, according to one embodiment of the present invention, a simulation model of an active power controller for new energy control is designed, including: The main control signal circuit is enabled by three flag bits. In this embodiment, the three flag bits can be specified as follows: the square wave signal generated by the PWM timer is used as the adjustment flag bit; the Boolean signal of the external input signal is used as the active power enable flag bit signal; and the Boolean signal generated by comparing the difference between the droop control signal and the active power sampling feedback signal with the power dead zone signal is used as the power dead zone flag bit signal. The relationship between the three flag bits is a serial AND logic relationship, and they are connected in series in the main signal of the controller. A timer mode is used to simulate the periodic issuance of commands and dynamic adjustment time periods, with a period of 20 seconds. Commands are issued every 5 seconds, and the adjustment process takes place every 15 seconds. Periodic command flags are sent to enable active power setting. A ratio droop control is used to compensate for the frequency-power response. In this embodiment, frequency-power compensation refers to a frequency droop compensation method designed based on the linear relationship between active power and frequency after the first-order Maclaurin series decomposition, ignoring the remainder term. The purpose is to compensate for the fluctuation range of the frequency collected at the grid connection point, which is greater than 50±δHZ, by fine-tuning the active power setting value according to the linear relationship between frequency and power, thereby stabilizing the frequency at the grid connection point. The periodic signal is used to adjust the active power control signal through a PI controller; in this embodiment, the periodic signal refers to the scheduling period active power setpoint signal composed of a timer PWM square wave signal and an active power setpoint. An active signal is fed into the upper and lower limit limiting link controller as a single-step limiting signal. During the adjustment process, the parameters of the limiting link are adjusted to control the response slope of the continuous ramp signal. The regulation flag and power dead zone flag are connected in series in the main circuit of the controller to limit the on / off state of the regulation signal in the main circuit of the controller, and the signal is fed back to the output level of the model through the output point for easy observation and debugging. Based on the difference between the drooping active power signal and the sampled signal, and after comparing it with the power dead zone limit, a flag bit designed through the sign function is used to achieve the purpose of disconnecting the regulation signal when the limit is exceeded, thereby enhancing the stability of the controller regulation, preventing the problem of excessive single-step power regulation, and forming a simulation model of the new energy active power controller.

[0020] Furthermore, according to one embodiment of the present invention, a simulation model of a reactive power controller for new energy control is designed, including: The reactive power regulation flag, power factor regulation flag, and voltage regulation flag share a single main control loop, and the three functions of the reactive power controller are segmented and multiplexed. Function 1 directly uses the reactive power signal as the control signal for reactive power regulation; Function 2 converts the power factor signal into a reactive power signal as the control signal; and Function 3 converts the voltage signal into a reactive power signal as the control signal. Analogous to an active power controller, it uses a combination of flag bits and timers to periodically receive reactive power, voltage, and power factor signals; The control margin and stability of the controller are increased by adjusting the error between the set value and the sampled value. At the same time, the control signal is turned on or off by judging whether the difference between the error value and the sampled value exceeds the limit. For the conversion between voltage and reactive power, the voltage setpoint and reactive power setpoint are calculated based on the grid connection point current and the differential compensation method; for the conversion between power factor and reactive power, the power factor setpoint and reactive power setpoint are calculated based on the power factor calculation formula.

[0021] Furthermore, according to one embodiment of the present invention, a simulation model of the transfer function of a new energy controlled object is designed, including: The transfer function is designed based on the input-output characteristics of the new energy controlled object. A typical second-order response is used to model the input-output structure with time delay, forming a transfer function simulation model.

[0022] Furthermore, according to one embodiment of the present invention, a power allocation algorithm is designed based on the characteristics of the controlled new energy source, including: A power allocation algorithm is used to design the power limits and coefficient allocation between the new energy controlled object and the reactive power compensation device.

[0023] Furthermore, according to one embodiment of the present invention, the allocation of active and reactive power according to the allocation algorithm includes: The deviation between the setpoint and the controlled value is averaged. In this embodiment, the setpoint refers to the total active and reactive power setpoint received by the controller, the controlled value refers to the total active and reactive power sampled value at the grid connection point, and the deviation value refers to the difference between the current setpoint and the controlled value, which is used as the input of the subsequent controller.

[0024] The initial allocation margin is limited based on the capacity of the currently controlled object; The redundant deviation values ​​allocated in the first round are summed up as the deviation values ​​for the next round. Based on this, the deviation allocation is carried out in the next round until the difference between the total set value and the controlled value is less than a certain threshold. This process is the cyclic filling allocation method described below.

[0025] According to the above-described scheme of the present invention, the present invention uses the active-frequency relationship and the reactive-voltage relationship to simulate the frequency and voltage feedback of the grid connection point, and uses the power factor calculation formula to convert the sampled total active signal and total reactive signal into power factor sampled values ​​for feedback. The integrated controller includes an active power controller, a reactive power controller, and corresponding parameter inheritance. The active power controller and reactive power controller periodically receive commands and regulate adjustment time, employing frequency droop control. A PI controller is added to the existing active power controller design to increase its adjustability. Step response of the active power setpoint is controlled by adjusting parameters such as limiting and ramp signals. Control signals are limited by feedback from an enable flag. A ramp signal is added using two-stage steps and nonlinearity to prevent sudden changes in renewable energy. The characteristics of the controlled renewable energy source are constructed using an adjustable parameter transfer function. Simulation monitoring and regulation are performed by combining these modules.

[0026] According to the above-described scheme of this invention, the present invention addresses the shortcomings of uncontrollable simulation models and modules required in engineering applications and the intermittent jumps in renewable energy sources. It models the renewable energy controlled objects using a PSCAD simulation model, including the design of an active power controller, a reactive power controller, the transfer function design of the renewable energy controlled objects, and the debugging and monitoring of the integrated controller. Specifically, it includes the design of multiple renewable energy controlled object allocation algorithms and allocation methods. Specifically, it achieves slope control by adding parameter adjustment to the nonlinear link of the active power controller, increases the adjustability to meet engineering requirements by adding a PI controller, and controls the on / off state of signals through feedback of the enable flag. The reactive power controller is designed using a single-path control method sharing multiple flags. The allocation algorithm is based on an average allocation method supplemented by fine-tuning of renewable energy generation allocation. Based on the capacity limitations of renewable energy, it uses a "cyclic filling allocation method" for multi-round allocation to adjust coefficients. The "cyclic filling allocation method" adds multiple rounds of cycles to the original method, redistributing the total excess amount from the previous round in the next round.

[0027] Furthermore, to achieve the above objectives, the present invention also provides an engineering controller design system based on PSCAD, comprising: The active power controller simulation model design module is used to design a simulation model of the active power controller for new energy control. The reactive power controller simulation model design module is used to design a reactive power controller simulation model for new energy control. The integrated controller simulation model construction module combines the active power controller simulation model and the reactive power controller simulation model to construct an integrated controller simulation model. The transfer function simulation model design module is used to design the transfer function simulation model of the new energy controlled object. The power allocation algorithm design module designs power allocation algorithms based on the characteristics of the controlled new energy objects. The active and reactive power allocation module combines the integrated controller simulation model with the transfer function simulation model of the new energy controlled object, and allocates active and reactive power according to the allocation algorithm.

[0028] Furthermore, according to one embodiment of the present invention, a simulation model of an active power controller for new energy control is designed, including: The main control signal circuit is enabled by three flag bits; The simulation uses a timer mode to periodically issue commands and dynamically adjust the time period, with a period of 20 seconds. Commands are issued every 5 seconds, and the adjustment process takes place every 15 seconds. The periodic command flag bit enables the active power setting. The ratio droop control is used to compensate for the frequency-power response, which is frequency-power compensation. The periodic signal is used to adjust the active power control signal through a PI controller; An active signal is fed into the upper and lower limit limiting link controller as a single-step limiting signal. During the adjustment process, the parameters of the limiting link are adjusted to control the response slope of the continuous ramp signal. The regulation signal and the dead zone signal are used for feedback and output; By combining the droop active signal and the sampling signal with the droop dead zone flag, the purpose of over-limit adjustment is achieved, thereby enhancing the stability of the controller adjustment.

[0029] Furthermore, according to one embodiment of the present invention, a simulation model of a reactive power controller for new energy control is designed, including: It adopts a three-way flag-position single-loop independent control and enable reactive power controller; including power factor and reactive power conversion, voltage and reactive power conversion; Analogous to an active power controller, it uses a combination of flag bits and timers to periodically receive reactive power, voltage, and power factor signals; The control margin and stability of the controller are increased by adjusting the error between the set value and the sampled value. At the same time, the control signal is turned on or off by judging whether the difference between the error value and the sampled value exceeds the limit. For the conversion between voltage and reactive power, the voltage setpoint and reactive power setpoint are calculated based on the grid connection point current and the differential compensation method; for the conversion between power factor and reactive power, the power factor setpoint and reactive power setpoint are calculated based on the power factor calculation formula.

[0030] Furthermore, according to one embodiment of the present invention, a simulation model of the transfer function of a new energy controlled object is designed, including: The transfer function is designed based on the input-output characteristics of the new energy controlled object. A typical second-order response is used to model the input-output structure with time delay, forming a transfer function simulation model.

[0031] Furthermore, according to one embodiment of the present invention, a power allocation algorithm is designed based on the characteristics of the controlled new energy source, including: A power allocation algorithm is adopted to design the power limitation and coefficient allocation of the new energy controlled object and the reactive power compensation device, taking into account the input and output response of the new energy controlled object.

[0032] Furthermore, according to one embodiment of the present invention, the allocation of active and reactive power according to the allocation algorithm includes: The values ​​are distributed evenly based on the deviation between the setpoint and the controlled value. The initial allocation margin is limited based on the capacity of the currently controlled object; The initial redundant deviation values ​​are summed to form the deviation value for the next round. Based on this, the deviation is allocated in the next round until the difference between the total set value and the controlled value is less than a certain threshold.

[0033] According to the above-described scheme of the present invention, the present invention uses the active-frequency relationship and the reactive-voltage relationship to simulate the frequency and voltage feedback of the grid connection point, and uses the power factor calculation formula to convert the sampled total active signal and total reactive signal into power factor sampled values ​​for feedback. The integrated controller includes an active power controller, a reactive power controller, and corresponding parameter inheritance. The active power controller and reactive power controller periodically receive commands and regulate adjustment time, employing frequency droop control. A PI controller is added to the existing active power controller design to increase its adjustability. Step response of the active power setpoint is controlled by adjusting parameters such as limiting and ramp signals. Control signals are limited by feedback from an enable flag. A ramp signal is added using two-stage steps and nonlinearity to prevent sudden changes in renewable energy. The characteristics of the controlled renewable energy source are constructed using an adjustable parameter transfer function. Simulation monitoring and regulation are performed by combining these modules.

[0034] According to the above-described scheme of this invention, the present invention addresses the shortcomings of uncontrollable simulation models and modules required in engineering applications and the intermittent jumps in renewable energy sources. It models the renewable energy controlled objects using a PSCAD simulation model, including the design of an active power controller, a reactive power controller, the transfer function design of the renewable energy controlled objects, and the debugging and monitoring of the integrated controller. Specifically, it includes the design of multiple renewable energy controlled object allocation algorithms and allocation methods. Specifically, it achieves slope control by adding parameter adjustment to the nonlinear link of the active power controller, increases the adjustability to meet engineering requirements by adding a PI controller, and controls the on / off state of signals through feedback of the enable flag. The reactive power controller is designed using a single-path control method sharing multiple flags. The allocation algorithm is based on an average allocation method supplemented by fine-tuning of renewable energy generation allocation. Based on the capacity limitations of renewable energy, it uses a "cyclic filling allocation method" for multi-round allocation to adjust coefficients. The "cyclic filling allocation method" adds multiple rounds of cycles to the original method, redistributing the total excess amount from the previous round in the next round.

[0035] Furthermore, to achieve the above objectives, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the PSCAD-based engineering controller design method as described above.

[0036] Furthermore, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the PSCAD-based engineering controller design method as described above.

[0037] Those skilled in the art will recognize that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented using electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0038] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and equipment can be referred to the corresponding process in the foregoing method implementation, and will not be repeated here.

[0039] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0040] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the objectives of the embodiments of the present invention, depending on actual needs.

[0041] In addition, the functional modules in the embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.

[0042] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the sending / receiving methods of various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0043] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in this application.

[0044] It should be understood that the sequence number of each step in the invention and its embodiments does not absolutely imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

Claims

1. A PSCAD-based engineering controller design method, characterized in that, include: Design a simulation model for the active power controller of new energy source control; Design a simulation model of a reactive power controller for new energy control; The active power controller simulation model and the reactive power controller simulation model are combined to construct a comprehensive controller simulation model; Design a simulation model of the transfer function of a new energy controlled object; Design a power allocation algorithm based on the characteristics of the controlled new energy source; The integrated controller simulation model is combined with the transfer function simulation model of the new energy controlled object, and active and reactive power are allocated according to the allocation algorithm.

2. The engineering controller design method based on PSCAD according to claim 1, characterized in that, The simulation model of the active power controller for new energy control includes: The main control signal circuit is enabled by three flag bits; The simulation uses a timer mode to periodically issue commands and dynamically adjust the time period, with a period of 20 seconds. Commands are issued every 5 seconds, and the adjustment process takes place every 15 seconds. The periodic command flag bit enables the active power setting. The ratio droop control is used to compensate for the frequency-power response, which is frequency-power compensation. The periodic signal is used to adjust the active power control signal through a PI controller; An active signal is fed into the upper and lower limit limiting link controller as a single-step limiting signal. During the adjustment process, the parameters of the limiting link are adjusted to control the response slope of the continuous ramp signal. The regulation flag and the power dead zone flag are connected in series in the main circuit of the controller to limit the on / off of the regulation signal of the main circuit of the controller, and the signal is fed back to the output level of the model through the output point. Based on the difference between the drooping active power signal and the sampled signal, and after comparing it with the power dead zone limit, a flag bit designed through the sign function is used to achieve the purpose of disconnecting the regulation signal when the line is crossed, thus forming a simulation model of the new energy active power controller.

3. The engineering controller design method based on PSCAD according to claim 1, characterized in that, The simulation model of the reactive power controller for new energy control includes: The reactive power regulation flag, power factor regulation flag, and voltage regulation flag share a single main control loop, and the three functions of the reactive power controller are segmented and multiplexed. Function 1 directly uses the reactive power signal as the control signal for reactive power regulation; Function 2 converts the power factor signal into a reactive power signal as the control signal; and Function 3 converts the voltage signal into a reactive power signal as the control signal. Analogous to an active power controller, it uses a combination of flag bits and timers to periodically receive reactive power, voltage, and power factor signals; The control margin and stability of the controller are increased by adjusting the error between the set value and the sampled value. At the same time, the control signal is turned on or off by judging whether the difference between the error value and the sampled value exceeds the limit. For the conversion between voltage and reactive power, the voltage setpoint and reactive power setpoint are calculated based on the grid connection point current and the differential compensation method; for the conversion between power factor and reactive power, the power factor setpoint and reactive power setpoint are calculated based on the power factor calculation formula.

4. The engineering controller design method based on PSCAD according to claim 1, characterized in that, The simulation model of the transfer function of the new energy controlled object includes: The transfer function is designed based on the input-output characteristics of the new energy controlled object. A typical second-order response is used to model the input-output structure with time delay, forming a transfer function simulation model.

5. The engineering controller design method based on PSCAD according to claim 1, characterized in that, The power allocation algorithm designed based on the characteristics of the controlled new energy source includes: A power allocation algorithm is used to design the power limits and coefficient allocation between the new energy controlled object and the reactive power compensation device.

6. The engineering controller design method based on PSCAD according to any one of claims 1-5, characterized in that, The allocation of active and reactive power according to the allocation algorithm includes: The values ​​are distributed evenly based on the deviation between the setpoint and the controlled value. The initial allocation margin is limited based on the capacity of the currently controlled object; The initial redundant deviation values ​​are summed to form the deviation value for the next round. Based on this, the deviation is allocated in the next round until the difference between the total set value and the controlled value is less than a certain threshold.

7. A PSCAD-based engineering controller design system, characterized in that, include: The active power controller simulation model design module is used to design a simulation model of the active power controller for new energy control. The reactive power controller simulation model design module is used to design a reactive power controller simulation model for new energy control. The integrated controller simulation model construction module combines the active power controller simulation model and the reactive power controller simulation model to construct an integrated controller simulation model. The transfer function simulation model design module is used to design the transfer function simulation model of the new energy controlled object. The power allocation algorithm design module designs power allocation algorithms based on the characteristics of the controlled new energy objects. The active and reactive power allocation module combines the integrated controller simulation model with the transfer function simulation model of the new energy controlled object, and allocates active and reactive power according to the allocation algorithm.

8. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the PSCAD-based engineering controller design method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the PSCAD-based engineering controller design method as described in any one of claims 1-6.