The application claims priority to Chinese patent application No. 202311134465.1, filed on Sep. 5, 2023, the entire contents of which are incorporated herein by reference.
The present application relates to control of electric appliances, and in particular to a cloud and edge integrated method and system for identifying parameters of a servo motor.
Permanent magnet synchronous motors can realize accurate rotating speed control and good torque response through vector control, but the vector control is sensitive to the change of motor parameters. During actual operation of the motor, the motor parameters such as resistance, inductance and flux linkage of the motor often change in real time due to the influence of factors such as temperature change and external interference. Changes in these parameters would affect the performance of the motor control system and, in turn, the operating state of the motor.
The parameter identification of the permanent magnet synchronous motor is a very complicated process, and the parameters typically needing to be identified are stator resistance R, d-q axes inductances Ld and Lq, permanent magnet flux linkage φf etc. The operation of the motor system is influenced by a plurality of external objective factors, and the parameters of the motor change along with the operation of the motor. The most important external factor is the problem of temperature rise during the operation of the motor, leading to an increase in stator resistance. Meanwhile, the permanent magnet flux linkage is also influenced by the temperature rise, indirectly causing changes in inductance. To maintain the control performance of the motor, the motor parameters need to be identified in real time and the control strategy needs to be adjusted according to the change of the motor parameters.
The motor parameter identification academically is mainly divided into an off-line type and an on-line type. Off-line identification is mainly to obtain electrical parameters of the motor through experimental measurements, for example, the resistance of the motor can be obtained directly by direct current voltage using the principle that voltage is equal to the product of current and resistance; and the measurement of inductance requires applying high-frequency voltage to the stator to obtain inductance parameters through response values of current to signals. Compared with the off-line identification method, on-line identification focuses on parameter changes in the motor operation process, and has good dynamic significance. Only by identifying the motor parameters in the operation process can the obtained data better feed back the real condition of the motor to the controller, so that the motor can be controlled more accurately. At present, the main methods for identifying motor parameters on line comprise a least square method, an extended Kalman filter, model reference self-adaptation, an intelligent algorithm, etc.
The existing motor parameter identification algorithm is low in accuracy or real-time performance, which in turn affects the control performance of a motor.
Based on the above description, it is necessary to provide a cloud and edge integrated method for identifying parameters of a servo motor to address the aforementioned technical issues.
A cloud and edge integrated method for identifying parameters of a servo motor, comprising the following steps:
The parameters of the servo motor include d-q axes feedback currents id and iq, d-q axes input voltages ud and uq, an angular velocity of the motor ω, d-q axes inductances of the motor Lq and Ld, an internal resistance of the motor R, a flux linkage φf, etc. With respect to the parameters, id, iq, ud, uq and ω may be calculated by real-time measuring with sensors, while Lq, Lq, Rs and φf are parameters that need to be identified. According to equation (1), it can be seen that there is a problem of rank deficiency by using two equations. The present invention is based on cloud computing power to identify Rs, which is complex and changeable, in the cloud, simplifying the identification of inductance and flux linkage.
In one embodiment, a neural network identification algorithm in the cloud identification engine is as follows:
Rs=fk(·)*G2+fk−1(·)*G1
Since the acquired parameter data contains a lot of noises, the acquired parameter data is uploaded to the cloud identification engine for data processing, the data is cleaned to remove the noises, and thus an accurate identification result can be obtained. The motor temperature changes slowly, and the temperature fluctuation is small after the motor runs stably; the current of the motor is greatly affected by temperature and voltage, changes frequently and complexly with more noises, and thus the present invention mainly performs data processing on temperature and current of the motor.
For the motor temperature T, it is preferred to use a low-pass filter for processing, as follows:
Filtering is performed by using the following equations (2)-(6) for data processing of the currents of the motor iq/d:
where {right arrow over (e)}k is a prior state error, defined as: {right arrow over (e)}k=iq/d(t)−{right arrow over (i)}q/d(t); {right arrow over (e)}ki represents an i-th prior state error sample;
where ek is a posterior state error, defined as: ek=iq/d(t)−{tilde over (l)}q/d(t); and eki represents an i-th posterior state error sample;
Another object of the present invention is to provide a cloud and edge integrated system for identifying parameters of a servo motor, comprising:
In one embodiment of the invention, the data processing module processes the motor temperature T according to the following low-pass filter:
The data processing module denoises the current of the motor according to equations (2)-(6) above.
The neural network identification module identifies the internal resistance of the motor Rs based on the following neural network identification algorithm:
Rs=fk(·)*G2+fk−1(·)*G1
In one embodiment of the invention, the edge identification engine identifies the parameters Lq, Ld and φf by using the following equations:
According to the cloud and edge integrated method and system for identifying parameters of a servo motor provided by the invention, the complex and changeable parameter Rs is identified based on the computing power of the cloud, and then identification is performed by the edge identification engine in combination with the above identification result and other parameter data acquired in real time, so that the inductances and the flux linkage are obtained. The present invention ensures the accuracy of parameter identification while meeting the real-time requirement through the powerful computing power of the cloud and the real-time processing capability of the edge, providing a dynamic and accurate model for real-time precise control of the motor.
According to the invention, the parameter data of the servo motor is denoised before neural network identification, and noises are removed by filtering the data, so that the identification precision and accuracy are improved.
The mathematical model provided by the present invention for data processing of the motor temperature T and the current can improve the denoising effect and further improve the identification precision and accuracy.
The neural network identification model provided by the invention has a very high identification accuracy, for example, the identification result Rs shown in table 1 of the embodiment is 2.874934831393645, and the real value measured is 2.875.
To make objectives, technical solutions, and advantages of the present application more clearly, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely intended to explain the present application, but not to limit the present application.
As shown in a permanent magnet synchronous motor model and an equivalent circuit in
In equation (1), id and iq are d-q axes feedback currents of the motor, which may be calculated by measuring with current sensors; ud and uq are d-q axes input voltages of the motor; ω is an angular velocity of the motor, which may be calculated by measuring with a sensor. Lq and Ld are d-q axes inductances of the motor, which are parameters needing to be identified, and the present invention focuses on identifying the motor with Lq=Ld; Rs is an internal resistance of the motor, which is a parameter needing to be identified; and φf is a flux linkage, which is a parameter needing to be identified.
According to the above analysis, Rs, Lq/Ld and φf are 3 parameters needing to be identified, but there are only two equations in equation (1), raising a problem of rank deficiency.
In order to solve the problem of rank deficiency, a parameter needs to be identified in a cloud. The cloud has strong computing power and can identify complex and changeable parameters. Rs is greatly influenced by temperature and is related to current and voltage, so the cloud may be used for identifying it and then send an identification result to an edge, and the remaining two parameters may be identified with the two equations.
As shown in
Specifically, this embodiment comprises the following steps:
Since the acquired parameter data contains a lot of noises such as current, the acquired parameter data is uploaded to the cloud identification engine for data processing, and the data is cleaned to remove the noises. The motor temperature changes slowly, and the temperature fluctuation is small after the motor runs stably; the current of the motor changes frequently and has more noises, so the data is denoised before neural network identification is performed. A digital filter can weaken or remove noises according to frequency characteristics of signals, which can effectively reduce digital noises. According to the temperature and current data characteristics of the motor, in this embodiment, the following methods are preferably employed for data processing respectively. The d-q axes input voltages ud and uq and the angular velocity of the motor w are theoretical values, and denoising is not needed.
A temperature signal is processed by using a low-pass filter as follows:
domain, c is a cutoff frequency, and fc is a frequency.
Taking the q-axis current as an example, data processing is performed by using the following filtering method, which is also applicable to the d-axis current:
Firstly, a q-axis decoupling model of the motor is established:
Then let
{right arrow over (l)}q(t+1)=C{tilde over (l)}q(t)+Duq(t) (2)
In addition, let
{tilde over (l)}q(t+1)={right arrow over (l)}q(t+1)+Kk(z(t)−H{right arrow over (l)}q(t+1)) (3)
{right arrow over (P)}k is a covariance between the real value and the predicted value, defined as follows:
Moreover, a covariance Pk between the real value and the optimal estimated value is defined:
Moreover, a covariance Pk between the real value and the optimal estimated value is defined, and update laws may be obtained as follows:
Pk=(I−KkH){right arrow over (P)}k (5)
{right arrow over (P)}k+1=CPkCT+Q (6)
By using the above mathematical equations, the current data of the motor may be denoised, which is beneficial for obtaining accurate results in neural network identification.
3.2 Neural Network Identification
After data processing is completed, neural network identification may be performed. The present embodiment preferably uses a neural network identification model shown in
Rs=fk(·)*G2+fk−1(·)*G1
An identification network structure of motor resistance may be established by using the above equations to achieve independent identification of the motor resistance.
4. Identification of parameters Lq=Ld and φf by the edge identification engine
The identification result obtained by cloud identification, i.e. the internal resistance of the motor Rs, is sent to the edge identification engine through a network for identification. That is, the internal resistance of the motor Rs is substituted into equation (1) for identification, so that the two equations only have two parameters of inductances and a flux linkage, and the following method may be used for identification:
The parameters A and B may be identified according to the following two equations:
where dimensions of yi and xi are m*n dimensions.
Since Rs is identified by the cloud, and ω is the angular velocity of the motor and may be measured by a sensor, two parameters of the inductances Lq and Ld and the flux linkage φf may be calculated according to the two equations.
Correspondingly, an embodiment of the present invention also provides a cloud and edge integrated system for identifying parameters of a servo motor. As shown in
A servo motor parameter acquisition unit used for acquiring parameter data of a servo motor, such as a motor temperature T, d-q axes feedback currents id and iq, d-q axes input voltages ud and uq, and an angular velocity of the motor ω. The acquisition unit is sensors disposed at different parts of the motor, such as a current sensor, a voltage sensor, a temperature sensor, etc.
A sending unit used for receiving the parameter data of the servo motor and sending it to a cloud identification engine and an edge identification engine so as to enable the cloud identification engine and the edge identification engine to identify the parameters of the servo motor respectively.
The cloud identification engine used for identifying the parameter data of the servo motor and sending an identification result to the edge identification engine.
The edge terminal identification engine used for performing identification analysis of the acquired parameter data of the servo motor and the cloud identification result to obtain target parameter results.
In the present invention, the cloud identification engine comprises a data processing module, a neural network identification module and an output module; where
The data processing module is used for processing and denoising the acquired parameter data of the servo motor. The data processing module processes the motor temperature T according to the following low-pass filter:
The data processing module denoises the current of the motor according to equations (2)-(6) above.
The neural network identification module is used for identifying the acquired parameter data of the servo motor to obtain Rs. The neural network identification module identifies the internal resistance of the motor Rs based on the following neural network identification algorithm:
Rs=fk(·)*G2+fk−1(·)*G1
A memory is used for storing a value of a previous time.
The output module is used for transmitting the identification result to the edge identification engine through a network.
Number | Date | Country | Kind |
---|---|---|---|
202311134465.1 | Sep 2023 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
11682993 | Mušák et al. | Jun 2023 | B1 |
20080180046 | D'Angelo | Jul 2008 | A1 |
20170104432 | Jebai | Apr 2017 | A1 |
20210021221 | Glibbery et al. | Jan 2021 | A1 |
Number | Date | Country |
---|---|---|
106655941 | May 2017 | CN |
111342728 | Jun 2020 | CN |
114915225 | Aug 2022 | CN |