Control modeling method, device, computer equipment and storage medium for variable frequency power supply
By establishing a comprehensive control model of variable frequency power supply and anti-saturation data processing mechanism, the problem of controller output saturation is solved, the stability and efficiency of the system are improved, and it is suitable for high-demand industrial applications.
Patent Information
- Application Number
- CN202411113923.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-14
AI Technical Summary
Traditional frequency converter power control methods can easily lead to saturation of the controller output under extreme operating conditions, resulting in degradation of system performance. Existing solutions cannot effectively solve this problem.
By obtaining the physical characteristic data of the variable frequency power supply and its control object, a preliminary mathematical model is established, and a comprehensive control algorithm is constructed to generate an anti-saturation data processing mechanism, which is integrated into the initial control model to form the final control model, and PI and PID controllers are used to , integrates flux, torque, current and speed control rings, combines the integrator disable and compensation mechanism to monitor and adjust control signals in real time to avoid saturation.
It effectively avoids the performance of the control system under extreme conditions, improves control accuracy and stability, is suitable for high-demand industrial applications, and significantly improves production efficiency and equipment safety.
Smart Images

Figure CN118642353B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a control modeling method, device, computer equipment and storage medium for a variable frequency power supply. Background Art
[0002] Variable frequency power supplies play an important role in modern industrial control systems and are widely used in applications where motor speed and torque are regulated. These power supplies achieve precise control of motors by changing the output frequency and voltage, thereby improving the efficiency and flexibility of the production process. However, with the expansion of application areas and the increase in complexity, traditional variable frequency power supply control methods have exposed some shortcomings under certain extreme conditions. In particular, under high dynamic response requirements and complex load conditions, the output of the controller is prone to saturation, resulting in a decrease in system performance.
[0003] Controller output saturation usually occurs when the load changes suddenly or the command signal changes dramatically. The saturation state will not only cause a decrease in control accuracy, but may also cause system oscillation and instability. This phenomenon is unacceptable for industrial control systems that require high precision and high stability, especially in some high-demand application scenarios such as precision manufacturing, robot control, and the operation of large mechanical equipment. Existing variable frequency power supply control methods often use simple limiting measures when dealing with saturation problems. Although this can prevent output overload to a certain extent, it cannot fundamentally solve the performance degradation caused by saturation.
[0004] There is currently no effective solution to the above-mentioned performance degradation problem caused by controller output saturation. Summary of the invention
[0005] The main purpose of the present invention is to provide a control modeling method, device, computer equipment and storage medium for a variable frequency power supply to solve the problem that the output of the controller of the traditional variable frequency power supply control method easily reaches a saturation state under some extreme working conditions, resulting in a decrease in system performance.
[0006] To achieve the above-mentioned purpose, the present invention provides a control modeling method for a variable frequency power supply, comprising the following steps: acquiring physical characteristic data of the variable frequency power supply and the control object of the variable frequency power supply, and establishing a preliminary mathematical model of the variable frequency power supply based on the physical characteristic data; constructing a comprehensive control algorithm for the preliminary mathematical model of the variable frequency power supply to obtain the initial control model of the variable frequency power supply; generating an anti-saturation data processing mechanism of the variable frequency power supply based on the comprehensive control algorithm, and integrating the anti-saturation data processing mechanism into the initial control model of the variable frequency power supply to obtain the final control model of the variable frequency power supply.
[0007] Further, the control object includes a motor; a comprehensive control algorithm is constructed for the preliminary mathematical model of the variable frequency power supply to obtain an initial control model of the variable frequency power supply, including: constructing a flux control loop for controlling the d-axis current of the motor and a torque control loop for the q-axis current; integrating a PI controller into the flux control loop and the torque control loop to obtain a current control loop; constructing a speed control loop for controlling the speed of the motor; integrating a PID controller into the speed control loop to obtain a speed control loop;
[0008] The current control loop and the speed control loop are integrated to obtain an initial control model of the variable frequency power supply.
[0009] Furthermore, an anti-saturation data processing algorithm for the variable frequency power supply is generated based on the comprehensive control algorithm, including: generating a trigger condition for the anti-saturation data processing algorithm, wherein the trigger condition includes: an output control value of the PI controller or the PID controller is equal to or exceeds a preset saturation threshold; generating a disabling mechanism for the integrators in the PI controller and the PID controller; and generating the anti-saturation data processing algorithm in combination with the trigger condition and the disabling mechanism for the integrator, wherein the anti-saturation data processing algorithm is used to determine a target controller that triggers the trigger condition and disable the integrator of the target controller when detecting that the trigger condition is triggered.
[0010] Furthermore, an anti-saturation data processing algorithm for the variable frequency power supply is generated based on the comprehensive control algorithm, including: generating a trigger condition for the anti-saturation data processing algorithm, wherein the trigger condition includes: an output control value of the PI controller or the PID controller is equal to or exceeds a preset saturation threshold; generating a compensation mechanism for the output control amount in the PI controller and the PID controller; generating the anti-saturation data processing algorithm in combination with the trigger condition and the compensation mechanism for the output control amount, wherein the anti-saturation data processing algorithm is used to determine a target controller that triggers the trigger condition when detecting that the trigger condition is triggered, and perform compensation processing on the output control amount of the target controller.
[0011] Furthermore, the compensation mechanism is: obtaining the output control quantity of the target controller that triggers the trigger condition; subtracting a preset ideal control quantity from the output control quantity to obtain an initial compensation quantity; calculating the derivative of the initial compensation quantity with respect to time to obtain a basic compensation quantity; adjusting the basic compensation quantity using an adjustment coefficient determined by simulation adjustment to obtain a final compensation quantity; and adjusting the output control quantity of the target controller using the final compensation quantity.
[0012] Furthermore, after obtaining the initial control model of the variable frequency power supply, the control modeling method also includes: performing joint simulation processing on the current control loop and the speed control loop in the initial control model of the variable frequency power supply in MATLAB and Simulink to obtain control response data of the initial control model; evaluating and analyzing the response data to obtain current tracking performance evaluation data and speed control accuracy evaluation data; determining the parameter optimization value of the PI controller based on the current tracking performance evaluation data; using the parameter optimization value of the PI controller to adjust the parameters of the PI controller in the current control loop; determining the parameter optimization value of the PID controller based on the speed control accuracy evaluation data; and using the parameter optimization value of the PID controller to adjust the parameters of the PID controller in the speed control loop.
[0013] Furthermore, after obtaining the final control model of the variable frequency power supply, the control modeling method also includes: performing joint simulation processing on the current control loop and the speed control loop in the final control model of the variable frequency power supply in MATLAB and Simulink to obtain anti-saturation adjustment data of the initial control model; evaluating and analyzing the anti-saturation adjustment data to obtain anti-saturation performance evaluation data; determining the parameter optimization values of the compensation mechanism based on the anti-saturation performance evaluation data; and adjusting the parameters of the compensation mechanism using the parameter optimization values of the compensation mechanism.
[0014] The present invention also provides a control modeling device for a variable frequency power supply, comprising: an acquisition unit, used to acquire physical characteristic data of the variable frequency power supply and the control object of the variable frequency power supply, and establish a preliminary mathematical model of the variable frequency power supply based on the physical characteristic data; a construction unit, used to construct a comprehensive control algorithm for the preliminary mathematical model of the variable frequency power supply to obtain the initial control model of the variable frequency power supply; a generation unit, used to generate an anti-saturation data processing mechanism of the variable frequency power supply based on the comprehensive control algorithm, and integrate the anti-saturation data processing mechanism into the initial control model of the variable frequency power supply to obtain the final control model of the variable frequency power supply.
[0015] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0016] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0017] The present invention provides a control modeling method, device, computer equipment and storage medium for a variable frequency power supply, which solves the problem that the controller output of the variable frequency power supply is easily saturated under extreme working conditions through a systematic method, thereby ensuring the stability and efficiency of the system. First, a preliminary mathematical model is established by obtaining the physical characteristic data of the variable frequency power supply and its controlled object, such as input and output characteristics, electrical parameters and dynamic response of the controlled object. This model can accurately describe the behavior of the variable frequency power supply under different operating conditions, laying the foundation for the development of subsequent control strategies.
[0018] Next, based on the preliminary mathematical model, a comprehensive control algorithm is constructed. This algorithm comprehensively considers the dynamic performance of the variable frequency power supply and various operating conditions that may be encountered, including load mutations. The algorithm not only handles routine control tasks, but also predicts and responds to extreme situations, thereby avoiding the controller output from reaching the saturation point and ensuring smooth and efficient output. Finally, based on the comprehensive control algorithm, an anti-saturation data processing mechanism is further generated. This mechanism can monitor the output status in real time during the control process. Once a trend towards saturation is detected, the control signal is immediately adjusted to avoid the occurrence of output saturation. By integrating the anti-saturation data processing mechanism into the initial control model, a final control model is formed, which has higher adaptability and reliability.
[0019] In other words, this application can predict potential saturation risks and respond in advance through advanced anti-saturation data processing mechanisms, avoiding performance degradation of the control system under extreme conditions. In addition, the comprehensive control algorithm not only enhances the ability to handle normal changes, but also optimizes the response strategy for abnormal or extreme conditions, significantly improving the control accuracy and overall system stability. This control modeling method is suitable for a variety of high-demand industrial applications, and can significantly improve production efficiency and equipment safety, especially for precision manufacturing and high dynamic load occasions. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a schematic diagram of the steps of a control modeling method for a variable frequency power supply in one embodiment of the present invention;
[0021] Figure 2 It is a structural block diagram of a control modeling device for a variable frequency power supply in one embodiment of the present invention;
[0022] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.
[0023] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0025] Reference Figure 1 This embodiment also provides a control modeling method for a variable frequency power supply, comprising the following steps:
[0026] S1, obtaining physical characteristic data of a variable frequency power supply and a control object of the variable frequency power supply, and establishing a preliminary mathematical model of the variable frequency power supply based on the physical characteristic data.
[0027] S2, constructing a comprehensive control algorithm for the preliminary mathematical model of the variable frequency power supply to obtain an initial control model of the variable frequency power supply.
[0028] S3, generating an anti-saturation data processing mechanism of the variable frequency power supply based on the comprehensive control algorithm, and integrating the anti-saturation data processing mechanism into the initial control model of the variable frequency power supply to obtain a final control model of the variable frequency power supply.
[0029] That is, this embodiment solves the problem of the controller output of the variable frequency power supply being easily saturated under extreme working conditions through a systematic method, thereby ensuring the stability and efficiency of the system. First, a preliminary mathematical model is established by acquiring the physical characteristic data of the variable frequency power supply and its controlled object, such as input and output characteristics, electrical parameters, and dynamic response of the controlled object. This model can accurately describe the behavior of the variable frequency power supply under different operating conditions, laying the foundation for the development of subsequent control strategies.
[0030] Next, based on the preliminary mathematical model, a comprehensive control algorithm is constructed. This algorithm comprehensively considers the dynamic performance of the variable frequency power supply and various operating conditions that may be encountered, including load mutations. The algorithm not only handles routine control tasks, but also predicts and responds to extreme situations, thereby avoiding the controller output from reaching the saturation point and ensuring smooth and efficient output. Finally, based on the comprehensive control algorithm, an anti-saturation data processing mechanism is further generated. This mechanism can monitor the output status in real time during the control process. Once a trend towards saturation is detected, the control signal is immediately adjusted to avoid the occurrence of output saturation. By integrating the anti-saturation data processing mechanism into the initial control model, a final control model is formed, which has higher adaptability and reliability.
[0031] In other words, this application can predict potential saturation risks and respond in advance through advanced anti-saturation data processing mechanisms, avoiding performance degradation of the control system under extreme conditions. In addition, the comprehensive control algorithm not only enhances the ability to handle normal changes, but also optimizes the response strategy for abnormal or extreme conditions, significantly improving the control accuracy and overall system stability. This control modeling method is suitable for a variety of high-demand industrial applications, and can significantly improve production efficiency and equipment safety, especially for precision manufacturing and high dynamic load occasions.
[0032] In one example, the control object includes a motor. Specifically, a comprehensive control algorithm is constructed for the preliminary mathematical model of the variable frequency power supply to obtain the initial control model of the variable frequency power supply, including: constructing a flux control loop for controlling the d-axis current of the motor and a torque control loop for the q-axis current; integrating a PI controller into the flux control loop and the torque control loop to obtain a current control loop; constructing a speed control loop for controlling the speed of the motor; integrating a PID controller into the speed control loop to obtain a speed control loop; integrating the current control loop and the speed control loop to obtain the initial control model of the variable frequency power supply.
[0033] In this example, the control object of the variable frequency power supply is a motor, and the control model is constructed to achieve precise control of the motor. This control model is mainly implemented through two core control loops: current control loop and speed control loop. These control loops all use advanced control strategies to ensure the efficiency and stability of the motor operation.
[0034] First, the preliminary mathematical model for controlling the motor involves the control of flux and torque, which is achieved through the d-axis current and q-axis current. In motor control theory, the d-axis current is mainly responsible for controlling the flux of the motor, while the q-axis current is responsible for controlling the torque of the motor. In order to effectively control these two parameters, two control loops are constructed in the example: a flux control loop and a torque control loop. In both control loops, PI (proportional-integral) controllers are integrated. The PI controller is used to adjust the control deviation, improve the steady-state performance of the system, and eliminate steady-state errors. By applying the PI controller to the flux control loop and the torque control loop, precise control of the motor d-axis and q-axis currents can be achieved, thereby precisely controlling the flux and torque.
[0035] Next, in order to control the speed of the motor, a speed control loop was built. In this link, a PID (proportional-integral-differential) controller was used. The PID controller has an additional differential term compared to the PI controller, which can predict the future behavior of the system, enhance the dynamic performance of the control system, and enable the system to quickly reach and maintain the set value. By integrating the PID controller into the speed control loop, the speed of the motor can be effectively controlled, with fast response speed and strong anti-interference ability.
[0036] Finally, by integrating the current control loop and the speed control loop, the initial control model of the variable frequency power supply is formed. This integrated model makes the current and speed control not only independent of each other but also work together, thus providing an efficient, stable and fast-response way to control the motor, meeting the high requirements for motor control accuracy and reliability in modern industrial applications. The realization of this control model provides a powerful and efficient control solution for variable frequency power supply through a deep understanding of motor control and the application of advanced control technology.
[0037] In one example, an anti-saturation data processing algorithm for the variable frequency power supply is generated based on the comprehensive control algorithm, including: generating a trigger condition for the anti-saturation data processing algorithm, wherein the trigger condition includes: an output control value of the PI controller or the PID controller is equal to or exceeds a preset saturation threshold; generating a disabling mechanism for the integrators in the PI controller and the PID controller; and generating the anti-saturation data processing algorithm in combination with the trigger condition and the disabling mechanism for the integrator, wherein the anti-saturation data processing algorithm is used to determine a target controller that triggers the trigger condition and disable the integrator of the target controller when detecting that the trigger condition is triggered.
[0038] In this example, in order to effectively solve the problem of controller output saturation that may occur in the variable frequency power supply control system, an anti-saturation data processing algorithm is introduced. The algorithm is mainly based on the comprehensive control algorithm, and prevents and handles the saturation state by setting specific trigger conditions and integrator disable mechanism to ensure the stability and efficiency of the control system.
[0039] First, the trigger condition of the anti-saturation data processing algorithm is that the output control value of the PI controller or PID controller reaches or exceeds the preset saturation threshold. This saturation threshold is set according to the maximum output value that the controller may reach in actual applications. Its purpose is to take measures in advance when the controller output approaches the limit value to prevent the actual output from exceeding the range that the controller can safely handle, thereby avoiding system overload or instability.
[0040] Next, a disabling mechanism for the integrator of the PI controller and PID controller is introduced into the algorithm. In the control system, the integral action is used to eliminate the steady-state error and improve the steady-state performance of the system. However, when the controller output approaches or reaches the saturation threshold, the integral action may cause the system to overshoot and oscillate because the integrator accumulates past errors, which aggravates the instability of the output when the output approaches saturation. Therefore, when the trigger condition is detected to be triggered, that is, when the control value reaches or exceeds the saturation threshold, the algorithm temporarily disables the integrator function of the target controller.
[0041] Finally, the anti-saturation data processing algorithm works in conjunction with the trigger conditions and the integrator disabling mechanism described above. When the algorithm detects a trigger condition, it automatically identifies whether the output of the PI controller or the PID controller is approaching or has reached the saturation point, and then immediately disables the integrator of the corresponding controller. The purpose of this is to block the output from continuing to grow due to the integral action, thereby preventing the controller output from actually entering the saturation state, ensuring that the control system response will not lose control due to the saturation of the controller, and improving the response speed and stability of the system.
[0042] Through this approach, the control system of the variable frequency power supply can effectively avoid performance degradation and potential system risks caused by controller output saturation when facing extreme operating conditions, thereby achieving more reliable and efficient motor control.
[0043] Similarly, when the anti-saturation data processing algorithm detects that the controller output no longer triggers the set saturation threshold, that is, the controller output has fallen back from the possible saturation state to a safe range, the integrator's disablement will be revoked and its normal operation will be restored.
[0044] In another example, an anti-saturation data processing algorithm of the variable frequency power supply is generated based on the comprehensive control algorithm, including: generating a trigger condition for the anti-saturation data processing algorithm, wherein the trigger condition includes: an output control value of the PI controller or the PID controller is equal to or exceeds a preset saturation threshold; generating a compensation mechanism for the output control amount in the PI controller and the PID controller; generating the anti-saturation data processing algorithm in combination with the trigger condition and the compensation mechanism for the output control amount, wherein the anti-saturation data processing algorithm is used to determine a target controller that triggers the trigger condition when detecting that the trigger condition is triggered, and perform compensation processing on the output control amount of the target controller.
[0045] Similarly, in order to deal with this possible saturation state, the algorithm can also introduce a compensation mechanism for the output control quantity. When the trigger condition is activated, the algorithm will automatically detect and determine whether it is the PI controller or the PID controller that triggers the saturation warning. The algorithm will then compensate for the output of the controller. The core of the compensation mechanism is to adjust the output control value to reduce its possible negative impact on the system, such as by reducing the output power or adjusting the amplitude of the control signal to avoid the controller output completely reaching the saturation point.
[0046] In addition, the compensation process is not limited to simply reducing the output value, it also includes more refined adjustments to ensure that the system can still effectively respond to external commands and internal regulation needs even after the output is necessarily limited. In this way, the anti-saturation data processing algorithm not only protects the system from extreme output effects, but also maintains the optimal performance of system operation, ensuring efficient and stable control under various operating conditions.
[0047] Furthermore, the compensation mechanism is: obtaining the output control quantity of the target controller that triggers the trigger condition; subtracting a preset ideal control quantity from the output control quantity to obtain an initial compensation quantity; calculating the derivative of the initial compensation quantity with respect to time to obtain a basic compensation quantity; adjusting the basic compensation quantity using an adjustment coefficient determined by simulation adjustment to obtain a final compensation quantity; and adjusting the output control quantity of the target controller using the final compensation quantity.
[0048] In this further detailed compensation mechanism, the system aims to adjust the controller output of the variable frequency power supply to prevent output saturation and optimize overall performance. This process is achieved through a series of precise calculation and adjustment steps to ensure timely and effective intervention and adjustment when the controller approaches the saturation point.
[0049] First, when it is detected that the output control value of the PI controller or PID controller reaches or exceeds the preset saturation threshold, the compensation mechanism is triggered. The system first obtains the current output control amount of the target controller that triggers the trigger condition. This output control amount is the output level that the controller naturally reaches without any intervention. Next, the system compares this actual output control amount with the preset ideal control amount. The ideal control amount is the output value that the controller should reach without considering any external interference and internal limitations. By subtracting the actual output control amount from the ideal control amount, the initial compensation amount is obtained. This initial compensation amount represents the deviation between the current output and the ideal state.
[0050] In order to make the compensation more accurate, the derivative of this initial compensation with respect to time, that is, the rate of change of the compensation, is calculated next. This step helps to understand the dynamic characteristics of the change in the output control quantity, so as to better adjust the compensation strategy to adapt to the immediate needs of the system. Then, the system adjusts the basic compensation quantity by using the adjustment coefficient determined by the simulation adjustment. This adjustment coefficient is obtained based on the system performance simulation and debugging process, and is used to fine-tune the compensation quantity to ensure that the compensation strategy can prevent output saturation without excessively suppressing the controller's responsiveness. Finally, the adjusted final compensation amount is used to modify the output control quantity of the target controller. This means that the actual output will be adjusted according to the calculated final compensation amount to ensure that the output avoids saturation and maintains efficient operation of the system.
[0051] Through this series of precise and dynamic compensation steps, the control system can adjust itself in time when facing potential output saturation risks, thereby maintaining a stable and efficient operating state. This compensation mechanism not only improves the reliability of the system, but also optimizes the control performance, which is particularly important for high-demand industrial applications.
[0052] In one example, after obtaining the initial control model of the variable frequency power supply, the control modeling method also includes: performing joint simulation processing on the current control loop and the speed control loop in the initial control model of the variable frequency power supply in MATLAB and Simulink to obtain control response data of the initial control model; evaluating and analyzing the response data to obtain current tracking performance evaluation data and speed control accuracy evaluation data; determining the parameter optimization value of the PI controller based on the current tracking performance evaluation data; using the parameter optimization value of the PI controller to adjust the parameters of the PI controller in the current control loop; determining the parameter optimization value of the PID controller based on the speed control accuracy evaluation data; and using the parameter optimization value of the PID controller to adjust the parameters of the PID controller in the speed control loop.
[0053] In this example, simulation and parameter optimization of the initial control model of the variable frequency power supply through MATLAB and Simulink not only improved the performance of the current and speed control loops, but also provided a solid foundation for the subsequent development of anti-saturation data processing mechanisms. This is because simulation can accurately evaluate the performance of the controller under extreme conditions, including their response when approaching saturation. This evaluation is very important because it helps determine under what circumstances saturation may occur and how to prevent this by adjusting the controller parameters. From a practical operational perspective, it is crucial to ensure that the current control and speed control loops can operate effectively in an unsaturated state, because once the controller output is saturated, it may lead to system performance degradation and even damage to the motor and other system components. Therefore, maintaining optimal performance of each control loop within its operating range through precise parameter adjustment is the first step to prevent saturation.
[0054] Furthermore, these adjusted parameters and control strategies provide the necessary input for designing anti-windup data processing mechanisms. Anti-windup mechanisms will be able to predict possible saturation points based on these optimized control models and take actions before the controller approaches these points, such as adjusting the control signal or temporarily modifying the control parameters to avoid saturation. Such preventive measures are based on a deep understanding of the system's extreme performance, which is obtained through the aforementioned simulation and optimization process.
[0055] In summary, through these detailed analysis and adjustment steps, not only the instantaneous performance of the variable frequency power supply control system is improved, but also the foundation is laid for the implementation of effective anti-saturation strategies, thereby ensuring the stability and reliability of the entire system under various operating conditions.
[0056] In one example, after obtaining the final control model of the variable frequency power supply, the control modeling method also includes: performing joint simulation processing on the current control loop and the speed control loop in the final control model of the variable frequency power supply in MATLAB and Simulink to obtain anti-saturation adjustment data of the initial control model; evaluating and analyzing the anti-saturation adjustment data to obtain anti-saturation performance evaluation data; determining the parameter optimization value of the compensation mechanism based on the anti-saturation performance evaluation data; and adjusting the parameters of the compensation mechanism using the parameter optimization value of the compensation mechanism.
[0057] In this example, after developing the control model of the variable frequency power supply, further steps include advanced simulation using MATLAB and Simulink, especially the evaluation and optimization of the anti-saturation performance of the current control loop and speed control loop. This series of steps ensures that the control model is not only effective under normal operating conditions, but also remains stable under extreme conditions that may cause output saturation.
[0058] First, the purpose of the joint simulation process in MATLAB and Simulink is to simulate the behavior of the variable frequency power supply under the final control model. This includes a detailed examination of the performance of the current control loop and the speed control loop under various load and input conditions. Through this simulation, the so-called anti-saturation adjustment data can be generated, which shows how the system approaches or reaches saturation under the current control strategy and helps identify possible performance bottlenecks or deficiencies.
[0059] Next, these anti-windup adjustment data are evaluated and analyzed to obtain detailed information about the system's anti-windup performance. These performance evaluation data reflect the ability of the current control model to maintain output stability and efficiency under extreme conditions. The results of the evaluation point out specific areas that need improvement or optimization, such as control parameters that may need to be adjusted, or the intervention point and strength of the compensation mechanism.
[0060] Based on the anti-saturation performance evaluation data, the optimized values of the compensation mechanism parameters are further determined. These optimized values are intended to improve the compensation mechanism so that it intervenes more effectively when near-saturation conditions are detected, preventing system output saturation by adjusting control commands or dynamically modifying control parameters. Optimizing the parameters of the compensation mechanism is a delicate process, which usually requires finding the best compensation balance point while ensuring system responsiveness and stability.
[0061] Finally, according to the obtained parameter optimization values, the relevant parameters in the compensation mechanism are adjusted. These adjustments ensure that the compensation mechanism can effectively prevent output saturation in actual operation and improve the overall performance and reliability of the system. In this way, the control model of the variable frequency power supply is not only sound in theory, but also can adapt to various complex and extreme working conditions in practical applications, thereby ensuring the optimal operation state and life of the equipment.
[0062] Reference Figure 2 The embodiment of the present invention provides a control modeling device for a variable frequency power supply, comprising:
[0063] The acquisition unit 1 is used to acquire physical characteristic data of the variable frequency power supply and the control object of the variable frequency power supply, and establish a preliminary mathematical model of the variable frequency power supply based on the physical characteristic data.
[0064] The construction unit 2 is used to construct a comprehensive control algorithm for the preliminary mathematical model of the variable frequency power supply to obtain an initial control model of the variable frequency power supply.
[0065] The generating unit 3 is used to generate the anti-saturation data processing mechanism of the variable frequency power supply based on the comprehensive control algorithm, and integrate the anti-saturation data processing mechanism into the initial control model of the variable frequency power supply to obtain the final control model of the variable frequency power supply.
[0066] In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.
[0067] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0068] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.
[0069] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0070] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
[0071] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0072] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A control modeling method for variable frequency power supply, It is characterized in that The following steps are involved: Acquiring physical characteristic data of a variable frequency power supply and a control object of the variable frequency power supply, and establishing a preliminary mathematical model of the variable frequency power supply based on the physical characteristic data; Constructing a comprehensive control algorithm for the preliminary mathematical model of the variable frequency power supply to obtain an initial control model of the variable frequency power supply; generating an anti-saturation data processing mechanism of the variable frequency power supply based on the comprehensive control algorithm, and integrating the anti-saturation data processing mechanism into the initial control model of the variable frequency power supply to obtain a final control model of the variable frequency power supply; Wherein, the control object includes a motor; a comprehensive control algorithm is constructed for the preliminary mathematical model of the variable frequency power supply to obtain the initial control model of the variable frequency power supply, including: constructing a flux control loop for controlling the d-axis current of the motor and a torque control loop for the q-axis current; integrating a PI controller into the flux control loop and the torque control loop to obtain a current control loop; constructing a speed control loop for controlling the speed of the motor; integrating a PID controller into the speed control loop to obtain a speed control loop; integrating the current control loop and the speed control loop to obtain the initial control model of the variable frequency power supply; Wherein, generating the anti-saturation data processing algorithm of the variable frequency power supply based on the comprehensive control algorithm includes: generating a trigger condition of the anti-saturation data processing algorithm, wherein the trigger condition includes: the output control value of the PI controller or the PID controller is equal to or exceeds a preset saturation threshold; generating a compensation mechanism for the output control amount in the PI controller and the PID controller; generating the anti-saturation data processing algorithm in combination with the trigger condition and the compensation mechanism for the output control amount, wherein the anti-saturation data processing algorithm is used to determine the target controller that triggers the trigger condition when detecting that the trigger condition is triggered, and perform compensation processing on the output control amount of the target controller; Among them, the compensation mechanism is: obtaining the output control amount of the target controller that triggers the trigger condition; subtracting the preset ideal control amount from the output control amount to obtain an initial compensation amount; calculating the derivative of the initial compensation amount with respect to time to obtain a basic compensation amount; adjusting the basic compensation amount using the adjustment coefficient determined by simulation adjustment to obtain a final compensation amount; and adjusting the output control amount of the target controller using the final compensation amount.
2. The control modeling method according to claim 1, It is characterized in that After obtaining the initial control model of the variable frequency power supply, the control modeling method further includes: Performing joint simulation processing on the current control loop and the speed control loop in the initial control model of the variable frequency power supply in MATLAB and Simulink to obtain control response data of the initial control model; Evaluating and analyzing the response data to obtain current tracking performance evaluation data and speed control accuracy evaluation data; Determining parameter optimization values of the PI controller based on the current tracking performance evaluation data; Using the optimized parameter values of the PI controller, adjusting the parameters of the PI controller in the current control loop; Determining the parameter optimization value of the PID controller based on the speed control accuracy evaluation data; The parameters of the PID controller in the speed control loop are adjusted using the parameter optimization values of the PID controller.
3. The control modeling method according to claim 2, It is characterized in that After obtaining the final control model of the variable frequency power supply, the control modeling method further includes: Performing joint simulation processing on the current control loop and the speed control loop in the final control model of the variable frequency power supply in MATLAB and Simulink to obtain anti-saturation adjustment data of the initial control model; Evaluating and analyzing the anti-saturation adjustment data to obtain anti-saturation performance evaluation data; Determining the parameter optimization value of the compensation mechanism based on the anti-saturation performance evaluation data; The parameters of the compensation mechanism are adjusted using the optimized values of the parameters of the compensation mechanism.
4. A control modeling device for variable frequency power supply, It is characterized in that include: An acquisition unit, used for acquiring physical characteristic data of a variable frequency power supply and a control object of the variable frequency power supply, and establishing a preliminary mathematical model of the variable frequency power supply based on the physical characteristic data; A construction unit, used to construct a comprehensive control algorithm for the preliminary mathematical model of the variable frequency power supply to obtain an initial control model of the variable frequency power supply; A generating unit, configured to generate an anti-saturation data processing mechanism of the variable frequency power supply based on the comprehensive control algorithm, and integrate the anti-saturation data processing mechanism into an initial control model of the variable frequency power supply to obtain a final control model of the variable frequency power supply; Wherein, the control object includes a motor; a comprehensive control algorithm is constructed for the preliminary mathematical model of the variable frequency power supply to obtain the initial control model of the variable frequency power supply, including: constructing a flux control loop for controlling the d-axis current of the motor and a torque control loop for the q-axis current; integrating a PI controller into the flux control loop and the torque control loop to obtain a current control loop; constructing a speed control loop for controlling the speed of the motor; integrating a PID controller into the speed control loop to obtain a speed control loop; integrating the current control loop and the speed control loop to obtain the initial control model of the variable frequency power supply; Wherein, generating the anti-saturation data processing algorithm of the variable frequency power supply based on the comprehensive control algorithm includes: generating a trigger condition of the anti-saturation data processing algorithm, wherein the trigger condition includes: the output control value of the PI controller or the PID controller is equal to or exceeds a preset saturation threshold; generating a compensation mechanism for the output control amount in the PI controller and the PID controller; generating the anti-saturation data processing algorithm in combination with the trigger condition and the compensation mechanism for the output control amount, wherein the anti-saturation data processing algorithm is used to determine the target controller that triggers the trigger condition when detecting that the trigger condition is triggered, and perform compensation processing on the output control amount of the target controller; Among them, the compensation mechanism is: obtaining the output control amount of the target controller that triggers the trigger condition; subtracting the preset ideal control amount from the output control amount to obtain an initial compensation amount; calculating the derivative of the initial compensation amount with respect to time to obtain a basic compensation amount; adjusting the basic compensation amount using the adjustment coefficient determined by simulation adjustment to obtain a final compensation amount; and adjusting the output control amount of the target controller using the final compensation amount.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
