Output control method, device, equipment and storage medium of frequency converter
By analyzing motor signals through sensors, PID controllers and encoders combined with the ant colony algorithm optimization model, the problem of unstable motor operation in traditional frequency converters under dynamic load fluctuations and high-precision control situations has been solved, improving response speed and stability, and reducing Energy consumption is reduced and adaptive control is achieved.
Patent Information
- Application Number
- CN202410935028.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-12
AI Technical Summary
In situations where dynamic load fluctuations are large or high-precision control is required, the traditional inverter control method results in unstable motor operation, slow response, low accuracy, high control complexity, and high energy consumption.
Receive motor operation signals through preset sensors, analyze and input the state analysis model, generate control instructions, use PID controllers and encoders to control the motor, and combine the ant colony algorithm to optimize model parameters to achieve precise control.
It improves the stability and response speed of motor operation, reduces power consumption, realizes adaptive control, and can automatically adjust control parameters according to different working conditions.
Smart Images

Figure CN118487530B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of frequency converters, and in particular to an output control method, device, equipment and storage medium of a frequency converter. Background Art
[0002] In various industrial and civil applications, motors are used as a major power source, and their performance is directly related to the operating efficiency and stability of the entire system. In order to ensure that the motor can respond efficiently and accurately to load changes or control requirements, it is necessary to use a speed control system to accurately control the motor. The frequency converter is an electrical device widely used in motor speed control. It can control the speed and torque of the AC motor by changing the frequency and voltage of the power supply.
[0003] However, the traditional inverter control method has problems such as slow response speed, low accuracy, and high control complexity. Especially in situations where dynamic load fluctuations are large or high-precision control is required, it will lead to unstable equipment operation or high energy consumption. Therefore, developing a more efficient and accurate motor control method is of great significance to improving the overall performance of the system. Summary of the invention
[0004] The main purpose of the present invention is to provide an output control method, device, equipment and storage medium for a frequency converter, which solves the technical problem that the motor operation is unstable when the dynamic load fluctuates greatly or high-precision control is required.
[0005] To achieve the above object, the present invention provides an output control method of a frequency converter, comprising the following steps:
[0006] Receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operation state of the motor;
[0007] Inputting the first running state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage;
[0008] Setting a control target of the motor, using a preset PID controller, and generating a control instruction based on the control target, the first input current, and the first input voltage; wherein the control target includes motor speed, motor torque, and motor start-stop control;
[0009] Encoding the control instruction by a preset encoder to obtain a frequency converter encoding instruction;
[0010] The motor is regulated by a frequency converter based on the coded instructions of the frequency converter.
[0011] As a further solution of the present invention, receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operation state of the motor includes:
[0012] Receiving multiple motor operation signals during the operation of the motor through a preset sensor; wherein the motor operation signals include the voltage of the motor, the current of the motor, the power of the motor and the torque of the motor;
[0013] Purifying each of the motor operation signals to obtain a corresponding purified signal;
[0014] Performing time domain calculation on each of the purification signals to obtain a time domain value of the motor operation signal; wherein the time domain value includes a mean value, a variance and a peak value of the motor operation signal;
[0015] Draw a time domain waveform diagram of the motor operation signal based on the time domain value;
[0016] Extract key features from the time domain waveform to obtain key features of the motor operation; wherein the key features include the shape, amplitude change and zero-crossing point of the waveform, and the zero-crossing point includes the current zero-crossing point and the voltage zero-crossing point;
[0017] The motor is analyzed based on the key characteristics of the motor operation to obtain a first operating state of the motor.
[0018] As a further solution of the present invention, the first running state of the motor is input into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage, including:
[0019] Performing Fourier transformation on the first operating state of the motor to obtain a frequency spectrum of the motor operating state; wherein the frequency spectrum has an amplitude parameter and a phase parameter;
[0020] Performing parameter identification on the electrical parameters of the motor based on the amplitude parameters and the phase parameters in the frequency spectrum to obtain identification parameters of the motor;
[0021] Inputting the identification parameters into a preset state analysis model for calculation to obtain a preliminary input current and a preliminary input voltage;
[0022] respectively determining whether the preliminary input current and the preliminary input voltage are within a preset range;
[0023] If any of the preliminary input current and the preliminary input voltage is not within a preset range, the model parameters of the state analysis model are optimized and adjusted using a preset ant colony algorithm to obtain an optimized state analysis model;
[0024] Calculating the identification parameters using the optimized state analysis model to obtain a corresponding first input current and a first input voltage;
[0025] If the preliminary input current and the preliminary input voltage are both within a preset range, the identification parameter is calculated by a state analysis model to obtain a corresponding first input current and a first input voltage.
[0026] As a further solution of the present invention, a low-pass filter is provided in the motor; the Fourier transform is performed on the first operating state of the motor to obtain a spectrum diagram of the motor operating state, including:
[0027] Performing denoising processing on the first operating state of the motor by using the low-pass filter to obtain a denoised signal;
[0028] Performing windowing processing on the denoised signal using a preset window function to obtain a windowed sequence signal;
[0029] The windowed sequence signal is transformed using a preset fast Fourier transform algorithm to obtain a preliminary spectrum diagram of the motor operation status converted from the time domain to the frequency domain;
[0030] Respectively calculating the amplitude and phase of each frequency in the preliminary spectrum diagram of the motor running state; wherein the frequency includes voltage frequency and current frequency;
[0031] Based on the preliminary spectrum diagram of the motor running state, the amplitude and the phase of each frequency are counted and calculated to obtain a spectrum density;
[0032] Analyzing the spectrum density through the preliminary spectrum diagram of the motor operation state to determine the peak frequency of the motor operation signal, and obtaining harmonics and abnormal spectrum peaks based on the peak frequency;
[0033] The positions of the harmonics and the positions of the abnormal spectrum peaks are marked on the preliminary spectrum diagram of the motor running state to obtain the spectrum diagram of the motor running state.
[0034] As a further solution of the present invention, a control target of the motor is set, and a preset PID controller is used to generate a control instruction based on the control target, the first input current, and the first input voltage, including:
[0035] Acquire application scenarios and performance requirements of the motor, and set control targets of the motor based on the application scenarios and performance requirements;
[0036] Using a preset PID controller to monitor the first input current and the first input voltage in real time to obtain a load signal of the motor; wherein the load signal includes a torque parameter and a power parameter;
[0037] Obtaining control parameters of the motor based on the control target and the load signal;
[0038] Predicting the operation of the motor based on the control parameters to obtain a prediction coefficient;
[0039] If the prediction coefficient is within a preset range, the control parameter is converted into a control instruction.
[0040] As a further solution of the present invention, the control instruction is encoded by a preset encoder to obtain a frequency converter encoding instruction, including:
[0041] The control instruction is identified and analyzed by a preset encoder to obtain a structured instruction signal; wherein the structured instruction signal includes key control parameters, target instructions and mode settings;
[0042] The structured instruction signal is compressed by a preset LZlib compression algorithm to obtain a compressed instruction;
[0043] Acquire a communication protocol standard, perform protocol layer encapsulation encoding on the compressed instruction based on the communication protocol standard, and generate a protocol-encoded instruction packet;
[0044] Performing additional compatibility encoding processing on the instruction packet to obtain a protocol-compatible instruction packet;
[0045] Adding a check code to the protocol-compatible instruction packet to obtain a check-containing instruction packet;
[0046] The instruction package containing the verification is structurally integrated to obtain the inverter coding instruction.
[0047] As a further solution of the present invention, an IGBT power semiconductor is arranged in the frequency converter; and the method of using the frequency converter to control the motor based on the frequency converter coding instruction includes:
[0048] Performing verification code verification on the frequency converter coding instruction to obtain a control instruction that passes the verification;
[0049] Decoding the verified control instruction to obtain a decoded instruction;
[0050] Extracting parameters from the decoded instruction to obtain a target speed of the motor and a target torque of the motor;
[0051] Through the preset field-oriented control algorithm, the target speed and target torque of the motor are dynamically calculated to obtain the adjustment voltage and adjustment frequency;
[0052] Draw a voltage-frequency curve based on the adjusted voltage and the adjusted frequency;
[0053] Obtaining a pulse width modulation signal based on the voltage-frequency curve;
[0054] The pulse width modulation signal is controlled and converted through the IGBT power semiconductor to regulate the motor.
[0055] The present invention also provides an output control device for a frequency converter, comprising:
[0056] A receiving module, used for receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operation state of the motor;
[0057] A calculation module, used for inputting the first running state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage;
[0058] A control module, used to set a control target of the motor, and to generate a control instruction based on the control target, the first input current, and the first input voltage by using a preset PID controller; wherein the control target includes motor speed, motor torque, and motor start-stop control;
[0059] An encoding module, used for encoding the control instruction by a preset encoder to obtain an inverter encoding instruction;
[0060] The control module is used to use the frequency converter to control the motor based on the frequency converter coding instructions.
[0061] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0062] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0063] The output control method, device, equipment and storage medium of the inverter provided by the present invention include the following steps: receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operating state of the motor; inputting the first operating state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage; setting a control target for the motor, using a preset PID controller, and generating a control instruction based on the control target and the first input current and the first input voltage; wherein the control target includes motor speed, motor torque and motor start and stop control; encoding the control instruction through a preset encoder to obtain an inverter encoding instruction; using the inverter to control the motor based on the inverter encoding instruction; through the above-mentioned technical scheme, the technical problem of unstable motor operation caused by large dynamic load fluctuations or high-precision control requirements is solved, the stability and response speed of the motor operation are improved, the power consumption is reduced, and adaptive control is realized, and the control parameters can be automatically adjusted according to different working conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 is a schematic diagram of the steps of a method for controlling the output of a frequency converter in one embodiment of the present invention;
[0065] Figure 2 is a structural block diagram of an output control device of a frequency converter in one embodiment of the present invention;
[0066] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.
[0067] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0069] like Figure 1 As shown, Figure 1 It is a schematic diagram of the steps of the output control method of the frequency converter in one embodiment of the present invention;
[0070] An embodiment of the present invention provides an output control method of a frequency converter, comprising the following steps:
[0071] Step S1, receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operation state of the motor.
[0072] Specifically, in this technical solution, "receiving motor operation signals through preset sensors" refers to special sensors installed on the motor system, which continuously monitor various key parameters of the motor when it is working, such as current, voltage, speed, temperature, etc. These sensors are pre-calibrated and set to ensure that they can accurately capture information reflecting the motor's operating status. Once these real-time signals are captured by the sensors, the next step is to "analyze the motor based on the motor operation signals." This process involves processing and parsing the collected data, and identifying the current working mode of the motor through algorithms or electronic circuits, such as whether it is fully loaded, lightly loaded, accelerating, decelerating, or idle. This analysis is a prerequisite for a deep understanding of the behavior of the motor, which requires an in-depth understanding of the physical characteristics and operating laws of the motor. The result of the analysis is "obtaining the first operating state of the motor." The so-called "first operating state" here is a general description of the current overall working condition of the motor, which can be regarded as a state label after a comprehensive evaluation of all the monitoring parameters of the motor. For example, if the motor is running smoothly at rated power, its first operating state is marked as "normal operation"; if the motor is overloaded and accompanied by a surge in current, the state is marked as "overload." In summary, this series of operations forms the basis for real-time monitoring of motor operation. It uses modern sensing technology to acquire data, combines advanced analysis algorithms to extract information, and ultimately presents the actual working conditions of the motor in a form that is easy to understand and operate (i.e., the first operating state of the motor), providing a solid foundation for subsequent precise control.
[0073] Step S2: input the first running state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage.
[0074] Specifically, after the acquisition of the first running state of the motor is completed, the next step is to "input the first running state of the motor into a preset state analysis model for calculation". Here, the "preset state analysis model" is a pre-designed mathematical model or algorithm based on motor theory, control theory and actual operation experience. The model can accept the current running state information of the motor as input parameters, and these state information include key indicators such as the load, speed, temperature, and historical operation data of the motor. By sending the first running state into the model, the system starts to execute the calculation process. This calculation stage involves complex mathematical operations and logical judgments. It simulates the response characteristics of the motor under different conditions, taking into account the physical limitations, dynamic characteristics and expected control performance standards of the motor. The core task of the model is to deduce the ideal electrical control parameters required to achieve the control target or maintain the expected operating state based on the current motor state, that is, "the first input current and the first input voltage". In other words, the state analysis model analyzes the current operating scenario of the motor and predicts the most appropriate current and voltage levels that the inverter should provide in order to maintain or change this state (such as acceleration, deceleration, maintaining constant speed, etc.). The "first input current" and "first input voltage" are the electrical control instructions calculated by the model that are necessary to respond to the current state of the motor and move toward the control target, laying the foundation for subsequent precise regulation.
[0075] Step S3, setting a control target of the motor, using a preset PID controller, and generating a control instruction based on the control target, the first input current, and the first input voltage; wherein the control target includes motor speed, motor torque, and motor start and stop control.
[0076] Specifically, after establishing the specific control objectives of the motor, such as the desired motor speed, the desired motor torque, and the start-stop control requirements of the motor, the next key step is to use the "preset PID controller" to generate accurate control instructions. The PID controller is a feedback mechanism widely used in control systems. It continuously adjusts the output by integrating the three control actions of proportional (P), integral (I), and differential (D) to achieve accurate control of process variables. Specifically in this scenario, the "first input current" and "first input voltage" are the basic data obtained from the state analysis model, representing the basic electrical parameters required for the motor to operate in the current state. The PID controller compares the difference between these target values and the actual measured values (called error) based on the pre-set control objectives (such as requiring the motor to reach a certain speed or generate a certain torque). Then, based on this error and its changing trend, the controller calculates a correction value through the PID algorithm to adjust the original first input current and voltage. The generated "control instruction" therefore contains the current and voltage set values optimized by the PID algorithm, ensuring that the actual operation of the motor can quickly and accurately approach or even reach the control objectives. For the start and stop control of the motor, the PID controller can also achieve smooth start and impact-free stop by finely adjusting the initial current and voltage pulses, thereby protecting the motor from damage caused by instantaneous large current or voltage fluctuations, while also ensuring the stability and efficiency of the system. In summary, this solution achieves efficient and accurate management of the motor's operating status by integrating the output of the state analysis model with the advanced control strategy of the PID controller, meets the established control objectives, and improves the performance and reliability of the entire motor drive system.
[0077] Step S4, encoding the control instruction by a preset encoder to obtain a frequency converter encoding instruction.
[0078] Specifically, after the precise control instructions are determined and calculated, the next step is to process these instructions through a "preset encoder". This process involves converting the control instructions into a specially designed format for effective communication with the final execution device, in this case, the "frequency converter". The frequency converter is a device that can change the frequency of AC power according to the control signal, thereby adjusting the speed of the connected motor. The "frequency converter encoded instruction" is the product of the control instruction after being processed by the encoder. The encoding process ensures that the information in the original control instruction (such as the desired motor speed, torque instruction or start and stop command) is accurately and safely converted into a code sequence or protocol format that the frequency converter can recognize and execute. Encoding not only involves the specific numerical conversion of the instruction, but also includes the necessary error detection and the addition of check bits to enhance the reliability and security of instruction transmission. In short, through the preset encoder, we ensure that the high-level control instructions output from the control layer can be correctly translated into a low-level language that the frequency converter can understand and execute. This process is an indispensable part of achieving precise motor control. In this way, after the inverter receives the coded instructions, it can dynamically adjust the power frequency and voltage output to the motor according to these instructions, ultimately achieving precise control of the motor speed and torque as well as smooth start and stop operations.
[0079] Step S5, using the frequency converter to control the motor based on the frequency converter coding instruction.
[0080] Specifically, after completing the encoding process of the control instructions and generating a special inverter encoding instruction, the next step is to "use the inverter to control the motor based on the inverter encoding instruction". This means that the inverter, as an actuator, plays the role of receiving and parsing the encoding instructions, and then adjusts the power parameters output to the motor, including voltage and frequency, according to these instructions, so as to achieve precise control of the motor. Specifically, the decoding logic built into the inverter reads the received encoding instructions and parses the control information contained therein, such as the target speed that the motor should reach, the torque level required to be output, or the start-stop command. Based on these decoded control targets, the power electronic converter inside the inverter dynamically adjusts the amplitude and frequency of the output current to match the instruction requirements. By quickly changing the frequency and voltage of the AC power supplied to the motor, the inverter can effectively control the speed and output torque of the motor while ensuring the efficiency and stability of the motor operation. This regulation process is part of the closed-loop control, that is, the inverter not only executes the instructions, but also continuously monitors the actual operating status of the motor through sensors, compares it with the control target, and further adjusts the output if there is a deviation until the actual operation of the motor is consistent with the control target. In this way, the inverter not only achieves precise control of the motor, but also ensures the response speed and control accuracy of the entire system, meets the dynamic requirements in different application scenarios, and improves the energy efficiency and performance of the motor drive system.
[0081] In a specific embodiment, receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operation state of the motor includes:
[0082] Receiving multiple motor operation signals during the operation of the motor through a preset sensor; wherein the motor operation signals include the voltage of the motor, the current of the motor, the power of the motor and the torque of the motor;
[0083] Purifying each of the motor operation signals to obtain a corresponding purified signal;
[0084] Performing time domain calculation on each of the purification signals to obtain a time domain value of the motor operation signal; wherein the time domain value includes a mean value, a variance and a peak value of the motor operation signal;
[0085] Draw a time domain waveform diagram of the motor operation signal based on the time domain value;
[0086] Extract key features from the time domain waveform to obtain key features of the motor operation; wherein the key features include the shape, amplitude change and zero-crossing point of the waveform, and the zero-crossing point includes the current zero-crossing point and the voltage zero-crossing point;
[0087] The motor is analyzed based on the key characteristics of the motor operation to obtain a first operating state of the motor.
[0088] Specifically, signal acquisition: First, use the preset sensors to monitor in real time the various operating signals generated by the motor during operation. These signals mainly include the voltage, current, power and torque of the motor. These data are the basic information source for evaluating the motor status. Signal purification: The original motor operation signals received often contain noise. In order to analyze more accurately, these signals are purified to remove or reduce noise interference, so as to obtain a purer and more reliable "purified signal". Time domain analysis: Perform time domain calculations on the purified signals to extract key values reflecting the characteristics of the signal, such as the mean (indicating the overall level of the signal), variance (reflecting the degree of signal fluctuation) and peak value (maximum value of the signal). These time domain values help to understand the basic characteristics of the signal. Time domain waveform drawing: Use the obtained time domain values to draw the time domain waveforms of various motor signals. These graphics intuitively show the trend of signal changes over time, providing a visual basis for subsequent analysis. Key feature extraction: Perform in-depth analysis of the time domain waveform to identify key features reflecting the operating status of the motor, such as the overall shape of the waveform, the change pattern of the amplitude over time, and the zero crossing point of the current and voltage. These features are important indicators for judging the health of the motor. For example, the analysis of the zero crossing point can reveal changes in the motor's start, stop, or running status. Motor operating status analysis: Finally, based on these extracted key features, a comprehensive analysis of the motor's current operating status is performed to obtain the first operating status assessment of the motor. This step may include determining whether the motor is running smoothly, whether there is an abnormal load, whether the efficiency is normal, etc., to provide a basis for motor maintenance, fault diagnosis, and performance optimization. In summary, through a series of meticulous data processing and analysis steps, this solution effectively uses sensor data to conduct an in-depth assessment of the motor's operating status, providing a scientific basis for ensuring efficient and reliable operation of the motor.
[0089] In a specific embodiment, the first running state of the motor is input into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage, including:
[0090] Performing Fourier transformation on the first operating state of the motor to obtain a frequency spectrum of the motor operating state; wherein the frequency spectrum has an amplitude parameter and a phase parameter;
[0091] Performing parameter identification on the electrical parameters of the motor based on the amplitude parameters and the phase parameters in the frequency spectrum to obtain identification parameters of the motor;
[0092] Inputting the identification parameters into a preset state analysis model for calculation to obtain a preliminary input current and a preliminary input voltage;
[0093] respectively determining whether the preliminary input current and the preliminary input voltage are within a preset range;
[0094] If any of the preliminary input current and the preliminary input voltage is not within a preset range, the model parameters of the state analysis model are optimized and adjusted using a preset ant colony algorithm to obtain an optimized state analysis model;
[0095] Calculating the identification parameters using the optimized state analysis model to obtain a corresponding first input current and a first input voltage;
[0096] If the preliminary input current and the preliminary input voltage are both within a preset range, the identification parameter is calculated by a state analysis model to obtain a corresponding first input current and a first input voltage.
[0097] Specifically, spectrum analysis: First, the first motor operating state data obtained previously is converted to the frequency domain through Fourier transform to form a spectrum diagram. The spectrum diagram clearly shows the frequency composition of the signal, where the amplitude parameter reflects the strength of each frequency component, and the phase parameter describes the phase relationship between the components of the signal. This conversion helps to mine the inherent frequency characteristics of the motor operation from the time series data. Electrical parameter identification: Based on the amplitude and phase parameters of the spectrum diagram, a specific identification algorithm is used to analyze the electrical characteristics of the motor, such as impedance, inductance, etc., to obtain the identification parameters of the motor. These parameters are quantitative expressions of the electromagnetic characteristics of the motor and are crucial for the subsequent calculation of the input current and voltage. Preliminary calculation and verification: The identified motor parameters are input into a preset state analysis model to preliminarily calculate the input current and voltage. Subsequently, check whether these two values fall within the preset safe or reasonable range. This range is usually determined by the design specifications, working conditions and safety standards of the motor. Optimization and adjustment: If the preliminarily calculated current or voltage exceeds the preset range, it indicates that the model may be biased or inaccurate. At this time, the ant colony algorithm is used to optimize the parameters of the state analysis model. The ant colony algorithm is a heuristic optimization method that simulates the process of ants looking for food. It iterates to find the optimal solution and adjusts the model parameters to improve its prediction accuracy. Final calculation: After optimization, the adjusted state analysis model is used again to calculate the input current and voltage of the motor. If the result of the preliminary calculation is already within the preset range, the original model is used directly for calculation. Through this series of steps, not only an in-depth analysis of the motor's operating status is achieved, but also the calculated input current and voltage are ensured to be both accurate and safe, providing solid data support for the formulation of motor control strategies, fault prediction, and energy efficiency optimization.
[0098] In a specific embodiment, a low-pass filter is provided in the motor; the Fourier transform is performed on the first operating state of the motor to obtain a frequency spectrum of the motor operating state, including:
[0099] Performing denoising processing on the first operating state of the motor by using the low-pass filter to obtain a denoised signal;
[0100] Performing windowing processing on the denoised signal using a preset window function to obtain a windowed sequence signal;
[0101] The windowed sequence signal is transformed using a preset fast Fourier transform algorithm to obtain a preliminary spectrum diagram of the motor operation status converted from the time domain to the frequency domain;
[0102] Respectively calculating the amplitude and phase of each frequency in the preliminary spectrum diagram of the motor running state; wherein the frequency includes voltage frequency and current frequency;
[0103] Based on the preliminary spectrum diagram of the motor running state, the amplitude and the phase of each frequency are counted and calculated to obtain a spectrum density;
[0104] Analyzing the spectrum density through the preliminary spectrum diagram of the motor operation state to determine the peak frequency of the motor operation signal, and obtaining harmonics and abnormal spectrum peaks based on the peak frequency;
[0105] The positions of the harmonics and the positions of the abnormal spectrum peaks are marked on the preliminary spectrum diagram of the motor running state to obtain the spectrum diagram of the motor running state.
[0106] Specifically, low-pass filtering denoising: The low-pass filter configured inside the motor first processes the original signal of the first operating state of the motor, filters out high-frequency noise, and retains the useful components in the signal, thereby obtaining a clearer "denoised signal". This step is crucial for subsequent accurate analysis because it removes cluttered signals that may interfere with the analysis results. Windowing processing: In order to reduce spectrum leakage and edge effects, the denoised signal is windowed through a preset window function to generate a "windowed sequence signal". The selection of window functions (such as Hanning window, rectangular window, etc.) can balance resolution and leakage effects to make spectrum analysis more accurate. Fast Fourier transform: Using the fast Fourier transform (FFT) algorithm, the processed windowed sequence signal is converted from the time domain to the frequency domain to obtain a "preliminary spectrum diagram" of the motor's operating state. FFT is an efficient algorithm that can quickly calculate the frequency domain representation of a signal and display the frequency composition of the signal. Amplitude and phase calculation: In the preliminary spectrum diagram, the amplitude and phase of each frequency point are calculated. These parameters are the key to understanding and analyzing the motor's operating state. The amplitude reflects the strength of each frequency component, while the phase is related to the time relationship between different components of the signal. Spectral density statistics and analysis: Based on the calculated amplitude and phase, statistics and calculations are performed to obtain the spectral density, which is an indicator of the energy distribution of the signal at each frequency. The analysis of spectral density helps to identify the main frequency components of the motor operation. Peak frequency and harmonic identification: By analyzing the spectral density, the "peak frequency" of the motor operation signal is determined, that is, the frequency point with the strongest signal energy, which usually corresponds to the fundamental operating frequency of the motor. Further based on the peak frequency, harmonics (integer multiples of the fundamental frequency) and abnormal spectrum peaks can be identified, which are caused by nonlinear loads or motor faults. Spectrum diagram annotation: On the preliminary spectrum diagram, the location of the harmonics and the location of the abnormal spectrum peaks are clearly marked to form the final "spectrum diagram of the motor operation status". This step intuitively shows the important characteristics and potential problem points in the operation of the motor, providing an intuitive basis for fault diagnosis and performance evaluation. In short, through a series of professional signal processing technologies, especially spectrum analysis, the solution deeply analyzes the motor operation status, effectively identifies normal and abnormal frequency components, and provides strong technical support for motor health monitoring, fault prevention and optimization control.
[0107] In a specific embodiment, a control target of the motor is set, and a preset PID controller is used to generate a control instruction based on the control target, the first input current, and the first input voltage, including:
[0108] Acquire application scenarios and performance requirements of the motor, and set control targets of the motor based on the application scenarios and performance requirements;
[0109] Using a preset PID controller to monitor the first input current and the first input voltage in real time to obtain a load signal of the motor; wherein the load signal includes a torque parameter and a power parameter;
[0110] Obtaining control parameters of the motor based on the control target and the load signal;
[0111] Predicting the operation of the motor based on the control parameters to obtain a prediction coefficient;
[0112] If the prediction coefficient is within a preset range, the control parameter is converted into a control instruction.
[0113] Specifically, control target setting: First, according to the application scenario of the motor (such as industrial automation, household appliances, electric vehicle drive, etc.) and specific performance requirements (such as response speed, torque accuracy, efficiency, etc.), the control target of the motor is set. The control target is the working state that the motor is expected to achieve, such as maintaining a specific speed, output torque or power level. PID controller application: A pre-set proportional-integral-differential (PID) controller is used. The PID controller is a widely used closed-loop control system component that can dynamically adjust the output based on feedback information to reduce system errors. In this process, the PID controller monitors the first input current and the first input voltage of the motor in real time. These two parameters are a direct reflection of the motor load state. By analyzing the current and voltage signals, the controller can extract the load signal, including the current torque parameters and power parameters of the motor, which are important indicators for evaluating the motor workload. Control parameter calculation: Combine the previously set control target and the currently acquired load signal to calculate the specific control parameters that the motor needs to adjust. These parameters include but are not limited to the motor drive voltage adjustment amount, current gain, etc., the purpose is to make the actual operating state of the motor close to the control target. Operation prediction and verification: Based on the calculated control parameters, the future operation state of the motor is predicted. This process involves complex mathematical models or algorithms to estimate the response of the motor after applying these control parameters. One or more prediction coefficients are obtained during the prediction process, which represent the expected degree of performance change or error range. Instruction generation and execution: If the prediction coefficient falls within the preset reasonable range, it indicates that the control measures to be taken are effective and will not cause system instability or exceed the safety boundary. At this time, the control parameters are converted into actual control instructions and sent to the motor drive system to guide the motor to operate according to the new settings. If the prediction coefficient is out of range, it may be necessary to readjust the control strategy or check whether the system has any abnormalities. In summary, this solution ensures that the motor operation not only meets specific application requirements, but also maintains high efficiency and stability through precise control target setting, real-time load monitoring, accurate control parameter calculation, and forward-looking operation prediction, reflecting the intelligent and adaptive characteristics of modern motor control technology.
[0114] In a specific embodiment, the control instruction is encoded by a preset encoder to obtain a frequency converter encoding instruction, including:
[0115] The control instruction is identified and analyzed by a preset encoder to obtain a structured instruction signal; wherein the structured instruction signal includes key control parameters, target instructions and mode settings;
[0116] The structured instruction signal is compressed by a preset LZlib compression algorithm to obtain a compressed instruction;
[0117] Acquire a communication protocol standard, perform protocol layer encapsulation encoding on the compressed instruction based on the communication protocol standard, and generate a protocol-encoded instruction packet;
[0118] Performing additional compatibility encoding processing on the instruction packet to obtain a protocol-compatible instruction packet;
[0119] Adding a check code to the protocol-compatible instruction packet to obtain a check-containing instruction packet;
[0120] The instruction package containing the verification is structurally integrated to obtain the inverter coding instruction.
[0121] Specifically, preset encoder identification and analysis: First, the preset encoder is used to deeply identify and analyze the original control instruction. This process parses the control instruction into a structured form, namely, a structured instruction signal. This step ensures that the key information of the control instruction, such as key control parameters (such as motor speed, acceleration, etc.), target instructions (such as start, stop, speed regulation, etc.) and mode settings (such as operation mode, protection mode, etc.), are clearly organized and defined for subsequent processing. LZlib compression algorithm compression: Next, in order to reduce the volume of instruction data and improve transmission efficiency, the LZlib compression algorithm is used to compress the structured instruction signal. LZlib is a widely used lossless data compression algorithm that can effectively reduce the amount of data without losing any information. It is particularly suitable for application scenarios that require efficient data transmission. Protocol layer encapsulation encoding: Afterwards, according to the communication protocol standard, the compressed instruction is encapsulated and encoded at the protocol layer. This step ensures that the instruction can meet the interaction specifications between specific communication networks or devices, so that the data exchange between different devices is standardized and normalized, and the interoperability of the system is improved. Compatibility encoding processing: In order to ensure that the instruction packet can be parsed and executed normally in a variety of communication environments or hardware platforms, additional compatibility encoding processing is performed on it. This may involve fine-tuning the instruction format or adding specific tags to adapt to different receiving end requirements and enhance the versatility of the instruction. Adding checksums: Embedding checksums in the generated instruction packet is an error detection mechanism that calculates specific checksum values (such as CRC checksums) of the instruction packet content and calculates the checksum again at the receiving end to verify the integrity of the data. This can effectively discover and correct errors that may occur during transmission and ensure the accuracy of the instructions. Structural integration: Finally, all elements containing checksum instructions are integrated to form the final inverter encoding instruction. This instruction contains all the necessary control information and has been optimized to ensure efficient transmission and correct interpretation and execution at the inverter end. The entire process, through a series of precise operations, not only optimizes the transmission efficiency of the instruction, but also strengthens the integrity and compatibility of the data, providing high-quality control instructions for the inverter, which is one of the important links in modern automation control systems.
[0122] In a specific embodiment, an IGBT power semiconductor is arranged in the frequency converter; and the motor is controlled by using the frequency converter based on the frequency converter coding instruction, including:
[0123] Performing verification code verification on the frequency converter coding instruction to obtain a control instruction that passes the verification;
[0124] Decoding the verified control instruction to obtain a decoded instruction;
[0125] Extracting parameters from the decoded instruction to obtain a target speed of the motor and a target torque of the motor;
[0126] Through the preset field-oriented control algorithm, the target speed and target torque of the motor are dynamically calculated to obtain the adjustment voltage and adjustment frequency;
[0127] Draw a voltage-frequency curve based on the adjusted voltage and the adjusted frequency;
[0128] Obtaining a pulse width modulation signal based on the voltage-frequency curve;
[0129] The pulse width modulation signal is controlled and converted through the IGBT power semiconductor to regulate the motor.
[0130] Specifically, checksum verification: First, the inverter verifies the checksum of the received coded instruction to confirm that no error occurred during the transmission of the instruction. Only when the checksum verification is passed, indicating that the instruction is complete and has not been tampered with, can the control instruction enter the subsequent processing stage. Decoding and parameter extraction: The verified control instruction is then decoded and converted into a format that is easier to process. After decoding, the core parameters of motor control, target speed and target torque, are extracted from it. These two parameters are directly related to the operating status and performance of the motor. Field oriented control algorithm application: Then, the preset field oriented control algorithm (Field Oriented Control, FOC) is used to perform real-time calculation and analysis on the extracted target speed and target torque. The FOC algorithm is an advanced motor control strategy that can independently control the flux and torque of the motor, thereby achieving efficient and accurate motor control. This process generates the specific voltage level and frequency requirements required to adjust the motor. Voltage-frequency curve drawing: Based on the calculated adjustment voltage and adjustment frequency, the system draws a voltage-frequency curve. This curve reflects the relationship between the voltage and frequency of the motor at different operating points, and is the basis for achieving smooth and efficient speed regulation of the motor. Pulse width modulation signal generation: According to the voltage-frequency curve, the inverter further generates a pulse width modulation (PWM) signal. The PWM signal simulates the required average voltage by periodically changing the pulse width, thereby controlling the power supply frequency and voltage of the motor to achieve the purpose of adjusting the speed and torque. IGBT power semiconductor control conversion: Finally, these PWM signals are sent to the IGBT (insulated gate bipolar transistor) power semiconductor inside the inverter. As an efficient switching element, IGBT can quickly respond to control signals, accurately control the opening and closing of current, and convert PWM signals into the power output required for motor drive, thereby achieving precise control of the motor. In summary, this solution ensures that the motor can flexibly and efficiently adjust its operating state according to external instructions under various working conditions through a series of complex and sophisticated control logics and algorithms, demonstrating the high efficiency and intelligence level of modern motor control technology.
[0131] The output control method of the frequency converter in the embodiment of the present invention is described above. The output control device of the frequency converter in the embodiment of the present invention is described below. Figure 2 , an embodiment of the output control device of the frequency converter in the embodiment of the present invention includes:
[0132] The receiving module 21 is used to receive a motor operation signal through a preset sensor, analyze the motor based on the motor operation signal, and obtain a first operation state of the motor;
[0133] A calculation module 22, used for inputting the first running state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage;
[0134] The control module 23 is used to set the control target of the motor, and use a preset PID controller to generate a control instruction based on the control target, the first input current and the first input voltage; wherein the control target includes the motor speed, the motor torque and the motor start-stop control;
[0135] The encoding module 24 is used to encode the control instruction by a preset encoder to obtain a frequency converter encoding instruction;
[0136] The control module 25 is used to use the frequency converter to control the motor based on the frequency converter coding instructions.
[0137] In this embodiment, for the specific implementation of each unit in the above system embodiment, please refer to the above method embodiment, which will not be repeated here.
[0138] Reference Figure 3 The present invention also provides a computer device in an embodiment, wherein the internal structure of the computer device can be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device system, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0139] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.
[0140] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0141] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
[0142] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0143] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for controlling the output of a frequency converter, characterized in that: The following steps are involved: Receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operation state of the motor; Inputting the first running state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage; Setting a control target of the motor, using a preset PID controller, and generating a control instruction based on the control target, the first input current, and the first input voltage; wherein the control target includes motor speed, motor torque, and motor start-stop control; Encoding the control instruction by a preset encoder to obtain a frequency converter encoding instruction; Using a frequency converter to control the motor based on the frequency converter coding instructions; Inputting the first running state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage, including: Performing Fourier transformation on the first operating state of the motor to obtain a frequency spectrum of the motor operating state; wherein the frequency spectrum has an amplitude parameter and a phase parameter; Performing parameter identification on the electrical parameters of the motor based on the amplitude parameters and the phase parameters in the frequency spectrum to obtain identification parameters of the motor; Inputting the identification parameters into a preset state analysis model for calculation to obtain a preliminary input current and a preliminary input voltage; respectively determining whether the preliminary input current and the preliminary input voltage are within a preset range; If any of the preliminary input current and the preliminary input voltage is not within a preset range, the model parameters of the state analysis model are optimized and adjusted using a preset ant colony algorithm to obtain an optimized state analysis model; Calculating the identification parameters using the optimized state analysis model to obtain a corresponding first input current and a first input voltage; If the preliminary input current and the preliminary input voltage are both within a preset range, the identification parameter is calculated by a state analysis model to obtain a corresponding first input current and a first input voltage; A low-pass filter is provided in the motor; the Fourier transform is performed on the first operating state of the motor to obtain a frequency spectrum of the motor operating state, including: Performing denoising processing on the first operating state of the motor by using the low-pass filter to obtain a denoised signal; Performing windowing processing on the denoised signal using a preset window function to obtain a windowed sequence signal; The windowed sequence signal is transformed using a preset fast Fourier transform algorithm to obtain a preliminary spectrum diagram of the motor operation status converted from the time domain to the frequency domain; Respectively calculating the amplitude and phase of each frequency in the preliminary spectrum diagram of the motor running state; wherein the frequency includes voltage frequency and current frequency; Based on the preliminary spectrum diagram of the motor running state, the amplitude and the phase of each frequency are counted and calculated to obtain a spectrum density; Analyzing the spectrum density through the preliminary spectrum diagram of the motor operation state to determine the peak frequency of the motor operation signal, and obtaining harmonics and abnormal spectrum peaks based on the peak frequency; The positions of the harmonics and the positions of the abnormal spectrum peaks are marked on the preliminary spectrum diagram of the motor running state to obtain the spectrum diagram of the motor running state.
2. The output control method of the frequency converter according to claim 1, characterized in that: Receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operation state of the motor, including: Receiving multiple motor operation signals during the operation of the motor through a preset sensor; wherein the motor operation signals include the voltage of the motor, the current of the motor, the power of the motor and the torque of the motor; Purifying each of the motor operation signals to obtain a corresponding purified signal; Performing time domain calculation on each of the purification signals to obtain a time domain value of the motor operation signal; wherein the time domain value includes a mean value, a variance and a peak value of the motor operation signal; Draw a time domain waveform diagram of the motor operation signal based on the time domain value; Extract key features from the time domain waveform to obtain key features of the motor operation; wherein the key features include the shape, amplitude change and zero-crossing point of the waveform, and the zero-crossing point includes the current zero-crossing point and the voltage zero-crossing point; The motor is analyzed based on the key characteristics of the motor operation to obtain a first operating state of the motor.
3. The output control method of the frequency converter according to claim 1, characterized in that: The control target of the motor is set, and a preset PID controller is used to generate a control instruction based on the control target, the first input current, and the first input voltage, including: Acquire application scenarios and performance requirements of the motor, and set control targets of the motor based on the application scenarios and performance requirements; Using a preset PID controller to monitor the first input current and the first input voltage in real time to obtain a load signal of the motor; wherein the load signal includes a torque parameter and a power parameter; Obtaining control parameters of the motor based on the control target and the load signal; Predicting the operation of the motor based on the control parameters to obtain a prediction coefficient; If the prediction coefficient is within a preset range, the control parameter is converted into a control instruction.
4. The output control method of the frequency converter according to claim 1, characterized in that: The control instruction is encoded by a preset encoder to obtain a frequency converter encoding instruction, including: The control instruction is identified and analyzed by a preset encoder to obtain a structured instruction signal; wherein the structured instruction signal includes key control parameters, target instructions and mode settings; The structured instruction signal is compressed by a preset LZlib compression algorithm to obtain a compressed instruction; Acquire a communication protocol standard, perform protocol layer encapsulation encoding on the compressed instruction based on the communication protocol standard, and generate a protocol-encoded instruction packet; Performing additional compatibility encoding processing on the instruction packet to obtain a protocol-compatible instruction packet; Adding a check code to the protocol-compatible instruction packet to obtain a check-containing instruction packet; The instruction package containing the verification is structurally integrated to obtain the inverter coding instruction.
5. The output control method of the frequency converter according to claim 1, characterized in that: The IGBT power semiconductor is arranged in the frequency converter; the motor is regulated by using the frequency converter based on the frequency converter coding instruction, including: Performing verification code verification on the frequency converter coding instruction to obtain a control instruction that passes the verification; Decoding the verified control instruction to obtain a decoded instruction; Extracting parameters from the decoded instruction to obtain a target speed of the motor and a target torque of the motor; Through the preset field-oriented control algorithm, the target speed and target torque of the motor are dynamically calculated to obtain the adjustment voltage and adjustment frequency; Draw a voltage-frequency curve based on the adjusted voltage and the adjusted frequency; Obtaining a pulse width modulation signal based on the voltage-frequency curve; The pulse width modulation signal is controlled and converted through the IGBT power semiconductor to regulate the motor.
6. An output control device for a frequency converter, characterized in that: include: A receiving module, used for receiving a motor operation signal through a preset sensor, analyzing the motor based on the motor operation signal, and obtaining a first operation state of the motor; A calculation module, used for inputting the first running state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage; A control module, used to set a control target of the motor, and to generate a control instruction based on the control target, the first input current, and the first input voltage by using a preset PID controller; wherein the control target includes motor speed, motor torque, and motor start-stop control; An encoding module, used for encoding the control instruction by a preset encoder to obtain an inverter encoding instruction; A control module, used to use a frequency converter to control the motor based on the frequency converter coding instructions; Inputting the first running state of the motor into a preset state analysis model for calculation to obtain a corresponding first input current and a first input voltage, including: Performing Fourier transformation on the first operating state of the motor to obtain a frequency spectrum of the motor operating state; wherein the frequency spectrum has an amplitude parameter and a phase parameter; Performing parameter identification on the electrical parameters of the motor based on the amplitude parameters and the phase parameters in the frequency spectrum to obtain identification parameters of the motor; Inputting the identification parameters into a preset state analysis model for calculation to obtain a preliminary input current and a preliminary input voltage; respectively determining whether the preliminary input current and the preliminary input voltage are within a preset range; If any of the preliminary input current and the preliminary input voltage is not within a preset range, the model parameters of the state analysis model are optimized and adjusted using a preset ant colony algorithm to obtain an optimized state analysis model; Calculating the identification parameters using the optimized state analysis model to obtain a corresponding first input current and a first input voltage; If the preliminary input current and the preliminary input voltage are both within a preset range, the identification parameter is calculated by a state analysis model to obtain a corresponding first input current and a first input voltage; A low-pass filter is provided in the motor; the Fourier transform is performed on the first operating state of the motor to obtain a frequency spectrum of the motor operating state, including: Performing denoising processing on the first operating state of the motor by using the low-pass filter to obtain a denoised signal; Performing windowing processing on the denoised signal using a preset window function to obtain a windowed sequence signal; The windowed sequence signal is transformed using a preset fast Fourier transform algorithm to obtain a preliminary spectrum diagram of the motor operation status converted from the time domain to the frequency domain; Respectively calculating the amplitude and phase of each frequency in the preliminary spectrum diagram of the motor running state; wherein the frequency includes voltage frequency and current frequency; Based on the preliminary spectrum diagram of the motor running state, the amplitude and the phase of each frequency are counted and calculated to obtain a spectrum density; Analyzing the spectrum density through the preliminary spectrum diagram of the motor operation state to determine the peak frequency of the motor operation signal, and obtaining harmonics and abnormal spectrum peaks based on the peak frequency; The positions of the harmonics and the positions of the abnormal spectrum peaks are marked on the preliminary spectrum diagram of the motor running state to obtain the spectrum diagram of the motor running state.
7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
