Motor debugging method, device, module, motor and motor debugging system

文档序号:89420 发布日期:2021-10-08 浏览:24次 中文

阅读说明:本技术 电机调试方法、装置、模块、电机和电机调试系统 (Motor debugging method, device, module, motor and motor debugging system ) 是由 刘吉平 陈筠 王翔 于 2021-07-26 设计创作,主要内容包括:本申请涉及电机调试方法、装置、模块、电机和电机调试系统,该电机调试方法包括:生成调试输出使能信号并输出至调试寄存器,当调试输出使能信号为预设电平信号时,控制调试寄存器获取每组待输出数据,按照预设输出顺序生成每组待输出数据对应的数据输出使能信号并输出至调试寄存器,以控制调试寄存器分别将每组待输出数据发送至调试输出接口进行输出,上述电机调试方法克服了现有电机调试技术中无法进行实时调试的技术问题,此外,由于不是通过系统总线直接获取每组待输出数据,能够大大降低大量数据进行输出时所占用的系统总线带宽,从总体上提高了调试效率和系统运行的效率。(The application relates to a motor debugging method, a device, a module, a motor and a motor debugging system, wherein the motor debugging method comprises the following steps: the motor debugging method overcomes the technical problem that real-time debugging cannot be carried out in the existing motor debugging technology, in addition, because the data to be output of each group are not directly acquired through a system bus, the occupied system bus bandwidth when a large amount of data are output can be greatly reduced, and the debugging efficiency and the system operation efficiency are improved on the whole.)

1. A motor debugging method is characterized by comprising the following steps:

generating a debugging output enable signal and outputting the signal to a debugging register;

when the debugging output enable signal is a preset level signal, controlling the debugging register to acquire each group of data to be output;

and generating a data output enabling signal corresponding to each group of data to be output according to a preset output sequence and outputting the data output enabling signal to the debugging register so as to control the debugging register to respectively send each group of data to be output to the debugging output interface for output.

2. The motor debugging method according to claim 1, wherein the motor comprises a motor drive controller, and the step of generating and outputting the debugging output enable signal to the debugging register when the motor drive controller is operated comprises:

receiving calculation completion information sent by the motor drive controller in each motor control period;

generating a corresponding debugging output enable signal according to the calculation completion information and outputting the signal to the debugging register;

when the debug output enable signal is a preset level signal, the step of controlling the debug register to acquire each group of data to be output includes:

and controlling the debugging register to receive the calculation data and the control data stored in the motor drive controller in real time to acquire each group of data to be output.

3. The motor debugging method according to claim 1, wherein the motor includes a motor drive controller, and when the motor drive controller does not operate and the debug output enable signal is a preset level signal, the step of controlling the debug register to acquire each set of data to be output includes:

and controlling the debugging register to receive predefined data input by a system bus in real time so as to acquire each group of data to be output.

4. The motor debugging method according to claim 1, wherein the step of generating a data output enable signal corresponding to each set of data to be output according to a preset output sequence and outputting the data output enable signal to the debugging register so as to control the debugging register to respectively send each set of data to be output to the debugging output interface for output comprises:

generating a data output enabling signal corresponding to each group of data to be output according to a preset output sequence and outputting the data output enabling signals to the debugging register;

and controlling the debugging register to configure a corresponding data head for each group of data to be output according to the data output enabling signal of each group of data to be output, so that the debugging register sends each group of corresponding data to be output to the debugging output interface according to the configured data head for outputting.

5. The motor commissioning method of claim 1, further comprising:

and outputting each group of data to be output to an equipment monitoring terminal through the debugging output interface, wherein each group of data to be output is used for indicating the equipment monitoring terminal to monitor the motor in real time.

6. A motor debugging device, characterized in that, motor debugging device includes:

the debugging device comprises an enabling signal acquisition unit, a debugging register and a debugging control unit, wherein the enabling signal acquisition unit is used for generating a debugging output enabling signal and outputting the debugging output enabling signal to the debugging register;

the data acquisition unit is used for controlling the debugging register to acquire each group of data to be output when the debugging output enable signal is a preset level signal;

and the data output control unit is used for generating data output enabling signals corresponding to each group of data to be output according to a preset output sequence and outputting the data output enabling signals to the debugging register so as to control the debugging register to respectively send each group of data to be output to the debugging output interface for output.

7. A motor debugging module is characterized by comprising a debugging register, a motor parameter regulating and controlling unit and a debugging output interface which are electrically connected in sequence, wherein the debugging register is also electrically connected with the debugging output interface;

the motor parameter regulating and controlling unit is used for generating a debugging output enabling signal and outputting the debugging output enabling signal to the debugging register;

the debugging register is used for acquiring each group of data to be output when the debugging output enable signal is a preset level signal;

the motor parameter regulation and control unit is further used for generating data output enabling signals corresponding to each group of data to be output according to a preset output sequence and outputting the data output enabling signals to the debugging register so as to control the debugging register to respectively send each group of data to be output to the debugging output interface for output.

8. The motor debugging module of claim 7, wherein the debugging output interface is any one of a serial peripheral interface, a two-wire serial bus interface, a universal asynchronous receiver/transmitter interface, a controller area network bus interface, and a parallel interface.

9. An electric machine comprising a motor commissioning module according to any one of claims 7 to 8.

10. A motor debugging system, characterized in that, the motor debugging system includes the motor debugging module of any one of claims 7 to 8 and a device monitoring terminal, the device monitoring terminal is further configured to receive each set of data to be output by the motor debugging module, and monitor the motor in real time according to each set of data to be output.

Technical Field

The application relates to the technical field of motor control, in particular to a motor debugging method, a device, a module, a motor and a motor debugging system.

Background

At present, in the motor debugging process, the main motor debugging method generally adopts an oscilloscope to carry out experience debugging on the state of the motor, and can not detect all the states of the motor in the running process in real time. When the motor is abnormal, the abnormal reason is usually analyzed according to the abnormal state, and then repeated debugging is carried out to solve the abnormality.

Disclosure of Invention

In view of this, the present application provides a motor debugging method, device, module, motor and motor debugging system, so as to solve the technical problem that the existing motor debugging method cannot debug the motor in real time.

A motor debugging method comprises the following steps:

generating a debugging output enable signal and outputting the signal to a debugging register;

when the debugging output enable signal is a preset level signal, controlling a debugging register to acquire each group of data to be output;

and generating a data output enabling signal corresponding to each group of data to be output according to a preset output sequence and outputting the data output enabling signal to the debugging register so as to control the debugging register to respectively send each group of data to be output to the debugging output interface for output.

In one embodiment, the motor includes a motor drive controller, and the step of generating and outputting the debug output enable signal to the debug register when the motor drive controller is operated includes:

receiving calculation completion information sent by a motor driving controller in each motor control period;

generating a corresponding debugging output enable signal according to the calculation completion information and outputting the signal to a debugging register;

when the debug output enable signal is a preset level signal, the step of controlling the debug register to acquire each group of data to be output comprises the following steps:

and the control debugging register receives the calculation data and the control data stored in the motor drive controller in real time to acquire each group of data to be output.

In one embodiment, the motor includes a motor driving controller, and when the motor driving controller does not operate and the debug output enable signal is a preset level signal, the step of controlling the debug register to acquire each set of data to be output includes:

and controlling the debugging register to receive the predefined data input by the system bus in real time to acquire each group of data to be output.

In one embodiment, the step of generating a data output enable signal corresponding to each group of data to be output according to a preset output sequence and outputting the data output enable signal to a debugging register to control the debugging register to respectively send each group of data to be output to a debugging output interface for output includes:

generating a data output enabling signal corresponding to each group of data to be output according to a preset output sequence and outputting the data output enabling signals to a debugging register;

and controlling the debugging register to configure a corresponding data head for each group of data to be output according to the data output enabling signal of each group of data to be output, so that the debugging register sends each group of corresponding data to be output to the debugging output interface according to the configured data head for outputting.

In one embodiment, the motor commissioning method further comprises:

and outputting each group of data to be output to the equipment monitoring terminal through the debugging output interface, wherein each group of data to be output is used for indicating the equipment monitoring terminal to monitor the motor in real time.

In addition, still provide a motor debugging device, motor debugging device includes:

the debugging device comprises an enabling signal acquisition unit, a debugging register and a debugging control unit, wherein the enabling signal acquisition unit is used for generating a debugging output enabling signal and outputting the debugging output enabling signal to the debugging register;

the data acquisition unit is used for controlling the debugging register to acquire each group of data to be output when the debugging output enable signal is a preset level signal;

and the data output control unit is used for generating data output enabling signals corresponding to each group of data to be output according to a preset output sequence and outputting the data output enabling signals to the debugging register so as to control the debugging register to respectively send each group of data to be output to the debugging output interface for output.

In addition, a motor debugging module is also provided, which comprises a debugging register, a motor parameter regulating and controlling unit and a debugging output interface which are electrically connected in sequence, wherein the debugging register is also electrically connected with the debugging output interface;

the motor parameter regulating and controlling unit is used for generating a debugging output enabling signal and outputting the debugging output enabling signal to a debugging register;

the debugging register is used for acquiring each group of data to be output when the debugging output enable signal is a preset level signal;

the motor parameter regulation and control unit is further used for generating data output enabling signals corresponding to each group of data to be output according to a preset output sequence and outputting the data output enabling signals to the debugging register so as to control the debugging register to respectively send each group of data to be output to the debugging output interface for output.

In one embodiment, the debug output interface is any one of a serial peripheral interface, a two-wire serial bus interface, a universal asynchronous receiver/transmitter interface, a controller area network bus interface, and a parallel interface.

In addition, still provide a motor, the motor includes above-mentioned motor debugging module.

In addition, still provide a motor debugging system, motor debugging system includes above-mentioned motor debugging module and equipment monitor terminal, and equipment monitor terminal still is used for receiving every group of waiting to output data of motor debugging module output to treat output data according to every group and carry out real time monitoring to the motor.

The motor debugging method comprises the steps of generating a debugging output enable signal and outputting the signal to a debugging register, controlling the debugging register to acquire each group of data to be output when the debugging output enable signal is a preset level signal, generating a data output enable signal corresponding to each group of data to be output according to a preset output sequence and outputting the data output enable signal to the debugging register, controlling the debugging register to respectively send each group of data to be output to a debugging output interface for output, acquiring each group of data to be output by directly controlling the debugging register, and further acquiring each group of data to be output in real time through the debugging output interface to carry out real-time development and debugging of a motor, thereby overcoming the technical problem that the real-time debugging cannot be carried out in the existing motor debugging technology, and in addition, because each group of data to be output is not directly acquired through a system bus, the occupied system bus bandwidth when a large amount of data are output can be greatly reduced, the debugging efficiency and the system operation efficiency are improved on the whole.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a schematic application environment diagram of a motor debugging method according to an embodiment of the present application;

fig. 2 is a schematic flowchart of a motor debugging method according to an embodiment of the present application;

FIG. 3 is a flowchart illustrating a method for generating a debug output enable signal and outputting the debug output enable signal to a debug register according to an embodiment of the present disclosure;

fig. 4 is a flowchart illustrating a method for generating a data output enable signal corresponding to each set of data to be output and outputting the data output enable signal to a debug register according to an embodiment of the present application;

fig. 5 is a schematic flow chart of a motor debugging method according to another embodiment of the present application;

fig. 6 is a block diagram illustrating a structure of a motor debugging apparatus according to an embodiment of the present application;

fig. 7 is a block diagram illustrating a structure of a motor debugging module according to an embodiment of the present application;

fig. 8 is a block diagram of an electric machine according to an embodiment of the present application;

fig. 9 is a block diagram illustrating a motor debugging system according to an embodiment of the present application;

fig. 10 is a schematic diagram illustrating an output result of the data to be output being an electrical angle of a rotor of the motor according to an embodiment of the present application;

fig. 11 is a schematic diagram of an output result of coordinate values obtained by clark transformation and park transformation performed on a-phase sampled current values of three-phase currents according to data to be output according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application are clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. The following sets of embodiments and their technical features may be combined with each other without conflict.

As shown in fig. 1, an application environment schematic diagram of a motor debugging method is provided, where fig. 1 includes a motor drive controller 10, a motor debugging module 20, and a system Bus 30, where the motor debugging module 20 is provided with a debugging register 22, a motor parameter regulating and controlling unit 24, and a debugging output interface 26 that are electrically connected in sequence, the debugging register 22 is further electrically connected to the motor drive controller 10 and the debugging output interface 26, respectively, the motor parameter regulating and controlling unit 24 is further electrically connected to the motor drive controller 10, the motor drive controller 10 is connected to the system Bus 30, and the system Bus 30 generally adopts an APB Bus (Advanced Peripheral Bus).

As shown in fig. 2, there is provided a motor commissioning method including:

step S110, a debug output enable signal is generated and output to the debug register.

The motor parameter regulation and control unit can generate a regulation and control output enable signal to control a debugging process, and the regulation and control output enable signal is generated and then output to the debugging register to control the output function of the debugging register.

The debugging register can be used for storing control input data, calculated intermediate result data and output result data in the motor drive controller, and can also be used for receiving user predefined data sent by a system bus.

And step S120, when the debugging output enable signal is a preset level signal, controlling the debugging register to acquire each group of data to be output.

When the debug output enable signal is a preset level signal, the debug output function of the debug register is turned on, and the preset level signal can be a high level signal or a low level signal.

In one embodiment, each set of data to be output may be obtained through a debugging register, for example, an electrical angle of a motor rotor, values of sampled currents of each phase of the three-phase current, coordinate values of the sampled currents of each phase of the three-phase current after clark transformation and coordinate values after clark transformation, and further, three-phase voltage output values corresponding to the sampled currents of each phase of the three-phase current after clark transformation and duty ratio control information of pulse width modulation of each phase may also be included.

Step S130, generating a data output enable signal corresponding to each group of data to be output according to a preset output sequence, and outputting the data output enable signal to the debugging register, so as to control the debugging register to respectively send each group of data to be output to the debugging output interface for output.

After the motor parameter control unit controls the debugging register to acquire each group of data to be output, the motor parameter control unit further needs to generate a data output enabling signal corresponding to each group of data to be output according to a preset output sequence and output the data output enabling signal to the debugging register, and after the data output enabling signal corresponding to each group of data to be output is obtained by the modulation register, the corresponding data to be output of each group is sent to the debugging output interface to be output.

The motor debugging method comprises the steps of generating a debugging output enable signal and outputting the signal to a debugging register, controlling the debugging register to acquire each group of data to be output when the debugging output enable signal is a preset level signal, generating a data output enable signal corresponding to each group of data to be output according to a preset output sequence and outputting the data output enable signal to the debugging register, controlling the debugging register to respectively send each group of data to be output to a debugging output interface for output, acquiring each group of data to be output by directly controlling the debugging register, and further acquiring each group of data to be output in real time through the debugging output interface to carry out real-time development and debugging of a motor, thereby overcoming the technical problem that the real-time debugging cannot be carried out in the existing motor debugging technology, and in addition, because each group of data to be output is not directly acquired through a system bus, the occupied system bus bandwidth when a large amount of data are output can be greatly reduced, the debugging efficiency and the system operation efficiency are improved on the whole.

In one embodiment, the motor includes a motor driving controller, and when the motor driving controller is operated, as shown in fig. 3, the step S110 includes:

and step S112, receiving the calculation completion information sent by the motor driving controller in each motor control period.

The motor data has real-time performance, and the motor needs to be debugged in real time, so that corresponding data output needs to be performed in each motor control period, and the data output can be performed only after the motor completes calculation.

And step S114, generating a corresponding debugging output enable signal according to the calculation completion information and outputting the signal to a debugging register.

After the calculation in each motor control period is completed, the motor parameter regulation and control unit generates a corresponding debugging output enable signal and outputs the debugging output enable signal to the debugging register, and the debugging output enable signal is used for controlling the output function of the whole debugging register.

When the debug output enable signal is the preset level signal, step S120 includes: and the control debugging register receives the calculation data and the control data stored by the motor drive controller in real time to acquire each group of data to be output.

When the debugging output enable signal is a preset level signal, the output function of the whole debugging register is started, and after calculation is completed in each motor control period, the debugging register receives the calculation data and the control data stored by the motor drive controller in real time to acquire each group of data to be output.

In one embodiment, when the motor drive controller is not operating, step S110 includes: and controlling the debugging register to receive predefined data input by the system bus in real time so as to acquire each group of data to be output.

When the motor driving controller does not work, the debugging controller can receive predefined data input by a system bus in real time, and the predefined data can be defined and set according to actual requirements of users, such as state information of the motor, rotating speed of the motor, power information, temperature information and the like.

In the embodiment, the predefined data input by the system bus is received in real time through the debugging register, so that each group of data to be output is obtained, the flexibility and diversity of the real-time debugging process are further enhanced, and the overall operation information of the motor can be conveniently known from multiple parameters and angles.

In one embodiment, as shown in fig. 4, step S130 includes:

step S132, generating a data output enable signal corresponding to each group of data to be output according to a preset output sequence and outputting the data output enable signals to the debugging register.

The motor parameter regulation and control unit generates a corresponding data output enabling control signal and outputs the data output enabling control signal to the debugging register so as to control the output of the group of data to be output, and the preset output sequence is determined according to actual requirements.

Step S134, according to the data output enable signal of each group of data to be output, controlling the debug register to configure a corresponding data header for each group of data to be output, so that the debug register sends each group of data to be output to the debug output interface according to the configured data header for output.

After the motor parameter regulation and control unit generates the data output enable signal of each group of data to be output, the modulation register needs to be further controlled to configure and generate a corresponding data head, then the debugging register outputs the configured data head to the debugging output interface at first, and further sends each group of corresponding data to be output to the debugging output interface according to the configured data head to output.

In one embodiment, as shown in fig. 5, the motor commissioning method further includes:

and S140, outputting each group of data to be output to the equipment monitoring terminal through the debugging output interface, wherein each group of data to be output is used for indicating the equipment monitoring terminal to monitor the motor in real time.

After each group of data to be output is received by the external equipment terminal through the debugging interface unit, real-time analysis can be carried out, and then the running state of the motor can be monitored, so that the reasons of various abnormal states of the motor can be analyzed more clearly.

Further, as shown in fig. 6, there is provided a motor commissioning apparatus 100, the motor commissioning apparatus 100 including:

an enable signal acquiring unit 210 for generating a debug output enable signal and outputting the debug output enable signal to a debug register;

the data obtaining unit 220 is configured to control the debug register to obtain each set of data to be output when the debug output enable signal is a preset level signal;

and the data output control unit 230 is configured to generate a data output enable signal corresponding to each group of data to be output according to a preset output sequence and output the data output enable signal to the debugging register, so as to control the debugging register to send each group of data to be output to the debugging output interface for output.

In addition, as shown in fig. 7, a motor debugging module 20 is further provided, which includes a debugging register 22, a motor parameter regulating and controlling unit 24 and a debugging output interface 26 that are electrically connected in sequence, where the debugging register 22 is further electrically connected with the debugging output interface 26;

the motor parameter regulating and controlling unit 24 is used for generating a debugging output enabling signal and outputting the debugging output enabling signal to the debugging register 22;

the debug register 22 is configured to obtain each set of data to be output when the debug output enable signal is a preset level signal;

the motor parameter adjusting and controlling unit 24 is further configured to generate a data output enable signal corresponding to each set of data to be output according to a preset output sequence, and output the data output enable signal to the debugging register 22, so as to control the debugging register 22 to send each set of data to be output to the debugging output interface 26 for output.

In one embodiment, debug output interface 26 employs any of a serial peripheral interface, a two-wire serial bus interface, a universal asynchronous receiver/transmitter interface, a controller area network bus interface, and a parallel interface.

In addition, as shown in fig. 8, a motor 200 is further provided, and the motor 200 includes the motor commissioning module 20.

In addition, as shown in fig. 9, a motor debugging system 400 is further provided, where the motor debugging system 400 includes the above-mentioned motor debugging module 20 and the device monitoring terminal 300, and the device monitoring terminal 300 is further configured to receive each group of data to be output, which is output by the motor debugging module 20, and monitor the motor in real time according to each group of data to be output.

In one embodiment, the motor debugging module 20 includes a debugging register 22, a motor parameter adjusting and controlling unit 24, and a debugging output interface 26, which are electrically connected in sequence, the debugging register 22 is further electrically connected to the debugging output interface 26, and the debugging output interface 26 employs a Universal Asynchronous Receiver/Transmitter (UART), where the UART interface further needs to initialize baud rate, start bit, and stop bit when in use; the motor parameter adjusting and controlling unit 24 is configured to generate a debug output enable signal and output the debug output enable signal to the debug register 22, the debug register 22 is configured to obtain a set of data to be output when the debug output enable signal is a high level signal, the motor parameter adjusting and controlling unit 24 is further configured to generate a corresponding data output enable signal and output the data to the debug register 22, so as to control the debug register 22 to respectively send the set of data to be output to the debug output interface 26 for output, as shown in fig. 10, fig. 10 is an output result diagram in which the data to be output is an electrical angle H of a motor rotor output through the debug output interface 26, where an abscissa is time t, a unit is 0.01 msec, an ordinate is H, and a unit is an angle.

Further, as shown in fig. 11, the data to be output is output through the debug output interface 26 as the coordinate value I after clark transformation and park transformation of the a-phase sampled current value of the three-phase currentqThe abscissa is time t, the unit is 0.01 millisecond, and the ordinate is IqIn units of 0.1 milliamps (mA).

In this embodiment, acquire every group through direct control debugging register and wait the output data, and then can acquire every group through debugging output interface in real time and wait the output data in order to carry out the real-time development debugging of motor, overcome the technical problem that can't carry out real-time debugging among the current motor debugging technique, in addition, because do not directly acquire every group through system bus and wait the output data, shared system bus bandwidth when a large amount of data that can greatly reduced exports has improved the efficiency of debugging efficiency and system operation on the whole.

The division of the groups of units in the motor debugging apparatus 100 is only for illustration, and in other embodiments, the motor debugging apparatus 100 may be divided into different units as needed to complete all or part of the functions of the motor debugging apparatus 100. For specific limitations of the motor commissioning apparatus 100, reference may be made to the above limitations of the motor commissioning method, which will not be described herein again.

That is, the above embodiments are only examples of the present application, and not intended to limit the scope of the present application, and all equivalent structures or equivalent flow transformations made by the contents of the specification and drawings of the present application, such as mutual combination of technical features between the embodiments, or direct or indirect application to other related technical fields, are included in the scope of the present application.

In addition, structural elements having the same or similar characteristics may be identified by the same or different reference numerals. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.

In this application, the word "for example" is used to mean "serving as an example, instance, or illustration". Any embodiment described herein as "for example" is not necessarily to be construed as preferred or advantageous over other embodiments. The previous description is provided to enable any person skilled in the art to make and use the present application. In the above description, various sets of details are set forth for purposes of explanation.

It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种用于电动机的S形加减速算法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!