An automated testing method, system, and medium for stepper servo drives.

By employing fully automated dynamic analysis technology and centralized data management, the problems of low efficiency, poor accuracy, and inconvenient data management in stepper servo drive testing have been solved, enabling efficient and accurate automated testing and product optimization.

CN120742008BActive Publication Date: 2025-11-14SHENZHEN JUST MOTION CONTROL ELECTROMECHANICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511241133.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-02
Publication Date
2025-11-14
Estimated Expiration
2045-09-02

AI Technical Summary

Technical Problem

The testing of existing stepper servo drives relies on manual operation or semi-automation, which has problems such as low testing efficiency, inaccurate results, cumbersome testing procedures, and inconvenient data management, making it difficult to meet the needs of industrial mass production.

Method used

Employing fully automated dynamic analysis technology, it automatically generates unique numbers and binds records to perform IO self-closed-loop testing and centralized data management, including network quality detection, bus data acquisition, port detection, synchronization status detection, and motor performance detection, thereby achieving real-time data transmission and collaborative operation.

Benefits of technology

It improves the testing efficiency and accuracy of stepper servo drives, realizes automated testing, simplifies the testing process, and enhances the uniformity of data management and product optimization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120742008B_ABST
    Figure CN120742008B_ABST
Patent Text Reader

Abstract

This application provides an automated testing method, system, and medium for stepper servo drives. The method includes: automatically generating a unique number and binding it to a record; sending data packets; detecting external network communication; collecting first fault information; acquiring bus data; detecting board status; collecting second fault information; connecting the drive module port and performing automatic polling and internal communication detection; collecting third and fourth fault information; reading preset synchronization register data; performing synchronization status detection and collecting fifth fault information; reading back motor data to perform motor performance detection and collecting sixth fault information; storing test data; obtaining a test report for quality analysis and product optimization. Through fully automated dynamic analysis technology, IO self-closed-loop testing, and centralized data management, data transmission and collaborative work are achieved, improving the testing efficiency and accuracy of servo drives and realizing automated testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automated testing, and more specifically, to an automated testing method, system, and medium for stepper servo drives. Background Technology

[0002] Currently, testing of stepper servo drives mainly relies on manual operation or semi-automated testing equipment. However, this existing technology has many drawbacks. Testing efficiency is low; manual operation is time-consuming and cannot meet the needs of industrial mass production. Test results are inaccurate, relying on experience to analyze data, and different personnel may have different judgment standards; fatigued operation can easily lead to missed detections. Testing procedures are cumbersome; testing different functional items often requires changing testing equipment (multimeters, oscilloscopes, etc.) or reconfiguring the system, resulting in insufficient flexibility. Setting up the environment and finding test points consumes a lot of time and cost. Data management is inconvenient; test data is stored in a scattered manner, lacking unified analysis and management tools, making systematic analysis difficult and hindering quality traceability and product optimization.

[0003] Effective technical solutions are urgently needed to address the above problems. Summary of the Invention

[0004] The purpose of this application is to provide an automated testing method, system, and medium for stepper servo drives. Through full-process automated dynamic analysis technology, IO self-closed-loop testing, and centralized data management, data transmission and collaborative work are achieved, thereby improving the testing efficiency and accuracy of servo drives and realizing automated testing.

[0005] This application also provides an automated testing method for stepper servo drives, including the following steps:

[0006] Automatically generate unique numbers and bind them to test records, display the binding numbers in real time and print labels to identify the servo drive under test;

[0007] By sending test data packets through a preset test model and processing them to obtain network quality parameters, external network communication is detected and first fault information is collected.

[0008] Collect bus data to the host computer and draw dynamic waveforms. Compare and detect the status of the board based on the waveform error, and collect second fault information.

[0009] Connect the input and output ports of the driver module, and perform automatic polling and internal communication detection on the port group respectively to collect third and fourth fault information;

[0010] The system continuously reads data from the preset synchronization register, performs synchronization status detection based on the number of timeouts in the periodic information data, collects the fifth fault information, and performs performance detection on the motor based on the readback motor data, and collects the sixth fault information.

[0011] The collected test data is bound with a number and stored in the database. Test reports can be retrieved for quality analysis and product optimization.

[0012] Optionally, in the automated testing method for a stepper servo drive described in this application, the step of automatically generating a unique number and binding it to the test record, displaying the binding number in real time and printing a label to identify the servo drive under test includes:

[0013] The main control module automatically assigns a unique number to the servo drive under test, binds the number with the test record information, and stores it in the database;

[0014] The interactive module displays a graphical interface, prompting the user to bind the ID number;

[0015] The printer module prints a numbered label to identify the servo drive under test.

[0016] Optionally, in the automated testing method for a stepper servo driver described in this application, the step of sending test data packets through a preset test model and processing them to obtain network quality parameters, detecting external network communication, and collecting first fault information includes:

[0017] The main control module is connected to the driver module via a network interface;

[0018] Test data packets are sent to the driver module using a preset test model, and the returned data packets are received.

[0019] The returned data packets are processed to obtain network quality parameters, which are then compared with preset quality thresholds.

[0020] If the network quality parameter is greater than the preset quality threshold, the external network communication is determined to be normal.

[0021] If the quality threshold is less than or equal to the preset quality threshold, the first fault information is recorded and the test ends.

[0022] Optionally, in the automated testing method for a stepper servo driver described in this application, the step of acquiring bus data to a host computer and drawing dynamic waveforms, comparing and detecting the board status based on waveform errors, and collecting second fault information includes:

[0023] The main control module acquires bus data from the driver module;

[0024] The bus data is transmitted to the host computer in real time, and dynamic waveforms are plotted and waveform errors are collected.

[0025] The collected waveform error is compared with a preset error threshold.

[0026] If the waveform error is not greater than the preset error threshold, the board is considered to be in normal condition.

[0027] If the error exceeds the preset error threshold, record the second fault information and end the test.

[0028] Optionally, in the automated testing method for a stepper servo driver described in this application, the step of connecting the input and output ports of the driver module and performing automatic polling detection and internal communication detection on the port group to collect third and fourth fault information includes:

[0029] Connect the input and output ports of the driver module;

[0030] The first set value is sent to each output point in sequence, and the collected value of the corresponding input point is collected.

[0031] Compare the first set value with the collected value. If they match, the corresponding IO point test is deemed to have passed.

[0032] If there is a discrepancy, the corresponding IO point test is deemed to have failed, and the third fault information is recorded.

[0033] Send read commands to the driver module via the internal communication interface;

[0034] Obtain specific data and corresponding interval time, and compare the interval time with a preset interval time threshold;

[0035] If the specific data is read within the preset time interval threshold, the internal communication is determined to be normal.

[0036] If the read fails, an internal communication error is detected and the fourth fault information is recorded.

[0037] Optionally, in the automated testing method for a stepper servo driver described in this application, the step of cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information based on the timeout count of the periodic information data, and performing performance testing on the motor based on the readback motor data and collecting sixth fault information includes:

[0038] The host computer continuously reads the preset synchronization register data to obtain the period information data of the driver module, compares it with the second set value, and counts the number of timeouts of the period information data.

[0039] The timeout count is compared with a preset threshold.

[0040] If the number of timeouts is less than or equal to the preset threshold number, the driver module is determined to be synchronizing normally.

[0041] If the number of timeouts exceeds the preset threshold, the driver module is determined to have lost steps, the test fails, and the fifth fault information is recorded.

[0042] The motor actuator module is controlled to rotate and read back the motor data. The motor data is compared with the third set value to obtain the deviation value.

[0043] The deviation value is compared with a preset deviation threshold. If the deviation value is not greater than the preset deviation threshold, the motor execution module is determined to be functioning normally.

[0044] If the deviation exceeds the preset threshold, the test is deemed a failure and the sixth fault information is recorded.

[0045] Optionally, in the automated testing method for a stepper servo drive described in this application, the step of binding the collected test data with numbers and storing it in a database, and querying and retrieving test reports for quality analysis and product optimization, includes:

[0046] Collect test data, including information on the first through sixth faults;

[0047] Test data is bound to a number and stored in the database to generate a test report;

[0048] Query and export test reports using the interactive module;

[0049] Based on the test report, quality analysis and product optimization were performed on the servo drive.

[0050] Secondly, this application provides an automated testing system for stepper servo drives, comprising:

[0051] Interactive module: Using a PC or embedded screen, it provides a graphical interface to realize automatic testing, test data display and information recording, and product numbering;

[0052] Main control module: It adopts an industrial computer or PLC, which has data processing and control capabilities, and is used for the control and scheduling of the test process;

[0053] Driver module: Generates stepping pulse signals and direction signals to control motor operation and provides board-level self-test services, including board-level voltage and current self-test, internal communication port self-test, and IO interface self-test;

[0054] Motor actuator module: supports pulse control and encoder feedback;

[0055] Printer module: Prints labels to calibrate products.

[0056] Optionally, the automated testing system for a stepper servo driver described in this application further includes: a memory and a processor, wherein the memory includes a program for an automated testing method for a stepper servo driver, and when the program for the automated testing method for a stepper servo driver is executed by the processor, it implements the following steps:

[0057] By sending test data packets through a preset test model and processing them to obtain network quality parameters, external network communication is detected and first fault information is collected.

[0058] Collect bus data to the host computer and draw dynamic waveforms. Compare and detect the status of the board based on the waveform error, and collect second fault information.

[0059] Connect the input and output ports of the driver module, and perform automatic polling and internal communication detection on the port group respectively to collect third and fourth fault information;

[0060] The system continuously reads data from the preset synchronization register, performs synchronization status detection based on the number of timeouts in the periodic information data, collects the fifth fault information, and performs performance detection on the motor based on the readback motor data, and collects the sixth fault information.

[0061] The collected test data is bound with a number and stored in the database. Test reports can be retrieved for quality analysis and product optimization.

[0062] Thirdly, this application also provides a computer-readable storage medium storing an automated testing method program for a stepper servo driver, wherein when the automated testing method program for a stepper servo driver is executed by a processor, it implements the steps of the automated testing method for a stepper servo driver as described in any of the preceding claims.

[0063] As can be seen from the above, the automated testing method, system, and medium for stepper servo drives provided in this application automatically generate unique numbers and bind records, send data packets, detect external network communication, collect first fault information, collect bus data, detect board status, collect second fault information, connect the driver module port and perform automatic polling and internal communication detection respectively, collect third and fourth fault information, read preset synchronization register data, perform synchronization status detection and collect fifth fault information, read back motor data to perform motor performance detection and collect sixth fault information, store test data, obtain test reports for quality analysis and product optimization, thereby achieving data transmission and collaborative work through full-process automated dynamic analysis technology, IO self-closed-loop testing, and centralized data management, improving the testing efficiency and accuracy of servo drives, and realizing automated testing.

[0064] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing embodiments of this application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings. Attached Figure Description

[0065] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0066] Figure 1 A flowchart illustrating an automated testing method for a stepper servo driver provided in an embodiment of this application;

[0067] Figure 2 A flowchart illustrating the system initialization of an automated testing method for a stepper servo driver, provided in an embodiment of this application;

[0068] Figure 3 A flowchart illustrating the external communication detection of an automated testing method for a stepper servo driver, provided as an embodiment of this application;

[0069] Figure 4 A high-level flowchart of an automated testing method for a stepper servo driver provided in an embodiment of this application;

[0070] Figure 5 This is a system diagram of an automated testing system for a stepper servo driver provided in an embodiment of this application. Detailed Implementation

[0071] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0072] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0073] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating an automated testing method for a stepper servo driver according to some embodiments of this application. This automated testing method for a stepper servo driver is used in terminal devices, such as computers and mobile terminals. The automated testing method for a stepper servo driver includes the following steps:

[0074] S11. Automatically generate a unique number and bind it to the test record, display the binding number in real time and print the label to identify the servo drive under test;

[0075] S12. Send test data packets through a preset test model and process them to obtain network quality parameters, detect external network communication, and collect first fault information;

[0076] S13. Collect bus data to the host computer and draw dynamic waveforms. Compare and detect the status of the board based on the waveform error and collect the second fault information.

[0077] S14. Connect the input and output ports of the driver module, and perform automatic polling detection and internal communication detection on the port group respectively to collect the third fault information and the fourth fault information.

[0078] S15. Read the preset synchronization register data in a loop, perform synchronization status detection based on the number of timeouts in the periodic information data and collect the fifth fault information, and perform performance detection on the motor based on the readback motor data and collect the sixth fault information.

[0079] S16. Bind the collected test data to the database with the assigned number, and query the test report to perform quality analysis and product optimization.

[0080] The system automatically generates a unique number for the servo drive and binds it to test records. The interactive module displays the number in real time, sends test data packets through a preset test model, detects external network communication, and collects and records the first fault information. The main control module collects bus data and uploads it to the host computer to draw dynamic waveforms. Based on the waveform error, it detects the board status and collects and records the second fault information. It connects the input / output ports of the drive module to perform automatic polling and internal communication detection and collects the third and fourth fault information. It cyclically reads the preset synchronization register data, checks the synchronization status based on the timeout number of the periodic information data, and collects the fifth fault information. It performs performance testing on the motor based on the read-back motor data and collects the sixth fault information. Finally, the test data is bound to a number and stored in the database. The exported test report is used to perform quality analysis and product optimization of the servo drive. Through full-process automated dynamic analysis technology, IO self-closed-loop testing, and centralized data management, data transmission and collaborative work are achieved, improving the testing efficiency and accuracy of the servo drive and realizing automated testing.

[0081] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the system initialization of an automated testing method for a stepper servo drive according to some embodiments of this application. According to an embodiment of the present invention, the step of automatically generating a unique number and binding it to a test record, displaying the binding number in real time and printing a label to identify the servo drive under test includes:

[0082] S21. The main control module automatically assigns a unique number to the servo drive under test, binds the number with the test record information, and stores it in the database;

[0083] S22. The interactive module displays a graphical interface, prompting the user to bind the number;

[0084] S23. The printer module prints a numbered label to identify the servo driver under test.

[0085] The process begins by powering on the test system. The main control module, such as an industrial computer or PLC, automatically assigns a unique number to the servo drive under test and binds the number to the test record information, storing it in the database for subsequent quality checks. The interactive module, such as a PC or embedded screen, displays a graphical interface, prompting the user to bind the number and driving the digital tube display. The printer module prints a label with the number to identify the servo drive under test.

[0086] Please refer to Figure 3 , Figure 3It is a flowchart of external communication detection for an automated testing method of a stepping servo driver in some embodiments of the present application. According to an embodiment of the present invention, the external network communication is detected by sending a test data packet through a preset test model and processing to obtain network quality parameters, and the first fault information is collected, including:

[0087] S31. The main control module is connected to the driver module through a network interface;

[0088] S32. Send a test data packet to the driver module through a preset test model and receive the returned data packet;

[0089] S33. Process the returned data packet to obtain network quality parameters and compare them with a preset quality threshold;

[0090] S34. If the network quality parameter is greater than the preset quality threshold, it is determined that the external network communication is normal;

[0091] S35. If it is less than or equal to the preset quality threshold, record the first fault information and end the test.

[0092] Among them, the main control module is connected to the driver module through a network interface, sends a test data packet to the driver module through a preset test model such as Iperf, and receives the returned data packet, and performs statistical processing on the returned data packet to obtain network quality parameters, including packet loss rate, bandwidth load, and network jitter parameters, and compares them with a preset quality threshold. For example, in the embodiment of this solution, the packet loss rate threshold is set <0.07%, and the bandwidth load threshold is ≥80%. If all network quality parameters are greater than the corresponding thresholds of the preset quality threshold, it is qualified, and it is determined that the external network communication is normal. On the contrary, if not all are greater than the corresponding thresholds of the preset quality threshold, it is unqualified, and the external network communication is abnormal. Record the first fault information and end the test.

[0093] According to an embodiment of the present invention, the bus data is collected to the upper computer and a dynamic waveform is drawn, and the board card state is compared and detected according to the waveform error, and the second fault information is collected, including:

[0094] The main control module collects the bus data of the driver module;

[0095] Transmit the bus data to the upper computer in real time, draw a dynamic waveform, and collect the waveform error;

[0096] Compare the collected waveform error with a preset error threshold;

[0097] If the waveform error is not greater than the preset error threshold, it is determined that the board card state is normal;

[0098] If it is greater than the preset error threshold, record the second fault information and end the test.

[0099] The main control module acquires bus data from the driver module at a sampling rate of 15 Hz via an ADC, including current and voltage (e.g., 4.8V, 3.7V, 1.1V). The bus data is transmitted to the host computer in real time, and a dynamic waveform is plotted on the oscilloscope monitoring interface. The error of the waveform change is collected and compared with a preset error threshold. For example, in this embodiment, the allowable error threshold for the voltage waveform is set to ±5%. If the waveform error is not greater than the preset error threshold, the board is determined to be in normal condition; otherwise, the board is determined to be abnormal, the second fault information is recorded, and the test ends.

[0100] According to an embodiment of the present invention, the step of connecting the input and output ports of the driver module, and performing automatic polling detection and internal communication detection on the port group respectively, and collecting third fault information and fourth fault information, includes:

[0101] Connect the input and output ports of the driver module;

[0102] The first set value is sent to each output point in sequence, and the collected value of the corresponding input point is collected.

[0103] Compare the first set value with the collected value. If they match, the corresponding IO point test is deemed to have passed.

[0104] If there is a discrepancy, the corresponding IO point test is deemed to have failed, and the third fault information is recorded.

[0105] Send read commands to the driver module via the internal communication interface;

[0106] Obtain specific data and corresponding interval time, and compare the interval time with a preset interval time threshold;

[0107] If the specific data is read within the preset time interval threshold, the internal communication is determined to be normal.

[0108] If the read fails, an internal communication error is detected and the fourth fault information is recorded.

[0109] The process involves connecting the input and output ports of the driver module, sending a first set value to each output point sequentially through a preset test model (such as a host computer test model), and collecting the corresponding input value. The main control module compares the first set value with the collected value. If they match, the I / O point test is considered passed; otherwise, the I / O point test is considered failed and a third fault message is recorded. The main control module sends a read command to the driver module through the internal communication interface to obtain specific data such as product ID, version, and corresponding interval time, and compares it with a preset interval time threshold. If the specific data is read within the preset interval time threshold, the internal communication is considered normal; otherwise, the reading fails and the internal communication is considered abnormal and a fourth fault message is recorded.

[0110] According to an embodiment of the present invention, the step of cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information based on the timeout count of the periodic information data, and performing motor performance detection and collecting sixth fault information based on the readback motor data includes:

[0111] The host computer continuously reads the preset synchronization register data to obtain the period information data of the driver module, compares it with the second set value, and counts the number of timeouts of the period information data.

[0112] The timeout count is compared with a preset threshold.

[0113] If the number of timeouts is less than or equal to the preset threshold number, the driver module is determined to be synchronizing normally.

[0114] If the number of timeouts exceeds the preset threshold, the driver module is determined to have lost steps, the test fails, and the fifth fault information is recorded.

[0115] The motor actuator module is controlled to rotate and read back the motor data. The motor data is compared with the third set value to obtain the deviation value.

[0116] The deviation value is compared with a preset deviation threshold. If the deviation value is not greater than the preset deviation threshold, the motor execution module is determined to be functioning normally.

[0117] If the deviation exceeds the preset threshold, the test is deemed a failure and the sixth fault information is recorded.

[0118] The host computer continuously reads preset synchronization registers (such as PLC data) to obtain the periodic information data of the driver module. It compares this data with a second set value (e.g., a set period ≤ 2ms) and records the number of timeouts within the statistical time range. If the number of timeouts is less than or equal to a preset threshold (e.g., 3 timeouts, with a threshold of 4), the driver module is considered to be synchronizing normally. If the number of timeouts exceeds the preset threshold, the driver module is considered to have lost steps, the test fails, and the fifth fault information is recorded. The host computer then controls the motor execution module to rotate through the host computer interface. Simultaneously, it reads back the motor data from the motor execution module, including speed, position, and torque information. The main control module compares the motor data fed back by the encoder (e.g., speed) with the corresponding set speed of 2000rpm (third set value) to obtain the speed deviation value. This deviation value is then compared with a preset deviation threshold. If the deviation value is not greater than the deviation threshold (e.g., a deviation threshold of 3%), the motor execution module is considered to be performing normally. If the deviation value is greater than the deviation threshold, the test fails, and the sixth fault information is recorded.

[0119] According to an embodiment of the present invention, the step of binding the collected test data with a number and storing it in a database, and querying and retrieving test reports for quality analysis and product optimization includes:

[0120] Collect test data, including information on the first through sixth faults;

[0121] Test data is bound to a number and stored in the database to generate a test report;

[0122] Query and export test reports using the interactive module;

[0123] Based on the test report, quality analysis and product optimization were performed on the servo drive.

[0124] The main control module collects test data, including numbers, test items, test results, and the first, second, third, fourth, fifth, and sixth fault information, binds the data to numbers, stores it in the database to generate test reports, and allows users to query and export test reports through the interactive module to perform quality analysis and product optimization of the servo drive based on the test reports.

[0125] Please refer to Figure 4 , Figure 4 This is a high-level flowchart of an automated testing method for a stepper servo driver according to some embodiments of this application.

[0126] Please refer to Figure 5 , Figure 5 This is a system diagram of an automated testing system for a stepper servo driver according to some embodiments of this application.

[0127] Secondly, the present invention also discloses an automated testing system 5 for a stepper servo driver, the system comprising:

[0128] Interactive module 501: Using a PC or embedded screen, it provides a graphical interface to realize automatic testing, test data display and information recording, and product numbering;

[0129] Main control module 502: It adopts an industrial computer or PLC and has data processing and control capabilities. It is used for the control and scheduling of the test process.

[0130] Driver module 503: Generates stepping pulse signals and direction signals to control motor operation and provides board-level self-test services, including board-level voltage and current self-test, internal communication port self-test, and IO interface self-test;

[0131] Motor actuator module 504: supports pulse control and encoder feedback;

[0132] Printer module 505: Prints labels to calibrate products.

[0133] According to an embodiment of the present invention, the automated testing system for a stepper servo driver further includes: a memory and a processor, wherein the memory includes an automated testing method program for the stepper servo driver, and the automated testing method program for the stepper servo driver, when executed by the processor, performs the following steps:

[0134] Automatically generate unique numbers and bind them to test records, display the binding numbers in real time and print labels to identify the servo drive under test;

[0135] By sending test data packets through a preset test model and processing them to obtain network quality parameters, external network communication is detected and first fault information is collected.

[0136] Collect bus data to the host computer and draw dynamic waveforms. Compare and detect the status of the board based on the waveform error, and collect second fault information.

[0137] Connect the input and output ports of the driver module, and perform automatic polling and internal communication detection on the port group respectively to collect third and fourth fault information;

[0138] The system continuously reads data from the preset synchronization register, performs synchronization status detection based on the number of timeouts in the periodic information data, collects the fifth fault information, and performs performance detection on the motor based on the readback motor data, and collects the sixth fault information.

[0139] The collected test data is bound with a number and stored in the database. Test reports can be retrieved for quality analysis and product optimization.

[0140] The system automatically generates a unique number for the servo drive and binds it to test records. The interactive module displays the number in real time, sends test data packets through a preset test model, detects external network communication, and collects and records the first fault information. The main control module collects bus data and uploads it to the host computer to draw dynamic waveforms. Based on the waveform error, it detects the board status and collects and records the second fault information. It connects the input / output ports of the drive module to perform automatic polling and internal communication detection and collects the third and fourth fault information. It cyclically reads the preset synchronization register data, checks the synchronization status based on the timeout number of the periodic information data, and collects the fifth fault information. It performs performance testing on the motor based on the read-back motor data and collects the sixth fault information. Finally, the test data is bound to a number and stored in the database. The exported test report is used to perform quality analysis and product optimization of the servo drive. Through full-process automated dynamic analysis technology, IO self-closed-loop testing, and centralized data management, data transmission and collaborative work are achieved, improving the testing efficiency and accuracy of the servo drive and realizing automated testing.

[0141] According to an embodiment of the present invention, the automatic generation of a unique number and binding of test records, real-time display of the binding number and printing of a label to identify the servo drive under test includes:

[0142] The main control module automatically assigns a unique number to the servo drive under test, binds the number with the test record information, and stores it in the database;

[0143] The interactive module displays a graphical interface, prompting the user to bind the ID number;

[0144] The printer module prints a numbered label to identify the servo drive under test.

[0145] The process begins by powering on the test system. The main control module, such as an industrial computer or PLC, automatically assigns a unique number to the servo drive under test and binds the number to the test record information, storing it in the database for subsequent quality checks. The interactive module, such as a PC or embedded screen, displays a graphical interface, prompting the user to bind the number and driving the digital tube display. The printer module prints a label with the number to identify the servo drive under test.

[0146] According to an embodiment of the present invention, the step of sending test data packets through a preset test model and processing them to obtain network quality parameters, detecting external network communication, and collecting first fault information includes:

[0147] The main control module is connected to the driver module via a network interface;

[0148] Test data packets are sent to the driver module using a preset test model, and the returned data packets are received.

[0149] The returned data packets are processed to obtain network quality parameters, which are then compared with preset quality thresholds.

[0150] If the network quality parameter is greater than the preset quality threshold, the external network communication is determined to be normal.

[0151] If the quality threshold is less than or equal to the preset quality threshold, the first fault information is recorded and the test ends.

[0152] Among them, the main control module is connected to the driver module through a network interface, sends test data packets to the driver module through a preset test model such as Iperf, and receives the returned data packets. The returned data packets are statistically processed to obtain network quality parameters, including packet loss rate, bandwidth load, and network jitter parameters, and compared with preset quality thresholds. For example, in the embodiment of this solution, the packet loss rate threshold is set to <0.07%, and the bandwidth load threshold is ≥80%. If all the network quality parameters are greater than the corresponding thresholds of the preset quality thresholds, it is qualified, and it is determined that the external network communication is normal. Otherwise, if not all are greater than the corresponding thresholds of the preset quality thresholds, it is unqualified, and the external network communication is abnormal. Record the first fault information and end the test.

[0153] According to the embodiment of the present invention, collecting the bus data to the upper computer and drawing a dynamic waveform, comparing and detecting the board card state according to the waveform error, and collecting the second fault information, including:

[0154] The main control module collects the bus data of the driver module;

[0155] Transmit the bus data to the upper computer in real time, draw a dynamic waveform, and collect the waveform error;

[0156] Compare the collected waveform error with a preset error threshold;

[0157] If the waveform error is not greater than the preset error threshold, it is determined that the board card state is normal;

[0158] If it is greater than the preset error threshold, record the second fault information and end the test.

[0159] Among them, the main control module collects the bus data of the driver module through the ADC at a sampling rate of 15 Hz, including current and voltage (such as 4.8V, 3.7V, 1.1V), transmits the bus data to the upper computer in real time, draws a dynamic waveform on the oscilloscope monitoring interface, and collects the error of the waveform change, and then compares it with the preset error threshold. For example, in the embodiment of this solution, the tolerance threshold of the voltage waveform is set to ±5%. If the waveform error is not greater than the preset error threshold, it is determined that the board card state is normal. Otherwise, it is determined that the board card is abnormal, record the second fault information and end the test.

[0160] According to the embodiment of the present invention, docking the input and output ports of the driver module, and respectively performing automatic polling detection and internal communication detection on the port groups, and collecting the third fault information and the fourth fault information, including:

[0161] Dock the input and output ports of the driver module;

[0162] Send the first set value to each output point in turn, and collect the collected value of the corresponding input point;

[0163] Compare the first set value with the collected value. If they match, the corresponding IO point test is deemed to have passed.

[0164] If there is a discrepancy, the corresponding IO point test is deemed to have failed, and the third fault information is recorded.

[0165] Send read commands to the driver module via the internal communication interface;

[0166] Obtain specific data and corresponding interval time, and compare the interval time with a preset interval time threshold;

[0167] If the specific data is read within the preset time interval threshold, the internal communication is determined to be normal.

[0168] If the read fails, an internal communication error is detected and the fourth fault information is recorded.

[0169] The process involves connecting the input and output ports of the driver module, sending a first set value to each output point sequentially through a preset test model (such as a host computer test model), and collecting the corresponding input value. The main control module compares the first set value with the collected value. If they match, the I / O point test is considered passed; otherwise, the I / O point test is considered failed and a third fault message is recorded. The main control module sends a read command to the driver module through the internal communication interface to obtain specific data such as product ID, version, and corresponding interval time, and compares it with a preset interval time threshold. If the specific data is read within the preset interval time threshold, the internal communication is considered normal; otherwise, the reading fails and the internal communication is considered abnormal and a fourth fault message is recorded.

[0170] According to an embodiment of the present invention, the step of cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information based on the timeout count of the periodic information data, and performing motor performance detection and collecting sixth fault information based on the readback motor data includes:

[0171] The host computer continuously reads the preset synchronization register data to obtain the period information data of the driver module, compares it with the second set value, and counts the number of timeouts of the period information data.

[0172] The timeout count is compared with a preset threshold.

[0173] If the number of timeouts is less than or equal to the preset threshold number, the driver module is determined to be synchronizing normally.

[0174] If the number of timeouts exceeds the preset threshold, the driver module is determined to have lost steps, the test fails, and the fifth fault information is recorded.

[0175] The motor actuator module is controlled to rotate and read back the motor data. The motor data is compared with the third set value to obtain the deviation value.

[0176] The deviation value is compared with a preset deviation threshold. If the deviation value is not greater than the preset deviation threshold, the motor execution module is determined to be functioning normally.

[0177] If the deviation exceeds the preset threshold, the test is deemed a failure and the sixth fault information is recorded.

[0178] The host computer continuously reads preset synchronization registers (such as PLC data) to obtain the periodic information data of the driver module. It compares this data with a second set value (e.g., a set period ≤ 2ms) and records the number of timeouts within the statistical time range. If the number of timeouts is less than or equal to a preset threshold (e.g., 3 timeouts, with a threshold of 4), the driver module is considered to be synchronizing normally. If the number of timeouts exceeds the preset threshold, the driver module is considered to have lost steps, the test fails, and the fifth fault information is recorded. The host computer then controls the motor execution module to rotate through the host computer interface. Simultaneously, it reads back the motor data from the motor execution module, including speed, position, and torque information. The main control module compares the motor data fed back by the encoder (e.g., speed) with the corresponding set speed of 2000rpm (third set value) to obtain the speed deviation value. This deviation value is then compared with a preset deviation threshold. If the deviation value is not greater than the deviation threshold (e.g., a deviation threshold of 3%), the motor execution module is considered to be performing normally. If the deviation value is greater than the deviation threshold, the test fails, and the sixth fault information is recorded.

[0179] According to an embodiment of the present invention, the step of binding the collected test data with a number and storing it in a database, and querying and retrieving test reports for quality analysis and product optimization includes:

[0180] Collect test data, including information on the first through sixth faults;

[0181] Test data is bound to a number and stored in the database to generate a test report;

[0182] Query and export test reports using the interactive module;

[0183] Based on the test report, quality analysis and product optimization were performed on the servo drive.

[0184] The main control module collects test data, including numbers, test items, test results, and the first, second, third, fourth, fifth, and sixth fault information, binds the data to numbers, stores it in the database to generate test reports, and allows users to query and export test reports through the interactive module to perform quality analysis and product optimization of the servo drive based on the test reports.

[0185] A third aspect of the present invention provides a readable storage medium storing an automated testing method program for a stepper servo driver, wherein when the automated testing method program for a stepper servo driver is executed by a processor, the steps of the automated testing method for a stepper servo driver as described in any of the preceding claims are implemented.

[0186] This invention discloses an automated testing method, system, and medium for stepper servo drives. It automatically generates unique numbers and binds records, sends data packets, detects external network communication, collects first fault information, collects bus data, detects board status, collects second fault information, connects the drive module port, and performs automatic polling and internal communication detection, collecting third and fourth fault information, reads preset synchronization register data, performs synchronization status detection and collects fifth fault information, reads back motor data to perform motor performance detection and collects sixth fault information, stores test data, obtains test reports for quality analysis and product optimization. Through fully automated dynamic analysis technology, I / O self-closed-loop testing, and centralized data management, it achieves data transmission and collaborative work, improving the testing efficiency and accuracy of servo drives and realizing automated testing.

[0187] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0188] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0189] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0190] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0191] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.

Claims

1. An automated testing method for a stepper servo driver, characterized in that, Includes the following steps: Automatically generate unique numbers and bind them to test records, display the binding numbers in real time and print labels to identify the servo drive under test; By sending test data packets through a preset test model and processing them to obtain network quality parameters, external network communication is detected and first fault information is collected. Collect bus data to the host computer and draw dynamic waveforms. Compare and detect the status of the board based on the waveform error, and collect second fault information. Connect the input and output ports of the driver module, and perform automatic polling and internal communication detection on the port group respectively to collect third and fourth fault information; The system continuously reads data from the preset synchronization register, performs synchronization status detection based on the number of timeouts in the periodic information data, collects the fifth fault information, and performs performance detection on the motor based on the readback motor data, and collects the sixth fault information. The collected test data is bound with a number and stored in the database. Test reports can be retrieved for quality analysis and product optimization. The process involves connecting the input and output ports of the driver module, performing automatic polling and internal communication detection on the port group, and collecting third and fourth fault information, including: Connect the input and output ports of the driver module; The first set value is sent to each output point in sequence, and the collected value of the corresponding input point is collected. Compare the first set value with the collected value. If they match, the corresponding IO point test is deemed to have passed. If there is a discrepancy, the corresponding IO point test is deemed to have failed, and the third fault information is recorded. Send read commands to the driver module via the internal communication interface; Obtain specific data and corresponding interval time, and compare the interval time with a preset interval time threshold; If the specific data is read within the preset time interval threshold, the internal communication is determined to be normal. If the read fails, an internal communication error is detected and the fourth fault information is recorded.

2. The automated testing method for a stepper servo driver according to claim 1, characterized in that, The automatic generation of unique numbers and binding to test records, real-time display of binding numbers and printing of labels, and identification of the tested servo drive include: The main control module automatically assigns a unique number to the servo drive under test, binds the number with the test record information, and stores it in the database; The interactive module displays a graphical interface, prompting the user to bind the ID number; The printer module prints a numbered label to identify the servo drive under test.

3. The automated testing method for a stepper servo driver according to claim 2, characterized in that, The process of sending test data packets through a preset test model and processing them to obtain network quality parameters, detecting external network communication, and collecting first fault information includes: The main control module is connected to the driver module via a network interface; Test data packets are sent to the driver module using a preset test model, and the returned data packets are received. The returned data packets are processed to obtain network quality parameters, which are then compared with preset quality thresholds. If the network quality parameter is greater than the preset quality threshold, the external network communication is determined to be normal. If the quality threshold is less than or equal to the preset quality threshold, the first fault information is recorded and the test ends.

4. The automated testing method for a stepper servo driver according to claim 3, characterized in that, The process involves collecting bus data to the host computer and plotting dynamic waveforms. The board status is then compared and detected based on waveform errors, and second fault information is collected, including: The main control module acquires bus data from the driver module; The bus data is transmitted to the host computer in real time, and dynamic waveforms are plotted and waveform errors are collected. The collected waveform error is compared with a preset error threshold. If the waveform error is not greater than the preset error threshold, the board is considered to be in normal condition. If the error exceeds the preset error threshold, record the second fault information and end the test.

5. The automated testing method for a stepper servo driver according to claim 1, characterized in that, The process involves cyclically reading data from a preset synchronization register, performing synchronization status checks based on the number of timeouts in the periodic information data, collecting fifth fault information, and performing performance checks on the motor based on the read-back motor data, collecting sixth fault information, including: The host computer continuously reads the preset synchronization register data to obtain the period information data of the driver module, compares it with the second set value, and counts the number of timeouts of the period information data. The timeout count is compared with a preset threshold. If the number of timeouts is less than or equal to the preset threshold number, the driver module is determined to be synchronizing normally. If the number of timeouts exceeds the preset threshold, the driver module is determined to have lost steps, the test fails, and the fifth fault information is recorded. The motor actuator module is controlled to rotate and read back the motor data. The motor data is compared with the third set value to obtain the deviation value. The deviation value is compared with a preset deviation threshold. If the deviation value is not greater than the preset deviation threshold, the motor execution module is determined to be functioning normally. If the deviation exceeds the preset threshold, the test is deemed a failure and the sixth fault information is recorded.

6. The automated testing method for a stepper servo driver according to claim 5, characterized in that, The process of binding and storing the collected test data with assigned numbers in a database, and retrieving test reports for quality analysis and product optimization includes: Collect test data, including information on the first through sixth faults; Test data is bound to a number and stored in the database to generate a test report; Query and export test reports using the interactive module; Based on the test report, quality analysis and product optimization were performed on the servo drive.

7. A system for an automated testing method of a stepper servo driver as described in claim 1, characterized in that, include: Interactive module: Using a PC or embedded screen, it provides a graphical interface to realize automatic testing, test data display and information recording, and product numbering; Main control module: It adopts an industrial computer or PLC, which has data processing and control capabilities, and is used for the control and scheduling of the test process; Driver module: Generates stepping pulse signals and direction signals to control motor operation and provides board-level self-test services, including board-level voltage and current self-test, internal communication port self-test, and IO interface self-test; Motor actuator module: supports pulse control and encoder feedback; Printer module: Prints labels to calibrate products.

8. An automated testing system for a stepper servo driver, characterized in that, The system also includes: a memory and a processor, wherein the memory includes a program for an automated testing method of a stepper servo driver, and when the program for the automated testing method of a stepper servo driver is executed by the processor, it performs the following steps: Automatically generate unique numbers and bind them to test records, display the binding numbers in real time and print labels to identify the servo drive under test; By sending test data packets through a preset test model and processing them to obtain network quality parameters, external network communication is detected and first fault information is collected. Collect bus data to the host computer and draw dynamic waveforms. Compare and detect the status of the board based on the waveform error, and collect second fault information. Connect the input and output ports of the driver module, and perform automatic polling and internal communication detection on the port group respectively to collect third and fourth fault information; The system continuously reads data from the preset synchronization register, performs synchronization status detection based on the number of timeouts in the periodic information data, collects the fifth fault information, and performs performance detection on the motor based on the readback motor data, and collects the sixth fault information. The collected test data is bound with a number and stored in the database. Test reports can be retrieved for quality analysis and product optimization. The process involves connecting the input and output ports of the driver module, performing automatic polling and internal communication detection on the port group, and collecting third and fourth fault information, including: Connect the input and output ports of the driver module; The first set value is sent to each output point in sequence, and the collected value of the corresponding input point is collected. Compare the first set value with the collected value. If they match, the corresponding IO point test is deemed to have passed. If there is a discrepancy, the corresponding IO point test is deemed to have failed, and the third fault information is recorded. Send read commands to the driver module via the internal communication interface; Obtain specific data and corresponding interval time, and compare the interval time with a preset interval time threshold; If the specific data is read within the preset time interval threshold, the internal communication is determined to be normal. If the read fails, an internal communication error is detected and the fourth fault information is recorded.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes an automated testing method program for a stepper servo driver, which, when executed by a processor, implements the steps of an automated testing method for a stepper servo driver as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Stepping driver test method, stepping driver test system and storage medium

    CN112684277A

  • Servo driver complete machine test system and method and upper computer

    CN118259618A