Speed loop control method and device, electronic equipment and computer readable storage medium
By using an anti-saturation integrator in the speed loop for control, the problem of low responsiveness of traditional speed loop control is solved and higher motor stability and torque output are achieved.
Patent Information
- Application Number
- CN202410691268.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-03
AI Technical Summary
The traditional speed loop control method has low responsiveness and affects the stability of the motor operation.
An anti-saturation integrator is used for control in the speed loop. The speed error and the preset proportional coefficient are obtained for proportional calculation, input to the integral link, and saturation judgment is made based on the current loop reference value to adjust the output value of the integral link, forming a closed loop of the integral link. Improve responsiveness.
It improves the responsiveness of the speed loop and the stability and torque of the motor operation, and avoids failures caused by saturation of the speed loop output.
Smart Images

Figure CN118589931A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power electronics technology, and in particular to a speed loop control method, device, electronic equipment and a computer-readable storage medium. Background Art
[0002] Compared with the permanent magnet synchronous motor vector algorithm, the stepper motor vector algorithm generally adopts a similar three-loop control method (i.e., position loop-speed loop-current loop). In the traditional control method, the speed loop generally adopts PI (Proportional-Integral) control, and only the integral link is limited. This control method is not convenient enough and will cause the speed loop to have low responsiveness, thereby affecting the stability of the motor operation. Summary of the invention
[0003] The main purpose of the present invention is to provide a speed loop control method, device, electronic device and computer-readable storage medium, aiming to solve the technical problem of how to improve the responsiveness of the speed loop to ensure the stable operation of the motor.
[0004] To achieve the above object, the present invention provides a speed loop control method for controlling a speed loop arranged between a position loop and a current loop, wherein the speed loop includes an anti-saturation integrator, and the speed loop control method includes the following steps:
[0005] Obtaining a speed error and a preset proportional coefficient of the speed loop, and determining a proportional operation result according to the speed error and the preset proportional coefficient;
[0006] Inputting the proportional operation result into the anti-saturation integrator to obtain an integral link output value;
[0007] Determine the current loop reference value according to the proportional operation result and the integral link output value;
[0008] Perform saturation judgment based on the current loop reference value to determine the current loop parameters;
[0009] The difference between the current loop reference value and the current loop parameter is input into the anti-saturation integrator to adjust the output value of the integral link.
[0010] Optionally, the step of obtaining the speed error of the speed loop includes:
[0011] Acquire a speed reference value and a speed actual value of the speed loop, wherein the speed reference value is an output value of the position loop, and the speed actual value is obtained by measuring a sensor;
[0012] The speed error is obtained by subtracting the speed actual value from the speed reference value.
[0013] Optionally, the step of determining a proportional operation result according to the speed error and the preset proportional coefficient comprises:
[0014] The speed error is multiplied by the preset proportionality coefficient to obtain the proportionality operation result.
[0015] Optionally, the anti-saturation integrator comprises: a summing integrator and a multiplier; the step of obtaining the output value of the integral link comprises:
[0016] Inputting the proportional operation result into the summing integrator to obtain an integral value;
[0017] Get the preset integral coefficient;
[0018] The preset integral coefficient and the integral value are input into the multiplier to obtain the integral link output value.
[0019] Optionally, the anti-saturation integrator further includes a gain block; the step of inputting the difference between the current loop reference value and the current loop parameter into the anti-saturation integrator to adjust the output value of the integral link includes:
[0020] Setting the gain of the gain block to a preset anti-saturation coefficient;
[0021] Inputting the difference between the current loop reference value and the current loop parameter into the gain block to obtain the gain value;
[0022] Inputting the gain value into the summing integrator to obtain a new integral value;
[0023] The new integral value and the preset integral coefficient are input into the multiplier to adjust the integral link output value.
[0024] Optionally, the step of determining the current loop reference value according to the proportional operation result and the integral link output value includes:
[0025] The proportional operation result is added to the integral link output value to obtain the current loop reference value.
[0026] Optionally, the speed loop further includes a limiter; and the step of performing saturation judgment based on the current loop reference value to determine the current loop parameters includes:
[0027] Inputting the current loop reference value into the limiter, comparing the current loop reference value with a preset limit threshold in the limiter to determine a current loop parameter;
[0028] When the current loop reference value is less than the preset limit threshold, using the current loop reference value as the current loop parameter;
[0029] In a case where the current loop reference value is greater than the preset limit threshold, the current loop reference value is subjected to extreme value limitation to obtain the current loop parameter.
[0030] In addition, to achieve the above object, the present invention also provides a speed loop control device, the device comprising:
[0031] A proportional operation module, the proportional operation module is used to obtain a speed error and a preset proportional coefficient of the speed loop, and determine a proportional operation result according to the speed error and the preset proportional coefficient;
[0032] An integral operation module, the integral operation module is used to input the proportional operation result into the anti-saturation integrator to obtain an integral link output value;
[0033] A summing module, the summing module is used to determine a current loop reference value according to the proportional operation result and the integral link output value;
[0034] A judgment module, the judgment module is used to perform saturation judgment based on the current loop reference value to determine the current loop parameters;
[0035] A feedback module is used to input the difference between the current loop reference value and the current loop parameter into the anti-saturation integrator to adjust the integral link output value.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides an electronic device, which includes: a memory, a processor, and a speed loop control program stored in the memory and executable on the processor, wherein the speed loop control program is configured to implement the steps of the speed loop control method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a speed loop control program is stored, and when the speed loop control program is executed by a processor, the steps of the speed loop control method described above are implemented.
[0038] The present application proposes a speed loop control method, device, electronic device and computer-readable storage medium. In the speed loop control method, the speed error and the preset proportional coefficient are first obtained, and then the speed error and the preset proportional coefficient are multiplied to obtain the proportional operation result. The proportional operation result is used as the input of the integral link, input into the anti-saturation integrator, and the integral operation is performed in the anti-saturation integrator, and then the integral link output value is output. The integral link output value and the proportional operation result are added to obtain the current loop reference value, and it is judged whether the current loop reference value reaches the saturation value to determine the current loop parameter. The difference between the current loop reference value and the current loop parameter is input into the anti-saturation integrator to form an integral link closed loop to adjust the integral link output value. The present application adopts an anti-saturation integrator in the integral link. When the output of the speed loop reaches the saturation value, the output value can be reduced by adjusting the parameters inside the anti-saturation integrator, so that the speed loop integral link can be easily adjusted by adjusting the anti-saturation coefficient, thereby improving the responsiveness of the speed loop and improving the stability and torque of the motor operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flow chart of a speed loop control method provided in one embodiment of the present application;
[0040] Figure 2 A signal flow chart of a speed loop control method provided by an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of the structure of a speed loop control device provided in one embodiment of the present application;
[0042] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application.
[0043] 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
[0044] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the embodiments of the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the embodiments of the present application.
[0045] It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0046] It should also be understood that the references to "one embodiment" or "some embodiments" described in the specification of the embodiments of the present application mean that one or more embodiments of the embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0047] The embodiment of the present invention provides a speed loop control method, combining Figure 1 and Figure 2 , Figure 1 This is a flow chart of a first embodiment of a speed loop control method of the present invention. Figure 2 A signal flow chart of a speed loop control method provided by an embodiment of the present invention.
[0048] In this embodiment, the speed loop method includes:
[0049] Step S10, obtaining a speed error and a preset proportional coefficient of the speed loop, and determining a proportional operation result according to the speed error and the preset proportional coefficient;
[0050] In this embodiment, PI control (Proportional-Integral Control) is adopted in the speed loop control, which includes a proportional link and an integral link.
[0051] In the proportional link, in order to obtain the proportional operation result Vkp, the speed error Verr and the preset proportional coefficient Kp need to be multiplied, the purpose is to amplify or suppress the speed error Verr. The specific method can be: select a multiplier, since Vkp = Verr*Kp, where Verr is the independent variable, Vkp is the dependent variable, and Kp is the coefficient. Among the three values, only one needs to be input into the multiplier as an input value, that is, the speed error Verr. Therefore, the multiplier can be a linear multiplier. Set the coefficient Kp inside the multiplier, and then input the speed error Verr to the input end of the multiplier. The multiplier can output the proportional operation result Vkp after internal calculation.
[0052] Step S20, inputting the proportional operation result into the anti-windup integrator to obtain an integral link output value;
[0053] In this embodiment, the speed loop is a link in the three-loop control of the motor, and the integral link in the speed loop is an important part of the speed loop. In the integral link, the error signal is integrated, and the output result of the integral link represents the accumulated error amount. The function of the integral link is to gradually reduce the error and eliminate the static deviation of the system. Because the output of the proportional link is actually the error signal, the input of the integral link is the output of the proportional link. The specific operation of this embodiment is: input the proportional operation result Vkp to the anti-saturation integrator, integrate the proportional operation result Vkp through the anti-saturation integrator, and then output the integral link output value Vki from the output end of the anti-saturation integrator. Among them, the anti-saturation integrator is an integrator with anti-saturation capability. Compared with the general integrator, it has an anti-saturation coefficient and can better adjust the integral link.
[0054] Step S30, determining a current loop reference value IS according to the proportional operation result and the integral link output value;
[0055] In this embodiment, the output of the speed loop is the sum of the proportional link and the integral link, and the initial output of the speed loop is the current loop reference value IS, where IS = Vkp + Vki. The speed loop of the motor is an important part of the motor control system. Its function is to control the speed of the motor and realize precise control and regulation of the motor movement.
[0056] Step S40, performing saturation judgment based on the current loop reference value to determine the current loop parameters;
[0057] In this embodiment, during the operation of the motor, if the output value of the speed loop exceeds the limit value of the motor or controller, that is, the output value of the speed loop is oversaturated, it may cause failures or damage such as motor overload and overheating, and may also affect the stability and reliability of the control system, and even cause danger to the operator. Therefore, in order to protect the safe operation of the motor and the control system, it is necessary to perform a saturation judgment on the initial output of the speed loop, which is the current loop reference value. When the current loop reference value is oversaturated, it is necessary to limit the current loop reference value to obtain the current loop parameter Iref.
[0058] Step S50: inputting the difference between the current loop reference value and the current loop parameter into the anti-saturation integrator to adjust the integral link output value.
[0059] In this embodiment, in order to better improve the stability of the motor operation, in addition to limiting the initial output of the speed loop, the speed loop control method of this embodiment also inputs the difference between the current loop reference value IS and the current loop parameter Iref into the anti-saturation integrator, so that the integral link forms a closed loop, wherein the difference between the current loop reference value IS and the current loop parameter Iref is the current loop reference value IS minus the current loop parameter Iref. When the extreme value of the current loop reference value IS is limited, the current loop reference value IS is reduced through the closed loop, reducing the pressure that requires extreme value limitation.
[0060] The present embodiment provides a speed loop control method, which adopts PI control and includes a proportional link and an integral link. First, the speed error Verr and the preset proportional coefficient Kp are obtained, and then the speed error Verr and the preset proportional coefficient Kp are multiplied to obtain the proportional operation result Vkp, and the proportional link is completed. The output of the proportional link is used as the input of the integral link, input to the anti-saturation integrator, and the integral operation is performed in the anti-saturation integrator, and then the integral operation result, that is, the integral link output value Vki, is output, and the integral link is completed. The integral link output value Vki and the proportional operation result Vkp are added to obtain the current loop reference value IS, and it is judged whether the current loop reference value IS is saturated to determine the current loop parameter Iref. The difference between the current loop reference value IS and the current loop parameter Iref is input into the anti-saturation integrator to form an integral link closed loop to adjust the integral link output value Vki. The anti-saturation integrator used in this embodiment has more parameters than the integrator used in the relevant scheme. By adjusting these parameters, the speed loop integral link can be adjusted more conveniently. Appropriate parameters can improve the responsiveness of the speed loop and improve the stability and torque of the motor operation.
[0061] In some feasible embodiments, the above step S10 may include:
[0062] Step S11, obtaining a speed reference value and a speed actual value of the speed loop, wherein the speed reference value is an output value of the position loop, and the speed actual value is obtained by measuring a sensor;
[0063] Step S12: subtract the actual speed value from the speed reference value to obtain the speed error.
[0064] In this embodiment, the speed error Verr of the motor speed loop is obtained by the difference between the speed reference value and the actual speed value. Specifically, speed error Verr = speed reference value - actual speed value. In the speed loop, the desired speed reference value must be determined first, and then the actual measured current speed, i.e., the actual speed value, is obtained through a sensor or encoder or other device. The speed error Verr is obtained by subtracting these two values. The speed error Verr represents the difference between the actual speed and the desired speed, and is an important indicator used by the control system for adjustment.
[0065] In some feasible embodiments, after the above step S12, the speed loop control method may further include:
[0066] Step S13, multiplying the speed error by the preset proportional coefficient to obtain the proportional operation result.
[0067] In this embodiment, the proportional operation result Vkp is the output value of the proportional link of the speed loop, which is calculated based on the speed error Verr and the proportional gain coefficient. Specifically, the proportional operation result Vkp=speed error Verr*preset proportional coefficient Kp.
[0068] In the speed loop control, when the speed error Verr is large, the proportional operation result Vkp will also increase accordingly; when the error decreases, the proportional operation result Vkp will also decrease accordingly. By continuously adjusting the proportional gain coefficient, the proportional operation result Vkp can more accurately reflect the changes in the speed error Verr, thereby achieving precise control of the motor speed.
[0069] In some feasible embodiments, the anti-saturation integrator includes: a summing integrator and a multiplier; the above step S20 may include:
[0070] Step S21, inputting the proportional operation result into the summing integrator to obtain an integral value;
[0071] In this embodiment, the anti-saturation integrator includes a summing integrator and a multiplier, wherein the summing integrator is composed of an adder and an integrator, and the output of the adder is connected to the input of the multiplier. When the speed loop is just connected to the input signal, there is no feedback signal on the closed loop of the integral link, that is, no difference between the current loop reference value IS and the current loop parameter Iref is input to the anti-saturation integrator, and only the proportional operation result Vkp is input to the anti-saturation integrator. The summing integrator in the anti-saturation integrator integrates the proportional operation result Vkp to obtain an integral value.
[0072] Step S22, obtaining a preset integral coefficient;
[0073] Step S23, inputting the preset integral coefficient and the integral value into the multiplier to obtain the integral link output value.
[0074] In this embodiment, the integral link output value Vki is the product of the preset integral coefficient Ki and the integral value output by the summing integrator. In the integral link of the speed loop, the purpose of multiplying the integral value by the preset integral coefficient Ki is to adjust the sensitivity and response speed of the integral control. A larger preset integral coefficient Ki will make the impact of the integral control stronger and can eliminate the steady-state error more quickly, but it may also cause oscillation or instability of the system. A smaller preset integral coefficient Ki will make the impact of the integral control relatively weaker, the system response will be slower, but it will have better stability. By adjusting the preset integral coefficient Ki, the elimination speed of the steady-state error and the stability of the system can be balanced in the speed loop to achieve the desired control effect. The selection of this coefficient requires experiments and debugging in combination with specific application requirements and system characteristics to obtain the best control performance.
[0075] In some feasible embodiments, the anti-saturation integrator further includes a gain block; the above step S50 may include:
[0076] Step S51, setting the gain of the gain block to a preset anti-saturation coefficient;
[0077] In this embodiment, the anti-saturation integrator further includes a gain block, the output end of which is connected to the input end of the adder in the anti-saturation integrator. In addition to the preset proportional coefficient Kp and the preset integral coefficient Ki, this embodiment also introduces a preset anti-saturation coefficient KC, which is set in the gain block to introduce an integral link.
[0078] Step S52, inputting the difference between the current loop reference value IS and the current loop parameter into the gain block to obtain the gain value;
[0079] In this embodiment, when the current loop reference value IS does not reach the saturation value, the value of the current loop parameter Iref is equal to the current loop reference value IS, so the difference between the two is 0, and the difference is input into the gain block, so that the output of the gain block is 0. That is, when the current loop reference value IS is not saturated, the preset anti-saturation coefficient KC does not work. When the current loop reference value IS is oversaturated, the difference obtained by subtracting the current loop coefficient from the current loop reference value IS is not 0. At this time, the difference is input into the gain block and multiplied by the preset anti-saturation coefficient KC to obtain the gain value Vkc.
[0080] Step S53, inputting the gain value into the summing integrator to obtain a new integral value;
[0081] In this embodiment, when the current loop has not yet output the current loop parameter Iref or the current loop reference value IS is not saturated, only the proportional operation result Vkp is input into the summing integrator, and the summing integrator outputs the integral value after integrating the proportional operation result Vkp. When the current loop reference value IS is oversaturated, the gain value Vkc output by the gain block is input into the adder in the summing integrator, added to the proportional operation result Vkp, and the sum of the two is input into the integrator in the summing integrator, which integrates the sum of the two to obtain a new integral value.
[0082] Step S54, inputting the new integral value and the preset integral coefficient into the multiplier to adjust the output value of the integral link.
[0083] In this embodiment, the new integral value and the preset integral coefficient Ki are inputted into the multiplier in the anti-saturation integrator to obtain a new integral link output value Vki. By adjusting the preset anti-saturation coefficient KC, the gain value Vkc, the integral value, and the integral link output value Vki can be adjusted in sequence, and the integral link output value Vki can finally adjust the current loop parameter Iref. It should be added that the preset integral coefficient Ki can also be set internally by the integrator and does not necessarily require external input.
[0084] In some feasible embodiments, the above step S30 may include:
[0085] Step S31, adding the proportional operation result to the integral link output value to obtain the current loop reference value.
[0086] In this embodiment, the output value of the speed loop is the sum of the output value of the proportional link and the output value Vki of the integral link, that is, the current loop reference value IS = proportional operation result Vkp + integral link output value Vki. The proportional operation result Vkp and the integral link output value Vki are input into the adder, and the two are added through the logic circuit inside the adder, and then the current loop reference value IS is output.
[0087] In some feasible embodiments, the speed loop further includes a limiter; the above step S40 may include:
[0088] Step S41, inputting the current loop reference value into the limiter, and comparing the current loop reference value with a preset limit threshold in the limiter to determine the current loop parameter;
[0089] When the current loop reference value is less than the preset limit threshold, using the current loop reference value as the current loop parameter;
[0090] In a case where the current loop reference value is greater than the preset limit threshold, the current loop reference value is subjected to extreme value limitation to obtain the current loop parameter.
[0091] In this embodiment, the limiter can limit the output range by setting upper and lower limits. The limiter sets the maximum value smaller than the output value as the upper limit, and sets the minimum value larger than the output value as the lower limit. In this way, it can be ensured that the output value does not exceed the specified range.
[0092] In this embodiment, it is necessary to set the upper limit of the limiter, which is the maximum current that the motor can withstand. When the output value of the speed loop is greater than the upper limit, the output value of the speed loop after passing through the limiter is the upper limit value, and will not exceed the upper limit value. The limiting capacity of the limiter protects the safe operation of the motor. When the output value of the speed loop does not reach the upper limit, the limiter does not work. The current loop reference value IS is the output of the speed loop that has not been limited by the extreme value, and its output value may be greater than the maximum current that the motor can withstand, that is, oversaturation. Therefore, it is necessary to limit the current loop reference value IS to the extreme value, and set the upper limit of the limiter to the maximum current Imax that the motor can withstand. Therefore, the limiting threshold of the limiter is 0~Imax. When the current loop reference value IS is within the range of 0~Imax, the current loop parameter Iref is equal to the current loop reference value IS. In this case, the limiter does not work. When the current loop reference value IS is greater than Imax, the current loop parameter Iref is equal to Imax.
[0093] The present embodiment provides a speed loop control method, which adopts PI control, and obtains the output of the proportional link by multiplying the speed error with the preset proportional coefficient. The output of the proportional link is used as the input of the integral link, and the output of the integral link is obtained by integral operation. The output of the integral link and the output of the proportional link are added to obtain the current loop reference value, and it is judged whether the extreme value of the current loop reference value is oversaturated to determine the current loop parameters. In the present embodiment, an anti-saturation integrator is set in the integral link, and the difference between the current loop reference value and the current loop parameter is input into the anti-saturation integrator to form an integral link closed loop. By adjusting the preset anti-saturation coefficient in the anti-saturation integrator, the speed loop can have better anti-saturation ability, and the speed loop integral link can be adjusted more conveniently. The appropriate preset anti-saturation parameters can improve the responsiveness of the speed loop and improve the stability and torque of the motor operation.
[0094] In addition, the present application also provides a speed loop control device, referring to Figure 3 , Figure 3 A schematic diagram of the structure of a speed loop control device provided in one embodiment of the present application is shown in FIG. Figure 3 As shown, in this embodiment, the speed loop control device includes: a proportional operation module 100, an integration module 200, a summation module 300, a judgment module 400 and a feedback module 500;
[0095] The proportional operation module is used to obtain the speed error and the preset proportional coefficient of the speed loop, and determine the proportional operation result according to the speed error and the preset proportional coefficient;
[0096] The integral operation module is used to input the proportional operation result into the anti-saturation integrator to obtain an integral link output value;
[0097] The summing module is used to determine the current loop reference value according to the proportional operation result and the integral link output value;
[0098] The judgment module is used to perform saturation judgment based on the current loop reference value to determine the current loop parameter;
[0099] The feedback module is used to input the difference between the current loop reference value and the current loop parameter into the anti-saturation integrator to adjust the output value of the integral link.
[0100] The speed loop control device provided in this embodiment and the speed loop control method provided in the above embodiment belong to the same inventive concept. The technical details of this embodiment can be found in any of the above embodiments, and this embodiment has the same beneficial effects as executing the speed loop control method.
[0101] Reference Figure 4 , Figure 4A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
[0102] like Figure 4 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0103] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0104] like Figure 4 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a speed loop control program.
[0105] exist Figure 4 In the electronic device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the speed loop control program stored in the memory 1005 through the processor 1001, and executes the speed loop control method provided by the embodiment of the present invention.
[0106] The electronic device proposed in this embodiment and the speed control method applied to the electronic device proposed in the above embodiment belong to the same inventive concept. The technical details in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as the execution speed loop control method.
[0107] In addition, an embodiment of the present application also proposes a computer-readable storage medium, which is applied to a computer. The computer-readable storage medium can be a non-volatile computer-readable storage medium. A speed loop control program is stored on the computer-readable storage medium. When the speed loop control program is executed by a processor, the speed loop control method of any of the embodiments described above is implemented.
[0108] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0109] The above is a specific description of the preferred implementation of the embodiments of the present application, but the embodiments of the present application are not limited to the above-mentioned implementation methods. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the embodiments of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the embodiments of the present application.
Claims
1. A speed loop control method for controlling a speed loop arranged between a position loop and a current loop, characterized in that: The speed loop includes an anti-saturation integrator, and the speed loop control method includes the following steps: Obtaining a speed error and a preset proportional coefficient of the speed loop, and determining a proportional operation result according to the speed error and the preset proportional coefficient; Inputting the proportional operation result into the anti-saturation integrator to obtain an integral link output value; Determine the current loop reference value according to the proportional operation result and the integral link output value; Perform saturation judgment based on the current loop reference value to determine the current loop parameters; The difference between the current loop reference value and the current loop parameter is input into the anti-saturation integrator to adjust the output value of the integral link.
2. The speed loop control method according to claim 1, characterized in that: The step of obtaining the speed error of the speed loop comprises: Acquire a speed reference value and a speed actual value of the speed loop, wherein the speed reference value is an output value of the position loop, and the speed actual value is obtained by measuring a sensor; The speed error is obtained by subtracting the speed actual value from the speed reference value.
3. The speed loop control method according to claim 1, characterized in that: The step of determining a proportional operation result according to the speed error and the preset proportional coefficient comprises: The speed error is multiplied by the preset proportionality coefficient to obtain the proportionality operation result.
4. The speed loop control method according to claim 1, characterized in that: The anti-saturation integrator comprises: a summing integrator and a multiplier; the step of obtaining the output value of the integral link comprises: Inputting the proportional operation result into the summing integrator to obtain an integral value; Get the preset integral coefficient; The preset integral coefficient and the integral value are input into the multiplier to obtain the integral link output value.
5. The speed loop control method according to claim 4, characterized in that: The anti-saturation integrator further includes a gain block; the step of inputting the difference between the current loop reference value and the current loop parameter into the anti-saturation integrator to adjust the output value of the integral link includes: Setting the gain of the gain block to a preset anti-saturation coefficient; Inputting the difference between the current loop reference value and the current loop parameter into the gain block to obtain the gain value; Inputting the gain value into the summing integrator to obtain a new integral value; The new integral value and the preset integral coefficient are input into the multiplier to adjust the integral link output value.
6. The speed loop control method according to claim 1, characterized in that: The step of determining the current loop reference value according to the proportional operation result and the integral link output value comprises: The proportional operation result is added to the integral link output value to obtain the current loop reference value.
7. The speed loop control method according to claim 1, characterized in that: The speed loop also includes a limiter; the step of performing saturation judgment based on the current loop reference value to determine the current loop parameters includes: Inputting the current loop reference value into the limiter, comparing the current loop reference value with a preset limit threshold in the limiter to determine a current loop parameter; When the current loop reference value is less than the preset limit threshold, using the current loop reference value as the current loop parameter; In a case where the current loop reference value is greater than the preset limit threshold, the current loop reference value is subjected to extreme value limitation to obtain the current loop parameter.
8. A speed loop control device, characterized in that: The device comprises: A proportional operation module, the proportional operation module is used to obtain a speed error and a preset proportional coefficient of the speed loop, and determine a proportional operation result according to the speed error and the preset proportional coefficient; An integral operation module, the integral operation module is used to input the proportional operation result into the anti-saturation integrator to obtain an integral link output value; A summing module, the summing module is used to determine a current loop reference value according to the proportional operation result and the integral link output value; A judgment module, the judgment module is used to perform saturation judgment based on the current loop reference value to determine the current loop parameters; A feedback module is used to input the difference between the current loop reference value and the current loop parameter into the anti-saturation integrator to adjust the integral link output value.
9. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a speed loop control program stored in the memory and executable on the processor, wherein the speed loop control program is configured to implement the steps of the speed loop control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a speed loop control program, and when the speed loop control program is executed by a processor, the steps of the speed loop control method according to any one of claims 1 to 7 are implemented.
