Method and device for determining load inertia of motor, motor assembly and storage medium
By injecting the excitation signal into the motor drive signal and conducting frequency domain analysis, the load inertia is accurately measured and the drive signal is adjusted, which solves the problem of load inertia influence in motor control and improves the control effect and accuracy of the motor.
Patent Information
- Application Number
- CN202111318115.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-11-09
AI Technical Summary
In the existing technology, the load inertia of the motor has a great influence on the convergence of the speed loop, resulting in poor control effects, difficulty in accurate measurement, and measurement instability.
The target signal is formed by injecting the excitation signal and the command signal into the motor's drive signal, and obtaining the current and speed sequence through frequency domain conversion, calculating the amplitude-frequency sequence of the transfer function between the motor and the load, and fitting it into a target curve to determine the load. Inertia, adjust the drive signal to eliminate the influence of inertia on the speed loop.
It achieves accurate measurement of motor load inertia under speed open loop or closed loop, reduces vibration and noise, and improves motor control effect and accuracy.
Smart Images

Figure CN113992113B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of motor control technology, and in particular to a method and device for determining the load inertia of a motor, a motor component and a storage medium. Background Art
[0002] In the related art, the closed-loop control of the motor requires injecting a sinusoidal command speed signal into the drive signal. The command speed signal needs to be determined based on the initial parameter value of the speed converter, and the load inertia of the motor will affect the convergence of the speed loop and affect the motor control. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention provides a method for determining the load inertia of a motor.
[0005] A second aspect of the present invention provides a device for determining the load inertia of a motor.
[0006] A third aspect of the present invention provides a motor assembly.
[0007] A fourth aspect of the present invention provides a readable storage medium.
[0008] A fifth aspect of the present invention provides another motor assembly.
[0009] A sixth aspect of the present invention provides a robot.
[0010] In view of this, the first aspect of the present invention provides a method for determining the load inertia of a motor, comprising: injecting an excitation signal into a drive signal of the motor and superimposing it with a command signal to form a target signal; driving the motor to operate through the target signal and determining the speed signal of the motor; converting the target signal and the speed signal from time domain signals to frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain; determining an amplitude-frequency sequence of a transfer function of the motor and the load according to the current sequence and the speed sequence; fitting the amplitude-frequency sequence into a target curve; and determining the load inertia of the motor according to the target curve.
[0011] In this technical solution, during the operation of the motor, the load inertia of the motor is determined, thereby eliminating the influence of the load inertia on the convergence of the speed loop and improving the control effect of the motor.
[0012] Specifically, during the operation of the motor, a preset excitation signal is injected into the drive signal of the motor, so that the excitation signal is superimposed on the command signal of the motor to form a target signal. During the operation of the motor, the motor is driven by the target signal superimposed with the excitation signal, and the speed signal of the motor is obtained synchronously.
[0013] After acquiring the speed signal, the target signal and the corresponding speed signal are converted into frequency domain, the target signal and the speed signal are converted from time domain signals into frequency domain signals, and the target signal in the frequency domain and the speed signal in the frequency domain are sampled to obtain a one-to-one corresponding current sequence and speed sequence.
[0014] According to the transfer function between the motor and the load, the amplitude-frequency sequence of the motor and the load is calculated by substituting the torque coefficient, current sequence and speed sequence of the motor. According to each item in the amplitude-frequency sequence, the corresponding point is drawn in the Bode diagram, and then a coherent amplitude-frequency curve is fitted based on these points, which is the above-mentioned target curve.
[0015] The technical solution of the present invention can measure inertia in a current closed loop, that is, a speed open loop, so there is no measurement instability, and the inertia calculation reliability is high. The load inertia of the motor is calculated through the target curve, and the drive signal of the motor is adjusted according to the calculated load inertia, which can eliminate the influence of the load inertia on the convergence of the speed loop in the motor control, reduce the vibration and noise of the motor, and improve the operation effect of the motor.
[0016] In addition, the method for determining the load inertia in the above technical solution provided by the present invention may also have the following additional technical features:
[0017] In the above technical solution, the load inertia of the motor is determined according to the target curve, including: determining the straight line where the straight line segment of the target curve is located; and determining the load inertia according to the straight line and the rotational inertia of the motor.
[0018] In this technical solution, the mechanical transmission part including the motor and the load can be abstracted into a two-mass system of motor→transmission part→load, wherein the two-mass system can be represented by a transfer function. The transfer function includes two parts, one is the mechanical transmission part of the rigid system, and the other is the resonance part caused by the flexible connection.
[0019] The target curve includes straight segments and curved segments. The mechanical transmission part of the rigid system corresponds to the straight segment of the target curve, while the resonant part caused by the flexible connection corresponds to the curved segment of the target curve. When the motor runs at a low frequency, the resonant part caused by the flexible connection has little effect on the system transfer function, so the straight segment corresponding to the transmission part of the rigid system can be taken for calculation.
[0020] Specifically, the target curve is the curve in the Bode diagram, where the horizontal axis represents the frequency logarithm and the vertical axis represents the frequency amplitude. First, according to the straight line segment corresponding to the mechanical transmission part of the rigid system, determine the straight line where the straight line segment is located, and then determine the intersection of this straight line and the vertical axis of the Bode diagram, that is, the straight line at the frequency logarithm of 10 0 The first amplitude corresponding to Hz.
[0021] Next, determine the first frequency corresponding to the intersection of the straight line and the straight line with an amplitude of 0 dB in the Bode diagram, and obtain the motor's own moment of inertia. Based on the function corresponding to the target curve in the straight line segment in the Bode diagram, the load inertia of the motor can be calculated through the first amplitude, the first frequency and the moment of inertia of the motor, and adjust the motor drive signal according to the load inertia, thereby eliminating the influence of the load inertia on the convergence of the speed loop in motor control and achieving more precise motor control.
[0022] In any of the above technical solutions, before converting the target signal and the speed signal from time domain signals into frequency domain signals, the method also includes: sampling the target signal according to the target sampling frequency to obtain a sampled target signal; sampling the speed signal according to the target sampling frequency to obtain a sampled speed signal; and converting the sampled target signal and the sampled speed signal into frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain.
[0023] In this technical solution, before converting the target signal and the speed signal from the time domain to the frequency domain, the target signal after the motor drive signal and the excitation signal are superimposed is first sampled according to the target sampling frequency to obtain a sampled target signal. The target sampling frequency can indicate the time interval between two samples when sampling the target signal. It can be understood that the higher the target sampling frequency, the denser the sampled target is, and the shorter the time interval between two adjacent samples is.
[0024] Each time the target signal is sampled, the motor speed signal is sampled at the same target sampling frequency to obtain a sampled speed signal. Wherein, each time a sampled target signal is sampled, a sampled speed signal can be sampled at the same time, so that the sampled target signal corresponds to the sampled speed signal one by one.
[0025] After obtaining the sampled target signal and the sampled speed signal, the step of converting the target signal and the speed signal from time domain signals to frequency domain signals specifically includes: converting the sampled target signal and the sampled speed signal to frequency domain signals to obtain corresponding current sequences and speed sequences.
[0026] For example, after the acquisition starts, three sampled target signals are collected at 1 second, 2 seconds, and 3 seconds, which are recorded as I1, I2, and I3 respectively. At the same time, three sampled speed signals are collected at 1 second, 2 seconds, and 3 seconds, which are Q1, Q2, and Q3 respectively. Among them, Q1 is the speed signal of the motor when the motor is driven by the target signal I1. Similarly, Q2 is the speed signal of the motor when the motor is driven by the current I2, and Q3 is the speed signal of the motor when the motor is driven by the current I3. After the sampling is completed, the current sequences I(n) and Q(n) are generated.
[0027] The present application samples the target signal and the speed of the motor according to the target sampling frequency to form corresponding current sequences and speed sequences respectively, and obtains the amplitude-frequency sequence of the motor according to the current sequence, the speed sequence and the transfer function. Based on the target curve fitted by the amplitude-frequency sequence in the Bode diagram, the load inertia of the motor is accurately calculated, which is beneficial to eliminate the influence of the load inertia on the convergence of the speed loop in the motor control and realize more precise motor control.
[0028] In any of the above technical solutions, the determination method also includes: changing the target sampling frequency at least once; repeatedly obtaining different current sequences and speed sequences; and calculating the average value of the load inertia obtained according to the different current sequences and speed sequences as the final load inertia.
[0029] In this technical solution, by changing the target sampling frequency, the target signal and the motor speed signal are repeatedly sampled at different sampling frequencies, thereby generating multiple sets of current sequences and corresponding multiple sets of speed sequences. Afterwards, multiple sets of load inertia are calculated based on the multiple sets of different current sequences and the multiple sets of different speed sequences, and the final load inertia is obtained by calculating the average value of the multiple sets of load inertia.
[0030] The present application can reduce the sampling error caused by signal fluctuations by performing multiple sampling, multiple calculations of load inertia, and obtaining the average value, thereby improving the accuracy of load inertia calculation, thereby achieving more precise motor control and improving the operating effect of the motor.
[0031] In any of the above technical solutions, the sampled target signal and the sampled speed signal are converted into frequency domain signals, including: anti-leakage processing of the sampled target signal; and / or anti-leakage processing of the sampled speed signal; and fast Fourier transform of the processed target signal and speed signal to obtain a current sequence and a speed sequence.
[0032] In this technical solution, when converting the target signal from the time domain to the frequency domain, the excitation current sequence in the time domain can be first processed for leakage prevention, such as windowing the excitation signal or padding the excitation current sequence in the time domain with zeros at the end.
[0033] Afterwards, a Fast Fourier Transform (FFT) is performed on the processed data sequence, thereby converting the target signal sequence in the time domain into a current sequence in the frequency domain.
[0034] Similarly, since the speed signal in the speed sequence corresponds one-to-one to the target signal in the current sequence, the speed sequence can be fast Fourier transformed in the same way to convert the speed signal sequence in the time domain into a speed sequence in the frequency domain.
[0035] By converting the target signal and the speed signal from time domain signals to frequency domain signals, the current sequence and the speed sequence in the frequency domain are obtained, and the corresponding amplitude-frequency sequence is generated according to the current sequence and the speed sequence. By fitting the target curve corresponding to the amplitude-frequency sequence in the Bode diagram, the load inertia of the motor is calculated through the target curve based on the graphical method, so that the inertia of the load during the operation of the motor can be accurately obtained. By adjusting the driving signal of the motor through the load inertia, more accurate speed open-loop control or speed closed-loop control can be achieved, thereby reducing motor vibration and noise and improving the operation effect of the motor.
[0036] In any of the above technical solutions, when the excitation signal is the longest linear feedback shift register sequence, the method includes: using the target sampling frequency as the injection frequency of the longest linear feedback shift register sequence.
[0037] In this technical solution, when generating an excitation signal, an excitation signal of the longest linear feedback shift register sequence (also called M sequence) can be generated. Specifically, the M sequence is the longest period sequence generated by a shift register with linear feedback. The M sequence is a typical pseudo-random sequence.
[0038] When the excitation signal is an M sequence, the injection frequency of the excitation signal is the target sampling frequency, that is, the injection frequency of the excitation signal is the same as the sampling frequency of the target signal, which is beneficial to improve the calculation accuracy of the load inertia and can achieve more accurate speed open-loop control or speed closed-loop control, thereby reducing motor vibration and noise and improving the operation effect of the motor.
[0039] In any of the above technical solutions, when the excitation signal is a sinusoidal swept frequency signal, the method also includes: determining the minimum frequency, maximum frequency and frequency interval of the sinusoidal swept frequency signal according to the target sampling frequency; determining the starting frequency of the sinusoidal swept frequency signal, wherein the starting frequency is greater than the minimum frequency; using the starting frequency as the frequency of the sinusoidal swept frequency signal; and sequentially increasing the frequency by the frequency interval as the new frequency of the sinusoidal swept frequency signal until the new frequency is greater than the maximum frequency, and stopping injecting the sinusoidal swept frequency signal.
[0040] In this technical solution, the excitation signal is specifically a sine swept signal, wherein the minimum frequency, maximum frequency and frequency interval of the sine swept excitation signal can be set according to a preset target sampling frequency.
[0041] Specifically, according to the target sampling frequency for sampling the target signal, first set the minimum sinusoidal frequency and maximum sinusoidal frequency at which the motor drive signal can be injected during motor operation. The minimum sinusoidal frequency is the minimum frequency of the sinusoidal swept frequency signal, and the maximum sinusoidal frequency is the maximum frequency of the sinusoidal swept frequency signal.
[0042] Then, the frequency interval is set, where the frequency interval is related to the target sampling frequency and the number of sampling points N of the sampled target signal. Specifically, let the target sampling frequency be Ts, let the frequency interval be Δf, then the frequency interval Δf=1÷(N×Ts), that is, the higher the sampling frequency, the greater the number of target signals to be collected, the smaller the frequency interval, the smaller the interval between the obtained N target signals, and the denser the N target signals, thereby ensuring that the sampled data can accurately reflect the actual operation of the motor and improve the calculation accuracy of the load inertia.
[0043] When injecting a signal, the starting frequency of the sine frequency sweep signal is determined according to the minimum frequency, wherein the starting frequency is greater than the minimum frequency. In some embodiments, the starting frequency is the sum of the minimum frequency and the frequency interval. When injecting an excitation signal, the starting frequency is first injected according to the target sampling frequency, and then the frequency of the sine frequency sweep signal is gradually increased according to the frequency interval to obtain a new frequency of the sine frequency sweep signal. The sine frequency sweep signal of the new frequency is continuously injected until the new frequency of the sine frequency sweep signal exceeds the maximum frequency, and then the injection of the frequency sweep signal is stopped.
[0044] In any of the above technical solutions, the target signal and the speed signal are converted from time domain signals to frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain, including: performing discrete Fourier transform on the target signal and the speed signal respectively to obtain a current sequence and a speed sequence.
[0045] In this technical solution, since the excitation signal is a sinusoidal swept frequency signal sequence, that is, the excitation signal is a discrete signal with gradually increasing frequency, when converting the target signal from the time domain to the frequency domain, a discrete Fourier transform (DFT) can be performed on the excitation current sequence in the time domain, thereby converting the sequence of target signals in the time domain into a current sequence in the frequency domain.
[0046] Similarly, since the speed sequence corresponds one-to-one to the current sequence, the speed sequence can be discrete Fourier transformed in the same way to convert the speed signal sequence in the time domain into a speed sequence in the frequency domain.
[0047] In any of the above technical solutions, the driving signal of the motor is a driving signal of speed open-loop control.
[0048] In this technical solution, when the load inertia of the motor is calculated by injecting an excitation signal into the drive signal of the motor, the drive signal of the motor can be a drive signal of speed open-loop control, that is, the load inertia of the motor is calculated under speed open-loop control. Since the motor is in speed open-loop control, the speed controller of the motor will not output a speed adjustment signal, and the target signal only includes the original drive signal and the excitation signal. Therefore, the calculation process is more concise, which is conducive to improving the calculation speed of the load inertia of the motor, improving the timeliness of adjusting the motor control according to the load inertia, and thus improving the working effect of the motor.
[0049] In any of the above technical solutions, the driving signal of the motor is a driving signal for speed closed-loop control; the amplitude-frequency sequence of the transfer function of the motor and the load is determined according to the current sequence and the speed sequence, including: collecting the output signal of the speed controller of the motor according to the target sampling frequency to obtain a speed adjustment signal; generating a corresponding signal sequence according to the speed adjustment signal; and determining the amplitude-frequency sequence according to the signal sequence, current sequence, speed sequence and transfer function.
[0050] In this technical solution, when the load inertia of the motor is calculated by injecting an excitation signal into the drive signal of the motor, the drive signal of the motor can be a drive signal of speed closed-loop control, that is, the load inertia of the motor is calculated under speed closed-loop control.
[0051] Since the motor's speed controller generates and outputs a speed regulation signal based on the motor's real-time speed signal when the motor is in closed-loop control, the target signal is actually the superposition of the original motor drive signal, the excitation signal, and the output signal of the speed controller.
[0052] Therefore, when determining the amplitude-frequency sequence, the influence of the speed control output speed regulation signal needs to be considered. Specifically, when collecting the target signal, the output signal of the motor speed controller is sampled according to the same target sampling frequency as when collecting the target signal, and the sampled speed regulation signal corresponds to the target signal and the speed signal one by one.
[0053] Then, according to the speed regulation signal, a corresponding signal sequence is generated, and based on the signal sequence, the current sequence obtained by sampling the target signal, the speed sequence corresponding to the current sequence and the torque coefficient of the motor, the amplitude-frequency sequence is calculated based on the transfer function of the mechanical part of the motor.
[0054] The embodiment of the present invention can calculate the load inertia of the motor when the motor is in speed closed-loop control, so that no matter what operating mode the motor is in, the influence of the load inertia on the convergence of the speed loop in the motor control can always be eliminated, thereby achieving more precise motor control, reducing motor vibration and noise, and improving the operating effect of the motor.
[0055] In any of the above technical solutions, the amplitude-frequency sequence is:
[0056]
[0057] Among them, G mech (k) is the amplitude-frequency sequence, W M (k) is the speed sequence, I(k) is the current sequence, K T is the torque coefficient of the motor.
[0058] In this technical solution, for the motor under speed open-loop control, the amplitude-frequency sequence includes N amplitude-frequency data, wherein the amplitude-frequency data is the product of the speed signal divided by the torque coefficient of the motor and the target signal corresponding to the speed signal at the same time. By calculating the corresponding amplitude-frequency data according to the target signal and the speed signal sampled in each sampling, and the torque coefficient of the motor, an amplitude-frequency sequence with N items is finally formed, and a target curve is formed in the Bode diagram according to the amplitude-frequency sequence. The load inertia of the motor can be accurately calculated according to the target curve, so that the influence of the load inertia on the convergence of the speed loop in the motor control can be eliminated, and more accurate motor control can be achieved, reducing motor vibration and noise, and improving the operation effect of the motor.
[0059] In any of the above technical solutions, the amplitude-frequency sequence is:
[0060]
[0061] Among them, G mech (k) is the amplitude-frequency sequence, W M (k) is the speed sequence, I(k) is the current sequence, K T is the torque coefficient of the motor, T e,ref (k) is the torque command signal sequence.
[0062] In this technical solution, for the motor under speed closed-loop control, the amplitude-frequency sequence includes N amplitude-frequency data, wherein the amplitude-frequency data is the product of the speed signal divided by the torque coefficient of the motor and the target signal and the speed adjustment signal corresponding to the speed signal at the same time. By calculating the corresponding amplitude-frequency data according to the target signal, speed signal and speed adjustment signal sampled in each sampling, and the torque coefficient of the motor, an amplitude-frequency sequence with N items is finally formed, and a target curve is formed in the Bode diagram according to the amplitude-frequency sequence. According to the target curve, the load inertia of the motor can be accurately calculated, so that the influence of the load inertia on the convergence of the speed loop in the motor control can be eliminated, and more accurate motor control can be achieved, reducing motor vibration and noise, and improving the operation effect of the motor.
[0063] In any of the above technical solutions, the motor is connected to the load via a connecting piece;
[0064] The transfer function is:
[0065]
[0066] Among them, G mech (s) is the amplitude-frequency curve equation of the motor, ω M is the speed signal, T e is the electromagnetic torque of the motor, J M is the moment of inertia of the motor, J L is the load inertia, B S is the damping coefficient of the connection, K S is the elastic coefficient of the connection, and s is the Labrador operator.
[0067] In this technical solution, the motor, the connecting part and the load can be abstracted into a two-mass system of motor→connecting part→load, and the transfer function of the two-mass system is shown above.
[0068] The transfer function consists of two parts, where: The part is the equivalent rigid system equation, and The part is the resonance equation caused by the flexible system.
[0069] For the above amplitude-frequency curve equation, in the low frequency band, the resonance part caused by the flexible system does not work, only the rigid system part works, so it can be The rigid system part of the target curve is solved, which corresponds to the straight line segment in the target curve.
[0070] in, It is a first-order inertial link. Its amplitude-frequency curve is a slant line of -20dB over ten times the frequency range. Its intersection with the 0dB line is Therefore, based on this feature, the load moment of inertia can be calculated through a graphical method, thereby achieving more precise motor control.
[0071] The second aspect of the present invention provides a device for determining the load inertia of a motor, comprising: an injection module, used to inject an excitation signal into a drive signal of the motor, and superimpose it with a command signal to form a target signal; a drive module, used to drive the motor to operate through the target signal; a determination module, used to determine the speed signal of the motor; a conversion module, used to convert the target signal and the speed signal from time domain signals into frequency domain signals, and obtain a current sequence and a speed sequence in the frequency domain; the determination module is also used to determine the amplitude-frequency sequence of the transfer function of the motor and the load according to the current sequence and the speed sequence; a fitting module, used to fit the amplitude-frequency sequence into a target curve; the determination module is also used to determine the load inertia of the motor according to the target curve.
[0072] In this technical solution, during the operation of the motor, the load inertia of the motor is determined, thereby eliminating the influence of the load inertia on the convergence of the speed loop and improving the control effect of the motor.
[0073] Specifically, during the operation of the motor, a preset excitation signal is injected into the drive signal of the motor, so that the excitation signal is superimposed on the command signal of the motor to form a target signal. During the operation of the motor, the motor is driven by the target signal superimposed with the excitation signal, and the speed signal of the motor is obtained synchronously.
[0074] After acquiring the speed signal, the target signal and the corresponding speed signal are converted into the frequency domain, the target signal and the speed signal are converted from time domain signals into frequency domain signals, and the target signal in the frequency domain and the speed signal in the frequency domain are sampled to obtain a one-to-one corresponding current sequence and speed sequence, wherein the current sequence includes N target signals, and the speed sequence includes speed signals corresponding to the N target signals one by one, wherein N is a positive integer.
[0075] According to the transfer function between the motor and the load, the amplitude-frequency sequence of the motor and the load is calculated by substituting the torque coefficient, current sequence and speed sequence of the motor. According to each item in the amplitude-frequency sequence, the corresponding N points are drawn in the Bode diagram, and then a coherent amplitude-frequency curve is fitted based on these N points, that is, the above-mentioned target curve.
[0076] By calculating the load inertia of the motor through the target curve and adjusting the drive signal of the motor according to the calculated load inertia, the influence of the load inertia on the convergence of the speed loop in motor control can be eliminated, the motor vibration and noise can be reduced, and the operation effect of the motor can be improved.
[0077] The third aspect of the present invention provides a motor component, comprising: a memory for storing programs or instructions; a processor for implementing the steps of the method for determining the load inertia of the motor provided in any of the above-mentioned technical solutions when executing the programs or instructions. Therefore, the motor component also includes all the beneficial effects of the method for determining the load inertia of the motor provided in any of the above-mentioned technical solutions, which will not be repeated here to avoid repetition.
[0078] A fourth aspect of the present invention provides a readable storage medium having a program or instruction stored thereon. When the program or instruction is executed by a processor, the steps of the method for determining the load inertia of a motor as provided in any of the above-mentioned technical solutions are implemented. Therefore, the readable storage medium also includes all the beneficial effects of the method for determining the load inertia of a motor as provided in any of the above-mentioned technical solutions. To avoid repetition, they will not be repeated here.
[0079] A fifth aspect of the present invention provides a motor component, comprising a load inertia determination device as provided in any of the above technical solutions; and / or a readable storage medium as provided in any of the above technical solutions. Therefore, the motor component also includes all the beneficial effects of the load inertia determination device as provided in any of the above technical solutions and / or the readable storage medium as provided in any of the above technical solutions, which will not be repeated here to avoid repetition.
[0080] The sixth aspect of the present invention provides a robot, comprising: a robotic arm; a motor assembly as provided in any of the above technical solutions, the motor assembly being connected to the robotic arm, and therefore, the robot also includes all the beneficial effects of the motor assembly as provided in any of the above technical solutions, which will not be described here to avoid repetition. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0082] Figure 1 A flowchart of a method for determining load inertia according to an embodiment of the present invention is shown;
[0083] Figure 2 A second flowchart of a method for determining load inertia according to an embodiment of the present invention is shown;
[0084] Figure 3 A third flowchart of a method for determining load inertia according to an embodiment of the present invention is shown;
[0085] Figure 4 A schematic diagram of a system for open-loop speed control of a motor according to an embodiment of the present invention is shown;
[0086] Figure 5 A schematic diagram of a system for closed-loop speed control of a motor according to an embodiment of the present invention is shown;
[0087] Figure 6 It shows a structural block diagram of a device for determining load inertia according to an embodiment of the present invention;
[0088] Figure 7 A structural block diagram of a motor assembly according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0089] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0090] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0091] Refer to the following Figures 1 to 7 A method and apparatus for determining the load inertia of a motor, a motor component, and a storage medium according to some embodiments of the present invention are described.
[0092] Embodiment 1
[0093] In some embodiments of the present invention, a method for determining the load inertia of a motor is provided. Figure 1 FIG. 1 shows one of the flow charts of a method for determining load inertia according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0094] Step 102, injecting an excitation signal into the driving signal of the motor, and superimposing it with the command signal to form a target signal;
[0095] Step 104, driving the motor to operate through the target signal and determining the speed signal of the motor;
[0096] Step 106, converting the target signal and the speed signal from time domain signals into frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain;
[0097] Step 108, determining an amplitude-frequency sequence of a transfer function between the motor and the load according to the current sequence and the speed sequence;
[0098] Step 110, fitting the amplitude-frequency sequence into a target curve, and determining the load inertia of the motor according to the target curve.
[0099] In the embodiment of the present invention, during the operation of the motor, the load inertia of the motor is determined, thereby eliminating the influence of the load inertia on the convergence of the speed loop and improving the control effect of the motor.
[0100] Specifically, during the operation of the motor, a preset excitation signal is injected into the drive signal of the motor, so that the excitation signal is superimposed on the command signal of the motor to form a target signal. During the operation of the motor, the motor is driven by the target signal superimposed with the excitation signal, and the speed signal of the motor is obtained synchronously.
[0101] After acquiring the speed signal, the target signal and the corresponding speed signal are converted into frequency domain, the target signal and the speed signal are converted from time domain signals into frequency domain signals, and the target signal in the frequency domain and the speed signal in the frequency domain are sampled to obtain a one-to-one corresponding current sequence and speed sequence.
[0102] According to the transfer function between the motor and the load, the amplitude-frequency sequence of the motor and the load is calculated by substituting the torque coefficient, current sequence and speed sequence of the motor. According to each item in the amplitude-frequency sequence, the corresponding point is drawn in the Bode diagram, and then a coherent amplitude-frequency curve is fitted based on these points, which is the above-mentioned target curve.
[0103] The embodiment of the present invention can perform inertia measurement in a current closed loop, that is, a speed open loop, so there is no measurement instability, and the inertia calculation reliability is high. The load inertia of the motor is calculated through the target curve, and the drive signal of the motor is adjusted according to the calculated load inertia, which can eliminate the influence of the load inertia on the convergence of the speed loop in the motor control, reduce the vibration and noise of the motor, and improve the operation effect of the motor.
[0104] In some embodiments of the present invention, determining the load inertia of the motor according to the target curve includes: determining a straight line where a straight line segment of the target curve is located; and determining the load inertia according to the straight line and the rotational inertia of the motor.
[0105] In an embodiment of the present invention, the mechanical transmission part including a motor and a load can be abstracted into a two-mass system of motor→transmission part→load, wherein the two-mass system can be represented by a transfer function, and the transfer function includes two parts, one is the mechanical transmission part of the rigid system, and the other is the resonance part caused by the flexible connection.
[0106] Among them, the mechanical transmission part of the rigid system corresponds to the straight line segment of the target curve, and the resonant part caused by the flexible connection corresponds to the curved line segment of the target curve. When the motor runs at a low frequency, the resonant part caused by the flexible connection has little effect on the system transfer function, so the straight line segment corresponding to the transmission part of the rigid system can be taken for calculation.
[0107] Specifically, the target curve is the curve in the Bode diagram, where the horizontal axis represents the frequency logarithm and the vertical axis represents the frequency amplitude. First, according to the straight line segment corresponding to the mechanical transmission part of the rigid system, determine the straight line where the straight line segment is located, and then determine the intersection of this straight line and the vertical axis of the Bode diagram, that is, the straight line at the frequency logarithm of 10 0 The first amplitude corresponding to Hz.
[0108] Next, determine the first frequency corresponding to the intersection of the straight line and the straight line with an amplitude of 0 dB in the Bode diagram, and obtain the motor's own moment of inertia. Based on the function corresponding to the target curve in the straight line segment in the Bode diagram, the load inertia of the motor can be calculated through the first amplitude, the first frequency and the moment of inertia of the motor, and adjust the motor drive signal according to the load inertia, thereby eliminating the influence of the load inertia on the convergence of the speed loop in motor control and achieving more precise motor control.
[0109] In some embodiments of the present invention, before converting the target signal and the speed signal from time domain signals into frequency domain signals, the method also includes: sampling the target signal according to the target sampling frequency to obtain a sampled target signal; sampling the speed signal according to the target sampling frequency to obtain a sampled speed signal; and converting the sampled target signal and the sampled speed signal into frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain.
[0110] In an embodiment of the present invention, before converting the target signal and the speed signal from the time domain to the frequency domain, the target signal after the drive signal and the excitation signal of the motor are superimposed is first sampled according to the target sampling frequency to obtain a sampled target signal. The target sampling frequency can indicate the time interval between two samples when sampling the target signal. It can be understood that the higher the target sampling frequency, the denser the sampled target is, and the shorter the time interval between two adjacent samples is.
[0111] Each time the target signal is sampled, the motor speed signal is sampled at the same target sampling frequency to obtain a sampled speed signal. Wherein, each time a sampled target signal is sampled, a sampled speed signal can be sampled at the same time, so that the sampled target signal corresponds to the sampled speed signal one by one.
[0112] After obtaining the sampled target signal and the sampled speed signal, the step of converting the target signal and the speed signal from time domain signals to frequency domain signals specifically includes: converting the sampled target signal and the sampled speed signal to frequency domain signals to obtain corresponding current sequences and speed sequences.
[0113] For example, after the acquisition starts, three target signals are collected at 1 second, 2 seconds, and 3 seconds, which are recorded as I1, I2, and I3 respectively. At the same time, three speed signals are collected at 1 second, 2 seconds, and 3 seconds, which are Q1, Q2, and Q3 respectively. Among them, Q1 is the speed signal of the motor when the motor is driven by the target signal I1. Similarly, Q2 is the speed signal of the motor when the motor is driven by the current I2, and Q3 is the speed signal of the motor when the motor is driven by the current I3. After the sampling is completed, the current sequences I(n) and Q(n) are generated.
[0114] The present application samples the target signal and the speed of the motor according to the target sampling frequency to form corresponding current sequences and speed sequences respectively, and obtains the amplitude-frequency sequence of the motor according to the current sequence, the speed sequence and the transfer function. Based on the target curve fitted by the amplitude-frequency sequence in the Bode diagram, the load inertia of the motor is accurately calculated, which is beneficial to eliminate the influence of the load inertia on the convergence of the speed loop in the motor control and realize more precise motor control.
[0115] In some embodiments of the present invention, the determination method further includes: changing the target sampling frequency at least once; repeatedly obtaining different current sequences and speed sequences; and calculating the average value of the load inertia obtained according to the different current sequences and speed sequences as the final load inertia.
[0116] In the embodiment of the present invention, by changing the target sampling frequency, the target signal and the motor speed signal are repeatedly sampled at different sampling frequencies, thereby generating multiple sets of current sequences and corresponding multiple sets of speed sequences. Afterwards, multiple sets of load inertia are calculated based on the multiple sets of different current sequences and the multiple sets of different speed sequences, and the final load inertia is obtained by calculating the average value of the multiple sets of load inertia.
[0117] The present application can reduce the sampling error caused by signal fluctuations by performing multiple sampling, multiple calculations of load inertia, and obtaining the average value, thereby improving the accuracy of load inertia calculation, thereby achieving more precise motor control and improving the operating effect of the motor.
[0118] In some embodiments of the present invention, the sampled target signal and the sampled speed signal are converted into frequency domain signals, including: performing anti-leakage processing on the sampled target signal; and / or performing anti-leakage processing on the sampled speed signal; performing fast Fourier transform on the processed target signal and speed signal to obtain a current sequence and a speed sequence.
[0119] In an embodiment of the present invention, when converting the target signal from the time domain to the frequency domain, the excitation current sequence in the time domain may be first subjected to anti-leakage processing, such as windowing the excitation signal or performing an end-zero padding operation on the excitation current sequence in the time domain.
[0120] Afterwards, a Fast Fourier Transform (FFT) is performed on the processed data sequence, thereby converting the target signal sequence in the time domain into a current sequence in the frequency domain.
[0121] Similarly, since the speed signal in the speed sequence corresponds one-to-one to the target signal in the current sequence, the speed sequence can be fast Fourier transformed in the same way to convert the speed signal sequence in the time domain into a speed sequence in the frequency domain.
[0122] By converting the target signal and the speed signal from time domain signals to frequency domain signals, the current sequence and the speed sequence in the frequency domain are obtained, and the corresponding amplitude-frequency sequence is generated according to the current sequence and the speed sequence. By fitting the target curve corresponding to the amplitude-frequency sequence in the Bode diagram, the load inertia of the motor is calculated through the target curve based on the graphical method, so that the inertia of the load during the operation of the motor can be accurately obtained. By adjusting the driving signal of the motor through the load inertia, more accurate speed open-loop control or speed closed-loop control can be achieved, thereby reducing motor vibration and noise and improving the operation effect of the motor.
[0123] In the case where the excitation signal is the longest linear feedback shift register sequence, the method includes: using the target sampling frequency as the injection frequency of the longest linear feedback shift register sequence.
[0124] In an embodiment of the present invention, when generating an excitation signal, an excitation signal of the longest linear feedback shift register sequence (also called M sequence) can be generated. Specifically, the M sequence is a sequence with the longest period generated by a shift register with linear feedback. The M sequence is a typical pseudo-random sequence.
[0125] When the excitation signal is an M sequence, the injection frequency of the excitation signal is the target sampling frequency, that is, the injection frequency of the excitation signal is the same as the sampling frequency of the target signal, which is beneficial to improve the calculation accuracy of the load inertia and can achieve more accurate speed open-loop control or speed closed-loop control, thereby reducing motor vibration and noise and improving the operation effect of the motor.
[0126] In some embodiments of the present invention, when the excitation signal is an M-sequence excitation signal, Figure 2 FIG. 2 shows a second flow chart of a method for determining load inertia according to an embodiment of the present invention. Figure 2 As shown, the method includes:
[0127] Step 202, injecting a current excitation signal into a drive signal of the motor;
[0128] In step 202, the current excitation signal is an M-sequence excitation signal;
[0129] Step 204, collecting the actual speed signal of the motor;
[0130] Step 206, processing the sequence of current excitation signals and the sequence of speed signals to generate an amplitude-frequency response curve;
[0131] Step 208: Perform curve analysis and fitting according to the amplitude-frequency response curve to calculate the load inertia.
[0132] In some embodiments of the present invention, when the excitation signal is a sinusoidal swept frequency signal, the method also includes: determining the minimum frequency, maximum frequency and frequency interval of the sinusoidal swept frequency signal according to the target sampling frequency; determining the starting frequency of the sinusoidal swept frequency signal, wherein the starting frequency is greater than the minimum frequency; using the starting frequency as the frequency of the sinusoidal swept frequency signal; and sequentially increasing the frequency by the frequency interval as the new frequency of the sinusoidal swept frequency signal until the new frequency is greater than the maximum frequency, and stopping injecting the sinusoidal swept frequency signal.
[0133] In the embodiment of the present invention, the excitation signal is specifically a sine swept signal, wherein the minimum frequency, the maximum frequency and the swept frequency interval of the sine swept excitation signal can be set according to a preset target sampling frequency.
[0134] Specifically, according to the target sampling frequency for sampling the target signal, first set the minimum sinusoidal frequency and maximum sinusoidal frequency at which the motor drive signal can be injected during motor operation. The minimum sinusoidal frequency is the minimum frequency of the sinusoidal swept frequency signal, and the maximum sinusoidal frequency is the maximum frequency of the sinusoidal swept frequency signal.
[0135] Then, the frequency interval is set, where the frequency interval is related to the target sampling frequency and the number of sampling points N of the sampled target signal. Specifically, let the target sampling frequency be Ts, let the frequency interval be Δf, then the frequency interval Δf=1÷(N×Ts), that is, the higher the sampling frequency, the greater the number of target signals to be collected, the smaller the frequency interval, the smaller the interval between the obtained N target signals, and the denser the N target signals, thereby ensuring that the sampled data can accurately reflect the actual operation of the motor and improve the calculation accuracy of the load inertia.
[0136] When injecting a signal, the starting frequency of the sine frequency sweep signal is determined according to the minimum frequency, wherein the starting frequency is greater than the minimum frequency. In some embodiments, the starting frequency is the sum of the minimum frequency and the frequency interval. When injecting an excitation signal, the starting frequency is first injected according to the target sampling frequency, and then the frequency of the sine frequency sweep signal is gradually increased according to the frequency interval to obtain a new frequency of the sine frequency sweep signal. The sine frequency sweep signal of the new frequency is continuously injected until the new frequency of the sine frequency sweep signal exceeds the maximum frequency, and then the injection of the frequency sweep signal is stopped.
[0137] In some embodiments of the present invention, when the excitation signal is a frequency sweep signal, Figure 3 FIG. 3 shows a flow chart of a method for determining load inertia according to an embodiment of the present invention. Figure 3 As shown, the method includes:
[0138] Step 302, injecting a sine sweep signal with a frequency of Fk into the driving signal of the motor;
[0139] Step 304, collecting the actual speed signal of the motor;
[0140] Step 306, calculating amplitude-frequency data according to the frequency sweep signal and the speed signal;
[0141] Step 308, determining whether the frequency Fk of the frequency sweep signal is greater than the maximum injection frequency; if yes, proceed to step 310, otherwise, execute step 302 again;
[0142] Step 310: Generate an amplitude-frequency response curve, perform curve analysis and fitting based on the amplitude-frequency response curve, and calculate the load inertia.
[0143] Wherein, Fk=F1, F2, ..., FL, L is the number of sine waves, the frequency of F1 is greater than or equal to the minimum frequency of the swept frequency signal, and the frequency of FL is less than or equal to the maximum frequency of the swept frequency signal.
[0144] In some embodiments of the present invention, the target signal and the speed signal are converted from time domain signals to frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain, including: performing discrete Fourier transform on the target signal and the speed signal respectively to obtain a current sequence and a speed sequence.
[0145] In the embodiment of the present invention, since the excitation signal is a sinusoidal swept frequency signal sequence, that is, the excitation signal is a discrete signal with gradually increasing frequency, when converting the target signal from the time domain to the frequency domain, a discrete Fourier transform (DFT) calculation can be performed on the excitation current sequence in the time domain, thereby converting the sequence of target signals in the time domain into a current sequence in the frequency domain.
[0146] Similarly, since the speed sequence corresponds one-to-one to the current sequence, the speed sequence can be discrete Fourier transformed in the same way to convert the speed signal sequence in the time domain into a speed sequence in the frequency domain.
[0147] In some embodiments of the present invention, the driving signal of the motor is a driving signal of speed open-loop control.
[0148] In an embodiment of the present invention, Figure 4 FIG. 4 shows a schematic diagram of a system for controlling the speed open loop of a motor according to an embodiment of the present invention. Figure 4As shown, the control system 400 of the motor includes a motor driving device 402, a motor 404, a data acquisition device 406 and a load inertia calculation device 408. Specifically, when the load inertia of the motor 404 is calculated by injecting an excitation signal into the driving signal of the motor 404, the driving signal of the motor 404 can be a driving signal of speed open-loop control, that is, the load inertia of the motor 404 is calculated under speed open-loop control. Since the motor 404 is in speed open-loop control, the speed controller of the motor 404 will not output a speed adjustment signal, and the target signal only includes the original driving signal and the excitation signal. Therefore, the calculation process is more concise, which is conducive to improving the calculation speed of the load inertia of the motor, improving the timeliness of adjusting the motor control according to the load inertia, and thus improving the working effect of the motor.
[0149] In some embodiments of the present invention, the driving signal of the motor is a driving signal for speed closed-loop control; the amplitude-frequency sequence of the transfer function of the motor and the load is determined according to the current sequence and the speed sequence, including: according to the target sampling frequency, the output signal of the speed controller of the motor is collected to obtain a speed regulation signal; according to the speed regulation signal, a corresponding signal sequence is generated; according to the speed regulation signal, the amplitude-frequency sequence is determined.
[0150] In an embodiment of the present invention, Figure 5 FIG. 4 shows a schematic diagram of a system for closed-loop speed control of a motor according to an embodiment of the present invention. Figure 5 As shown, the control system 500 of the motor includes a motor driving device 502, a motor 504, a data acquisition device 506, a load inertia calculation device 508 and a speed controller 510. When the load inertia of the motor 504 is calculated by injecting an excitation signal into the driving signal of the motor 504, the driving signal of the motor 504 can be a driving signal of a speed closed-loop control, that is, the load inertia of the motor 504 is calculated under the speed closed-loop control.
[0151] Since the motor's speed controller generates and outputs a speed regulation signal based on the motor's real-time speed signal when the motor is in closed-loop control, the target signal is actually the superposition of the original motor drive signal, the excitation signal, and the output signal of the speed controller.
[0152] Therefore, when determining the amplitude-frequency sequence, the influence of the speed control output speed regulation signal needs to be considered. Specifically, when collecting the target signal, the output signal of the motor speed controller is sampled according to the same target sampling frequency as when collecting the target signal, and the sampled speed regulation signal corresponds to the target signal and the speed signal one by one.
[0153] Then, according to the speed regulation signal, a corresponding signal sequence is generated, and based on the signal sequence, the current sequence obtained by sampling the target signal, the speed sequence corresponding to the current sequence and the torque coefficient of the motor, the amplitude-frequency sequence is calculated based on the transfer function of the mechanical part of the motor.
[0154] The embodiment of the present invention can calculate the load inertia of the motor when the motor is in speed closed-loop control, so that no matter what operating mode the motor is in, the influence of the load inertia on the convergence of the speed loop in the motor control can always be eliminated, thereby achieving more precise motor control, reducing motor vibration and noise, and improving the operating effect of the motor.
[0155] In some embodiments of the present invention, the amplitude-frequency sequence is:
[0156]
[0157] Among them, G mech (k) is the amplitude-frequency sequence, W M (k) is the speed sequence, I(k) is the current sequence, K T is the torque coefficient of the motor.
[0158] In an embodiment of the present invention, for a motor under speed open-loop control, the amplitude-frequency sequence includes N amplitude-frequency data, wherein the amplitude-frequency data is the product of the speed signal divided by the torque coefficient of the motor and the target signal corresponding to the speed signal at the same time. The corresponding amplitude-frequency data is calculated according to the target signal and the speed signal sampled in each sampling, and the torque coefficient of the motor, and finally formed into an amplitude-frequency sequence, and a target curve is formed in the Bode diagram according to the amplitude-frequency sequence. According to the target curve, the load inertia of the motor can be accurately calculated, so that the influence of the load inertia on the convergence of the speed loop in the motor control can be eliminated, and more accurate motor control can be achieved, reducing motor vibration and noise, and improving the operation effect of the motor.
[0159] In some embodiments of the present invention, the amplitude-frequency sequence is:
[0160]
[0161] Among them, G mech (k) is the amplitude-frequency sequence, W M (k) is the speed sequence, I(k) is the current sequence, K T is the torque coefficient of the motor, T e,ref (k) is the torque command signal sequence.
[0162] In an embodiment of the present invention, for a motor under speed closed-loop control, the amplitude-frequency sequence includes N amplitude-frequency data, wherein the amplitude-frequency data is the product of the speed signal divided by the torque coefficient of the motor and the target signal and the speed adjustment signal corresponding to the speed signal at the same time. The corresponding amplitude-frequency data is calculated according to the target signal, the speed signal and the speed adjustment signal sampled in each sampling, and the torque coefficient of the motor, and finally formed into an amplitude-frequency sequence, and a target curve is formed in the Bode diagram according to the amplitude-frequency sequence. According to the target curve, the load inertia of the motor can be accurately calculated, so that the influence of the load inertia on the convergence of the speed loop in the motor control can be eliminated, and more accurate motor control can be achieved, reducing motor vibration and noise, and improving the operation effect of the motor.
[0163] In some embodiments of the present invention, the load inertia is determined according to the rotational inertia of the linear and motor, including:
[0164] Determine the straight line at a frequency logarithm of 10 0 The first amplitude corresponding to Hz, that is, the first amplitude corresponding to the intersection of the straight line where the straight line segment is located and the vertical axis in the Bode diagram, and the first frequency corresponding to the intersection of the straight line and the line with an amplitude of 0 dB in the Bode diagram;
[0165] Substituting the first frequency into the first formula, we get the second formula;
[0166] Calculate the load inertia through the first amplitude and the second formula;
[0167] Among them, the first frequency is:
[0168]
[0169] The first formula is:
[0170] y=-20log 10 f+b
[0171] The second formula is:
[0172]
[0173] Among them, J L is the load inertia, J M is the moment of inertia of the motor, b is the first amplitude, and (f, y) is the coordinate of any point on the straight line segment.
[0174] In the embodiment of the present invention, the straight line segment of the target curve in the Bode diagram is set to the first formula:
[0175] y=-20log 10 f+b
[0176] Furthermore, after substituting the first frequency into the first formula, the formula is obtained:
[0177]
[0178] By transforming the above formula, we get the second formula:
[0179]
[0180] Then, by substituting the first amplitude into the second formula, the load inertia J can be obtained. L , thereby eliminating the influence of load inertia on the convergence of the speed loop in motor control, achieving more precise motor control, reducing motor vibration and noise, and improving the operation effect of the motor.
[0181] It can be understood that the first formula above is a function expression of the straight line where the straight line segment of the amplitude-frequency curve in the Bode diagram is located, and the function expression is expressed by the slope of the known straight line and the coordinates of the intersection of the straight line and the ordinate. According to the straight line segment of the amplitude-frequency curve, it can be known that the slope of the straight line where the straight line segment is located is -20.
[0182] In some implementations, the first formula may also be expressed by the intersection of the above-mentioned known slope and the straight line of 0 dB (ie, the horizontal axis). In this case, another expression of the first formula is:
[0183] y=-20(log 10 f-log 10 x0)
[0184] Among them, x0 is the horizontal coordinate of the intersection of the straight line and the straight line with an amplitude of 0 dB in the Bode diagram, and (f, y) is the coordinate of any point on the straight line segment, that is, the first frequency mentioned above.
[0185] In other embodiments, since the points on the straight line segment of the amplitude-frequency curve are also the points on the straight line where the straight line segment is located, any two points can be selected on the straight line segment of the amplitude-frequency curve, such as point A and point B, and the function expression of the straight line where the straight line segment is located can be expressed by the two-point expression.
[0186] At this time, the first formula can also be expressed as:
[0187]
[0188] Among them, (log 10 x1, y1) are the coordinates of the point A, (log 10 x2, y2) are the coordinates of the point B, where (log 10 x,y)=(log 10 f, 0).
[0189] In the real-time mode, since point A and point B are points on a straight line segment, point A and point B can be determined by the low-frequency term in the amplitude-frequency sequence.
[0190] In some embodiments of the present invention, the motor is connected to the load via a connecting member;
[0191] The transfer function is:
[0192]
[0193] Among them, G mech (s) is the amplitude-frequency curve equation of the motor, ω M is the speed signal, T e is the electromagnetic torque of the motor, J M is the moment of inertia of the motor, J L is the load inertia, B S is the damping coefficient of the connection, K S is the elastic coefficient of the connection, and s is the Labrador operator.
[0194] In the embodiment of the present invention, the motor, the connecting member and the load can be abstracted into a two-mass system of motor→connecting member→load, and the transfer function of the two-mass system is shown above.
[0195] The transfer function consists of two parts, where: The part is the equivalent rigid system equation, and The part is the resonance equation caused by the flexible system.
[0196] For the above amplitude-frequency curve equation, in the low frequency band, the resonance part caused by the flexible system does not work, only the rigid system part works, so it can be The rigid system part of the target curve is solved, which corresponds to the straight line segment in the target curve.
[0197] in, It is a first-order inertial link. Its amplitude-frequency curve is a slant line of -20dB over ten times the frequency range. Its intersection with the 0dB line is Therefore, based on this feature, the load moment of inertia can be calculated through a graphical method, thereby achieving more precise motor control.
[0198] Embodiment 2
[0199] In some embodiments of the present invention, a device for determining the load inertia of a motor is provided. Figure 6 FIG. 4 shows a structural block diagram of a device for determining load inertia according to an embodiment of the present invention. Figure 6 As shown, the load inertia determination device 600 includes:
[0200] The injection module 602 is used to inject an excitation signal into the driving signal of the motor and superimpose it with the command signal to form a target signal; the driving module 604 is used to drive the motor to operate through the target signal; the determination module 606 is used to determine the speed signal of the motor; the conversion module 608 is used to convert the target signal and the speed signal from time domain signals to frequency domain signals to obtain the current sequence and speed sequence in the frequency domain; the determination module 606 is also used to determine the amplitude-frequency sequence of the transfer function of the motor and the load according to the current sequence and the speed sequence; the fitting module 610 is used to fit the amplitude-frequency sequence into a target curve; the determination module 606 is also used to determine the load inertia of the motor according to the target curve.
[0201] In the embodiment of the present invention, during the operation of the motor, the load inertia of the motor is determined, thereby eliminating the influence of the load inertia on the convergence of the speed loop and improving the control effect of the motor.
[0202] Specifically, during the operation of the motor, a preset excitation signal is injected into the drive signal of the motor, so that the excitation signal is superimposed on the command signal of the motor to form a target signal. During the operation of the motor, the motor is driven by the target signal superimposed with the excitation signal, and the speed signal of the motor is obtained synchronously.
[0203] After acquiring the speed signal, the target signal and the corresponding speed signal are converted into frequency domain, the target signal and the speed signal are converted from time domain signals into frequency domain signals, and the target signal in the frequency domain and the speed signal in the frequency domain are sampled to obtain a one-to-one corresponding current sequence and speed sequence.
[0204] The embodiment of the present invention can perform inertia measurement in a current closed loop, that is, a speed open loop, so there is no measurement instability, and the inertia calculation reliability is high. The load inertia of the motor is calculated through the target curve, and the drive signal of the motor is adjusted according to the calculated load inertia, which can eliminate the influence of the load inertia on the convergence of the speed loop in the motor control, reduce the vibration and noise of the motor, and improve the operation effect of the motor.
[0205] In some embodiments of the present invention, the determination module is further used to: determine the straight line where the straight line segment of the target curve is located; and determine the load inertia according to the straight line and the rotational inertia of the motor.
[0206] In an embodiment of the present invention, the mechanical transmission part including a motor and a load can be abstracted into a two-mass system of motor→transmission part→load, wherein the two-mass system can be represented by a transfer function, and the transfer function includes two parts, one is the mechanical transmission part of the rigid system, and the other is the resonance part caused by the flexible connection.
[0207] The target curve includes straight segments and curved segments. The mechanical transmission part of the rigid system corresponds to the straight segment of the target curve, while the resonant part caused by the flexible connection corresponds to the curved segment of the target curve. When the motor runs at a low frequency, the resonant part caused by the flexible connection has little effect on the system transfer function, so the straight segment corresponding to the transmission part of the rigid system can be taken for calculation.
[0208] Specifically, the target curve is the curve in the Bode diagram, where the horizontal axis represents the frequency logarithm and the vertical axis represents the frequency amplitude. First, according to the straight line segment corresponding to the mechanical transmission part of the rigid system, determine the straight line where the straight line segment is located, and then determine the intersection of this straight line and the vertical axis of the Bode diagram, that is, the straight line at the frequency logarithm of 10 0 The first amplitude corresponding to Hz.
[0209] Next, determine the first frequency corresponding to the intersection of the straight line and the straight line with an amplitude of 0 dB in the Bode diagram, and obtain the motor's own moment of inertia. Based on the function corresponding to the target curve in the straight line segment in the Bode diagram, the load inertia of the motor can be calculated through the first amplitude, the first frequency and the moment of inertia of the motor, and adjust the motor drive signal according to the load inertia, thereby eliminating the influence of the load inertia on the convergence of the speed loop in motor control and achieving more precise motor control.
[0210] In some embodiments of the present invention, the load inertia determination device also includes: a sampling module, which is used to sample the target signal according to the target sampling frequency to obtain a sampled target signal; sample the speed signal according to the target sampling frequency to obtain a sampled speed signal; the conversion module is also used to convert the sampled target signal and the sampled speed signal into frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain.
[0211] In an embodiment of the present invention, before converting the target signal and the speed signal from the time domain to the frequency domain, the target signal after the drive signal and the excitation signal of the motor are superimposed is first sampled according to the target sampling frequency to obtain a sampled target signal. The target sampling frequency can indicate the time interval between two samples when sampling the target signal. It can be understood that the higher the target sampling frequency, the denser the sampled target is, and the shorter the time interval between two adjacent samples is.
[0212] Each time the target signal is sampled, the motor speed signal is sampled at the same target sampling frequency to obtain a sampled speed signal. Wherein, each time a sampled target signal is sampled, a sampled speed signal can be sampled at the same time, so that the sampled target signal corresponds to the sampled speed signal one by one.
[0213] After obtaining the sampled target signal and the sampled speed signal, the step of converting the target signal and the speed signal from time domain signals to frequency domain signals specifically includes: converting the sampled target signal and the sampled speed signal to frequency domain signals to obtain corresponding current sequences and speed sequences.
[0214] For example, after the acquisition starts, three sampled target signals are collected at 1 second, 2 seconds, and 3 seconds, which are recorded as I1, I2, and I3 respectively. At the same time, three sampled speed signals are collected at 1 second, 2 seconds, and 3 seconds, which are Q1, Q2, and Q3 respectively. Among them, Q1 is the speed signal of the motor when the motor is driven by the target signal I1. Similarly, Q2 is the speed signal of the motor when the motor is driven by the current I2, and Q3 is the speed signal of the motor when the motor is driven by the current I3. After the sampling is completed, the current sequences I(n) and Q(n) are generated.
[0215] The present application samples the target signal and the speed of the motor according to the target sampling frequency to form corresponding current sequences and speed sequences respectively, and obtains the amplitude-frequency sequence of the motor according to the current sequence, the speed sequence and the transfer function. Based on the target curve fitted by the amplitude-frequency sequence in the Bode diagram, the load inertia of the motor is accurately calculated, which is beneficial to eliminate the influence of the load inertia on the convergence of the speed loop in the motor control and realize more precise motor control.
[0216] In some embodiments of the present invention, the load inertia determination device also includes: an adjustment module, used to change the target sampling frequency at least once; repeatedly obtain different current sequences and speed sequences; a calculation module, used to calculate the average value of the load inertia obtained according to different current sequences and speed sequences as the final load inertia.
[0217] In the embodiment of the present invention, by changing the target sampling frequency, the target signal and the motor speed signal are repeatedly sampled at different sampling frequencies, thereby generating multiple sets of current sequences and corresponding multiple sets of speed sequences. Afterwards, multiple sets of load inertia are calculated based on the multiple sets of different current sequences and the multiple sets of different speed sequences, and the final load inertia is obtained by calculating the average value of the multiple sets of load inertia.
[0218] The present application can reduce the sampling error caused by signal fluctuations by performing multiple sampling, multiple calculations of load inertia, and obtaining the average value, thereby improving the accuracy of load inertia calculation, thereby achieving more precise motor control and improving the operating effect of the motor.
[0219] In some embodiments of the present invention, the conversion module is also used to: perform anti-leakage processing on the sampled target signal; and / or perform anti-leakage processing on the sampled speed signal; perform fast Fourier transform on the processed target signal and speed signal to obtain a current sequence and a speed sequence.
[0220] In an embodiment of the present invention, when converting the target signal from the time domain to the frequency domain, the excitation current sequence in the time domain may be first subjected to anti-leakage processing, such as windowing the excitation signal or performing an end-zero padding operation on the excitation current sequence in the time domain.
[0221] Afterwards, a Fast Fourier Transform (FFT) is performed on the processed data sequence, thereby converting the target signal sequence in the time domain into a current sequence in the frequency domain.
[0222] Similarly, since the speed signal in the speed sequence corresponds one-to-one to the target signal in the current sequence, the speed sequence can be fast Fourier transformed in the same way to convert the speed signal sequence in the time domain into a speed sequence in the frequency domain.
[0223] By converting the target signal and the speed signal from time domain signals to frequency domain signals, the current sequence and the speed sequence in the frequency domain are obtained, and the corresponding amplitude-frequency sequence is generated according to the current sequence and the speed sequence. By fitting the target curve corresponding to the amplitude-frequency sequence in the Bode diagram, the load inertia of the motor is calculated through the target curve based on the graphical method, so that the inertia of the load during the operation of the motor can be accurately obtained. By adjusting the driving signal of the motor through the load inertia, more accurate speed open-loop control or speed closed-loop control can be achieved, thereby reducing motor vibration and noise and improving the operation effect of the motor.
[0224] In some embodiments of the present invention, when the excitation signal is the longest linear feedback shift register sequence, the determination module is further configured to: use the target sampling frequency as the injection frequency of the longest linear feedback shift register sequence.
[0225] In an embodiment of the present invention, when generating an excitation signal, an excitation signal of the longest linear feedback shift register sequence (also called M sequence) can be generated. Specifically, the M sequence is a sequence with the longest period generated by a shift register with linear feedback. The M sequence is a typical pseudo-random sequence.
[0226] When the excitation signal is an M sequence, the injection frequency of the excitation signal is the target sampling frequency, that is, the injection frequency of the excitation signal is the same as the sampling frequency of the target signal, which is beneficial to improve the calculation accuracy of the load inertia and can achieve more accurate speed open-loop control or speed closed-loop control, thereby reducing motor vibration and noise and improving the operation effect of the motor.
[0227] In some embodiments of the present invention, when the excitation signal is a sinusoidal swept frequency signal, the determination module is also used to: determine the minimum frequency, maximum frequency and frequency interval of the sinusoidal swept frequency signal according to the target sampling frequency; determine the starting frequency of the sinusoidal swept frequency signal, wherein the starting frequency is greater than the minimum frequency; use the starting frequency as the frequency of the sinusoidal swept frequency signal; and sequentially increase the frequency by the frequency interval as the new frequency of the sinusoidal swept frequency signal until the new frequency is greater than the maximum frequency, and stop injecting the sinusoidal swept frequency signal.
[0228] In the embodiment of the present invention, the excitation signal is specifically a sine swept signal, wherein the minimum frequency, the maximum frequency and the swept frequency interval of the sine swept excitation signal can be set according to a preset target sampling frequency.
[0229] Specifically, according to the target sampling frequency for sampling the target signal, first set the minimum sinusoidal frequency and maximum sinusoidal frequency at which the motor drive signal can be injected during motor operation. The minimum sinusoidal frequency is the minimum frequency of the sinusoidal swept frequency signal, and the maximum sinusoidal frequency is the maximum frequency of the sinusoidal swept frequency signal.
[0230] Then, the frequency interval is set, where the frequency interval is related to the target sampling frequency and the number of sampling points N of the sampled target signal. Specifically, let the target sampling frequency be Ts, let the frequency interval be Δf, then the frequency interval Δf=1÷(N×Ts), that is, the higher the sampling frequency, the greater the number of target signals to be collected, the smaller the frequency interval, the smaller the interval between the obtained N target signals, and the denser the N target signals, thereby ensuring that the sampled data can accurately reflect the actual operation of the motor and improve the calculation accuracy of the load inertia.
[0231] When injecting a signal, the starting frequency of the sine frequency sweep signal is determined according to the minimum frequency, wherein the starting frequency is greater than the minimum frequency. In some embodiments, the starting frequency is the sum of the minimum frequency and the frequency interval. When injecting an excitation signal, the starting frequency is first injected according to the target sampling frequency, and then the frequency of the sine frequency sweep signal is gradually increased according to the frequency interval to obtain a new frequency of the sine frequency sweep signal. The sine frequency sweep signal of the new frequency is continuously injected until the new frequency of the sine frequency sweep signal exceeds the maximum frequency, and then the injection of the frequency sweep signal is stopped.
[0232] In some embodiments of the present invention, the conversion module is further used to: perform discrete Fourier transform on the target signal and the rotation speed signal respectively to obtain a current sequence and a rotation speed sequence.
[0233] In the embodiment of the present invention, since the excitation signal is a sinusoidal swept frequency signal sequence, that is, the excitation signal is a discrete signal with gradually increasing frequency, when converting the target signal from the time domain to the frequency domain, a discrete Fourier transform (DFT) calculation can be performed on the excitation current sequence in the time domain, thereby converting the sequence of target signals in the time domain into a current sequence in the frequency domain.
[0234] Similarly, since the speed sequence corresponds one-to-one to the current sequence, the speed sequence can be discrete Fourier transformed in the same way to convert the speed signal sequence in the time domain into a speed sequence in the frequency domain.
[0235] In some embodiments of the present invention, the driving signal of the motor is a driving signal of speed open-loop control.
[0236] In an embodiment of the present invention, when the load inertia of the motor is calculated by injecting an excitation signal into the drive signal of the motor, the drive signal of the motor may be a drive signal of speed open-loop control, that is, the load inertia of the motor is calculated under speed open-loop control. Since the motor is under speed open-loop control, the speed controller of the motor will not output a speed adjustment signal, and the target signal only includes the original drive signal and the excitation signal. Therefore, the calculation process is more concise, which is conducive to improving the calculation speed of the load inertia of the motor, improving the timeliness of adjusting the motor control according to the load inertia, and thus improving the working effect of the motor.
[0237] In some embodiments of the present invention, the driving signal of the motor is a driving signal of speed closed-loop control; the sampling module is also used to collect the output signal of the speed controller of the motor according to the target sampling frequency to obtain a speed regulation signal; the determination module is also used to generate a corresponding signal sequence according to the speed regulation signal; and the amplitude-frequency sequence is determined according to the signal sequence, torque coefficient, current sequence, speed sequence and transfer function.
[0238] In an embodiment of the present invention, when the load inertia of the motor is calculated by injecting an excitation signal into the drive signal of the motor, the drive signal of the motor may be a drive signal of speed closed-loop control, that is, the load inertia of the motor is calculated under speed closed-loop control.
[0239] Since the motor's speed controller generates and outputs a speed regulation signal based on the motor's real-time speed signal when the motor is in closed-loop control, the target signal is actually the superposition of the original motor drive signal, the excitation signal, and the output signal of the speed controller.
[0240] Therefore, when determining the amplitude-frequency sequence, the influence of the speed control output speed regulation signal needs to be considered. Specifically, when collecting the target signal, the output signal of the motor speed controller is sampled according to the same target sampling frequency as when collecting the target signal, and the sampled speed regulation signal corresponds to the target signal and the speed signal one by one.
[0241] Then, according to the speed regulation signal, a corresponding signal sequence is generated, and based on the signal sequence, the current sequence obtained by sampling the target signal, the speed sequence corresponding to the current sequence and the torque coefficient of the motor, the amplitude-frequency sequence is calculated based on the transfer function of the mechanical part of the motor.
[0242] The embodiment of the present invention can calculate the load inertia of the motor when the motor is in speed closed-loop control, so that no matter what operating mode the motor is in, the influence of the load inertia on the convergence of the speed loop in the motor control can always be eliminated, thereby achieving more precise motor control, reducing motor vibration and noise, and improving the operating effect of the motor.
[0243] Embodiment 3
[0244] In some embodiments of the present invention, a motor assembly is provided, Figure 7 FIG. 4 shows a structural block diagram of a motor assembly according to an embodiment of the present invention. Figure 7 As shown, the motor assembly 700 includes: a memory 702 for storing programs or instructions; a processor 704 for implementing the steps of the method for determining the load inertia of the motor provided in any of the above embodiments when executing the programs or instructions.
[0245] In the embodiment of the present invention, during the operation of the motor, the load inertia of the motor is determined, thereby eliminating the influence of the load inertia on the convergence of the speed loop and improving the control effect of the motor.
[0246] Specifically, during the operation of the motor, a preset excitation signal is injected into the drive signal of the motor, so that the excitation signal is superimposed on the command signal of the motor to form a target signal. During the operation of the motor, the motor is driven by the target signal superimposed with the excitation signal, and the speed signal of the motor is obtained synchronously.
[0247] After acquiring the speed signal, the target signal and the corresponding speed signal are converted into frequency domain, the target signal and the speed signal are converted from time domain signals into frequency domain signals, and the target signal in the frequency domain and the speed signal in the frequency domain are sampled to obtain a one-to-one corresponding current sequence and speed sequence.
[0248] According to the transfer function between the motor and the load, the amplitude-frequency sequence of the motor and the load is calculated by substituting the torque coefficient, current sequence and speed sequence of the motor. According to each item in the amplitude-frequency sequence, the corresponding point is drawn in the Bode diagram, and then a coherent amplitude-frequency curve is fitted based on these points, which is the above-mentioned target curve.
[0249] By calculating the load inertia of the motor through the target curve and adjusting the drive signal of the motor according to the calculated load inertia, the influence of the load inertia on the convergence of the speed loop in motor control can be eliminated, the motor vibration and noise can be reduced, and the operation effect of the motor can be improved.
[0250] In some embodiments, the motor assembly is a servo motor assembly.
[0251] Embodiment 4
[0252] In some embodiments of the present invention, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for determining the load inertia of the motor provided in any of the above embodiments are implemented. Therefore, the readable storage medium also includes all the beneficial effects of the method for determining the load inertia of the motor provided in any of the above embodiments. To avoid repetition, they are not repeated here.
[0253] Embodiment 5
[0254] In some embodiments of the present invention, a motor component is provided, comprising a load inertia determination device as provided in any of the above embodiments; and / or a readable storage medium as provided in any of the above embodiments. Therefore, the motor component also includes all the beneficial effects of the load inertia determination device as provided in any of the above embodiments and / or the readable storage medium as provided in any of the above embodiments.
[0255] In the embodiment of the present invention, during the operation of the motor, the load inertia of the motor is determined, thereby eliminating the influence of the load inertia on the convergence of the speed loop and improving the control effect of the motor.
[0256] Specifically, during the operation of the motor, a preset excitation signal is injected into the drive signal of the motor, so that the excitation signal is superimposed on the command signal of the motor to form a target signal. During the operation of the motor, the motor is driven by the target signal superimposed with the excitation signal, and the speed signal of the motor is obtained synchronously.
[0257] After acquiring the speed signal, the target signal and the corresponding speed signal are converted into frequency domain, the target signal and the speed signal are converted from time domain signals into frequency domain signals, and the target signal in the frequency domain and the speed signal in the frequency domain are sampled to obtain a one-to-one corresponding current sequence and speed sequence.
[0258] According to the transfer function between the motor and the load, the amplitude-frequency sequence of the motor and the load is calculated by substituting the torque coefficient, current sequence and speed sequence of the motor. According to each item in the amplitude-frequency sequence, the corresponding point is drawn in the Bode diagram, and then a coherent amplitude-frequency curve is fitted based on these points, which is the above-mentioned target curve.
[0259] By calculating the load inertia of the motor through the target curve and adjusting the drive signal of the motor according to the calculated load inertia, the influence of the load inertia on the convergence of the speed loop in motor control can be eliminated, the motor vibration and noise can be reduced, and the operation effect of the motor can be improved.
[0260] Embodiment 6
[0261] In some embodiments of the present invention, a robot is provided, comprising: a robotic arm; a motor assembly as provided in any of the above embodiments, wherein the motor assembly is connected to the robotic arm, and therefore, the robot also includes all the beneficial effects of the motor assembly as provided in any of the above embodiments.
[0262] In the embodiment of the present invention, during the operation of the motor, the load inertia of the motor is determined, thereby eliminating the influence of the load inertia on the convergence of the speed loop and improving the control effect of the motor.
[0263] Specifically, during the operation of the motor, a preset excitation signal is injected into the drive signal of the motor, so that the excitation signal is superimposed on the command signal of the motor to form a target signal. During the operation of the motor, the motor is driven by the target signal superimposed with the excitation signal, and the speed signal of the motor is obtained synchronously.
[0264] After acquiring the speed signal, the target signal and the corresponding speed signal are converted into frequency domain, the target signal and the speed signal are converted from time domain signals into frequency domain signals, and the target signal in the frequency domain and the speed signal in the frequency domain are sampled to obtain a one-to-one corresponding current sequence and speed sequence.
[0265] According to the transfer function between the motor and the load, the amplitude-frequency sequence of the motor and the load is calculated by substituting the torque coefficient, current sequence and speed sequence of the motor. According to each item in the amplitude-frequency sequence, the corresponding point is drawn in the Bode diagram, and then a coherent amplitude-frequency curve is fitted based on these points, which is the above-mentioned target curve.
[0266] By calculating the load inertia of the motor through the target curve and adjusting the drive signal of the motor according to the calculated load inertia, the influence of the load inertia on the convergence of the speed loop in motor control can be eliminated, the motor vibration and noise can be reduced, and the operation effect of the motor can be improved.
[0267] In the description of the present invention, the term "plurality" refers to two or more than two. Unless otherwise clearly defined, the orientation or positional relationship indicated by the terms "upper" and "lower" is based on the orientation or positional relationship described in the accompanying drawings. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention. The terms "connection", "installation", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0268] In the description of the present invention, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In the present invention, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0269] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for determining the load inertia of a motor, characterized in that: include: Inject an excitation signal into the motor's drive signal and superimpose it with the command signal to form a target signal; driving the motor to operate according to the target signal, and determining a speed signal of the motor; Convert the target signal and the speed signal from time domain signals to frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain; Determining an amplitude-frequency sequence of a transfer function of the motor and the load according to the current sequence and the speed sequence; Fitting the amplitude-frequency sequence into a target curve; as well as Determining the load inertia of the motor according to the target curve; Determining the load inertia of the motor according to the target curve includes: Determine the straight line where the straight line segment of the target curve lies; Determining the load inertia according to the straight line and the rotational inertia of the motor; The step of determining the load inertia according to the straight line and the rotational inertia of the motor comprises: Determine a first amplitude corresponding to an intersection of a straight line where the straight line segment is located and a vertical axis in a Bode diagram and a first frequency corresponding to an intersection of the straight line and a straight line with an amplitude of 0 dB in the Bode diagram, and obtain the rotational inertia of the motor; Based on the function corresponding to the straight line segment of the target curve in the Bode diagram, the load inertia of the motor is calculated by the first amplitude, the first frequency and the rotational inertia of the motor.
2. The determination method according to claim 1, characterized in that: Before converting the target signal and the speed signal from time domain signals to frequency domain signals, the method further includes: Sampling the target signal according to the target sampling frequency to obtain a sampled target signal; According to the target sampling frequency, sampling the rotation speed signal to obtain a sampled rotation speed signal; and The sampled target signal and the sampled rotation speed signal are converted into frequency domain signals to obtain a current sequence and a rotation speed sequence in the frequency domain.
3. The determination method according to claim 2, characterized in that: Also includes: changing the target sampling frequency at least once; Repeating to obtain different current sequences and speed sequences; The load inertia obtained according to the different current sequences and the speed sequences is averaged to serve as the final load inertia.
4. The determination method according to claim 2, characterized in that: The converting the sampled target signal and the sampled rotation speed signal into frequency domain signals comprises: performing leakage prevention processing on the sampled target signal; and / or Performing anti-leakage processing on the sampled speed signal; The processed target signal and the rotation speed signal are subjected to fast Fourier transform to obtain the current sequence and the rotation speed sequence.
5. The determination method according to claim 3, characterized in that: In the case where the excitation signal is a longest linear feedback shift register sequence, the method comprises: The target sampling frequency is used as the injection frequency of the longest linear feedback shift register sequence.
6. The determination method according to claim 3, characterized in that: In the case where the excitation signal is a sine frequency sweep signal, the method further includes: According to the target sampling frequency, determining the minimum frequency, maximum frequency and frequency interval of the sine frequency sweep signal; Determine a starting frequency of the sine frequency sweep signal, wherein the starting frequency is greater than the minimum frequency; Taking the starting frequency as the frequency of the sinusoidal frequency sweep signal; The frequency of the sine frequency sweep signal is sequentially increased by the frequency interval as a new frequency of the sine frequency sweep signal until the new frequency is greater than the maximum frequency, and the injection of the sine frequency sweep signal is stopped.
7. The determination method according to claim 6, characterized in that: The step of converting the target signal and the speed signal from time domain signals to frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain includes: Discrete Fourier transform is performed on the target signal and the rotation speed signal respectively to obtain the current sequence and the rotation speed sequence.
8. The determination method according to any one of claims 3 to 6, characterized in that: The driving signal of the motor is a driving signal of speed open-loop control.
9. The determination method according to any one of claims 3 to 6, characterized in that: The driving signal of the motor is a driving signal of speed closed-loop control; The step of determining the amplitude-frequency sequence of the transfer function of the motor and the load according to the current sequence and the speed sequence comprises: According to the target sampling frequency, an output signal of a speed controller of the motor is collected to obtain a speed adjustment signal; generating a corresponding signal sequence according to the speed adjustment signal; The amplitude-frequency sequence is determined according to the signal sequence, the current sequence, the rotation speed sequence and the transfer function.
10. A device for determining load inertia of a motor, characterized in that: include: An injection module is used to inject an excitation signal into the driving signal of the motor and superimpose it with the command signal to form a target signal; A driving module, used for driving the motor to operate through the target signal; A determination module, used to determine the speed signal of the motor; A conversion module, used for converting the target signal and the speed signal from time domain signals into frequency domain signals to obtain a current sequence and a speed sequence in the frequency domain; The determination module is further used to determine the amplitude-frequency sequence of the transfer function of the motor and the load according to the current sequence and the speed sequence; A fitting module, used for fitting the amplitude-frequency sequence into a target curve; The determination module is further used to determine the load inertia of the motor according to the target curve; The determination module is further used to: determine the straight line where the straight line segment of the target curve is located, and determine the load inertia according to the straight line and the rotational inertia of the motor; The determination module is also used to: determine a first amplitude corresponding to an intersection of the straight line where the straight line segment is located and the vertical axis in the Bode diagram and a first frequency corresponding to an intersection of the straight line and a straight line with an amplitude of 0 dB in the Bode diagram, and obtain the moment of inertia of the motor, and calculate the load inertia of the motor based on a function corresponding to the straight line segment of the target curve in the Bode diagram through the first amplitude, the first frequency and the moment of inertia of the motor.
11. A motor assembly, characterized in that: include: Memory, used to store programs or instructions; A processor, configured to implement the steps of the determination method as claimed in any one of claims 1 to 9 when executing the program or instruction.
12. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the determination method according to any one of claims 1 to 9 are implemented.
13. A motor assembly, characterized in that: include: The device for determining load inertia as claimed in claim 10; and / or The readable storage medium as claimed in claim 12.
14. A robot, characterized in that: include: Robotic arm; The motor assembly as described in claim 11 or 13, wherein the motor assembly is connected to the robotic arm.
