Commutator performance testing method, system, device and storage medium
By obtaining the performance test configuration parameters of the commutator, generating control instructions, and collecting encoder pulse signals for data processing, the problem of low commutator detection accuracy in the existing technology is solved, and accurate and real-time performance evaluation is achieved.
Patent Information
- Application Number
- CN202011637839.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2040-12-31
AI Technical Summary
Existing technologies are unable to accurately detect the position and switching performance of the commutator in real time, resulting in low detection accuracy and the inability to evaluate mid-motion actions.
By obtaining the performance test configuration parameters of the commutator, generating control instructions, controlling the commutator to execute actions, and collecting the pulse signals of the coaxially mounted encoder, performing data processing to obtain the actual performance parameters and judge the performance test results.
It realizes accurate real-time detection of commutator performance, reduces human error, and can accurately evaluate switching performance and output test results.
Smart Images

Figure CN113253010B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of performance testing, and in particular to a commutator performance testing method, system, device and storage medium. Background Art
[0002] The commutator switches paths in real time, allowing the transported medium to enter different channels. To ensure the media enters the desired channel on time and accurately, the commutator's performance is extremely demanding, including position switching accuracy and timeliness. Therefore, prior to production and assembly, the commutator must undergo appropriate performance testing to ensure it meets performance requirements.
[0003] There are currently two methods for inspecting commutators. One is to inspect the appearance of the commutator to prevent its performance from being affected by appearance defects. The other is to install an optical sensor between the commutator blades and determine the commutator's performance by the number and time the blades rotate to trigger the optical sensor. However, this detection method can only detect whether the commutator is in place within a specified time, and cannot determine the commutator's mid-process movement and real-time position. In addition, the detection accuracy is affected by the commutator blade's shielding ability, and the accuracy is relatively low. Summary of the Invention
[0004] Based on this, it is necessary to propose a commutator performance testing method, system, equipment and storage medium to address the above problems.
[0005] A first aspect of the present invention provides a commutator performance testing method, the method comprising:
[0006] Obtaining performance test configuration parameters of the commutator;
[0007] Perform parameter analysis according to the performance test configuration parameters, and generate commutator control instructions that match the performance test configuration parameters;
[0008] controlling the commutator to perform a commutation action according to the commutator control instruction, and collecting actual performance parameters of the commutator during the process of performing the commutation action;
[0009] The performance test result of the commutator is determined according to the actual performance parameter, and the actual performance parameter and the performance test result of the commutator are output.
[0010] In any optional embodiment, collecting actual performance parameters of the commutator during the commutation action includes:
[0011] During the process of the commutator performing the commutation action, collecting pulse signals of an encoder coaxially mounted with the commutator at preset time intervals;
[0012] The pulse signal is used to perform data processing to obtain the actual performance parameters.
[0013] In any optional embodiment, the pulse signal includes a pulse signal of a first phase and a pulse signal of a second phase of the encoder, and the first phase is 90 degrees ahead of the second phase. Then, performing data processing using the pulse signal to obtain the actual performance parameter includes:
[0014] determining an actual rotation direction of the commutator according to the number of edges of the pulse signal of the first phase and the number of edges of the pulse signal of the second phase;
[0015] The actual performance parameters are obtained by calculating the encoder rotation angle and rotation time according to the number of edges of the pulse signal corresponding to the phase of the actual rotation direction.
[0016] In any optional embodiment, the performance test configuration parameters include a switching interval and a target number of tests for the commutator performance test, the commutator is controlled to perform a commutation action according to the commutator control instruction, and actual performance parameters of the commutator during the commutation action are collected, and then the following steps are further included:
[0017] The actual number of tests is increased by 1, and the initial value of the actual number of tests is 0;
[0018] When the actual number of tests is less than the target number of tests and the time from the end of the last test is the switching interval, returning to the step of controlling the commutator to perform the commutation action according to the commutator control instruction and collecting actual performance parameters of the commutator during the process of performing the commutation action;
[0019] If the actual number of tests is equal to the target number of tests, actual performance parameters matching the target number of tests are obtained.
[0020] In any optional embodiment, determining the performance test result of the commutator according to the actual performance parameter includes:
[0021] Determining test results corresponding to each test based on actual performance parameters that match the target number of tests;
[0022] The percentage of the number of qualified test results to the target number of tests;
[0023] If the percentage is greater than or equal to a preset threshold, determining that the performance test result is qualified;
[0024] If the percentage is less than the preset threshold, the performance test result is determined to be unqualified.
[0025] In any optional embodiment, the actual performance parameters include the in-position angle, in-position time, overshoot angle, and rebound angle. Then, determining the test results corresponding to each test based on the actual performance parameters that match the target number of tests includes:
[0026] Determining whether the in-place angle of a target test is within a preset angle range, determining whether the overshoot angle of the target test is greater than a preset overshoot angle, determining whether the rebound angle of the target test is less than a preset rebound angle, and determining whether the in-place time of the target test is less than a preset ideal in-place time, wherein the target test is any test among the target number of tests;
[0027] If the in-place angle is within a preset angle range, the overshoot angle is greater than a preset overshoot angle, the rebound angle is less than a preset rebound angle, and the in-place time is less than a preset ideal in-place time, then the test result of the target test is determined to be qualified;
[0028] If at least one of the following conditions is met: the in-place angle is not within a preset angle range; the overshoot angle is less than or equal to a preset overshoot angle; the rebound angle is greater than or equal to a preset rebound angle; and the in-place time is greater than or equal to a preset ideal in-place time, the test result of the target test is determined to be unqualified.
[0029] In any optional embodiment, determining the performance test result of the commutator according to the actual performance parameter and outputting the actual performance parameter and the performance test result further includes:
[0030] A test log is generated using the actual performance parameters and the performance test results, and the actual performance parameters, the performance test results, and the test log are saved.
[0031] A second aspect of the present invention provides a commutator performance testing system, the system comprising:
[0032] Data acquisition module: used to obtain the performance test configuration parameters of the commutator;
[0033] Instruction generation module: used for performing parameter analysis according to the performance test configuration parameters and generating commutator control instructions matching the performance test configuration parameters;
[0034] Data acquisition module: used for controlling the commutator to perform the commutation action according to the commutator control instruction, and collecting actual performance parameters of the commutator during the process of performing the commutation action;
[0035] Result output module: used for determining the performance test result of the commutator according to the actual performance parameters, and outputting the actual performance parameters and the performance test result of the commutator.
[0036] A third aspect of the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps shown in the first aspect and any optional implementation manner.
[0037] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps shown in the first aspect and any optional implementation manner.
[0038] The embodiments of the present invention have the following beneficial effects:
[0039] An embodiment of the present invention discloses a commutator performance testing method, comprising: obtaining performance test configuration parameters of a commutator; performing parameter analysis based on the performance test configuration parameters to generate commutator control instructions that match the performance test configuration parameters; controlling the commutator to perform a commutation action according to the commutator control instructions, and collecting actual performance parameters of the commutator during the commutation action; determining a performance test result of the commutator based on the actual performance parameters, and outputting the actual performance parameters and the commutator performance test result. By collecting the actual performance parameters of the commutator during the performance test, the performance parameter changes of the commutator during actual switching can be accurately and in real time obtained. Based on the actual changes, the performance of the commutator can be accurately determined. Moreover, the above-mentioned test process can be automatically performed through control instructions to reduce test errors caused by human participation. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0041] in:
[0042] Figure 1 This is a flow chart of a commutator performance testing method according to an embodiment of the present invention;
[0043] Figure 2 is another flow chart of a commutator performance testing method according to an embodiment of the present invention;
[0044] Figure 3A schematic diagram of the angle change and switching time of a commutator collected during a test process according to a commutator performance test method according to an embodiment of the present invention;
[0045] Figure 4 This is a structural block diagram of a commutator performance testing system according to an embodiment of the present invention;
[0046] Figure 5 FIG. 1 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0048] See also Figure 1 , Figure 1 Flowchart of a commutator performance testing method according to an embodiment of the present invention. Figure 1 The method shown specifically includes the following steps:
[0049] Step 101: Obtain performance test configuration parameters of the commutator;
[0050] In a feasible implementation, the above-mentioned commutator performance test method can be executed by a controller, wherein the controller can be one or more, and the controller can obtain the performance test configuration parameters of the commutator, wherein the performance test configuration parameters can be input by the user in the human-computer interaction interface, and the controller uses the communication serial port to obtain the performance test configuration parameters of the commutator of the human-computer interaction interface, or it can be a pre-set performance test configuration parameter.
[0051] Among them, the performance test configuration parameters include drive control related parameters such as the high-level duration of the drive signal, the low-level duration, and the unlocking signal, as well as performance requirement parameters such as the allowed arrival time and arrival angle, the allowed deviation angle, the allowed maximum overshoot angle and the minimum rebound angle, which are not limited to these examples.
[0052] Step 102: Perform parameter analysis based on the performance test configuration parameters to generate commutator control instructions that match the performance test configuration parameters.
[0053] Step 103: controlling the commutator to perform a commutation action according to the commutator control instruction, and collecting actual performance parameters of the commutator during the commutation action;
[0054] It can be understood that the commutator control instruction includes a commutator driving switching instruction and a real-time acquisition instruction of a corresponding switching action signal.
[0055] Step 104 : Determine the performance test result of the commutator according to the actual performance parameters, and output the actual performance parameters and the performance test result of the commutator.
[0056] In an embodiment of the present invention, the actual performance parameters include arrival time, arrival angle, overshoot angle, rebound angle and other performance parameters, which are not limited in this example. The actual values of the relevant parameters are obtained through the real-time acquisition instructions in this method, and the above-mentioned actual functional parameters are compared with the performance requirement parameters in the obtained performance test configuration parameters to obtain the final test results.
[0057] An embodiment of the present invention discloses a commutator performance testing method, comprising: obtaining performance test configuration parameters of a commutator; performing parameter analysis based on the performance test configuration parameters to generate commutator control instructions that match the performance test configuration parameters; controlling the commutator to perform a commutation action according to the commutator control instructions, and collecting actual performance parameters of the commutator during the commutation action; determining a performance test result of the commutator based on the actual performance parameters, and outputting the actual performance parameters and the commutator performance test result. By collecting the actual performance parameters of the commutator during the performance test, the performance parameter changes of the commutator during actual switching can be accurately and in real time obtained. Based on the actual changes, the performance of the commutator can be accurately determined. Moreover, the above-mentioned test process can be automatically performed through control instructions to reduce test errors caused by human participation.
[0058] For a better understanding of the embodiments of the present invention, please refer to Figure 2 , Figure 2 FIG. 1 is another flow chart of a commutator performance testing method according to an embodiment of the present invention. Figure 2 The methods shown include:
[0059] Step 201: Obtain performance test configuration parameters of the commutator;
[0060] Step 202: Perform parameter analysis based on the performance test configuration parameters to generate commutator control instructions that match the performance test configuration parameters.
[0061] Step 203: Control the commutator to perform commutation according to the commutator control instruction;
[0062] In the embodiment of the present invention, the above steps 201, 202 and 203 are respectively Figure 1 The contents described in step 101, step 102 and step 103 in the embodiment shown are similar, and can be found in detail. Figure 1The relevant descriptions in the illustrated embodiments are omitted here for brevity.
[0063] In an embodiment of the present invention, the controller may include a Field Programmable Gate Array (FPGA) and an ARM (Advanced RISC Machines) processor, wherein the FPGA serves as a driving unit and a computing unit, and the ARM processor serves as a functional storage and control unit.
[0064] Step 204: While the commutator is performing the commutation action, a pulse signal of an encoder coaxially mounted with the commutator is collected at preset time intervals;
[0065] Among them, the encoder is a device that compiles and converts signals (such as bit streams) or data into signal forms that can be used for communication, transmission and storage. In the embodiment of the present invention, the dynamic performance of the above-mentioned commutator is monitored by taking a photoelectric encoder as an example.
[0066] In an embodiment of the present invention, to more accurately determine the switching performance of the commutator, a photoelectric encoder is coaxially mounted on the commutator. This allows the angular change during the commutator switching process to be determined by collecting pulse signals from the coaxially mounted photoelectric encoder. In one conceivable embodiment, the pulse signals from the photoelectric encoder can be collected at predetermined time intervals, also known as a suitable collection frequency.
[0067] Step 205: Process the pulse signal to obtain the actual performance parameters.
[0068] In an embodiment of the present invention, the pulse signal emitted is collected at preset time intervals and converted into a corresponding angle to obtain the dynamic change of the switching angle when the commutator switches, so as to obtain the actual performance parameters of the commutator.
[0069] In an embodiment of the present invention, the above-mentioned pulse signal includes a pulse signal of the first phase and a pulse signal of the second phase of the above-mentioned encoder, and the above-mentioned first phase is 90 degrees ahead of the above-mentioned second phase. The data processing of the pulse signal refers to obtaining the actual movement direction of the commutator based on the number of edges of the collected pulse signal of the first phase and the number of edges of the pulse signal of the second phase, and calculating the actual performance parameters of the commutator based on the number of edges in the movement direction.
[0070] In the embodiment of the present invention, the above step 205 may specifically include:
[0071] Step i, determining the actual rotation direction of the commutator according to the number of edges of the pulse signal of the first phase and the number of edges of the pulse signal of the second phase;
[0072] Step ii: Calculate the encoder rotation angle and rotation time according to the number of edges of the pulse signal corresponding to the phase of the actual rotation direction to obtain the actual performance parameters.
[0073] When obtaining the actual performance parameters of the commutator, the number of edges of the pulse signal of the first phase and the number of edges of the pulse signal of the second phase can be counted first. It can be understood that the above edges include the upper and lower edges of the pulse signal, where each edge corresponds to an angle change of encoder accuracy, and the actual movement direction is further determined by the number of edges of the pulse signal of the first phase and the number of edges of the pulse signal of the second phase. The encoder rotation angle is then calculated by the total number of edges in the actual movement direction to obtain the angle change of the coaxially mounted commutator during switching, so as to use the angle change to determine the relevant angles in the actual performance parameters, which include the in-position angle, overshoot angle and rebound angle.
[0074] The actual direction of movement can be determined as follows:
[0075] Assuming the first phase direction is positive and the second phase direction is negative, there are several ways to determine the actual direction of movement:
[0076] ① If the number of edges of the pulse signal of the first phase is greater than or equal to the number of edges of the pulse signal of the second phase, it means that the current commutator movement direction is positive;
[0077] ② If the number of edges of the second phase pulse signal is less than or equal to the number of edges of the first phase pulse signal, it means that the current commutator movement direction is in the reverse direction;
[0078] ③ If the number of pulse signal edges reverses during the above process, it indicates that the commutator has stopped and reversed direction. For example, if the number of pulse signal edges in the first phase is less than the number of pulse signal edges in the second phase in the forward direction, the angle at the first moment should not increase. If the number of pulse signal edges in the first phase continues to be less than the number of pulse signal edges in the second phase, it indicates that the direction of movement has reversed.
[0079] It is also possible to assume that the second phase is in the positive direction and the first phase is in the negative direction, and perform the above judgment to determine whether the actual movement direction is in the positive direction or the negative direction.
[0080] In the embodiment of the present invention, according to the preset time interval, that is, the acquisition frequency acquisition edge, the encoder moment at the corresponding angle can also be calculated, thereby obtaining the arrival time corresponding to the angle in the actual performance parameter.
[0081] Step 206: Determine the performance test result of the commutator according to the actual performance parameters, and output the actual performance parameters and the performance test result of the commutator.
[0082] In an embodiment of the present invention, based on the actual performance parameters finally obtained, that is, the changes in angle and time during the actual switching test process, data such as the in-position angle, in-position time, overshoot angle, rebound angle, etc. can be obtained, and the above multiple parameters are compared with the preset performance requirement parameters in the performance configuration parameters to output the corresponding test results, and the test results and actual performance parameters are output to the PC or main control chip to obtain the actual performance parameters and performance test results during the commutator switching process.
[0083] In an embodiment of the present invention, the temperature can be collected, that is, the temperature change when the commutator switches is obtained, and the temperature change can be used as an auxiliary judgment parameter to further determine the performance of the commutator. For example, the temperature when the commutator switches can be transmitted to the controller in real time through a heat conductor to perform performance judgment. Similarly, it can also be performed through devices that can monitor the temperature, such as temperature sensors, which are not limited here.
[0084] Wherein, the above-mentioned actual performance parameters include the in-position angle, in-position time, overshoot angle and rebound angle. Then, the test results corresponding to each test are determined based on the actual performance parameters matching the above-mentioned target test times, including:
[0085] A. determining whether the in-position angle of a target test is within a preset angle range, determining whether the overshoot angle of the target test is greater than a preset overshoot angle, determining whether the rebound angle of the target test is less than a preset rebound angle, and determining whether the in-position time of the target test is less than a preset ideal in-position time, wherein the target test is any one of the target test times;
[0086] B. If the in-place angle is within a preset angle range, the overshoot angle is greater than a preset overshoot angle, the rebound angle is less than a preset rebound angle, and the in-place time is less than a preset ideal in-place time, then the test result of the target test is determined to be qualified;
[0087] C. If at least one of the following conditions is met: the in-place angle is not within a preset angle range; the overshoot angle is less than or equal to a preset overshoot angle; the rebound angle is greater than or equal to a preset rebound angle; and the in-place time is greater than or equal to a preset ideal in-place time, then the test result of the above target test is determined to be unqualified.
[0088] To better understand the determination of the relevant parameters in steps A, B and C in the embodiment of the present invention, please refer to Figure 3 , Figure 3This is a schematic diagram of the angle change and switching time of the commutator during a test process collected by a commutator performance testing method in an embodiment of the present invention. The above image relationship is obtained by collecting the pulse signal of the coaxially mounted photoelectric encoder and performing data processing. Therefore, the above image is also called the actual performance parameter in the embodiment of the present invention.
[0089] Among them, such as Figure 3 As shown in the figure, the in-position angle ① is the actual stopping angle; the overshoot angle ② is the maximum angle during the entire movement process; the rebound angle ③ is the maximum angle at which the commutator rebounds; and the in-position time ③ is the time to reach the overshoot angle ④.
[0090] In the embodiment of the present invention, the performance of the commutator is determined by the above-mentioned in-position angle, overshoot angle, in-position time and rebound angle. If any one of the above four parameters does not meet the corresponding performance requirement parameter, it means that the performance test result of the commutator is unqualified.
[0091] Among them, the performance requirement parameter corresponding to the in-place angle is a preset angle range, which is determined by the allowable deviation angle and the in-place angle in the performance requirement parameter. The maximum value of the angle range is obtained by adding the ideal in-place angle and the allowable deviation angle, and the minimum value of the angle range is obtained by taking the difference between the two.
[0092] The performance requirement parameter corresponding to the overshoot angle is a preset overshoot angle, that is, a maximum allowable overshoot angle.
[0093] The performance requirement parameter corresponding to the arrival time is the time corresponding to the maximum allowable overshoot angle.
[0094] The performance requirement parameter corresponding to the rebound angle is the minimum allowable rebound angle.
[0095] In the embodiment of the present invention, the values of the above parameter thresholds can be set according to actual needs and are not limited here.
[0096] Through the description of the above performance test embodiment, the performance test results of the commutator can be obtained.
[0097] In the embodiment of the present invention, step 206 further includes:
[0098] Generate a test log using the actual performance parameters and the performance test results, and save the actual performance parameters, the performance test results, and the test log.
[0099] For example, if the commutator switching does not meet the set requirements, the reasons for the poor commutator performance can be obtained by analyzing and saving the above-mentioned actual performance parameters, the above-mentioned performance test results and the above-mentioned test logs, and the causes of the defects can be fed back to production. For example, if the commutator positioning angle is too large, the above-mentioned defects can be overcome by reducing the number of commutator coils or motor pulses; or if the commutator overshoot angle is too large, the above-mentioned defects can be overcome by modifying the commutator limit structure or the motor step angle selection, subdividing the drive, etc.
[0100] It is understandable that the performance test method of the above embodiment can test the commutator switching once or multiple times to obtain the final test results. If multiple tests are performed, refer to the following embodiment for explanation:
[0101] In an embodiment of the present invention, the performance test configuration parameters include the switching interval and the target number of tests for the commutator performance test, and step 205 further includes:
[0102] Add 1 to the actual number of tests, and the initial value of the actual number of tests is 0;
[0103] When the actual number of tests is less than the target number of tests, and the time from the end of the last test is the switching interval, return to execute steps 203, 204, 205 and any step in any optional embodiment;
[0104] If the actual number of tests is equal to the target number of tests, actual performance parameters matching the target number of tests are obtained.
[0105] It should be noted that the switching interval refers to the interval between the end time of the previous switching action and the start time of the next switching action. Different or the same interval time can be set according to different position switching, such as 100ms, 1000ms, etc., which is not limited in this example, and the above steps of controlling the commutator to perform the commutation action according to the above commutator control instruction and collecting the actual performance parameters of the commutator in the process of performing the above commutation action are continuously executed according to the set target test number.
[0106] It is understandable that each switching corresponds to a set of actual performance parameters of a target test, and a set of actual performance parameters can obtain a performance test result of a target test.
[0107] In the implementation of the present invention, the performance test results of a target test are obtained through steps A, B and C.
[0108] Exemplarily, position 1->position 2->position 1->position 2->position 1->position 4->position 3->position 4->position 1, the above switching scenario: the target test number, that is, the switching number, is 8 times, and the switching interval, that is, the switching time interval, can be input by the user in the human-computer interaction interface. The controller uses the communication serial port to obtain the performance test configuration parameters of the commutator of the human-computer interaction interface, or it can be a pre-set performance test configuration parameter, which can be the same time interval or a different time interval. The total time for the encoder signal to be collected is collected at the preset time interval to obtain 8 groups of actual performance parameters, and the 8 groups of actual performance parameters are converted into real-time angle changes. Through steps A, B and C, it is judged whether the four actual performance parameters meet the corresponding performance requirements during a target test, and the results of 8 performance tests are obtained, and the test results are qualified or unqualified.
[0109] In an embodiment of the present invention, in step 206, determining the performance test result of the commutator according to the actual performance parameters includes:
[0110] Determine the test results for each test based on the actual performance parameters that match the target number of tests.
[0111] The percentage of qualified test results in the above target test times;
[0112] If the percentage is greater than or equal to the preset threshold, the performance test result is determined to be qualified;
[0113] If the percentage is less than the preset threshold, the performance test result is determined to be unqualified.
[0114] For example, the total number of qualified results of the 8 performance tests is compared with the target test number to obtain the qualified percentage. When the preset percentage threshold is met, it can be said that the performance test results of the commutator for the current target test number are qualified, and this test can also be used as a demand test to see whether the commutator can meet the operational requirements. The above qualified percentage is used to determine whether the commutator can meet the requirements in the current switching scenario to obtain its actual application performance.
[0115] In the embodiment of the present invention, when the above test is performed, the test process can be displayed in real time through the human-computer interaction interface and the test process can be recorded in a log, and this process will not be described in detail.
[0116] It is understandable that, by using the embodiments of the present invention, the service life of the commutator in any usage scenario can be further determined;
[0117] It should be noted that the commutator is a consumable product. As the number of switching times increases, the success rate of its switching will suddenly change, so that its success rate no longer meets the allowable error in the application scenario. Using the above percentage greater than or equal to the preset threshold, the above performance test result is determined to be qualified as a standard test, and a destructive experiment is performed. The above test process is repeated many times, and multiple percentage values greater than or equal to the preset threshold are recorded until the above percentage suddenly decreases. The life of the commutator is calculated based on the previously recorded percentage value and the target number of times, and the test results and actual performance parameters are output and saved to the memory.
[0118] An embodiment of the present invention discloses a commutator performance testing method, system, device and storage medium, the method comprising: obtaining performance test configuration parameters of the commutator; performing parameter analysis according to the above performance test configuration parameters to generate a commutator control instruction matching the above performance test configuration parameters; controlling the above commutator to perform a commutation action according to the above commutator control instruction; collecting a pulse signal of an encoder coaxially mounted with the above commutator at a preset time interval during the process of the above commutator performing the above commutation action; performing data processing using the pulse signal to obtain the above actual performance parameters; determining the performance test results of the above commutator according to the above actual performance parameters, and outputting the above actual performance parameters and the performance test results of the above commutator. By collecting the actual performance parameters of the commutator during the performance test, we can accurately and in real time obtain the performance parameter changes of the commutator during actual switching. Based on the actual changes, we can accurately derive the performance of the commutator. The above test process can be automatically carried out through control instructions to reduce the test errors caused by human participation. Secondly, by setting the switching interval and the target number of tests, we can further simulate the use scenario and more accurately judge the switching performance of the commutator during actual use. By repeating the switching performance of the actual use process many times, we can obtain the life span of the commutator during actual use, that is, the maximum number of switching times.
[0119] Please refer to Figure 4 , Figure 4 A commutator performance testing system according to an embodiment of the present invention includes:
[0120] Data acquisition module 401: used to obtain performance test configuration parameters of the commutator;
[0121] Instruction generation module 402: used to perform parameter analysis based on the above performance test configuration parameters and generate commutator control instructions that match the above performance test configuration parameters;
[0122] Data acquisition module 403: used for controlling the commutator to perform the commutation action according to the commutator control instruction, and collecting actual performance parameters of the commutator during the process of performing the commutation action;
[0123] The result output module 404 is configured to determine the performance test result of the commutator according to the actual performance parameters, and output the actual performance parameters and the performance test result of the commutator.
[0124] In the embodiment of the present invention, the methods executed by the above modules are respectively Figure 1 The contents described in each step of the embodiment shown are similar, and can be found in detail. Figure 1 The relevant descriptions in the illustrated embodiments are omitted here for brevity.
[0125] The embodiment of the present invention discloses a commutator performance test system, wherein the system execution method includes: obtaining the performance test configuration parameters of the commutator; performing parameter analysis according to the above performance test configuration parameters, and generating a commutator control instruction that matches the above performance test configuration parameters; controlling the above commutator to perform a commutation action according to the above commutator control instruction, and collecting the actual performance parameters of the above commutator during the process of performing the above commutation action; determining the performance test results of the above commutator according to the above actual performance parameters, and outputting the above actual performance parameters and the performance test results of the above commutator. By collecting the actual performance parameters of the commutator during the performance test process, the performance parameter changes of the commutator when it is actually switched can be accurately and in real time. Based on the actual changes, we can accurately derive the performance of the commutator, and the above test process can be automatically performed through control instructions to reduce the test errors caused by human participation.
[0126] Figure 5 FIG1 shows an internal structure diagram of a computer device in an embodiment. The computer device can be a terminal or a server. Figure 5 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the age recognition method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can implement the age recognition method. It will be understood by those skilled in the art that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0127] In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following Figure 1 、 Figure 2 The steps shown in any embodiment and any optional embodiment.
[0128] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor is caused to execute the following Figure 1 、 Figure 2 The steps shown in any embodiment and any optional embodiment.
[0129] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When the 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 used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can 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 various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), 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 (RDRAM).
[0130] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0131] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A commutator performance testing method, characterized in that: The method comprises: Obtaining performance test configuration parameters of the commutator; Perform parameter analysis according to the performance test configuration parameters, and generate commutator control instructions that match the performance test configuration parameters; controlling the commutator to perform a commutation action according to the commutator control instruction, and collecting actual performance parameters of the commutator during the process of performing the commutation action; Determining a performance test result of the commutator according to the actual performance parameters, and outputting the actual performance parameters and the performance test result of the commutator; The collecting of actual performance parameters of the commutator during the commutation operation includes: During the process of the commutator performing the commutation action, collecting pulse signals of an encoder coaxially mounted with the commutator at preset time intervals; Performing data processing using the pulse signal to obtain the actual performance parameter; The pulse signal includes a pulse signal of a first phase and a pulse signal of a second phase of the encoder, and the first phase is 90 degrees ahead of the second phase. Then, the data processing using the pulse signal to obtain the actual performance parameter includes: determining an actual rotation direction of the commutator according to the number of edges of the pulse signal of the first phase and the number of edges of the pulse signal of the second phase; The actual performance parameters are obtained by calculating the encoder rotation angle and rotation time according to the number of edges of the pulse signal corresponding to the phase of the actual rotation direction.
2. The method according to claim 1, characterized in that The performance test configuration parameters include a switching interval and a target number of tests for the commutator performance test, and the commutator is controlled to perform a commutation action according to the commutator control instruction, and actual performance parameters of the commutator during the commutation action are collected, and then the following further includes: The actual number of tests is increased by 1, and the initial value of the actual number of tests is 0; When the actual number of tests is less than the target number of tests and the time from the end of the last test is the switching interval, returning to the step of controlling the commutator to perform the commutation action according to the commutator control instruction and collecting actual performance parameters of the commutator during the process of performing the commutation action; If the actual number of tests is equal to the target number of tests, actual performance parameters matching the target number of tests are obtained.
3. The method according to claim 2, characterized in that Determining the performance test result of the commutator according to the actual performance parameter includes: Determining test results corresponding to each test based on actual performance parameters that match the target number of tests; The percentage of the number of qualified test results to the target number of tests; If the percentage is greater than or equal to a preset threshold, determining that the performance test result is qualified; If the percentage is less than the preset threshold, the performance test result is determined to be unqualified.
4. The method according to claim 3, characterized in that The actual performance parameters include the in-position angle, in-position time, overshoot angle, and rebound angle. Then, the test results corresponding to each test are determined based on the actual performance parameters that match the target number of tests, including: Determining whether the in-place angle of a target test is within a preset angle range, determining whether the overshoot angle of the target test is greater than a preset overshoot angle, determining whether the rebound angle of the target test is less than a preset rebound angle, and determining whether the in-place time of the target test is less than a preset ideal in-place time, wherein the target test is any test among the target number of tests; If the in-place angle is within a preset angle range, the overshoot angle is greater than a preset overshoot angle, the rebound angle is less than a preset rebound angle, and the in-place time is less than a preset ideal in-place time, then the test result of the target test is determined to be qualified; If at least one of the following conditions is met: the in-place angle is not within a preset angle range; the overshoot angle is less than or equal to a preset overshoot angle; the rebound angle is greater than or equal to a preset rebound angle; and the in-place time is greater than or equal to a preset ideal in-place time, the test result of the target test is determined to be unqualified.
5. The method according to claim 1, characterized in that: The method further comprises: determining a performance test result of the commutator according to the actual performance parameter, and outputting the actual performance parameter and the performance test result; and A test log is generated using the actual performance parameters and the performance test results, and the actual performance parameters, the performance test results, and the test log are saved.
6. A commutator performance test system, characterized in that: The system comprises: Data acquisition module: used to obtain the performance test configuration parameters of the commutator; Instruction generation module: used for performing parameter analysis according to the performance test configuration parameters and generating commutator control instructions matching the performance test configuration parameters; Data acquisition module: used for controlling the commutator to perform the commutation action according to the commutator control instruction, and collecting actual performance parameters of the commutator during the process of performing the commutation action; Result output module: used for determining the performance test result of the commutator according to the actual performance parameters, and outputting the actual performance parameters and the performance test result of the commutator to a human-computer interaction interface for display; The collecting of the actual performance parameters of the commutator during the commutation operation includes: collecting pulse signals of an encoder coaxially mounted with the commutator at preset time intervals during the commutation operation; and performing data processing on the pulse signals to obtain the actual performance parameters. In which, the pulse signal includes a pulse signal of a first phase and a pulse signal of a second phase of the encoder, and the first phase is 90 degrees ahead of the second phase. The data processing using the pulse signal to obtain the actual performance parameters includes: determining the actual rotation direction of the commutator according to the number of edges of the pulse signal of the first phase and the number of edges of the pulse signal of the second phase; calculating the encoder rotation angle and rotation time according to the number of edges of the pulse signal corresponding to the phase of the actual rotation direction to obtain the actual performance parameters.
7. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 5.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Device and method for performance test of diverter of financial self-service equipment
CN106251507A
Ribbon driving and protecting mechanism for stylus printer
CN201534408U