Permanent magnet synchronous motor sectional type friction torque modeling compensation method, system and device
By adopting a segmented friction torque modeling method, different modeling methods are used for the extremely low speed and non-extreme low speed ranges. This solves the problem of insufficient description of friction torque in low-speed, high-torque permanent magnet synchronous motors by traditional models, and improves control accuracy and stability.
Patent Information
- Application Number
- CN202610037198.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-13
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2046-01-13
AI Technical Summary
Traditional friction torque models for permanent magnet synchronous motors suffer from insufficient accuracy in describing friction under low-speed, high-torque conditions, limited ability to capture dynamic characteristics, and complex parameter identification processes, leading to problems in system control accuracy and stability.
A segmented friction torque modeling method is adopted, dividing the motor operating range into extremely low speed and non-extreme low speed ranges. The friction torque models are established using dynamic learning rate neural networks and optimal order polynomial equations, respectively, and then embedded into the motor control system for compensation.
This improved the system's control precision and operational stability, reduced low-speed crawling, lowered computational complexity, and enhanced the model's adaptability and accuracy.
Smart Images

Figure CN121508375A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of permanent magnet synchronous motor friction torque compensation, and particularly relates to a segmented friction torque modeling compensation method, system and device for a permanent magnet synchronous motor. BACKGROUND
[0002] In recent years, permanent magnet synchronous motor servo systems are widely used in different technical fields due to their advantages of high efficiency, high power density and wide speed regulation range. However, in the control scene of the permanent magnet synchronous motor servo system, due to the switching characteristics of static friction and dynamic friction and the nonlinear characteristics of viscous friction, the system is prone to low-speed crawling when the speed is lower than the critical value, which is manifested as speed fluctuation, position tracking error divergence and unstable motion, which will seriously affect the control accuracy of the system.
[0003] The compensation method of friction torque is usually divided into two types: model-based and non-model-based. In the model-based compensation method, the common friction model is divided into static model and dynamic model. The most commonly used is the dynamic model (LuGre model is the most prominent), but the traditional friction model (such as LuGre model) has problems such as insufficient description accuracy, limited dynamic characteristic capture ability, poor adaptability and complex parameter identification process when describing the complex friction characteristics of low-speed large-torque permanent magnet synchronous motors, especially in low-speed domain and variable working conditions. The non-model-based compensation method bypasses the physical modeling of friction torque and regards friction as an unknown disturbance or a nonlinear black box, and directly suppresses its influence through a control algorithm. However, the non-model-based compensation method has problems such as serious dependence on system model accuracy and insufficient robustness.
[0004] In summary, the traditional friction compensation method has certain disadvantages, and the technical personnel in the field have also made improvements on this basis, for example, a data-driven and physical model fusion method is adopted, a neural network and a traditional LuGre model are fused, a two-dimensional mapping relationship between friction and speed and position is established relying on the powerful learning ability of the neural network, and the accuracy and adaptability of the model under variable working conditions are effectively improved. However, this method needs to optimize the neural network parameters and physical parameters synchronously, which leads to a more complex identification process. In addition, for the low-speed large-torque permanent magnet synchronous motor control system, when the LuGre model is introduced, the inherent limitations of the model structure make it difficult to describe the strong nonlinearity of the static and dynamic friction switching of the low-speed large-torque permanent magnet synchronous motor and the Stribeck effect hysteresis characteristics, causing model mismatch, and further leading to not only ineffective compensation of friction disturbance, but also possible destruction of system stability due to the introduction of inaccurate friction torque estimation, and negative effects such as increased speed fluctuation or increased position tracking error.
[0005] Therefore, it is necessary to propose a new permanent magnet synchronous motor friction torque compensation method to solve the above problems. Summary of the Invention
[0006] This invention aims to at least solve one of the technical problems existing in related technologies. To this end, this invention provides a segmented friction torque modeling and compensation method, system, and device for permanent magnet synchronous motors, which reduces low-speed creeping phenomena and is of great significance for improving the control accuracy and operational stability of the system.
[0007] This invention provides a segmented friction torque modeling and compensation method for permanent magnet synchronous motors, comprising the following steps: S1: Collect motor operation data to obtain motor operation dataset; S2: Based on the speed threshold set in the motor operation dataset, the motor operation range is divided into an extremely low speed range and a non-extremely low speed range; S3: In the extremely low speed range, a friction torque model based on a dynamic learning rate neural network is used to establish a nonlinear mapping relationship between the motor friction torque and the speed, thus obtaining the friction torque model in the extremely low speed range. S4: In the non-extremely low speed range, the friction torque model is described by the optimal order polynomial equation to establish a nonlinear mapping relationship between the friction torque model and the rotational speed, thus obtaining the friction torque model in the non-extremely low speed range. S5: Embed the friction torque model in the extremely low speed range and the friction torque model in the non-extremely low speed range into the motor control system. Select the corresponding friction torque model according to the current speed range to obtain the realized friction torque. Convert the realized friction torque into compensation current and compensate it at the motor end current.
[0008] According to the present invention, a segmented friction torque modeling and compensation method for a permanent magnet synchronous motor is provided, wherein the motor operating data includes: obtaining the rotor mechanical angular position through an incremental photoelectric encoder, calculating the motor speed through differentiation, and obtaining the friction torque of the motor through a torque sensor.
[0009] According to the present invention, a segmented friction torque modeling and compensation method for a permanent magnet synchronous motor is provided, wherein step S2 includes: A speed threshold is set based on the motor speed and actual operating conditions. When the system is in an extremely low speed range, nonlinear friction has the greatest impact on the system; when When the system is in a non-extremely low speed range, it is defined as the system being in this range. in, This refers to the actual motor speed. For speed threshold, It is an absolute value.
[0010] According to the segmented friction torque modeling and compensation method for permanent magnet synchronous motors provided by the present invention, the expression of the friction torque model of the dynamic learning rate neural network in step S3 is as follows: in, This is the output vector of the first hidden layer. It is the hyperbolic tangent function. These are the weight matrices for the first hidden layer. The motor speed is the input to the neural network. These are the bias vectors of the first hidden layer. This is the output vector of the second hidden layer. This is the weight matrix of the second hidden layer. This is the bias vector for the second hidden layer. The frictional torque value estimated by the neural network. The weight matrix of the output layer. This is the bias vector for the output layer. The layer number of the first hidden layer. This represents the total number of the first hidden layer. The layer number of the output layer. This represents the total number of output layers. The total number of the second hidden layers is the same as the total number of output layers.
[0011] According to the segmented friction torque modeling and compensation method for permanent magnet synchronous motors provided by the present invention, S4, the friction model for fitting the optimal order polynomial equation in the non-extremely low speed range includes: The friction torque in the non-extremely low-speed range is modeled using polynomial equations. The fitting results of several orders of polynomials are calculated in parallel, and the residuals of each order of fitting are calculated. By comparing the magnitude of the residuals of each order of fitting, the order of polynomial with the smallest residual is selected as the optimal order. The friction torque model in the non-extremely low-speed range is established using the optimal order polynomial equation.
[0012] According to the present invention, a segmented friction torque modeling and compensation method for a permanent magnet synchronous motor is provided, wherein the polynomial equation is: in, The friction torque value is estimated by a polynomial. This represents the total number of terms in the polynomial. For polynomial coefficients, To estimate the input motor speed using a polynomial, Let be the degree of the polynomial.
[0013] According to the present invention, a segmented friction torque modeling and compensation method for a permanent magnet synchronous motor is provided, wherein step S5 includes: Used to convert the estimated frictional torque into a compensation current. To achieve frictional torque The feedforward compensation formula is: in, This is the torque coefficient.
[0014] This invention also provides a segmented friction torque modeling and compensation system for permanent magnet synchronous motors, comprising: Data acquisition module: used to collect motor operation data and obtain motor operation dataset; Speed differentiation module: used to divide the motor operating range into extremely low speed range and non-extreme low speed range according to the speed threshold set in the motor operation dataset; Ultra-low speed prediction module: Used to establish a nonlinear mapping relationship between motor friction torque and speed in the ultra-low speed range using a friction torque model based on a dynamic learning rate neural network, and obtain the friction torque model in the ultra-low speed range; Non-extremely low speed prediction module: Used to describe the friction torque model in the non-extremely low speed range using the optimal order polynomial equation to establish the nonlinear mapping relationship between the friction torque model and the rotational speed, and obtain the friction torque model in the non-extremely low speed range. Motor compensation module: used to embed the friction torque model of the extremely low speed range and the friction torque model of the non-extremely low speed range into the motor control system, select the corresponding friction torque model according to the current speed range, obtain the realized friction torque, convert the realized friction torque into compensation current, and compensate the current at the motor end.
[0015] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the segmented friction torque modeling and compensation method for a permanent magnet synchronous motor as described above.
[0016] The above-described one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: This invention provides a segmented friction torque modeling and compensation method, system, and device for permanent magnet synchronous motors. By dividing the motor's operating range into two conditions—an extremely low-speed range and a non-extremely low-speed range—based on a speed threshold-based segmented modeling approach, different modeling methods are employed for each condition. In the extremely low-speed range, a friction torque modeling method based on a dynamic learning rate neural network solves the problems of poor adaptability and complex parameter identification processes caused by the narrow extremely low-speed range of the traditional LuGre model. In the non-extremely low-speed range, an optimal-order polynomial equation is used to describe the nonlinear mapping relationship between friction torque and speed, ensuring accurate estimation of friction torque in the non-low-speed range while reducing computational complexity. Furthermore, the constructed friction torque model is embedded into the control system. The corresponding friction torque model is selected based on the current speed range to obtain an estimated friction torque value. This estimated value is then converted into a compensation current, which is used for compensation at the motor terminals, achieving dynamic compensation of the friction torque. This effectively reduces low-speed creeping and significantly improves the system's control accuracy and operational stability.
[0017] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0019] Figure 1 The flowchart illustrates a segmented friction torque modeling and compensation method for a permanent magnet synchronous motor, as provided in an embodiment of the present invention.
[0020] Figure 2 This is a schematic diagram of a segmented friction torque modeling and compensation system for a permanent magnet synchronous motor provided in an embodiment of the present invention.
[0021] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention.
[0022] Figure 4 This is a waveform diagram of the compensated rotational speed of the traditional LuGre model at 4 rpm.
[0023] Figure 5 This is a waveform diagram of the compensated rotational speed of the present invention at 4 rpm.
[0024] Figure 6This is a waveform diagram of the compensated rotational speed of the traditional LuGre model at 6 rpm.
[0025] Figure 7 This is a waveform diagram of the compensated rotational speed of the present invention at 6 rpm.
[0026] Figure 8 This is a waveform diagram of the compensated rotational speed of the traditional LuGre model at 9 rpm.
[0027] Figure 9 This is a waveform diagram of the compensated rotational speed of the present invention at 9 rpm.
[0028] Figure 10 It is a comparison chart of residuals of different orders.
[0029] Figure 11 This is the fitting curve when the fitting order is 7.
[0030] Figure 12 This is the fitting curve when the fitting order is 11.
[0031] Figure 13 This is a flowchart of a dynamic learning rate strategy.
[0032] Figure label: 101. Data acquisition module; 102. Speed differentiation module; 103. Extremely low speed prediction module; 104. Non-extremely low speed prediction module; 105. Motor compensation module; 810. Processor; 820. Communication interface; 830. Memory; 840. Communication bus. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention. The following embodiments are used to illustrate this invention but cannot be used to limit the scope of this invention.
[0034] In the description of the embodiments of the present invention, it should be noted that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of the present invention. In addition, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0035] In the description of the embodiments of the present invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "connected" and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in the embodiments of the present invention based on the specific circumstances.
[0036] In embodiments of the present invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.
[0037] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0038] The following is combined with Figures 1 to 13 This invention is described.
[0039] Example The present invention will now be described in further detail with reference to embodiments and accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. For ease of description, the accompanying drawings show only the parts relevant to the invention, not all of the structures.
[0040] This invention provides a segmented friction torque modeling and compensation method for permanent magnet synchronous motors. The method can solve the problems of poor adaptability and complex parameter identification process that occur when using the traditional LuGre model for low-speed, high-torque permanent magnet synchronous motor systems.
[0041] like Figure 1 As shown in the figure, the segmented friction torque modeling and compensation method for a permanent magnet synchronous motor provided by this embodiment of the invention includes the following steps: S1: Collect motor operation data to obtain motor operation dataset; S2: Based on the speed threshold set in the motor operation dataset, the motor operation range is divided into an extremely low speed range and a non-extremely low speed range; S3: In the extremely low speed range, a friction torque model based on a dynamic learning rate neural network is used to establish a nonlinear mapping relationship between the motor friction torque and the speed, thus obtaining the friction torque model in the extremely low speed range. S4: In the non-extremely low speed range, the friction torque model is described by the optimal order polynomial equation to establish a nonlinear mapping relationship between the friction torque model and the rotational speed, thus obtaining the friction torque model in the non-extremely low speed range. S5: Embed the friction torque model in the extremely low speed range and the friction torque model in the non-extremely low speed range into the motor control system. Select the corresponding friction torque model according to the current speed range to obtain the realized friction torque. Convert the realized friction torque into compensation current and compensate it at the motor end current.
[0042] Specifically, the steps of this embodiment of the invention are as follows: S1: Collect data.
[0043] Within the speed range of -25 r / min to 25 r / min, the rotor mechanical angular position obtained by the incremental photoelectric encoder and the friction torque obtained by the high-precision torque sensor are acquired synchronously, and the position signal is differentiated to obtain the motor speed.
[0044] S2: Based on the set speed threshold, the motor operating range is divided into extremely low speed range and non-extreme low speed range.
[0045] A speed threshold is set based on motor parameters and actual operating conditions. ,when When the system is in an extremely low speed range, nonlinear friction has the greatest impact on the system; when When the system is in a non-extremely low speed range, it is defined as being in this range. (This refers to the speed threshold in this embodiment of the invention.) Taking 2% of the rated speed, the rated speed in this embodiment of the invention is 100 r / min, and the speed threshold in this embodiment of the invention is 2 r / min. Wherein, This represents the actual motor speed.
[0046] S3: In the extremely low speed range, a friction model based on a dynamic learning rate neural network is used to establish a nonlinear mapping relationship between the motor friction torque and the speed.
[0047] Approximately 100,000 valid data samples were extracted in the extremely low speed range (-2 r / min to 2 r / min) to form the original dataset. To further improve data quality, preprocessing operations such as filtering and normalization were performed on the original data. Finally, the dataset was divided into training, validation, and test sets according to a certain ratio.
[0048] Using the rotor angular velocity as input and the estimated friction torque as output, the neural network expression is: in, This is the output vector of the first hidden layer. It is the hyperbolic tangent function. These are the weight matrices for the first hidden layer. The motor speed is the input to the neural network. These are the bias vectors of the first hidden layer. This is the output vector of the second hidden layer. This is the weight matrix of the second hidden layer. This is the bias vector for the second hidden layer. The frictional torque value estimated by the neural network. The weight matrix of the output layer. This is the bias vector for the output layer. The layer number of the first hidden layer. This represents the total number of the first hidden layer. The layer number of the output layer. This represents the total number of output layers. The total number of the second hidden layers is the same as the total number of output layers.
[0049] A dynamic learning rate strategy based on loss function feedback and momentum was used to train the neural network to obtain a friction torque model in the extremely low speed range.
[0050] like Figure 13As shown, specifically, dynamic learning rate is a dynamic learning rate strategy based on a combination of loss function feedback and momentum. During network training, the learning rate is dynamically adjusted according to the current error of the loss function and a set threshold. This adjustment mechanism is implemented through the following steps: Loss function calculation: In each iteration, the learning rate is adjusted by calculating the error between the current model output and the true value. This embodiment of the invention uses the mean squared error (MSE) as the loss function error, and the formula for the loss function error is: in, Let be the error of the loss function in the nth iteration, where n is the number of iterations and N is the total number of training samples. Let be the true frictional torque of the t-th sample. Let t be the friction torque value estimated by the neural network for the t-th sample, where t is the sample number.
[0051] Dynamic learning rate adjustment: The learning rate of the neural network is dynamically adjusted based on a comparison between the loss function error and a preset error threshold. When the error is large, the learning rate is increased to accelerate convergence; when the error is small and close to the set minimum threshold, the learning rate is decreased to suppress oscillations.
[0052] Based on the comparison between the current iteration's loss function error and the preset threshold, the learning rate is dynamically adjusted according to the following rules: in, Let n be the learning rate of the neural network in the nth iteration. The learning rate of the neural network is the (n+1)th iteration. Learning rate growth factor This is the learning rate decay factor. The minimum threshold for the loss function error. This is the maximum threshold for the loss function error.
[0053] Momentum Update Mechanism: This mechanism combines stochastic gradient descent with momentum terms to update the weights and biases of the neural network. Through this momentum mechanism, the learning process becomes smoother, avoiding getting trapped in local optima. In this embodiment, stochastic gradient descent with momentum terms is used to update the neural network parameters. The model parameter update expression is: in, For the iteratively updated neural network weights or biases, These are the neural network weights or biases before the iterative update. The gradient of the loss function with respect to the parameters of the neural network model. The momentum coefficient, This refers to the weights or biases of the neural network from the previous iteration. , and The representative neural network weights or biases include , , , , and .
[0054] Finally, determine whether the requirements for ending the training have been met. If the requirements are met, the training is complete; otherwise, continue training.
[0055] S4: In the non-extremely low speed range, the nonlinear mapping relationship between friction torque and rotational speed is described by the optimal order polynomial equation.
[0056] In the non-extremely low speed range, firstly according to Data with large errors are removed in principle. Then, the collected data is weighted and averaged. Subsequently, the friction torque in the non-extremely low-speed range is modeled using an optimal order polynomial equation. The polynomial equation is as follows: in, The friction torque value is estimated by a polynomial. This represents the total number of terms in the polynomial. For polynomial coefficients, To estimate the input motor speed using a polynomial, Let be the degree of the polynomial.
[0057] Simultaneous calculation for The fitting results of the first-order polynomials are obtained, and the residuals of each order of fitting are calculated according to the definition of polynomial fitting residuals.
[0058] Because the motor operates in a fully fluid lubrication phase during non-low-speed operation, friction increases with speed without any creeping phenomenon. To reduce the overall training load, neural network training was not performed in the non-low-speed range, therefore only a dozen or so speed feature points were collected.
[0059] like Figure 10 As shown, it can be seen that the deviation of the fitted curve decreases as the polynomial increases. However, considering that excessively high orders in polynomial fitting can easily lead to overfitting, it is necessary to control the fitting order to avoid the predicted curve deviating from the actual characteristics. Conversely, lower orders will lead to increased model prediction errors. Figure 11 and Figure 12 As shown in the fitting results, the total number of polynomial terms in the embodiments of the present invention is set to 5 to 10.
[0060] By comparing the residuals of fitting at each order, the polynomial order with the smallest residual is selected as the optimal order, and the friction torque model in the non-extremely low speed range is established using the optimal order polynomial equation.
[0061] S5: Embed the constructed friction torque model into the motor control system. Select the corresponding friction torque model according to the current speed range to obtain the estimated value of the friction torque. Convert the estimated value of the friction torque into a compensation current and compensate it at the motor terminal current to achieve dynamic compensation of the friction torque. The formula is: in, The torque coefficient, To compensate for the current, To achieve frictional torque, For permanent magnet flux linkage in motors, This represents the number of pole pairs of the motor. This represents the moment of inertia of the motor.
[0062] Specifically, Figure 4 This is a waveform diagram of the compensated rotational speed of the traditional LuGre model at 4 rpm. Figure 5 These are experimental waveforms of the compensated rotational speed of this invention at 4 rpm. In the waveforms, red represents the waveform at the given rotational speed, and blue represents the compensated waveform. Based on these two figures, it is clear that this invention provides a better compensation effect than the traditional model.
[0063] Specifically, Figure 6 This is a waveform diagram of the compensated rotational speed of the traditional LuGre model at 6 rpm. Figure 7 These are experimental waveforms of the compensated rotational speed of this invention at 6 rpm. In the waveforms, red represents the waveform at the given rotational speed, and blue represents the compensated waveform. Based on these two figures, it is clear that this invention provides a better compensation effect than the traditional model.
[0064] Specifically, Figure 8 This is a waveform diagram of the compensated rotational speed of the traditional LuGre model at 9 rpm. Figure 9 These are experimental waveforms of the compensated rotational speed of this invention at 9 rpm. In the waveforms, red represents the waveform at the given rotational speed, and blue represents the compensated waveform. Based on these two figures, it is clear that this invention provides a better compensation effect than the traditional model.
[0065] Table 1. Comparison of Root Mean Square of Tracking Errors
[0066] Table 1 is a comparison table of the root mean square of the tracking errors in the four cases mentioned above. It can be clearly seen that the compensation effect of the present invention is better than that of the traditional model.
[0067] like Figure 2 As shown in the figure, the segmented friction torque modeling and compensation system for a permanent magnet synchronous motor provided in this embodiment of the invention mainly includes the following parts: Data acquisition module 101: Used to collect motor operation data and obtain motor operation dataset; Speed differentiation module 102: used to divide the motor operating range into an extremely low speed range and a non-extreme low speed range according to the speed threshold set in the motor operating dataset; Ultra-low speed prediction module 103: used to establish a nonlinear mapping relationship between motor friction torque and speed in the ultra-low speed range using a friction torque model based on a dynamic learning rate neural network, and obtain the friction torque model in the ultra-low speed range; Non-extremely low speed prediction module 104: used to describe the friction torque model in the non-extremely low speed range using the optimal order polynomial equation to establish the nonlinear mapping relationship between the friction torque model and the rotational speed, and obtain the friction torque model in the non-extremely low speed range. Motor compensation module 105: used to embed the friction torque model of the extremely low speed range and the friction torque model of the non-extremely low speed range into the motor control system, select the corresponding friction torque model according to the current speed range, obtain the realized friction torque, convert the realized friction torque into compensation current, and compensate the current at the motor end.
[0068] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call logic instructions in the memory 830 to execute a backstepping sliding mode control method for a power grid frequency control system, the method including: S1: Collect motor operation data to obtain motor operation dataset; S2: Based on the speed threshold set in the motor operation dataset, the motor operation range is divided into an extremely low speed range and a non-extremely low speed range; S3: In the extremely low speed range, a friction torque model based on a dynamic learning rate neural network is used to establish a nonlinear mapping relationship between the motor friction torque and the speed. S4: In the non-extremely low speed range, the nonlinear mapping relationship between friction torque and rotational speed is described by the optimal order polynomial equation. S5: Embed the constructed friction torque model into the motor control system, select the corresponding friction torque model according to the current speed range, obtain the estimated value of the friction torque, convert the estimated value of the friction torque into a compensation current, and compensate the current at the motor end.
[0069] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
[0071] It should be noted that the embodiments of this disclosure can be implemented using hardware, software, or a combination of both. The hardware portion can be implemented using dedicated logic; the software portion can be stored in memory and executed by a suitable instruction execution system, such as a microprocessor or dedicated-design hardware. Those skilled in the art will understand that the above-described devices and methods can be implemented using computer-executable instructions and / or included in processor control code, for example, such code provided on a programmable memory or a data carrier such as an optical or electronic signal carrier.
[0072] Furthermore, although the operation of the methods of this disclosure is described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Rather, the steps depicted in the flowcharts may be performed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps. It should also be noted that the features and functions of two or more devices according to this disclosure may be embodied in one device. Conversely, the features and functions of one device described above may be further divided and embodied by multiple devices.
[0073] While this disclosure has been described with reference to several specific embodiments, it should be understood that this disclosure is not limited to the specific embodiments disclosed. This disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. A segmented friction torque modeling and compensation method for a permanent magnet synchronous motor, characterized in that, Includes the following steps: S1: Collect motor operation data to obtain motor operation dataset; S2: Based on the speed threshold set in the motor operation dataset, the motor operation range is divided into an extremely low speed range and a non-extremely low speed range; S3: In the extremely low speed range, a friction torque model based on a dynamic learning rate neural network is used to establish a nonlinear mapping relationship between the motor friction torque and the speed, thus obtaining the friction torque model in the extremely low speed range. S4: In the non-extremely low speed range, the friction torque model is described by the optimal order polynomial equation to establish a nonlinear mapping relationship between the friction torque model and the rotational speed, thus obtaining the friction torque model in the non-extremely low speed range. S5: Embed the friction torque model in the extremely low speed range and the friction torque model in the non-extremely low speed range into the motor control system. Select the corresponding friction torque model according to the current speed range to obtain the realized friction torque. Convert the realized friction torque into compensation current and compensate it at the motor end current.
2. The segmented friction torque modeling and compensation method for a permanent magnet synchronous motor according to claim 1, characterized in that, The motor operating data includes: the rotor mechanical angular position obtained by an incremental photoelectric encoder, the motor speed calculated by differentiation, and the motor friction torque obtained by a torque sensor.
3. The segmented friction torque modeling and compensation method for a permanent magnet synchronous motor according to claim 1, characterized in that, Step S2 includes: Set the speed threshold according to the motor speed and actual operating conditions, when When, it is defined as the system being in the extremely low speed range; when When the system is in a non-extremely low speed range, it is defined as such. in, This refers to the actual motor speed. For speed threshold, It is an absolute value.
4. The segmented friction torque modeling and compensation method for a permanent magnet synchronous motor according to claim 1, characterized in that, The expression for the friction torque model of the dynamic learning rate neural network in step S3 is: in, This is the output vector of the first hidden layer. It is the hyperbolic tangent function. These are the weight matrices for the first hidden layer. The motor speed is the input to the neural network. These are the bias vectors of the first hidden layer. This is the output vector of the second hidden layer. This is the weight matrix of the second hidden layer. This is the bias vector for the second hidden layer. The frictional torque value estimated by the neural network. The weight matrix of the output layer. This is the bias vector for the output layer. The layer number of the first hidden layer. This represents the total number of the first hidden layer. The layer number of the output layer. This represents the total number of output layers. The total number of the second hidden layers is the same as the total number of output layers.
5. The segmented friction torque modeling and compensation method for a permanent magnet synchronous motor according to claim 1, characterized in that, The friction model fitted by the optimal order polynomial equation in step S4 includes: The friction torque in the non-extremely low-speed range is modeled using polynomial equations. The fitting results of several orders of polynomials are calculated in parallel, and the residuals of each order of fitting are calculated. By comparing the magnitude of the residuals of each order of fitting, the order of polynomial with the smallest residual is selected as the optimal order. The friction torque model in the non-extremely low-speed range is established using the optimal order polynomial equation.
6. The segmented friction torque modeling and compensation method for a permanent magnet synchronous motor according to claim 4, characterized in that, The polynomial equation is: in, The friction torque value is estimated by a polynomial. This represents the total number of terms in the polynomial. For polynomial coefficients, To estimate the input motor speed using a polynomial, Let be the degree of the polynomial.
7. The segmented friction torque modeling and compensation method for a permanent magnet synchronous motor according to claim 1, characterized in that, Step S5 includes: The estimated value of the frictional torque is converted into a compensation current. To achieve frictional torque The feedforward compensation formula is: in, This is the torque coefficient.
8. A segmented friction torque modeling and compensation system for a permanent magnet synchronous motor, used to execute the segmented friction torque modeling and compensation method for a permanent magnet synchronous motor as described in any one of claims 1 to 7, characterized in that, include: Data acquisition module: used to collect motor operation data and obtain motor operation dataset; Speed differentiation module: used to divide the motor operating range into extremely low speed range and non-extreme low speed range according to the speed threshold set in the motor operation dataset; Ultra-low speed prediction module: Used to establish a nonlinear mapping relationship between motor friction torque and speed in the ultra-low speed range using a friction torque model based on a dynamic learning rate neural network, and obtain the friction torque model in the ultra-low speed range; Non-extremely low speed prediction module: Used to describe the friction torque model in the non-extremely low speed range using the optimal order polynomial equation to establish the nonlinear mapping relationship between the friction torque model and the rotational speed, and obtain the friction torque model in the non-extremely low speed range. Motor compensation module: used to embed the friction torque model of the extremely low speed range and the friction torque model of the non-extremely low speed range into the motor control system, select the corresponding friction torque model according to the current speed range, obtain the realized friction torque, convert the realized friction torque into compensation current, and compensate the current at the motor end.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the segmented friction torque modeling and compensation method for a permanent magnet synchronous motor as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Robot joint friction torque compensation method and system
CN109732605A
Point coordinate distortion removal method based on BP neural network and storage medium
CN115511752A
Friction feedforward compensation method and system of linear motor, and storage medium
CN117353616A
Feed-forward control industrial robot dynamic friction force model and measuring method
CN119897847A