Servo parameter self-adjustment method, servo driver and computer-readable storage medium
Through the servo parameter self-adjusting method, gain parameters, load inertia ratio, model tracking and disturbance observer are used to detect resonance and adjust the response level, which solves the problem of servo system debugging complexity and high cost, and achieves fast and effective servo system debugging. .
Patent Information
- Application Number
- CN202111615083.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-27
AI Technical Summary
When existing AC servo drives face servo systems with different characteristics, debugging satisfactory responsiveness and stability requires a lot of manpower and time, and the parameter settings are complicated and require experienced engineers to operate.
Provide a servo parameter self-adjusting method. By setting gain parameters, learning load inertia ratio, configuring model tracking parameters and configuring disturbance observer, the resonance frequency is detected and resonance suppressed, and the servo response level is adjusted according to the system response capability until the preset is met. Require.
Appropriate parameters can be quickly debugged without the need for experienced engineers, significantly improving the debugging efficiency of the servo system and reducing labor and time costs.
Smart Images

Figure CN114415599B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servo drivers, and in particular to a servo parameter self-adjustment method, a servo driver and a computer-readable storage medium. Background Art
[0002] AC servo systems have the characteristics of high control accuracy, strong overload capacity and fast response speed. They are widely used in various fields of the automation industry, such as robots, automated production lines, CNC machine tools, textile equipment, medical machinery, semiconductor manufacturing, etc.
[0003] However, due to the different application scenarios in various fields, the transmission mechanism and load size vary greatly. Common transmission mechanisms include: direct drive, screw drive, pulley drive, rack and pinion drive, etc., and the common load inertia ratios are also different.
[0004] Therefore, the AC servo drive provides a parameter setting interface, and users can adjust the parameters according to the actual load conditions to achieve a certain responsiveness and stability of the servo system. However, there are many main servo debugging parameters at present, and it takes a certain amount of time for experienced engineers to debug a set of appropriate parameters, which requires high manpower and time costs. Summary of the invention
[0005] The main purpose of the present invention is to provide a servo parameter self-adjustment method, a servo driver and a computer-readable storage medium, aiming to solve the technical problem of how to more easily and quickly debug a servo system with satisfactory responsiveness and stability effects when faced with servo systems with different characteristics.
[0006] To achieve the above object, the present invention provides a servo parameter self-adjustment method, which comprises the following steps:
[0007] According to the current servo response level of the servo drive, gain parameters are set, load inertia ratio is learned, model tracking parameters are configured, and a disturbance observer is configured to obtain operating parameters of the servo drive;
[0008] Performing resonance detection during operation of the servo drive with the operating parameters;
[0009] When the presence of resonance is detected, the resonance frequency is obtained and the resonance suppression is performed according to the resonance frequency;
[0010] When the resonance suppression is successful, the servo response level is adjusted based on the matching of the system response capability with the preset requirement until the system response capability meets the preset requirement.
[0011] Optionally, the gain parameters include a speed loop gain, a speed loop integral time constant, a position loop gain, and a torque low-pass filter time, and the step of setting the gain parameters according to the servo response level includes:
[0012] Setting the speed loop gain according to the servo response level and a preset matching rule;
[0013] The speed loop integral time constant, the position loop gain and the torque low-pass filter time are set according to the speed loop gain in accordance with a preset matching relationship.
[0014] Optionally, the step of learning the load inertia ratio includes:
[0015] Learning is performed based on a preset kinematic equation, the total moment of inertia is obtained according to the torque command and the speed feedback, and the load inertia ratio is obtained according to the total moment of inertia.
[0016] Optionally, the model tracking parameter includes a model gain, and the step of configuring the model tracking parameter includes:
[0017] The model gain is configured according to the speed loop gain, and a control loop is simulated and operated inside the servo drive to generate a position command, a speed feedforward, and a torque feedforward.
[0018] Optionally, the step of configuring a disturbance observer comprises:
[0019] configuring a disturbance observer according to the velocity loop gain;
[0020] Obtaining viscous friction, Coulomb friction and bias torque according to the torque command and speed feedback observation in the preset kinematic equation;
[0021] The viscous friction force, Coulomb friction force and bias torque are compensated to the torque command after passing through a low-pass filter.
[0022] Optionally, the step of setting the gain parameter according to the current servo response level of the servo drive includes:
[0023] The servo drive is started, and the servo response level of the servo drive is initialized and set.
[0024] Optionally, after the step of obtaining the resonance frequency and performing resonance suppression according to the resonance frequency, the step further includes:
[0025] When resonance suppression fails, the servo response level is reduced, and the steps of setting gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring model tracking parameters, and configuring a disturbance observer are performed to obtain operating parameters.
[0026] Optionally, after the step of performing resonance detection during the operation of the servo drive with the operating parameters, the method further comprises:
[0027] When no resonance is detected, performing the step of adjusting the servo response level based on the matching of the system response capability with the preset requirement;
[0028] The step of adjusting the servo response level based on the matching of the system response capability with the preset requirement comprises:
[0029] If the system response capability does not meet the preset requirements, the servo response level is increased, and the steps of setting the gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring the model tracking parameters, and configuring the disturbance observer are performed to obtain the operating parameters;
[0030] If the system response capability meets the preset requirement, the servo response level is no longer adjusted.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a servo drive, which includes: a memory, a processor, and a servo parameter self-adjustment program stored in the memory and executable on the processor, and the servo parameter self-adjustment program, when executed by the processor, implements the steps of the servo parameter self-adjustment method as described above.
[0032] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, on which a servo parameter self-adjustment program is stored, and when the servo parameter self-adjustment program is executed by a processor, the steps of the servo parameter self-adjustment method as described above are implemented.
[0033] The present invention proposes a servo parameter self-adjustment method, a servo driver and a computer-readable storage medium. In the servo parameter self-adjustment method, the operating parameters of the servo driver are obtained by setting gain parameters, learning load inertia ratio, configuring model tracking parameters and configuring disturbance observer according to the current servo response level of the servo driver; resonance detection is performed during the operation of the servo driver with the operating parameters; when resonance is detected, the resonance frequency is obtained and resonance suppression is performed according to the resonance frequency; when resonance suppression is successful, the servo response level is adjusted based on the matching of the system response capability with the preset requirements until the system response capability meets the preset requirements. Only one response level parameter needs to be set separately, and the system can automatically match and self-learn and adjust the relevant parameters. It is not necessary to limit the user to engineers with certain experience, and a set of suitable operating parameters can be quickly debugged. The debugging efficiency of the servo system is significantly improved, and the human cost and time cost required to be invested are effectively controlled. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention;
[0035] Figure 2 FIG. 4 is a flow chart of a first embodiment of a servo parameter self-adjusting method according to the present invention.
[0036] 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
[0037] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0038] The main solution of the embodiment of the present invention is: a servo parameter self-adjustment method, the servo parameter self-adjustment method comprises the following steps:
[0039] According to the current servo response level of the servo drive, gain parameters are set, load inertia ratio is learned, model tracking parameters are configured, and a disturbance observer is configured to obtain operating parameters of the servo drive;
[0040] Performing resonance detection during operation of the servo drive with the operating parameters;
[0041] When the presence of resonance is detected, the resonance frequency is obtained and the resonance suppression is performed according to the resonance frequency;
[0042] When the resonance suppression is successful, the servo response level is adjusted based on the matching of the system response capability with the preset requirement until the system response capability meets the preset requirement.
[0043] Since the application scenarios of AC servo systems are different in various fields, and the current servo has many main debugging parameters, it takes experienced engineers a certain amount of time to debug a set of suitable parameters, which requires high manpower and time costs.
[0044] The present invention provides a servo parameter self-adjustment method, which sets gain parameters, learns load inertia ratio, configures model tracking parameters, and configures disturbance observer according to the current servo response level of the servo driver to obtain the operating parameters of the servo driver; performs resonance detection during the operation of the servo driver with the operating parameters; when resonance is detected, obtains the resonance frequency and performs resonance suppression according to the resonance frequency; when resonance suppression is successful, adjusts the servo response level based on the matching of the system response capability with the preset requirements until the system response capability meets the preset requirements. Only one response level parameter needs to be set separately, and the system can automatically match and self-learn to adjust the relevant parameters. It is not necessary to limit users to engineers with certain experience, and a set of suitable operating parameters can be quickly debugged. The debugging efficiency of the servo system is significantly improved, and the human cost and time cost required to be invested are effectively controlled.
[0045] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.
[0046] The terminal in the embodiment of the present invention is a servo system.
[0047] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. 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 WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0048] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.
[0049] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0050] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a servo parameter self-adjusting program.
[0051] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the servo parameter self-adjustment program stored in the memory 1005 and perform the following operations:
[0052] According to the current servo response level of the servo drive, gain parameters are set, load inertia ratio is learned, model tracking parameters are configured, and a disturbance observer is configured to obtain operating parameters of the servo drive;
[0053] Performing resonance detection during operation of the servo drive with the operating parameters;
[0054] When the presence of resonance is detected, the resonance frequency is obtained and the resonance suppression is performed according to the resonance frequency;
[0055] When the resonance suppression is successful, the servo response level is adjusted based on the matching of the system response capability with the preset requirement until the system response capability meets the preset requirement.
[0056] Further, the processor 1001 may call the servo parameter self-adjustment program stored in the memory 1005, and further perform the following operations:
[0057] The gain parameters include speed loop gain, speed loop integral time constant, position loop gain and torque low-pass filter time, and the step of setting the gain parameters according to the servo response level includes:
[0058] Setting the speed loop gain according to the servo response level and a preset matching rule;
[0059] The speed loop integral time constant, the position loop gain and the torque low-pass filter time are set according to the speed loop gain in accordance with a preset matching relationship.
[0060] Further, the processor 1001 may call the servo parameter self-adjustment program stored in the memory 1005, and further perform the following operations:
[0061] The steps of learning the load inertia ratio include:
[0062] Learning is performed based on a preset kinematic equation, the total moment of inertia is obtained according to the torque command and the speed feedback, and the load inertia ratio is obtained according to the total moment of inertia.
[0063] Further, the processor 1001 may call the servo parameter self-adjustment program stored in the memory 1005, and further perform the following operations:
[0064] The model tracking parameters include model gains, and the step of configuring the model tracking parameters includes:
[0065] The model gain is configured according to the speed loop gain, and a control loop is simulated and operated inside the servo drive to generate a position command, a speed feedforward, and a torque feedforward.
[0066] Further, the processor 1001 may call the servo parameter self-adjustment program stored in the memory 1005, and further perform the following operations:
[0067] The step of configuring the disturbance observer comprises:
[0068] configuring a disturbance observer according to the velocity loop gain;
[0069] Obtaining viscous friction, Coulomb friction and bias torque according to the torque command and speed feedback observation in the preset kinematic equation;
[0070] The viscous friction force, Coulomb friction force and bias torque are compensated to the torque command after passing through a low-pass filter.
[0071] Further, the processor 1001 may call the servo parameter self-adjustment program stored in the memory 1005, and further perform the following operations:
[0072] The step of setting the gain parameter according to the current servo response level of the servo drive includes:
[0073] The servo drive is started, and the servo response level of the servo drive is initialized and set.
[0074] Further, the processor 1001 may call the servo parameter self-adjustment program stored in the memory 1005, and further perform the following operations:
[0075] After the step of obtaining the resonance frequency and performing resonance suppression according to the resonance frequency, the following step further includes:
[0076] When resonance suppression fails, the servo response level is reduced, and the steps of setting gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring model tracking parameters, and configuring a disturbance observer are performed to obtain operating parameters.
[0077] Further, the processor 1001 may call the servo parameter self-adjustment program stored in the memory 1005, and further perform the following operations:
[0078] After the step of performing resonance detection during the operation of the servo drive with the operating parameters, the step further includes:
[0079] When no resonance is detected, performing the step of adjusting the servo response level based on the matching of the system response capability with the preset requirement;
[0080] The step of adjusting the servo response level based on the matching of the system response capability with the preset requirement comprises:
[0081] If the system response capability does not meet the preset requirements, the servo response level is increased, and the steps of setting the gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring the model tracking parameters, and configuring the disturbance observer are performed to obtain the operating parameters;
[0082] If the system response capability meets the preset requirement, the servo response level is no longer adjusted.
[0083] Reference Figure 2 A first embodiment of the present invention provides a servo parameter self-adjustment method, the servo parameter self-adjustment method comprising:
[0084] Step S10, setting gain parameters, learning load inertia ratio, configuring model tracking parameters, and configuring disturbance observer according to the current servo response level of the servo drive to obtain operating parameters of the servo drive;
[0085] In this embodiment, before step S10, the following steps are included:
[0086] The servo drive is started, and the servo response level of the servo drive is initialized and set.
[0087] It should be noted that the execution subject of this embodiment is a servo system, which includes a servo drive and an industrial computer for controlling the servo drive and adjusting parameters of the servo drive. After starting the servo drive, parameter setting is required, that is, setting the servo response level of the servo drive. The servo response level includes level 1 to level 41, which can be selected by the user. When the user completes the selection of the servo response level, the initialization setting is considered to be completed.
[0088] In this embodiment, the gain parameters include speed loop gain, speed loop integral time constant, position loop gain and torque low-pass filter time. The step of setting the gain parameters according to the servo response level in step S10 includes:
[0089] Setting the speed loop gain according to the servo response level and a preset matching rule;
[0090] The speed loop integral time constant, the position loop gain and the torque low-pass filter time are set according to the speed loop gain in accordance with a preset matching relationship.
[0091] It should be noted that the preset matching rule is: the speed loop gain increases with the increase of the servo response level, and decreases with the decrease of the servo response level. The speed loop gain corresponding to each level is the same. The specific increase ratio can be set by the servo system manager; the preset matching relationship is: the ratio of the speed loop integral time constant, the position loop gain and the torque low-pass filter time to the speed loop gain is determined and changes with the change of the speed loop gain. The relationship is as follows: the speed loop integral time constant is between (500 / speed loop gain) and (1000 / speed loop gain), the position loop gain is between (6.28*speed loop gain / 3) and (6.28*speed loop gain / 5), and the torque low-pass filter time is less than (1000 / speed loop gain / 6.28 / 4). This embodiment does not limit the specific values.
[0092] In this embodiment, the step of learning the load inertia ratio in step S10 includes:
[0093] Learning is performed based on a preset kinematic equation, the total moment of inertia is obtained according to the torque command and the speed feedback, and the load inertia ratio is obtained according to the total moment of inertia.
[0094] It should be noted that the preset kinematic equation is: Where T e is the torque command, J M+L is the total moment of inertia (motor inertia + load inertia), w is the speed feedback, t is the time, B is the viscous friction coefficient, T c is the Coulomb friction, T L is the bias torque, the identification process is the process of solving the kinematic equation, and the input of the identification system is T e and w, the output is J M+L , B, T c and T L The load inertia ratio is the ratio between the load inertia and the motor inertia.
[0095] In this embodiment, the model tracking parameter includes a model gain, and the step of configuring the model tracking parameter in step S10 includes:
[0096] The model gain is configured according to the speed loop gain, and a control loop is simulated and operated inside the servo drive to generate a position command, a speed feedforward, and a torque feedforward.
[0097] It should be noted that in this embodiment, the model tracking parameter, ie, the model gain, is matched and configured according to the current speed loop gain to increase the responsiveness of the system.
[0098] The model tracking principle used in this embodiment is: simulating the operation of the control loop inside the servo drive, and giving position instructions, speed feedforward and torque feedforward at the same time.
[0099] In this embodiment, the step of configuring the disturbance observer in step S10 includes:
[0100] configuring a disturbance observer according to the velocity loop gain;
[0101] Obtaining viscous friction, Coulomb friction and bias torque according to the torque command and speed feedback observation in the preset kinematic equation;
[0102] The viscous friction force, Coulomb friction force and bias torque are compensated to the torque command after passing through a low-pass filter.
[0103] It should be noted that in this embodiment, a disturbance observer is also configured according to the current speed loop gain to increase the system's anti-disturbance capability to external forces such as friction.
[0104] The disturbance observer principle used in this embodiment is: according to the torque command T in the kinematic equation e With the speed feedback w, the viscous friction, Coulomb friction, and bias torque are observed and compensated to the torque command T after passing through a low-pass filter. e middle.
[0105] The combined application of model tracking and disturbance observer contributes to the fast positioning response capability of the servo.
[0106] The model used in model tracking is an ideal model, which ignores the deviation of inertia ratio, viscous friction, Coulomb friction, bias torque and other disturbance torques. The disturbance observer is used to quickly compensate for the disturbance torque, thus realizing rapid positioning of the servo system.
[0107] Step S20, performing resonance detection during the operation of the servo drive with the operating parameters;
[0108] In a specific implementation, during the operation of the servo drive, FFT (fast Fourier transform) is used to detect whether resonance occurs.
[0109] Step S30, when resonance is detected, obtaining the resonance frequency and performing resonance suppression according to the resonance frequency;
[0110] In specific implementation, if resonance occurs, the resonance is suppressed according to the resonance frequency. If the resonance is a high-frequency resonance, the resonance is suppressed by using a notch filter to trap the torque command. The notch filter principle is: Among them, ω o is the notch center frequency; ξ is the notch depth; B is the notch width.
[0111] In this embodiment, the steps parallel to step S30 include:
[0112] When no resonance is detected, the step of adjusting the servo response level based on the matching of the system response capability with the preset requirement in step S40 is performed.
[0113] It is understandable that if no resonance is detected, it is only necessary to consider whether the system response capability matches the preset requirements.
[0114] In this embodiment, after step S30, the steps parallel to step S40 include:
[0115] When resonance suppression fails, the servo response level is reduced, and the steps of setting gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring model tracking parameters, and configuring a disturbance observer are performed to obtain operating parameters.
[0116] It is understandable that when resonance suppression fails, it means that the current servo response level is high, and running with the operating parameters automatically adjusted at the current servo response level will produce resonance that cannot be suppressed. The current operating parameters do not meet the requirements, and it is necessary to lower the servo response level and return to execute step S10 to lower various parameters and then re-detect whether resonance exists and whether it can be suppressed.
[0117] Step S40, when the resonance suppression is successful, adjusting the servo response level based on the matching of the system response capability with the preset requirement until the system response capability meets the preset requirement.
[0118] It can be understood that when resonance suppression is successful, it means that the resonance generated when the servo drive runs with the operating parameters automatically adjusted according to the current servo response level can be suppressed, and the current operating parameters meet the requirements of resonance suppression. Further consideration only needs to be made as to whether the system response capability meets the customer's preset requirements, that is, whether operation according to the current operating parameters can enable the servo motor to have the responsiveness and stability effects that satisfy the customer.
[0119] In this embodiment, the step of adjusting the servo response level based on the matching of the system response capability with the preset requirement in step S40 includes:
[0120] If the system response capability does not meet the preset requirements, the servo response level is increased, and the steps of setting the gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring the model tracking parameters, and configuring the disturbance observer are performed to obtain the operating parameters;
[0121] If the system response capability meets the preset requirement, the servo response level is no longer adjusted.
[0122] It can be understood that if the system response capability does not meet the preset requirements, it means that operation according to the current operating parameters cannot make the servo motor have the responsiveness and stability effect that the customer is satisfied with. At this time, the servo response level can be increased and return to execute step S10 to re-adjust the various debugging parameters; if the system response capability meets the preset requirements, it means that operation according to the current operating parameters can make the servo motor have the responsiveness and stability effect that the customer is satisfied with, that is, the current operating parameters are available, and under the premise that customer needs remain unchanged, there is no need to adjust the parameters.
[0123] In this embodiment, a servo parameter self-adjustment method is proposed, which sets gain parameters, learns load inertia ratio, configures model tracking parameters, and configures disturbance observer according to the current servo response level of the servo drive to obtain the operating parameters of the servo drive; performs resonance detection during the operation of the servo drive with the operating parameters; when resonance is detected, obtains the resonance frequency and suppresses the resonance according to the resonance frequency; when the resonance suppression is successful, adjusts the servo response level based on the matching of the system response capability with the preset requirements until the system response capability meets the preset requirements. Only one response level parameter needs to be set separately, and the system can automatically match and self-learn to adjust the relevant parameters. It is not necessary to limit users to engineers with certain experience, and a set of suitable operating parameters can be quickly debugged. The debugging efficiency of the servo system is significantly improved, and the human cost and time cost required to be invested are effectively controlled.
[0124] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a servo parameter self-adjustment program is stored. When the servo parameter self-adjustment program is executed by a processor, the following operations are implemented:
[0125] According to the current servo response level of the servo drive, gain parameters are set, load inertia ratio is learned, model tracking parameters are configured, and a disturbance observer is configured to obtain operating parameters of the servo drive;
[0126] Performing resonance detection during operation of the servo drive with the operating parameters;
[0127] When the presence of resonance is detected, the resonance frequency is obtained and the resonance suppression is performed according to the resonance frequency;
[0128] When the resonance suppression is successful, the servo response level is adjusted based on the matching of the system response capability with the preset requirement until the system response capability meets the preset requirement.
[0129] Furthermore, when the servo parameter self-adjustment program is executed by the processor, the following operations are also implemented:
[0130] The gain parameters include speed loop gain, speed loop integral time constant, position loop gain and torque low-pass filter time, and the step of setting the gain parameters according to the servo response level includes:
[0131] Setting the speed loop gain according to the servo response level and a preset matching rule;
[0132] The speed loop integral time constant, the position loop gain and the torque low-pass filter time are set according to the speed loop gain in accordance with a preset matching relationship.
[0133] Furthermore, when the servo parameter self-adjustment program is executed by the processor, the following operations are also implemented:
[0134] The steps of learning the load inertia ratio include:
[0135] Learning is performed based on a preset kinematic equation, the total moment of inertia is obtained according to the torque command and the speed feedback, and the load inertia ratio is obtained according to the total moment of inertia.
[0136] Furthermore, when the servo parameter self-adjustment program is executed by the processor, the following operations are also implemented:
[0137] The model tracking parameters include model gains, and the step of configuring the model tracking parameters includes:
[0138] The model gain is configured according to the speed loop gain, and a control loop is simulated and operated inside the servo drive to generate a position command, a speed feedforward, and a torque feedforward.
[0139] Furthermore, when the servo parameter self-adjustment program is executed by the processor, the following operations are also implemented:
[0140] The step of configuring the disturbance observer comprises:
[0141] configuring a disturbance observer according to the velocity loop gain;
[0142] Obtaining viscous friction, Coulomb friction and bias torque according to the torque command and speed feedback observation in the preset kinematic equation;
[0143] The viscous friction force, Coulomb friction force and bias torque are compensated to the torque command after passing through a low-pass filter.
[0144] Furthermore, when the servo parameter self-adjustment program is executed by the processor, the following operations are also implemented:
[0145] The step of setting the gain parameter according to the current servo response level of the servo drive includes:
[0146] The servo drive is started, and the servo response level of the servo drive is initialized and set.
[0147] Furthermore, when the servo parameter self-adjustment program is executed by the processor, the following operations are also implemented:
[0148] After the step of obtaining the resonance frequency and performing resonance suppression according to the resonance frequency, the following step further includes:
[0149] When resonance suppression fails, the servo response level is reduced, and the steps of setting gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring model tracking parameters, and configuring a disturbance observer are performed to obtain operating parameters.
[0150] Furthermore, when the servo parameter self-adjustment program is executed by the processor, the following operations are also implemented:
[0151] After the step of performing resonance detection during the operation of the servo drive with the operating parameters, the step further includes:
[0152] When no resonance is detected, performing the step of adjusting the servo response level based on the matching of the system response capability with the preset requirement;
[0153] The step of adjusting the servo response level based on the matching of the system response capability with the preset requirement comprises:
[0154] If the system response capability does not meet the preset requirements, the servo response level is increased, and the steps of setting the gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring the model tracking parameters, and configuring the disturbance observer are performed to obtain the operating parameters;
[0155] If the system response capability meets the preset requirement, the servo response level is no longer adjusted.
[0156] 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, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0157] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0159] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made 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 servo parameter self-adjustment method, It is characterized in that The servo parameter self-adjustment method comprises the following steps: Starting the servo drive and initializing the servo response level of the servo drive; According to the current servo response level of the servo drive, gain parameters are set, load inertia ratio is learned, model tracking parameters are configured, and a disturbance observer is configured to obtain operating parameters of the servo drive; Performing resonance detection during operation of the servo drive with the operating parameters; When the presence of resonance is detected, the resonance frequency is obtained and the resonance suppression is performed according to the resonance frequency; When the resonance suppression is successful, the servo response level is adjusted based on the matching of the system response capability with the preset requirement until the system response capability meets the preset requirement.
2. The servo parameter self-adjusting method according to claim 1, It is characterized in that The gain parameters include speed loop gain, speed loop integral time constant, position loop gain and torque low-pass filter time, and the step of setting the gain parameters according to the servo response level includes: Setting the speed loop gain according to the servo response level and a preset matching rule; The speed loop integral time constant, the position loop gain and the torque low-pass filter time are set according to the speed loop gain in accordance with a preset matching relationship.
3. The servo parameter self-adjusting method according to claim 2, It is characterized in that The steps of learning the load inertia ratio include: Learning is performed based on a preset kinematic equation, the total moment of inertia is obtained according to the torque command and the speed feedback, and the load inertia ratio is obtained according to the total moment of inertia.
4. The servo parameter self-adjusting method according to claim 3, It is characterized in that The model tracking parameters include model gains, and the step of configuring the model tracking parameters includes: The model gain is configured according to the speed loop gain, and a control loop is simulated and operated inside the servo drive to generate a position command, a speed feedforward, and a torque feedforward.
5. The servo parameter self-adjusting method according to claim 4, It is characterized in that The step of configuring the disturbance observer comprises: configuring a disturbance observer according to the velocity loop gain; Obtaining viscous friction, Coulomb friction and bias torque according to the torque command and speed feedback observation in the preset kinematic equation; The viscous friction force, Coulomb friction force and bias torque are compensated to the torque command after passing through a low-pass filter.
6. The servo parameter self-adjusting method according to claim 1, It is characterized in that After the step of obtaining the resonance frequency and performing resonance suppression according to the resonance frequency, the following step further includes: When resonance suppression fails, the servo response level is reduced, and the steps of setting gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring model tracking parameters, and configuring a disturbance observer are performed to obtain operating parameters.
7. The servo parameter self-adjusting method according to claim 1, It is characterized in that After the step of performing resonance detection during the operation of the servo drive with the operating parameters, the step further includes: When no resonance is detected, the step of adjusting the servo response level based on the matching of the system response capability with the preset requirement is performed; The step of adjusting the servo response level based on the matching of the system response capability and the preset requirement includes: If the system response capability does not meet the preset requirements, the servo response level is increased, and the steps of setting the gain parameters according to the current servo response level of the servo drive, learning the load inertia ratio, configuring the model tracking parameters, and configuring the disturbance observer are performed to obtain the operating parameters; If the system response capability meets the preset requirement, the servo response level is no longer adjusted.
8. A servo drive, It is characterized in that The servo driver comprises: a memory, a processor and a servo parameter self-adjustment program stored in the memory and executable on the processor, wherein the servo parameter self-adjustment program implements the steps of the servo parameter self-adjustment method as claimed in any one of claims 1 to 7 when executed by the processor.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a servo parameter self-adjustment program, which, when executed by a processor, implements the steps of the servo parameter self-adjustment method according to any one of claims 1 to 7.
