CN112698197A - Motor parameter measuring method and device, computer equipment and storage medium - Google Patents

Motor parameter measuring method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112698197A
CN112698197A CN201911007132.6A CN201911007132A CN112698197A CN 112698197 A CN112698197 A CN 112698197A CN 201911007132 A CN201911007132 A CN 201911007132A CN 112698197 A CN112698197 A CN 112698197A
Authority
CN
China
Prior art keywords
motor
test
tested
value
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911007132.6A
Other languages
Chinese (zh)
Inventor
方巍
熊友军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ubtech Robotics Corp
Original Assignee
Ubtech Robotics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN201911007132.6A priority Critical patent/CN112698197A/en
Publication of CN112698197A publication Critical patent/CN112698197A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/34Testing dynamo-electric machines
    • G01R31/343Testing dynamo-electric machines in operation

Abstract

The invention relates to the field of motor testing, and discloses a motor parameter measuring method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving motor test configuration parameters sent by an upper computer; controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state; when the test state is set to be a motor ready state, acquiring test data of the motor to be tested from an encoder in the motor to be tested; and processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter. The motor parameter measuring method, the motor parameter measuring device, the computer equipment and the storage medium can quickly measure the motor parameters, further evaluate the quality of a mass production motor according to the motor parameters and ensure the precision of the mass production motor.

Description

Motor parameter measuring method and device, computer equipment and storage medium
Technical Field
The invention relates to the field of motor testing, in particular to a motor parameter measuring method, a motor parameter measuring device, computer equipment and a storage medium.
Background
And the encoder in the motor can be used for testing the odometer information of the motor. The line value can be measured by the encoder of the motor, and the specific position of the motor is determined according to the line value. In the field of robot navigation, the requirement on the measurement precision of a motor encoder is stricter. If the line value measured by the encoder has a large deviation, the positioning accuracy of the robot is directly influenced. However, the prior art lacks a method for rapidly measuring the motor parameters, and therefore, the precision of mass production of the motor cannot be ensured according to the motor parameters.
Disclosure of Invention
Therefore, it is necessary to provide a motor parameter measuring method, a motor parameter measuring device, a computer device, and a storage medium for quickly measuring a motor parameter, and further evaluating the quality of a mass-production motor according to the motor parameter to ensure the precision of the mass-production motor.
A method of measuring a parameter of an electric machine, comprising:
receiving motor test configuration parameters sent by an upper computer;
controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state;
when the test state is set to be a motor ready state, acquiring test data of the motor to be tested from an encoder in the motor to be tested;
and processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter.
A motor parameter measurement device comprising:
the parameter receiving module is used for receiving the motor test configuration parameters sent by the upper computer;
the working state adjusting module is used for controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state;
the test data acquisition module is used for acquiring test data of the motor to be tested from an encoder in the motor to be tested when the test state is set to be a motor ready state;
and the test value obtaining module is used for processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter.
A computer device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the above-mentioned motor parameter measuring method when executing said computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the above-mentioned motor parameter measuring method.
The motor parameter measuring method, the motor parameter measuring device, the computer equipment and the storage medium receive the motor test configuration parameters sent by the upper computer to obtain the parameters to be tested. And controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state so as to drive the motor to be tested to operate and enter the corresponding test state. And when the test state is set to be a motor ready state, acquiring test data of the motor to be tested from an encoder in the motor to be tested to obtain test data for determining a test value. And processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter so as to complete the test of the motor to be tested. The motor parameter measuring method, the motor parameter measuring device, the computer equipment and the storage medium can quickly measure the motor parameters, further evaluate the quality of a mass production motor according to the motor parameters and ensure the precision of the mass production motor.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic flow chart of a method for measuring a motor parameter according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for measuring a motor parameter according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a method for measuring a motor parameter according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a method for measuring a motor parameter according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a method for measuring a motor parameter according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of a method for measuring a motor parameter according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a motor parameter measuring device according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
In one embodiment, as shown in fig. 1, there is provided a method for measuring a parameter of a motor, comprising the steps of:
s10, receiving motor test configuration parameters sent by the upper computer;
s20, controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state;
s30, when the test state is set to be a motor ready state, obtaining test data of the motor to be tested from an encoder in the motor to be tested;
and S40, processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter.
In this embodiment, the motor parameter measuring method may be executed by the lower computer. The lower computer can be a single chip microcomputer. The lower computer can be internal equipment of the motor to be tested, and can also be external equipment of the motor to be tested. The lower computer can control the motor to rotate and collect feedback information (for example, through an encoder). An encoder refers to a sensor mounted on a motor for measuring motor rotation angle data (e.g., which may be the number of lines). The rotation angle data measured by the encoder can be converted into data for determining the position of the motor through certain conversion. The motor test configuration parameters may include parameters for controlling the operating state of the motor, and may further include a test method for testing the motor parameters, such as the preset test method described above. In some cases, the lower computer may further store one or more predetermined test methods, and the motor test configuration parameters include parameters for selecting the predetermined test methods.
The upper computer may be a computer device. The upper computer is provided with a program which can send data to the lower computer and receive the data sent by the lower computer. When the motor to be tested needs to be tested, the upper computer and the lower computer are connected, and the upper computer sends motor test configuration parameters to the lower computer.
And after receiving the motor test configuration parameters, the lower computer controls the working state of the motor to be tested according to the motor test configuration parameters and sets the current test state. In some cases, the motor test configuration parameters may include a motor speed and a rotation direction, and the lower computer may control an operating state of the motor to be tested according to the motor speed and the rotation direction set by the motor test configuration parameters. The motor speed and direction of rotation may be configured in one or more operating modes to improve the efficiency of setting motor test configuration parameters.
The lower computer can be provided with a plurality of different test states, and one test state can only be corresponding to one test state at a time. By setting the test state, the current test progress can be quickly determined. In one embodiment, the test state may include: 0. an un-started state; 1. a motor ready state; 2. a uniformity time test ready state; 3. the total number of encoders tests the ready state.
When the test state is set to be the motor ready state, the test condition of the current motor to be tested is met, and the parameter of the motor to be tested can be tested. The lower computer can obtain the test data of the motor to be tested from the encoder arranged in the motor to be tested. The test data may refer to encoder count values measured by the encoder.
After the test data is obtained, the test data can be processed by using a preset test method to obtain a corresponding test value on the designated parameter. If the preset test method is a line number test method, the designated parameter refers to the line number of the encoder. If the preset test method is a uniformity test method, the designated parameter refers to the uniformity of the motor.
And in the steps S10-S40, the motor test configuration parameters sent by the upper computer are received to obtain the parameters needing to be tested. And controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state so as to drive the motor to be tested to operate and enter the corresponding test state. And when the test state is set to be a motor ready state, acquiring test data of the motor to be tested from an encoder in the motor to be tested to obtain test data for determining a test value. And processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter so as to complete the test of the motor to be tested.
Optionally, as shown in fig. 2, step S20 includes:
s201, reading working state setting parameters of the motor to be tested from the motor test configuration parameters, wherein the working state setting parameters comprise one of high-speed forward rotation, low-speed forward rotation, high-speed reverse rotation and low-speed reverse rotation;
s202, after the motor to be tested is controlled to operate for a specified time according to the working state setting parameters, setting a testing state as a motor ready state.
In this embodiment, the working modes of the motor to be tested include high-speed forward rotation, low-speed forward rotation, high-speed reverse rotation, and low-speed reverse rotation. The motor test configuration parameters may include one or more of the operating modes of the motor under test to implement parameter testing in the corresponding operating mode. The specified time length can be set according to actual needs, such as 3 seconds, 5 seconds and the like.
In steps S201 to S202, a working state setting parameter of the motor to be tested is read from the motor test configuration parameter, where the working state setting parameter includes one of high-speed forward rotation, low-speed forward rotation, high-speed reverse rotation, and low-speed reverse rotation, so as to adjust a working state of the motor to be tested according to the working state setting parameter. And after the motor to be tested is controlled to operate for a specified time according to the working state setting parameters, setting the testing state as a motor ready state to finish the preparation before parameter testing.
Optionally, as shown in fig. 3, step S40 includes:
s401, defining magnetic pole pair counting, and initializing the magnetic pole pair counting;
s402, recording the accumulated times of the line number test flag bit of the encoder triggered by the motor to be tested by using the magnetic pole pair counting;
s403, calculating a remainder of the magnetic pole pair count and a first designated numerical value, wherein the first designated numerical value is obtained by adding one to the magnetic pole pair count of the motor to be tested;
s404, when the remainder is one, recording the encoder numerical value at the moment as an initial encoder numerical value;
s405, when the remainder is zero, recording the encoder numerical value at the moment as a termination encoder numerical value, and terminating execution of the current test method;
s406, calculating the line value of the motor to be tested according to the initial encoder value and the termination encoder value, wherein the test value of the motor to be tested on the designated parameter comprises the line value.
In a three phase motor, each set of coils would produce N, S poles. When only one coil of each group of three-phase windings is uniformly and symmetrically distributed on the circumference, the current changes once, and the magnetic field rotates for one circle, so that a pair of magnetic poles is formed. If a three-phase winding is composed of two coils connected in series in each phase, each coil spans 1/4 circles, then the resultant magnetic field created by the three-phase currents is still a rotating magnetic field, and the current changes once, and the rotating magnetic field rotates only 1/2 turns, i.e. 2 pairs of magnetic poles. The number of pole pairs of different motors is different, for example, the number of pole pairs of the motors can be 2 pairs, 8 pairs and 15 pairs. The pole pair count may be the number of times the motor pole changes are recorded over a period of time. Specifically, the magnetic pole pair count may be an accumulated number of times that the motor to be tested triggers the line number test flag bit of the encoder. In initializing the pole pair count, the pole pair count may be set to zero.
The number of lines is the resolution of the encoder, i.e., the number of pulses emitted by one revolution of the motor. If the quadrature 4-multiplier technique is used, the encoder expands its inherent number of lines N to a nominal number of lines 4N. When the number of encoder lines is 4N and the number of magnetic pole pairs is P, the number of encoder lines corresponding to each magnetic pole pair is 4N/P.
In one example, Pcount may be defined to represent the pole pair count, with an initial value of 0. Encoder _ num is defined as the current Encoder value, and the initial value is 0. Definition P denotes the number of pole pairs of the motor to be measured.
And judging whether the motor to be tested triggers the line number test flag bit of the encoder. If not, waiting for triggering. If so, adding 1 to the Pcount to obtain a new Pcount, namely Pcount is Pcount + 1.
Next, Pcount is used to determine the remainder for P + 1.
If the remainder is one, which represents that the pole pair number calculation is started for the first time, the current Encoder line number T0(N) is saved to the Encoder _ num. T0(N) is the initial encoder value.
If the remainder is greater than 1 and less than P, Pcount continues to be accumulated. Specifically, the motor to be tested triggers a line number test flag of the primary encoder, and Pcount is Pcount + 1.
If the remainder is zero, it represents that P pole pairs are reached, and the obtained encoder line number is the final encoder value. The encoder measures the line value as the difference between the final encoder value and the initial encoder value. At this point, the testing of the line values may be ended. While altering the current test state. Such as the test state may be set to 3 (encoder total test ready state). When the test state of the lower computer changes, corresponding test data and the test state can be sent to the upper computer.
In steps S401-S406, a pole pair count is defined and initialized to initialize test parameters. And recording the accumulated times of triggering the line number test flag bit of the encoder by the motor to be tested by using the magnetic pole pair counting so as to record the times of actually triggering the line number test flag bit of the encoder by the motor to be tested. And calculating the remainder of the magnetic pole pair count and a first designated numerical value, wherein the first designated numerical value is obtained by adding one to the magnetic pole pair count of the motor to be detected so as to determine whether the magnetic pole pair count reaches the magnetic pole pair count of the motor to be detected. When the remainder is one, the encoder value at that time is recorded as the initial encoder value to obtain the initial parameters for calculating the line value of the encoder. And when the remainder is zero, recording the encoder value at the moment as a termination encoder value, and terminating the execution of the current test method to obtain a termination parameter for calculating the line value of the encoder. And calculating the line value of the motor to be tested according to the initial encoder value and the termination encoder value, wherein the test value of the motor to be tested on the specified parameters comprises the line value so as to obtain the line value actually measured by the encoder.
Optionally, as shown in fig. 4, the test values of the motor to be tested on the designated parameters include uniformity, and step S40 includes:
s407, counting a time difference when a change value of the number of the encoders in the specified group reaches a ratio of the nominal line number of the encoders to the magnetic pole pair number of the motor to be tested;
and S408, calculating the uniformity according to the time difference of the specified groups.
In this embodiment, the time difference refers to the time taken by the encoder to count every 4N/P. The better the motor performance, the closer the time difference. Where the specified number of groups may be P, then the obtained time difference T comprises T1,T2,...TP
And then evaluating the uniformity of the motor to be measured according to the measured time difference. Uniformity includes, but is not limited to, mean, variance of the temporal difference values.
In one example, a Timer1 may be started, defining Pcount as the pole pair count, and an initial value of 0.
Timer1 is triggered to determine if it is the first time it is triggered. If so, define a TfAnd storing the current system time, defining an encoder num to store the current encoder count value, acquiring the current encoder count value from an encoder T0(N), and finally defining an encoder _ count to store the current statistical encoder count value, wherein the initial value is 0.
If not, a variable Encodernum _ del is defined to indicate the increment of the encoder count value. Encodernum _ del is equal to the last encoder count value Encodernum minus the current encoder count value T0 (N). And updating Encodenum to be the current encoder count value.
And updating the encoder count value encoder _ count of the current statistics, wherein the value of the encoder count value encoder _ count is the encoder count value counted last time plus the absolute value of the encoder count value increment at this time.
And judging whether the current statistical encoder count value is greater than Pcount 4N/P. If not, the wait Timer1 retriggers. If yes, defining a Sector _ time [ Pcount ] array with the length being Pcount, and storing the system time used when the encoder count corresponding to each Pcount reaches. The corresponding Sector _ time [ Pcount ] is the system time minus Tf time. Each value in the Sector _ time [ Pcount ] is the time difference value.
Then, Pcount is incremented by one.
And judging whether Pcount is smaller than P, namely whether the current magnetic pole pair count is smaller than the theoretical magnetic pole pair number P. If not, the waiting timer T1 is triggered. If yes, clearing 0 the Pcount, and simultaneously finishing the test of the motor uniformity.
In steps S407 to S408, a time difference when the variation value of the encoder count of the specified number of groups reaches a ratio of the nominal line number of the encoder to the magnetic pole pair number of the motor to be measured is counted to obtain an actual consumed time of the encoder line number corresponding to each magnetic pole. And calculating the uniformity according to the time difference of the specified groups so as to evaluate the running uniformity of the motor to be tested.
Optionally, as shown in fig. 5, step S408 includes:
s4081, calculating the difference value between the maximum value and the minimum value in the time difference values of the specified groups;
s4082, calculating the ratio of the difference value to the maximum value, and recording the ratio as the uniformity.
In this example, T is usedmaxRepresenting the maximum value, T, of the time differenceminRepresenting the maximum value of the time difference, then the electricity to be measuredThe uniformity of the machine can be expressed as:
Tuniformity of the film=(Tmax-Tmin)/Tmax
In steps S4081-S4082, the difference between the maximum value and the minimum value of the time difference values of the specified number of groups is calculated to obtain the maximum difference in the time difference values. And calculating the ratio of the difference value to the maximum value, recording the ratio as the uniformity of the motor to be tested, and evaluating the quality of the motor to be tested by the obtained uniformity.
Optionally, as shown in fig. 6, after step S40, the method further includes:
s50, sending the test value to the upper computer;
s60, judging whether the test value is in a preset range on the upper computer;
and S70, if the test value is within a preset range, judging that the motor to be tested is qualified.
In this embodiment, when the lower computer completes the test of the designated parameter, the corresponding test value may be sent to the upper computer, and the current test state may be changed. The test sequence of different designated parameters can be set according to requirements, for example, the uniformity of the motor can be tested firstly, and then the line numerical value can be tested.
Different specified parameters may set different suitable preset ranges. For example, when the specified parameter is a line number, if the nominal line number of the encoder is 4N, the predetermined range may be [4N-3, 4N +3 ]]I.e. the error of the measured number of lines does not exceed one line number. When the specified parameter is uniformity, the preset range may be set to TUniformity of the film<5%。
And when the test value is within the preset range, judging that the motor to be tested is qualified.
And in the steps S50-S70, the test value is sent to the upper computer so that the upper computer obtains the test value. And judging whether the test value is in a preset range on the upper computer to determine whether the motor to be tested is qualified. And if the test value is within the preset range, judging that the motor to be tested is qualified so as to finish the inspection of the motor to be tested.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a motor parameter measuring device is provided, and the motor parameter measuring device corresponds to the motor parameter measuring method in the above embodiment one to one. As shown in fig. 7, the motor parameter measuring device includes a parameter receiving module 10, an operating state adjusting module 20, a test data acquiring module 30, and a test value acquiring module 40. The functional modules are explained in detail as follows:
the parameter receiving module 10 is used for receiving the motor test configuration parameters sent by the upper computer;
the working state adjusting module 20 is configured to control a working state of the motor to be tested according to the motor test configuration parameter and set a current test state;
the test data acquiring module 30 is configured to acquire test data of the motor to be tested from an encoder in the motor to be tested when the test state is set to a motor ready state;
and the test value obtaining module 40 is used for processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter.
Optionally, the module 20 for adjusting the operating condition includes:
the reading and setting parameter unit is used for reading the working state setting parameter of the motor to be tested from the motor test configuration parameter, and the working state setting parameter comprises one of high-speed forward rotation, low-speed forward rotation, high-speed reverse rotation and low-speed reverse rotation;
and the test state setting unit is used for setting the test state as a motor ready state after the motor to be tested is controlled to run for a specified time according to the working state setting parameters.
Optionally, the module 40 for obtaining a test value includes:
the initialization unit is used for defining the magnetic pole pair counting, initializing the magnetic pole pair counting, and recording the accumulated times of the line number test flag bit of the encoder triggered by the motor to be tested by using the magnetic pole pair counting;
the accumulation unit is used for calculating the remainder of the magnetic pole pair count and a first specified numerical value, wherein the first specified numerical value is the addition of one to the magnetic pole pair count of the motor to be detected;
the initial recording unit is used for recording the encoder numerical value at the moment as an initial encoder numerical value when the remainder is one;
the termination recording unit is used for recording the encoder value at the moment as a termination encoder value when the remainder is zero, and terminating the execution of the current test method;
and the line number calculating unit is used for calculating the line number of the motor to be tested according to the initial encoder value and the termination encoder value, and the test value of the motor to be tested on the specified parameters comprises the line number.
Optionally, the test value of the motor to be tested on the designated parameter includes the uniformity, and the module 40 for obtaining a test value includes:
the time difference value calculating unit is used for counting the time difference value when the change value of the encoder counting of the specified group number reaches the ratio of the nominal line number of the encoder and the magnetic pole pair number of the motor to be detected;
and the uniformity calculation unit is used for calculating the uniformity of the motor to be measured according to the time difference of the specified groups.
Optionally, the uniformity calculating unit includes:
a difference calculating subunit, configured to calculate a difference between a maximum value and a minimum value in the time difference values of the designated group number;
and the uniformity calculation subunit is used for calculating the ratio of the difference value to the maximum value and recording the ratio as the uniformity of the motor to be measured.
Optionally, the motor parameter measuring device further includes:
the data sending module is used for sending the test value to the upper computer;
the data judgment module is used for judging whether the test value is in a preset range on the upper computer;
and the motor evaluation module is used for judging that the motor to be tested is qualified if the test value is within a preset range.
For specific limitations of the motor parameter measuring device, reference may be made to the above limitations of the motor parameter measuring method, which are not described herein again. The modules in the motor parameter measuring device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device may include a processor 801, memory, a network interface 804, a display 806, and an input device 806 connected by a system bus 808. Wherein the processor 801 of the computer device is adapted to provide computing and control capabilities. The memory of the computer device includes a nonvolatile storage medium 803, an internal memory 802. Non-volatile storage media 803 stores an operating system 8032 and computer programs 8031. The internal memory 802 provides an environment for the operation of an operating system 8032 and computer programs 8031 in the non-volatile storage media. The network interface 804 of the computer device is used for communicating with an external server 807 through a network connection. The computer program is executed by the processor 801 to implement a method of measuring a parameter of an electric machine.
In one embodiment, a computer device is provided comprising a memory, a processor 801 and a computer program 8031 stored on the memory and executable on the processor 801, the processor 801 implementing the following steps when executing the computer program 8031:
receiving motor test configuration parameters sent by an upper computer;
controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state;
when the test state is set to be a motor ready state, acquiring test data of the motor to be tested from an encoder in the motor to be tested;
and processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter.
In one embodiment, a computer readable storage medium is provided, having stored thereon a computer program 8031, the computer program 8031 when executed by the processor 801 implementing the steps of:
receiving motor test configuration parameters sent by an upper computer;
controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state;
when the test state is set to be a motor ready state, acquiring test data of the motor to be tested from an encoder in the motor to be tested;
and processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments can be implemented by the computer program 8031 instructing the relevant hardware to implement, and the computer program 8031 can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory 803 may include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method of measuring a parameter of an electric machine, comprising:
receiving motor test configuration parameters sent by an upper computer;
controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state;
when the test state is set to be a motor ready state, acquiring test data of the motor to be tested from an encoder in the motor to be tested;
and processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter.
2. The motor parameter measuring method of claim 1, wherein the controlling the operating state of the motor under test and setting the current test state according to the motor test configuration parameters comprises:
reading a working state setting parameter of the motor to be tested from the motor test configuration parameter, wherein the working state setting parameter comprises one of high-speed forward rotation, low-speed forward rotation, high-speed reverse rotation and low-speed reverse rotation;
and setting the test state as a motor ready state after controlling the motor to be tested to operate for a specified time according to the working state setting parameters.
3. The method for measuring parameters of a motor according to claim 1, wherein the processing the test data according to a predetermined test method to obtain the test value of the motor to be tested on the designated parameters comprises:
defining a magnetic pole pair count and initializing the magnetic pole pair count;
recording the accumulated times of the line number test flag bit of the encoder triggered by the motor to be tested by using the magnetic pole pair counting;
calculating the remainder of the magnetic pole pair count and a first designated numerical value, wherein the first designated numerical value is obtained by adding one to the magnetic pole pair count of the motor to be tested;
when the remainder is one, recording the encoder value at the moment as an initial encoder value;
when the remainder is zero, recording the encoder value at the moment as a termination encoder value, and terminating executing the current test method;
and calculating the line value of the motor to be tested according to the initial encoder value and the termination encoder value, wherein the test value of the motor to be tested on the specified parameter comprises the line value.
4. The motor parameter measuring method according to claim 1, wherein the test value of the motor under test on the designated parameter includes uniformity; the processing the test data according to a preset test method to obtain the test value of the motor to be tested on the specified parameter comprises the following steps:
counting the time difference when the change value of the encoder count of the specified group number reaches the ratio of the nominal line number of the encoder to the magnetic pole pair number of the motor to be detected;
and calculating the uniformity according to the time difference of the specified groups.
5. The motor parameter measurement method of claim 4, wherein said calculating said uniformity from said specified number of sets of time differences comprises:
calculating the difference value between the maximum value and the minimum value in the time difference values of the designated group number;
and calculating the ratio of the difference value to the maximum value, and recording the ratio as the uniformity of the motor to be tested.
6. The motor parameter measuring method according to claim 1, wherein after processing the test data according to a preset test method to obtain a test value of the motor to be tested on a designated parameter, the method further comprises:
sending the test value to the upper computer;
judging whether the test value is in a preset range or not on the upper computer;
and if the test value is within a preset range, judging that the motor to be tested is qualified.
7. A motor parameter measuring device, comprising:
the parameter receiving module is used for receiving the motor test configuration parameters sent by the upper computer;
the working state adjusting module is used for controlling the working state of the motor to be tested according to the motor test configuration parameters and setting the current test state;
the test data acquisition module is used for acquiring test data of the motor to be tested from an encoder in the motor to be tested when the test state is set to be a motor ready state;
and the test value obtaining module is used for processing the test data according to a preset test method to obtain a test value of the motor to be tested on the specified parameter.
8. The motor parameter measurement device of claim 7, wherein the adjust operating condition module comprises:
the reading and setting parameter unit is used for reading the working state setting parameter of the motor to be tested from the motor test configuration parameter, and the working state setting parameter comprises one of high-speed forward rotation, low-speed forward rotation, high-speed reverse rotation and low-speed reverse rotation;
and the test state setting unit is used for setting the test state as a motor ready state after the motor to be tested is controlled to run for a specified time according to the working state setting parameters.
9. Computer arrangement comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the motor parameter measuring method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method for measuring a parameter of an electric machine according to any one of claims 1 to 6.
CN201911007132.6A 2019-10-22 2019-10-22 Motor parameter measuring method and device, computer equipment and storage medium Pending CN112698197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007132.6A CN112698197A (en) 2019-10-22 2019-10-22 Motor parameter measuring method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007132.6A CN112698197A (en) 2019-10-22 2019-10-22 Motor parameter measuring method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112698197A true CN112698197A (en) 2021-04-23

Family

ID=75504584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007132.6A Pending CN112698197A (en) 2019-10-22 2019-10-22 Motor parameter measuring method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112698197A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090315498A1 (en) * 2008-06-23 2009-12-24 Young-Chun Jeung Data transfer between motors
CN103269198A (en) * 2013-05-17 2013-08-28 浙江大学 Permanent magnet synchronous motor control method and system based on encoder automatic zero set
CN103840731A (en) * 2014-03-20 2014-06-04 天津市松正电动汽车技术股份有限公司 Universal motor controller based on parameter self-learning
TWI504861B (en) * 2014-09-03 2015-10-21 Univ Minghsin Sci & Tech Calibration device for encoder positioning and calibration method thereof
CN105207559A (en) * 2014-05-26 2015-12-30 广东美的制冷设备有限公司 Method and device for identifying motor magnetic pole pair number of mechanical periodic load
CN108803462A (en) * 2017-04-27 2018-11-13 宁波Gqy视讯股份有限公司 The fault detection method of servo-drive system position feedback

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090315498A1 (en) * 2008-06-23 2009-12-24 Young-Chun Jeung Data transfer between motors
CN103269198A (en) * 2013-05-17 2013-08-28 浙江大学 Permanent magnet synchronous motor control method and system based on encoder automatic zero set
CN103840731A (en) * 2014-03-20 2014-06-04 天津市松正电动汽车技术股份有限公司 Universal motor controller based on parameter self-learning
CN105207559A (en) * 2014-05-26 2015-12-30 广东美的制冷设备有限公司 Method and device for identifying motor magnetic pole pair number of mechanical periodic load
TWI504861B (en) * 2014-09-03 2015-10-21 Univ Minghsin Sci & Tech Calibration device for encoder positioning and calibration method thereof
CN108803462A (en) * 2017-04-27 2018-11-13 宁波Gqy视讯股份有限公司 The fault detection method of servo-drive system position feedback

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
兰功金: "基于STM32的SCARA机器人控制电路研究与设计", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 04, pages 44 - 5 *
周士兵;杨晓宇;崔维鑫;刘学明;: "低转速小负载无刷直流电动机稳速控制", 微特电机, no. 06, pages 1 - 2 *

Similar Documents

Publication Publication Date Title
CN109959400B (en) Method and device for calculating absolute encoder parameters and terminal equipment
CN112781484B (en) Rotor angle calibration method and device of linear Hall sensor and electronic equipment
CN108731707A (en) Double incremental encoders measure absolute position method and apparatus
CN104580906B (en) A kind of method and device for correcting the rotating camera anglec of rotation
CN108474671A (en) Mechanical angle detection method, holder and machine readable storage medium
CN112448643B (en) Angle error compensation method and device of motor, computer equipment and storage medium
CN112698197A (en) Motor parameter measuring method and device, computer equipment and storage medium
CN111308339A (en) Servo motor testing method, device and equipment and computer storage medium
CN109304639B (en) Device for determining the position of a high load in a machine tool
CN110855194B (en) Method and device for determining zero position of motor
CN112485562B (en) Memory seat testing method and device, electronic equipment and storage medium
CN111630772B (en) Servo system mechanical parameter identification method, servo control system and storage device
CN110871458A (en) Test method, device, equipment and medium for robot transmission mechanism
CN112171655B (en) External torque measuring method and device, controller and mechanical arm
CN114755620A (en) Zero offset calculation method, device and equipment of current sensor and storage medium
CN115208247B (en) Rotor position measuring method and device of motor
CN112596130B (en) Method, device, system, equipment and storage medium for testing rain gauge
CN111038514B (en) Vehicle speed control method and related device
CN114509674A (en) Method and device for determining orientation angle matched with motor zero setting locking current
CN108303569B (en) Error correction method for measuring rotating speed of steam turbine
CN102447433B (en) Rotating speed estimation method and computer readable media applying same
CN110829911A (en) Driving method and driving equipment for stepping motor
CN113726250A (en) Synchronous motor cogging torque calibration method and device and electronic equipment
CN110967567B (en) Bending sensor validity testing device
CN114726262A (en) Initial angle calibration method, device and system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination