A motor speed redundancy control method, system and readable storage medium
By training the simulated motor model at the low-speed operation stage of the motor and using it for control during the high-speed operation stage, the problems of inaccurate readings and equipment damage during high-speed rotation are solved, reducing the complexity and cost of the motor and improving reliability.
Patent Information
- Application Number
- CN202410307132.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-03-18
AI Technical Summary
The existing motor speed monitoring methods have the risk of inaccurate readings and equipment damage when rotating at high speed, resulting in high complexity, high cost and risk of damage.
By monitoring the input current in real time during the low-speed operation stage of the real motor, and using a preset simulation motor to decompose it into components in the same direction of the magnetic field and the torque generation direction in the same direction, it is determined whether the difference exceeds the threshold. If it exceeds the limit, the simulated motor model will be trained. During the high-speed operation phase, the input current and speed are determined using a corrected simulation model, and the real motor is controlled through theoretical speed, avoiding the need for additional hardware and reducing complexity and cost.
The speed control without additional hardware is achieved under high-speed operating conditions, reducing the complexity and cost of the motor, avoiding the risk of damage, and improving the accuracy of the simulated motor and the reliability of the motor.
Smart Images

Figure CN118157531B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electrical digital data processing, and in particular to a method and system for redundantly controlling the speed of a motor and a readable storage medium. Background Art
[0002] With the booming development of automation and precision control technology, the application of motors as core drive components in high-reliability fields has become increasingly critical. Especially in industrial robots, flight simulators and other occasions, higher requirements are placed on the precise monitoring and control of motor speed. In these applications, any compromise on safety and stability may lead to serious consequences.
[0003] Currently, motor speed monitoring mainly relies on built-in angle encoders, which work in conjunction with the motor control system to provide high-precision speed feedback required for closed-loop control. This method works reliably in most cases, but in the case of high-speed rotation, the encoder may produce inaccurate readings or equipment damage due to high-speed rotation.
[0004] The related art solves the above problem by introducing a redundant speed detection device. However, the introduction of a new device not only increases the complexity and cost of the motor, but also faces the risk of unstable performance or even damage under high-speed operation conditions. Therefore, the related art has the problems of high complexity, high cost and damage risk. Summary of the invention
[0005] The present application provides a motor speed redundant control method, system and readable storage medium, which are used to reduce complexity and cost and avoid the risk of damage.
[0006] In a first aspect, the present application provides a method for redundantly controlling the speed of a motor, comprising:
[0007] When the rotation speed of the real motor is lower than a first rotation speed threshold, determining a current input current of the real motor;
[0008] According to the preset simulation motor, the current input current is decomposed into a component in the same direction as the magnetic field and a component in the same direction as the torque generation direction;
[0009] Get the current torque of the real motor under the current input current;
[0010] Determine whether the difference between the component in the same direction as the torque generation direction and the current torque is greater than a preset error threshold;
[0011] If it is greater than a preset error threshold, the component in the same direction as the torque generation direction and the current torque are used as training samples to train the preset simulation motor; and when the speed of the real motor is lower than the first speed threshold, the step of determining the current input current of the real motor is performed;
[0012] If it is not greater than the preset error threshold, then, when the rotation speed of the real motor is higher than the second rotation speed threshold, determining the subsequent input current of the real motor and the real speed under the subsequent input current;
[0013] The subsequent input current is input into the preset simulation motor to obtain the theoretical speed;
[0014] When the difference between the actual speed and the theoretical speed meets the preset speed judgment rule, the actual motor is controlled using the theoretical speed.
[0015] In the above embodiment, first, in the low-speed operation stage of the real motor, the current input current of the real motor is monitored and determined in real time. Then, using a preset simulation motor, the input current is decomposed into a component in the same direction of the magnetic field and a component in the same direction as the torque generation direction. By obtaining and comparing the difference between these components and the actual torque, it is possible to determine whether the accuracy of the simulation motor exceeds the threshold. If the difference exceeds the threshold, these data will be used as training samples to train the simulation motor model, thereby improving the accuracy of the model. In the high-speed operation stage when the motor speed increases to above the second speed threshold, the calibrated simulation model is used to determine the subsequent input current of the real motor and the theoretical speed under the current. By comparing the predicted theoretical speed with the actual speed, and when the difference between the two meets the preset speed judgment rule, the theoretical speed is used to control the real motor. By training the simulation model in the low-speed stage, the need for additional hardware under high-speed operation conditions is avoided, thereby reducing complexity and cost, and avoiding the problem of damage risk.
[0016] In combination with some embodiments of the first aspect, in some embodiments, the step of using the component in the same direction as the torque generation direction and the current torque as training samples to train the preset simulation motor specifically includes:
[0017] The current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction are adjusted respectively, so that the difference between the component in the same direction as the torque generation direction output by the preset simulated motor under the current input current and the current torque is lower than the torque training threshold.
[0018] In the above embodiment, by adjusting the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction, it is ensured that under the current input current, the difference between the torque output by the simulated motor model and the torque of the actual motor is minimized, so as to further optimize the accuracy of the simulated motor model and make it more accurately reflect and predict the behavior of the actual motor.
[0019] In combination with some embodiments of the first aspect, in some embodiments, the step of using the component in the same direction as the torque generation direction and the current torque as training samples to train the preset simulation motor specifically includes:
[0020] Determine the current realistic speed of the real motor at the current input current;
[0021] Input the current input current into the preset simulation motor to obtain the current theoretical speed;
[0022] The current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction are adjusted respectively, so that the difference between the component in the same direction as the torque generation direction output by the preset simulation motor under the current input current and the current torque is lower than the torque training threshold, and the difference between the current theoretical speed of the preset simulation motor output under the current input current and the current actual speed is lower than the speed training threshold.
[0023] In the above embodiment, during the training phase, by adjusting the current and phase parameters, the output of the simulated motor can be made consistent with the actual performance of the real motor in terms of two key performance indicators, torque and speed, thereby further improving the accuracy of the simulated motor.
[0024] In combination with some embodiments of the first aspect, in some embodiments, determining a subsequent input current of a real motor and a real speed under the subsequent input current; inputting the subsequent input current into a preset simulation motor to obtain a theoretical speed; and when the difference between the real speed and the theoretical speed satisfies a preset speed judgment rule, using the theoretical speed to control the real motor, specifically includes:
[0025] Determine the subsequent input current change of the real motor and the real speed curve under the subsequent input current;
[0026] The subsequent input current changes are input into the preset simulation motor to obtain the theoretical speed curve;
[0027] When the difference between the actual speed curve and the theoretical speed curve meets the preset speed judgment rule, the actual motor is controlled using the theoretical speed curve.
[0028] In the above embodiment, by comparing the difference between the actual speed curve and the theoretical speed curve, and when these differences meet the preset speed judgment rules, the theoretical speed curve is used to guide the control of the actual motor. This avoids the possibility of a single motion point generating a false alarm due to noise or temporary measurement errors. Motion curve analysis can reduce the impact of noise by integrating multiple data points, thereby reducing the false alarm rate.
[0029] In conjunction with some embodiments of the first aspect, in some embodiments, the preset speed judgment rule is specifically:
[0030] Calculating a first average value of the difference between the actual speed curve and the theoretical speed curve within a preset time window;
[0031] When it is determined that the first absolute value of the first average value is lower than the preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0032] When it is determined that the first absolute value of the first average value is not lower than the preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve does not satisfy the preset speed judgment rule.
[0033] In the above embodiment, the average value of the difference between the actual speed curve and the theoretical speed curve is calculated, and the absolute value of the average value is compared with the preset speed threshold. If the absolute value of the average value is lower than the threshold, it is considered that the motor is running normally; if it exceeds the threshold, it is considered that there is a problem. By comparing the average value with the threshold, this method can more accurately diagnose the motor operation status and avoid misjudgment caused by instantaneous fluctuations, thereby improving the reliability of the simulated motor.
[0034] In conjunction with some embodiments of the first aspect, in some embodiments, the preset speed judgment rule is specifically:
[0035] Calculating a second absolute value of a difference between a real speed curve and a theoretical speed curve within a preset time window;
[0036] When it is determined that the second absolute value is higher than the product of the theoretical speed curve and the preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0037] When it is determined that the second absolute value is not higher than the product of the theoretical speed curve and the preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule.
[0038] In the above embodiment, the second absolute value of the difference between the actual speed curve and the theoretical speed curve is used by the preset speed judgment rule, and is compared with the product of the theoretical speed curve multiplied by a preset percentage threshold. This method takes into account the real-time change of speed and compares it with a threshold that changes dynamically relative to the theoretical speed, rather than a static single value. Therefore, the size of the threshold can be adaptively adjusted according to different working conditions, making the judgment rule more flexible and accurate.
[0039] In conjunction with some embodiments of the first aspect, in some embodiments, the preset speed judgment rule is specifically:
[0040] Calculating a third absolute value of a difference between the actual speed curve and the theoretical speed curve;
[0041] Calculate the acceleration of the theoretical speed curve in a preset time period;
[0042] When it is determined that the third absolute value is higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0043] When it is determined that the third absolute value is not higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve does not satisfy the preset speed judgment rule.
[0044] In the above embodiment, the nature of the speed fluctuation can be more fully understood by comparing the speed difference with the acceleration through the trend of speed change over time. If the absolute value of the speed difference exceeds the acceleration, it means that the speed change exceeds the normal expected range of change, indicating that there is an abnormality in the speed detection device.
[0045] In a second aspect, an embodiment of the present application provides a motor speed redundancy control system, including:
[0046] A current determination module, used to determine a current input current of the real motor when the speed of the real motor is lower than a first speed threshold;
[0047] A decomposition module, used for decomposing the current input current into a component with the same direction as the magnetic field and a component with the same direction as the torque generation direction according to a preset simulated motor;
[0048] The torque determination module is used to obtain the current torque of the real motor under the current input current;
[0049] A judgment module, used to judge whether the difference between the component in the same direction as the torque generation direction and the current torque is greater than a preset error threshold;
[0050] A training module is used to train a preset simulation motor using the component in the same direction as the torque generation direction and the current torque as training samples if the error is greater than a preset error threshold; and to perform a step of determining a current input current of the real motor when the speed of the real motor is lower than a first speed threshold;
[0051] A first speed determination module, configured to determine a subsequent input current of the real motor and a real speed under the subsequent input current if the speed of the real motor is higher than a second speed threshold value, if the error is not greater than a preset error threshold;
[0052] A second speed determination module is used to input the subsequent input current into the preset simulation motor to obtain a theoretical speed;
[0053] The control module is used to control the real motor using the theoretical speed when the difference between the real speed and the theoretical speed meets the preset speed judgment rule.
[0054] In conjunction with some embodiments of the second aspect, in some embodiments, the training module specifically includes:
[0055] The torque training submodule is used to adjust the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction, so that the difference between the component in the same direction as the torque generation direction output by the preset simulated motor under the current input current and the current torque is lower than the torque training threshold.
[0056] In conjunction with some embodiments of the second aspect, in some embodiments, the training module specifically includes:
[0057] A first speed determination submodule is used to determine the current actual speed of the real motor under the current input current;
[0058] The second speed determination submodule is used to input the current input current into the preset simulation motor to obtain the current theoretical speed;
[0059] The comprehensive training submodule is used to adjust the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction, respectively, so that the difference between the component in the same direction as the torque generation direction of the preset simulation motor output under the current input current and the current torque is lower than the torque training threshold, and the difference between the current theoretical speed of the preset simulation motor output under the current input current and the current actual speed is lower than the speed training threshold.
[0060] In conjunction with some embodiments of the second aspect, in some embodiments, the first speed determination module is specifically used to determine a subsequent input current change of the real motor and a real speed curve under the subsequent input current;
[0061] A second speed determination module is specifically used to input subsequent input current changes into a preset simulation motor to obtain a theoretical speed curve;
[0062] The control module is specifically used to control the real motor using the theoretical speed curve when the difference between the real speed curve and the theoretical speed curve meets the preset speed judgment rule.
[0063] In conjunction with some embodiments of the second aspect, in some embodiments, the preset speed judgment rule is specifically:
[0064] Calculating a first average value of the difference between the actual speed curve and the theoretical speed curve within a preset time window;
[0065] When it is determined that the first absolute value of the first average value is lower than the preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0066] When it is determined that the first absolute value of the first average value is not lower than the preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve does not satisfy the preset speed judgment rule.
[0067] In conjunction with some embodiments of the second aspect, in some embodiments, the preset speed judgment rule is specifically: calculating a second absolute value of a difference between a real speed curve and a theoretical speed curve within a preset time window;
[0068] When it is determined that the second absolute value is higher than the product of the theoretical speed curve and the preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0069] When it is determined that the second absolute value is not higher than the product of the theoretical speed curve and the preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule.
[0070] In conjunction with some embodiments of the second aspect, in some embodiments, the preset speed judgment rule is specifically:
[0071] Calculating a third absolute value of a difference between the actual speed curve and the theoretical speed curve;
[0072] Calculate the acceleration of the theoretical speed curve in a preset time period;
[0073] When it is determined that the third absolute value is higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0074] When it is determined that the third absolute value is not higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve does not satisfy the preset speed judgment rule.
[0075] In a third aspect, an embodiment of the present application provides a motor speed redundant control system, the system comprising: one or more processors and a memory;
[0076] The memory is coupled to the one or more processors, and is used to store computer program code, which includes computer instructions. The one or more processors call the computer instructions to enable the speed redundant control system of the motor to execute the method described in the first aspect and any possible implementation method of the first aspect.
[0077] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when the computer program product is run on a server, enables the server to execute the method described in the first aspect and any possible implementation of the first aspect.
[0078] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions. When the above instructions are executed on a speed redundant control system of a motor, the speed redundant control system of the motor executes the method described in the first aspect and any possible implementation method of the first aspect.
[0079] It can be understood that the motor speed redundancy control system provided in the second aspect, the motor speed redundancy control system provided in the third aspect, the computer program product provided in the fourth aspect, and the computer storage medium provided in the fifth aspect are all used to execute the motor speed redundancy control method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.
[0080] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0081] 1. The speed redundancy control method of the motor provided by the present application first monitors and determines the current input current of the real motor in real time during the low-speed operation stage of the real motor. Then, the input current is decomposed into a component in the same direction of the magnetic field and a component in the same direction as the torque generation direction by using a preset simulation motor. By obtaining and comparing the difference between these components and the actual torque, it is possible to determine whether the accuracy of the simulation motor exceeds the threshold. If the difference exceeds the threshold, these data will be used as training samples to train the simulation motor model, thereby improving the accuracy of the model. In the high-speed operation stage when the motor speed rises to above the second speed threshold, the calibrated simulation model is used to determine the subsequent input current of the real motor and the theoretical speed at the current. By comparing the predicted theoretical speed with the actual speed, and when the difference between the two meets the preset speed judgment rule, the theoretical speed is used to control the real motor. By training the simulation model at a low speed stage, the need for additional hardware under high-speed operation conditions is avoided, thereby reducing complexity and cost, and avoiding the problem of damage risk.
[0082] 2. The motor speed redundant control method provided in the present application further optimizes the accuracy of the simulated motor model by adjusting the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction to ensure that the difference between the torque output by the simulated motor model and the torque of the actual motor is minimized under the current input current, so as to more accurately reflect and predict the behavior of the actual motor.
[0083] 3. The motor speed redundant control method provided in this application can make the output of the simulated motor consistent with the actual performance of the real motor in terms of two key performance indicators, torque and speed, by adjusting the current and phase parameters, thereby further improving the accuracy of the simulated motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] Figure 1 A schematic flow chart of a method for redundant speed control of a motor provided in the present application.
[0085] Figure 2 Another schematic flow chart of the motor speed redundant control method provided in the present application.
[0086] Figure 3 A schematic diagram of a modular virtual device for a redundant speed control system of a motor provided in the present application.
[0087] Figure 4 A schematic diagram of a physical device of a motor speed redundant control system provided in the present application. DETAILED DESCRIPTION
[0088] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.
[0089] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0090] The following describes the motor speed redundancy control method in this embodiment:
[0091] like Figure 1 As shown, Figure 1 A schematic flow chart of a method for redundant speed control of a motor provided in the present application.
[0092] S101 . When the rotation speed of the real motor is lower than a first rotation speed threshold, determine the current input current of the real motor.
[0093] It should be noted that all executors of the present application are terminal devices running speed redundant control software or opening speed redundant control web pages, such as mobile phones, tablet computers, desktop computers, smart TVs, etc., which are not limited here.
[0094] During the normal operation of the motor, it is necessary to monitor the actual speed of the motor. In some embodiments, this is achieved through a built-in angle encoder, which is not limited here. At the same time, the angle encoder continuously or periodically measures the actual speed of the motor and compares it with a preset first speed threshold. In other embodiments, a software program may be used to determine whether the actual motor speed is lower than the first speed threshold, or a hardware tool such as a comparator may be used to achieve the same function, which is not limited here.
[0095] When it is determined that the speed of the motor is lower than the first speed threshold, the current input current of the motor is measured. In some embodiments, the current measurement can be completed by a current sensor. In other embodiments, the current value is known or can be obtained by other means, which is not limited here.
[0096] S102 , decomposing the current input current into a component having the same direction as the magnetic field and a component having the same direction as the torque generation direction according to a preset simulation motor.
[0097] Specifically, the actual current of the motor is converted to a synchronous rotating reference frame through Park transformation (or Park conversion). In this reference frame, the changing current of the AC motor is converted into two DC components, namely the direct axis component (d-axis component) and the quadrature axis component (q-axis component).
[0098] In the synchronously rotating reference frame, the d-axis component represents the current component in the same direction as the magnetic field, while the q-axis component represents the current component in the same direction as the torque generation direction.
[0099] S103, obtaining the current torque of the real motor under the current input current.
[0100] In some embodiments, the current torque is acquired by a torque sensor, which can be mounted directly on the motor shaft or in the transmission system to measure the actual torque transmitted through the shaft. These sensors may be based on strain gauges, which detect tiny bends or twists in the shaft, and these deformations are proportional to the transmitted torque.
[0101] In other embodiments, the torque may also be calculated indirectly by measuring the electrical power and mechanical power of the motor and converting them into torque.
[0102] S104: Determine whether the difference between the component in the same direction as the torque generation direction and the current torque is greater than a preset error threshold.
[0103] If the difference is greater than the preset error threshold, step S105 is executed.
[0104] If the difference is not greater than the preset error threshold, step S105 is executed.
[0105] S105, using the component in the same direction as the torque generation direction and the current torque as training samples to train the preset simulation motor.
[0106] In some embodiments, a simulation motor model established using MATLAB or Simulink software may be used.
[0107] It should be noted that the relevant technologies for simulated motors have been made public, and their internal architecture and code base are already quite mature. The above-mentioned training process focuses on refining the internal parameters of the simulated motor and accurately adjusting the motor model so that the component in the same direction as the torque generation direction more accurately reflects the actual torque value.
[0108] After completing step S105, the process will return to step S101 for re-execution. During this process, the input current may remain unchanged or adjusted. Importantly, because the simulated motor has been retrained, its output may have changed. Specifically, the current components in the same direction as the magnetic field and torque generation direction of the simulated motor output may be different. This means that even if the input current does not change, the response and torque output of the simulated motor may change due to training.
[0109] S106 . When the rotation speed of the real motor is higher than the second rotation speed threshold, determine a subsequent input current of the real motor and a real speed under the subsequent input current.
[0110] It should be noted that the second speed threshold represents the definition standard of high-speed operation. The specific value depends on the actual application scenario and performance requirements. The above steps mentioned that the implementation of step S106 is based on the premise that the simulated motor should be sufficiently trained to ensure that it can be used correctly within the design range.
[0111] As for the reason why the simulated motor model is not trained at high speed, it has been mentioned in the previous article that this is because the data collected under high-speed operating conditions often does not have sufficient accuracy. Therefore, when the speed of the real motor is higher than the second speed threshold, it can only be used but not trained.
[0112] As for the specific method for determining the current and speed, the above step S101 has been described in detail and will not be repeated here.
[0113] S107, inputting the subsequent input current into the preset simulation motor to obtain the theoretical speed.
[0114] After receiving the input current, the simulated motor model will calculate the corresponding theoretical speed output according to its internal algorithm and parameters, which are not limited here.
[0115] S108. When the difference between the actual speed and the theoretical speed satisfies a preset speed judgment rule, the actual motor is controlled using the theoretical speed.
[0116] It should be noted that the goal of this implementation is not to directly control the real motor, but to use the theoretical speed data generated by the simulated motor model to replace the reliance on the real speed data, thereby guiding the decision-making process.
[0117] It can be seen that, first, in the low-speed operation stage of the real motor, the current input current of the real motor is monitored and determined in real time. Then, using the preset simulation motor, the input current is decomposed into a component in the same direction as the magnetic field and a component in the same direction as the torque generation direction. By obtaining and comparing the difference between these components and the actual torque, it is possible to determine whether the accuracy of the simulation motor exceeds the threshold. If the difference exceeds the threshold, these data will be used as training samples to train the simulation motor model, thereby improving the accuracy of the model. In the high-speed operation stage when the motor speed increases to above the second speed threshold, the calibrated simulation model is used to determine the subsequent input current of the real motor and the theoretical speed at the current. By comparing the predicted theoretical speed with the actual speed, and when the difference between the two meets the preset speed judgment rule, the theoretical speed is used to control the real motor. By training the simulation model in the low-speed stage, the need for additional hardware under high-speed operation conditions is avoided, thereby reducing complexity and cost, and avoiding the problem of damage risk.
[0118] In the above embodiments, the technical effect of reducing the complexity and cost of the motor is achieved. In practical applications, when executing the above motor speed redundant control method, how to train the simulation motor model to make the model more accurate is a current problem. Figure 2 Another flow chart of the motor speed redundancy control method is shown in FIG. 1 , which specifically describes the motor speed redundancy control method in the embodiment of the present application:
[0119] like Figure 2 As shown, Figure 2 Another schematic flow chart of the motor speed redundant control method provided in the present application.
[0120] Step S105 is specifically as follows:
[0121] S201, determining a current actual speed of the real motor under a current input current.
[0122] As for the specific speed determination method, the above step S101 has been described in detail and will not be repeated here.
[0123] S202, inputting the current input current into the preset simulation motor to obtain the current theoretical speed.
[0124] Apply the same current input current conditions to the preset simulated motor model. Calculate and record the current theoretical speed predicted by the model.
[0125] S203, respectively adjusting the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction, so that the difference between the component in the same direction as the torque generation direction of the preset simulation motor output under the current input current and the current torque is lower than the torque training threshold, and the difference between the current theoretical speed of the preset simulation motor output under the current input current and the current actual speed is lower than the speed training threshold.
[0126] Adjust the current components and their phases in the same direction as the magnetic field and the torque generation direction in the simulated motor model to simultaneously achieve the following conditions: Ensure that under the current input current condition, the difference between the components in the same direction as the torque generation direction output by the simulated motor and the current torque of the real motor is less than the set torque training threshold. At the same time, ensure that under the current input current condition, the difference between the current theoretical speed output by the simulated motor and the current actual speed is less than the set speed training threshold.
[0127] It can be seen that during the training stage, by adjusting the current and phase parameters, the output of the simulated motor can be made consistent with the actual performance of the real motor in terms of two key performance indicators, torque and speed, thereby further improving the accuracy of the simulated motor.
[0128] In other embodiments, it is also possible to only implement the following condition: ensuring that under the current input current condition, the difference between the component in the same direction of the torque generated by the simulated motor output and the current torque of the real motor is less than the set torque training threshold, so that the training speed is faster.
[0129] Therefore, step S105 is specifically as follows: respectively adjust the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction, so that the difference between the component in the same direction as the torque generation direction output by the preset simulation motor under the current input current and the current torque is lower than the torque training threshold.
[0130] It can be seen that by adjusting the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction, it is ensured that under the current input current, the difference between the torque output by the simulated motor model and the torque of the actual motor is minimized, so as to further optimize the accuracy of the simulated motor model and make it more accurately reflect and predict the behavior of the actual motor.
[0131] In some embodiments, the actual speed and the theoretical speed are both simple data points, and the preset speed judgment rule is a simple threshold. However, in other embodiments, the actual speed and the theoretical speed are both speed curves, so steps S106 to S108 can also be:
[0132] First, determine the subsequent input current change of the real motor and the real speed curve under the subsequent input current;
[0133] Secondly, the subsequent input current changes are input into the preset simulation motor to obtain the theoretical speed curve;
[0134] Finally, when the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule, the actual motor is controlled using the theoretical speed curve.
[0135] It can be seen that by comparing the difference between the actual speed curve and the theoretical speed curve, and when these differences meet the preset speed judgment rules, the theoretical speed curve is used to guide the control of the actual motor. This avoids the possibility of false alarms from a single motion point due to noise or temporary measurement errors. Motion curve analysis can reduce the impact of noise by integrating multiple data points, thereby reducing the false alarm rate.
[0136] In some other embodiments, the preset speed determination rule is specifically:
[0137] First, a first average value of the difference between the actual speed curve and the theoretical speed curve within a preset time window is calculated;
[0138] The preset time window is defined as a clear time range with the current time as the end point and a fixed preset time point in the past as the start point.
[0139] In a preset time window, the speed data of the real motor is collected to form a real speed curve. At the same time, the theoretical speed curve in the corresponding time window is obtained from the simulation motor model, the difference between the two speed curves is calculated, and the average value of these differences in the time window is obtained.
[0140] Secondly, when it is determined that the first absolute value of the first average value is lower than the preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0141] Finally, when it is determined that the first absolute value of the first average value is not lower than the preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve does not satisfy the preset speed judgment rule.
[0142] It can be seen that by calculating the average value of the difference between the actual speed curve and the theoretical speed curve, and comparing the absolute value of this average value with the preset speed threshold. If the absolute value of the average value is lower than the threshold, it is considered that the motor is running normally; if it exceeds the threshold, it is considered that there is a problem. By comparing the average value with the threshold, this method can more accurately diagnose the motor operation status and avoid misjudgment caused by instantaneous fluctuations, thereby improving the reliability of the simulated motor.
[0143] In some other embodiments, the preset speed determination rule is specifically:
[0144] First, a second absolute value of the difference between the actual speed curve and the theoretical speed curve within a preset time window is calculated;
[0145] For each time point in the time window, the difference between the actual speed curve and the theoretical speed curve is calculated, and the absolute value of each difference is obtained to obtain a second absolute value.
[0146] Secondly, when it is determined that the second absolute value is higher than the product of the theoretical speed curve and the preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0147] Finally, when it is determined that the second absolute value is not higher than the product of the theoretical speed curve and the preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule.
[0148] It can be seen that the second absolute value of the difference between the actual speed curve and the theoretical speed curve is used by the preset speed judgment rule, and it is compared with the product of the theoretical speed curve multiplied by a preset percentage threshold. This method takes into account the real-time change of speed and compares it with a threshold that changes dynamically relative to the theoretical speed, rather than a static single value. Therefore, the size of the threshold can be adaptively adjusted according to different working conditions, making the judgment rule more flexible and accurate.
[0149] In some other embodiments, the preset speed determination rule is specifically:
[0150] First, the third absolute value of the difference between the actual speed curve and the theoretical speed curve is calculated;
[0151] For each time point within the preset time window, the difference between the actual speed curve and the theoretical speed curve is calculated, and the absolute value of each difference is calculated to obtain a third absolute value.
[0152] Secondly, the acceleration of the theoretical speed curve in a preset time period is calculated;
[0153] Analyze the changes in the theoretical speed curve within a preset time period to determine the acceleration of the motor under theoretical conditions. The acceleration calculation can be obtained by the time derivative of the theoretical speed curve, that is, the rate of speed change at consecutive time points.
[0154] Then, when it is determined that the third absolute value is higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0155] Finally, when it is determined that the third absolute value is not higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve does not satisfy the preset speed judgment rule.
[0156] It can be seen that by comparing the speed difference with the acceleration through the trend of speed change over time, the nature of speed fluctuations can be more fully understood. If the absolute value of the speed difference exceeds the acceleration, it means that the speed change is beyond the normal expected range of change, indicating that there is an abnormality in the speed detection device.
[0157] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0158] refer to Figure 3 The embodiment of the present application provides a motor speed redundant control system, and the motor speed redundant control system includes:
[0159] The current determination module 301 is used to determine the current input current of the real motor when the speed of the real motor is lower than the first speed threshold;
[0160] A decomposition module 302, for decomposing the current input current into a component having the same direction as the magnetic field and a component having the same direction as the torque generation direction according to a preset simulated motor;
[0161] The torque determination module 303 is used to obtain the current torque of the real motor under the current input current;
[0162] A judgment module 304 is used to judge whether the difference between the component in the same direction as the torque generation direction and the current torque is greater than a preset error threshold;
[0163] The training module 305 is used to train the preset simulation motor by using the component in the same direction as the torque generation direction and the current torque as training samples if the error is greater than a preset error threshold; and to perform the step of determining the current input current of the real motor when the speed of the real motor is lower than the first speed threshold;
[0164] A first speed determination module 306, configured to determine a subsequent input current of the real motor and a real speed under the subsequent input current if the speed of the real motor is higher than a second speed threshold value if the error is not greater than a preset error threshold;
[0165] A second speed determination module 307, used to input the subsequent input current into the preset simulation motor to obtain a theoretical speed;
[0166] The control module 308 is used to control the real motor using the theoretical speed when the difference between the real speed and the theoretical speed meets a preset speed judgment rule.
[0167] In some embodiments, the training module specifically includes:
[0168] The torque training submodule is used to adjust the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction, so that the difference between the component in the same direction as the torque generation direction output by the preset simulated motor under the current input current and the current torque is lower than the torque training threshold.
[0169] In some embodiments, the training module specifically includes:
[0170] A first speed determination submodule is used to determine the current actual speed of the real motor under the current input current;
[0171] The second speed determination submodule is used to input the current input current into the preset simulation motor to obtain the current theoretical speed;
[0172] The comprehensive training submodule is used to adjust the current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction, respectively, so that the difference between the component in the same direction as the torque generation direction of the preset simulation motor output under the current input current and the current torque is lower than the torque training threshold, and the difference between the current theoretical speed of the preset simulation motor output under the current input current and the current actual speed is lower than the speed training threshold.
[0173] In some embodiments, the first speed determination module is specifically used to determine a subsequent input current change of the real motor and a real speed curve under the subsequent input current;
[0174] A second speed determination module is specifically used to input subsequent input current changes into a preset simulation motor to obtain a theoretical speed curve;
[0175] The control module is specifically used to control the real motor using the theoretical speed curve when the difference between the real speed curve and the theoretical speed curve meets the preset speed judgment rule.
[0176] In some embodiments, the preset speed determination rule is specifically:
[0177] Calculating a first average value of the difference between the actual speed curve and the theoretical speed curve within a preset time window;
[0178] When it is determined that the first absolute value of the first average value is lower than the preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0179] When it is determined that the first absolute value of the first average value is not lower than the preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve does not satisfy the preset speed judgment rule.
[0180] In some embodiments, the preset speed determination rule is specifically: calculating a second absolute value of a difference between a real speed curve and a theoretical speed curve within a preset time window;
[0181] When it is determined that the second absolute value is higher than the product of the theoretical speed curve and the preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0182] When it is determined that the second absolute value is not higher than the product of the theoretical speed curve and the preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule.
[0183] In some embodiments, the preset speed determination rule is specifically:
[0184] Calculating a third absolute value of a difference between the actual speed curve and the theoretical speed curve;
[0185] Calculate the acceleration of the theoretical speed curve in a preset time period;
[0186] When it is determined that the third absolute value is higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve satisfies the preset speed judgment rule;
[0187] When it is determined that the third absolute value is not higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve does not satisfy the preset speed judgment rule.
[0188] The present application also discloses a motor speed redundancy control system. Figure 4 , is a schematic diagram of a physical device of a motor speed redundant control system provided by the present application. The computer 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0189] The communication bus 402 is used to realize the connection and communication between these components.
[0190] The user interface 403 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 403 may also include a standard wired interface and a wireless interface.
[0191] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0192] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.
[0193] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned processor 401. Refer to Figure 4 The memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for redundant speed control of a motor.
[0194] exist Figure 4In the computer 400 shown, the user interface 403 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 401 can be used to call the application program for redundant speed control of the motor stored in the memory 405. When executed by one or more processors 401, the computer 400 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0195] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0196] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0197] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0198] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0199] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0200] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0201] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for redundant control of motor speed, characterized in that: include: When the rotation speed of the real motor is lower than a first rotation speed threshold, determining a current input current of the real motor; Decomposing the current input current into a component in the same direction as the magnetic field and a component in the same direction as the torque generation direction according to a preset simulated motor; Obtaining a current torque of the real motor under the current input current; Determine whether the difference between the component in the same direction as the torque generation direction and the current torque is greater than a preset error threshold; If it is greater than the preset error threshold, the component in the same direction as the torque generation direction and the current torque are used as training samples to train the preset simulation motor; and executing the step of determining the current input current of the real motor when the rotation speed of the real motor is lower than the first rotation speed threshold; If it is not greater than the preset error threshold, then, when the rotation speed of the real motor is higher than a second rotation speed threshold, determining a subsequent input current of the real motor and a real speed under the subsequent input current; Inputting the subsequent input current into the preset simulation motor to obtain a theoretical speed; When the difference between the real speed and the theoretical speed satisfies a preset speed judgment rule, the real motor is controlled using the theoretical speed.
2. The motor speed redundant control method according to claim 1, characterized in that: The step of using the component in the same direction as the torque generation direction and the current torque as training samples to train the preset simulation motor specifically includes: The current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction are adjusted respectively, so that the difference between the component in the same direction as the torque generation direction output by the preset simulation motor under the current input current and the current torque is lower than the torque training threshold.
3. The motor speed redundant control method according to claim 1, characterized in that: The step of using the component in the same direction as the torque generation direction and the current torque as training samples to train the preset simulation motor specifically includes: Determine a current actual speed of the real motor under the current input current; Inputting the current input current into the preset simulation motor to obtain the current theoretical speed; The current and phase of the component in the same direction as the magnetic field and the component in the same direction as the torque generation direction are adjusted respectively, so that the difference between the component in the same direction as the torque generation direction output by the preset simulation motor under the current input current and the current torque is lower than the torque training threshold, and the difference between the current theoretical speed of the preset simulation motor output under the current input current and the current actual speed is lower than the speed training threshold.
4. The motor speed redundant control method according to claim 1, characterized in that: Determining a subsequent input current of the real motor and a real speed under the subsequent input current; Inputting the subsequent input current into the preset simulation motor to obtain a theoretical speed; When the difference between the actual speed and the theoretical speed satisfies a preset speed judgment rule, the step of controlling the actual motor using the theoretical speed specifically includes: Determining a subsequent input current change of the real motor and a real speed curve under the subsequent input current; Inputting the subsequent input current change into the preset simulation motor to obtain a theoretical speed curve; In the case where the difference between the real speed curve and the theoretical speed curve satisfies a preset speed judgment rule, the real motor is controlled using the theoretical speed curve.
5. The motor speed redundant control method according to claim 4, characterized in that: The preset speed judgment rule is specifically: Calculating a first average value of the difference between the actual speed curve and the theoretical speed curve within a preset time window; In a case where it is determined that the first absolute value of the first average value is lower than a preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve satisfies a preset speed judgment rule; When it is determined that the first absolute value of the first average value is not lower than a preset first speed threshold, the difference between the actual speed curve and the theoretical speed curve does not satisfy a preset speed judgment rule.
6. The motor speed redundant control method according to claim 4, characterized in that: The preset speed judgment rule is specifically: Calculating a second absolute value of a difference between the actual speed curve and the theoretical speed curve within a preset time window; In the case where it is determined that the second absolute value is higher than the product of the theoretical speed curve and a preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies a preset speed judgment rule; When it is determined that the second absolute value is not higher than the product of the theoretical speed curve and a preset percentage threshold, the difference between the actual speed curve and the theoretical speed curve satisfies a preset speed judgment rule.
7. The motor speed redundancy control method according to claim 4, characterized in that: The preset speed judgment rule is specifically: Calculating a third absolute value of a difference between the actual speed curve and the theoretical speed curve; Calculating the acceleration of the theoretical speed curve in a preset time period; In the case where it is determined that the third absolute value is higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve satisfies a preset speed judgment rule; When it is determined that the third absolute value is not higher than the acceleration, the difference between the actual speed curve and the theoretical speed curve does not satisfy a preset speed judgment rule.
8. A motor speed redundant control system, characterized in that: include: a current determination module, configured to determine a current input current of the real motor when a rotation speed of the real motor is lower than a first rotation speed threshold; A decomposition module, used for decomposing the current input current into a component with the same direction as the magnetic field and a component with the same direction as the torque generation direction according to a preset simulated motor; A torque determination module, used for obtaining the current torque of the real motor under the current input current; A judgment module, used for judging whether the difference between the component in the same direction as the torque generation direction and the current torque is greater than a preset error threshold; A training module, for training a preset simulation motor by using the component in the same direction as the torque generation direction and the current torque as training samples if the error is greater than the preset error threshold; and executing the step of determining the current input current of the real motor when the rotation speed of the real motor is lower than the first rotation speed threshold; A first speed determination module, configured to determine a subsequent input current of the real motor and a real speed under the subsequent input current when the speed of the real motor is higher than a second speed threshold if the error is not greater than the preset error threshold; A second speed determination module, used for inputting the subsequent input current into the preset simulation motor to obtain a theoretical speed; The control module is used to control the real motor using the theoretical speed when the difference between the real speed and the theoretical speed meets a preset speed judgment rule.
9. A motor speed redundant control system, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the speed redundant control system of the motor to execute the method as described in any one of claims 1-7.
10. A computer-readable storage medium comprising instructions, characterized in that: When the instruction is executed on the redundant speed control system of the motor, the redundant speed control system of the motor is caused to execute the method according to any one of claims 1 to 7.
