Automatic testing method and system for stepping servo driver, and medium
Through full-process automated dynamic analysis technology and centralized data management, the problems of low efficiency and poor accuracy in step servo drive testing are solved, efficient automated testing and data management are achieved, and quality analysis and product optimization are supported.
Patent Information
- Application Number
- CN202511241133.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-02
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-09-02
AI Technical Summary
The existing testing of stepper servo drives relies on manual operation or semi-automation, which has low efficiency, poor accuracy, cumbersome testing steps, and inconvenient data management, making it difficult to meet the needs of industrial mass production.
Adopting full-process automated dynamic analysis technology, it automatically generates unique numbers and binds records to conduct IO self-closed-loop testing and centralized data management, including network quality detection, bus data collection, port detection, synchronization status detection and motor performance detection, to achieve real-time data transmission and collaborative work.
It improves the test efficiency and accuracy of stepper servo drives, realizes automated testing, simplifies the testing process, improves data management efficiency, and supports quality traceability and product optimization.
Smart Images

Figure CN120742008A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated testing technology, and in particular to an automated testing method, system, and medium for a stepper servo drive. Background Art
[0002] Currently, testing of stepper servo drives primarily relies on manual operation or semi-automated testing equipment. However, this existing technology suffers from numerous drawbacks. Test efficiency is low, and manual operation is time-consuming, failing to meet the demands of industrial mass production. Test results are inaccurate, relying on empirical data analysis, which can lead to varying judgments among different personnel, and fatigue can easily lead to missed detections. Testing procedures are cumbersome, and testing different functional items often requires replacing test equipment (multimeters, oscilloscopes, etc.) or reconfiguring the system, resulting in limited flexibility and significant time and cost associated with setting up the environment and locating test points. Data management is also inconvenient, with test data stored in a decentralized manner and lacking unified analysis and management tools. This makes systematic analysis difficult, hindering quality traceability and product optimization.
[0003] In response to the above problems, effective technical solutions are urgently needed. Summary of the Invention
[0004] The purpose of this application is to provide an automated testing method, system and medium for a stepper servo drive, which realizes data transmission and collaborative work through full-process automated dynamic analysis technology, IO self-closed-loop testing and centralized data management, improves the testing efficiency and accuracy of the servo drive, and realizes automated testing.
[0005] The present application also provides an automated testing method for a stepper servo drive, comprising the following steps: Automatically generate a unique number and bind it to the test record, display the binding number in real time and print a label to identify the servo drive under test; Sending a test data packet through a preset test model and processing it to obtain network quality parameters, detecting external network communications, and collecting first fault information; Collect bus data to the host computer and draw dynamic waveforms, compare and detect the board status based on waveform errors, and collect secondary fault information; 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; cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information according to the timeout number of the cycle information data, performing performance detection on the motor according to the read-back motor data and collecting sixth fault information; The collected test data is bound to a number and stored in the database, and the test report is queried for quality analysis and product optimization.
[0006] Optionally, in the automated testing method for a stepper servo drive described in the present application, automatically generating a unique number and binding the test record, displaying the binding number in real time and printing a label to identify the servo drive under test includes: 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 number; The printer module prints a label with a number to identify the servo drive under test.
[0007] Optionally, in the automated testing method for a step servo drive described in the present application, the steps of sending a test data packet through a preset test model and processing to obtain a network quality parameter, detecting external network communication, and collecting first fault information include: The main control module is connected to the driver module via a network interface; Send test data packets to the driver module through a preset test model and receive returned data packets; Processing the returned data packets to obtain network quality parameters, and comparing the parameters with preset quality thresholds; If the network quality parameter is greater than a preset quality threshold, it is determined that the external network communication is normal; If it is less than or equal to the preset quality threshold, the first fault information is recorded and the test ends.
[0008] Optionally, in the automated testing method for a stepper servo drive described in the present application, the steps of collecting bus data to a host computer and drawing a dynamic waveform, performing comparative detection on a board state based on a waveform error, and collecting second fault information include: The main control module collects the bus data of the driver module; The bus data is transmitted to the host computer in real time, and a dynamic waveform is drawn and waveform errors are collected; Compare the collected waveform error with the preset error threshold; If the waveform error is not greater than the preset error threshold, the board is judged to be in normal condition; If it is greater than the preset error threshold, the second fault information is recorded and the test ends.
[0009] Optionally, in the automated testing method for a step servo driver described in the present application, the step of docking the input and output ports of the driver module, performing automatic polling detection and internal communication detection on the port groups, and collecting the third fault information and the fourth fault information includes: Connect the input and output ports of the driver module; Sending the first set value to each output point in turn and collecting the collected value of the corresponding input point; Compare the first set value with the collected value, and if they are consistent, determine that the corresponding IO point test has passed; If they are inconsistent, the corresponding IO point test is determined to have failed, and the third fault information is recorded; Sending a read instruction to the driver module through the internal communication interface; Obtain specific data and corresponding interval time, and compare the interval time with the preset interval time threshold; If the specific data is read within the preset interval time threshold, it is determined that the internal communication is normal; If the reading fails, it is determined that the internal communication is abnormal and the fourth fault information is recorded.
[0010] Optionally, in the automated testing method for a stepper servo drive described in the present application, the cyclic reading of preset synchronization register data, performing synchronization status detection and collecting fifth fault information based on the timeout number of periodic information data, and performing performance detection on the motor based on the readback motor data and collecting sixth fault information include: The host computer cyclically reads the preset synchronization register data, obtains the cycle information data of the driver module, compares it with the second set value, and counts the timeout times of the cycle information data; Comparing the timeout count with a preset time threshold; If the timeout number is less than or equal to the preset number threshold, it is determined that the driver module synchronization is normal; If the timeout number is greater than the preset number threshold, it is determined that the driver module has lost steps, the test fails and fifth fault information is recorded; Controlling the motor execution module to rotate and reading back the motor data, comparing the motor data with the third set value to obtain a deviation value; Comparing the deviation value with a preset deviation threshold, if it is not greater than the preset deviation threshold, determining that the performance of the motor execution module is normal; If it is greater than the preset deviation threshold, the test is determined to have failed and the sixth fault information is recorded.
[0011] Optionally, in the automated testing method for a step servo drive described in the present application, the steps of binding the collected test data with a serial number and storing it in a database, and querying and obtaining a test report for quality analysis and product optimization include: Collect test data, including the first to sixth fault information; Store the test data binding number in the database and generate a test report; Query and export test reports through interactive modules; Conduct quality analysis and product optimization of servo drives based on test reports.
[0012] In a second aspect, the present application provides an automated testing system for a stepper servo drive, comprising: Interactive module: uses a PC or embedded screen to provide a graphical interface to achieve automatic testing, test data display and information recording, and product numbering; Main control module: adopts industrial computer or PLC, with data processing and control capabilities, used for control and scheduling of test processes; Driver module: Generates step 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 execution module: supports pulse control and encoder feedback; Printer module: print labels and calibrate products.
[0013] Optionally, the automated testing system for a stepper servo drive described in the present application further includes: a memory and a processor, wherein the memory includes a program for an automated testing method for a stepper servo drive, and when the program for the automated testing method for a stepper servo drive is executed by the processor, the following steps are implemented: Sending a test data packet through a preset test model and processing it to obtain network quality parameters, detecting external network communications, and collecting first fault information; Collect bus data to the host computer and draw dynamic waveforms, compare and detect the board status based on waveform errors, and collect secondary fault information; 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; cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information according to the timeout number of the cycle information data, performing performance detection on the motor according to the read-back motor data and collecting sixth fault information; The collected test data is bound to a number and stored in the database, and the test report is queried for quality analysis and product optimization.
[0014] In a third aspect, the present application also provides a computer-readable storage medium, which stores a program for an automated testing method for a stepper servo drive. When the program for an automated testing method for a stepper servo drive is executed by a processor, the steps of the automated testing method for a stepper servo drive as described in any one of the above items are implemented.
[0015] From the above, it can be seen that the present application provides an automated testing method, system and medium for a stepper servo drive, which automatically generates a unique number and binds records, sends data packets, detects external network communications, collects first fault information, collects bus data, detects board status, collects second fault information, docks the drive module ports, and performs automatic polling detection and internal communication detection respectively, collects 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 performance detection on the motor and collect sixth fault information, stores test data, obtains test reports for quality analysis and product optimization, thereby realizing 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.
[0016] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or understood by practicing the embodiments of the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures particularly pointed out in the written description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A flowchart of an automated testing method for a stepper servo drive provided in an embodiment of the present application; Figure 2 A flowchart of system initialization of an automated testing method for a step servo drive provided in an embodiment of the present application; Figure 3 A flowchart of external communication detection of an automated testing method for a step servo drive provided in an embodiment of the present application; Figure 4 A high-level flow chart of an automated testing method for a stepper servo drive provided in an embodiment of the present application; Figure 5 A system diagram of an automated testing system for a stepper servo drive provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work fall within the scope of protection of the present application.
[0020] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and should not be understood as indicating or implying relative importance.
[0021] Please refer to Figure 1 , Figure 1 This is a flow chart of an automated testing method for a stepper servo driver in some embodiments of the present application. This automated testing method for a stepper servo driver is used in a terminal device, such as a computer, a mobile phone terminal, etc. This automated testing method for a stepper servo driver includes the following steps: S11. Automatically generate a unique number and bind it to the test record, display the binding number in real time and print a label to identify the servo drive under test; S12. Send a test data packet through a preset test model and process it to obtain network quality parameters, detect external network communications, and collect first fault information; S13, collecting bus data to the host computer and drawing a dynamic waveform, performing a comparative test on the board status based on the waveform error, and collecting the second fault information; S14, connecting the input and output ports of the driver module, and performing automatic polling detection and internal communication detection on the port group respectively to collect third fault information and fourth fault information; S15, cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information based on the timeout number of the cycle information data, performing performance detection on the motor based on the read-back motor data and collecting sixth fault information; S16. Bind the collected test data to a serial number and store it in a database. Query and obtain the test report for quality analysis and product optimization.
[0022] Among them, the system automatically generates a unique number for the servo drive and binds it to the test record. The interactive module displays the number in real time, sends a test data packet 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 a dynamic waveform. The board status is detected and the second fault information is collected and recorded based on the waveform error. The input / output port of the drive module is connected, and automatic polling detection and internal communication detection are performed to collect the third and fourth fault information. The preset synchronization register data is read cyclically, and the synchronization status is detected according to the timeout number of the cycle information data and the fifth fault information is collected. The motor performance is tested based on the readback motor data and the sixth fault information is collected. Finally, the test data is bound to the number and stored in the database. The servo drive is quality analyzed and product optimized through the exported test report. Through full-process automated dynamic analysis technology, IO self-closed-loop testing and centralized data management, data transmission and collaborative work are realized, the testing efficiency and accuracy of the servo drive are improved, and automated testing is realized.
[0023] Please refer to Figure 2 , Figure 2 This is a flowchart of system initialization for an automated test method for a stepper servo drive in some embodiments of the present application. According to an embodiment of the present invention, automatically generating a unique number and binding it to a test record, displaying the bound number in real time, and printing a label to identify the servo drive under test includes: S21. The main control module automatically assigns a unique number to the servo drive under test, binds the number to the test record information, and stores it in the database; S22. The interactive module displays a graphical interface, prompting the user to bind the number; S23. The printer module prints a numbered label to identify the servo driver under test.
[0024] Among them, first, the test system is powered on, and a unique number is automatically assigned to the servo drive under test through the main control module such as an industrial computer or PLC. The number is bound to the test record information and stored in the database for subsequent quality inspection. The interactive module such as a PC or an embedded screen displays a graphical interface, prompting the user to bind the number and drive the digital tube display. The printer module prints a label with a number to identify the servo drive under test.
[0025] Please refer to Figure 3 , Figure 3 This is a flow chart of external communication detection for an automated testing method of a stepper servo drive in some embodiments of the present application. According to an embodiment of the present invention, the steps of sending a test data packet using a preset test model and processing it to obtain network quality parameters, detecting external network communication, and collecting first fault information include: S31, the main control module is connected to the driver module through the network interface; S32, sending a test data packet to the driver module through a preset test model, and receiving a returned data packet; S33, processing the returned data packet to obtain a network quality parameter, and comparing the parameter with a preset quality threshold; S34. If the network quality parameter is greater than a preset quality threshold, it is determined that the external network communication is normal; S35: If the quality is less than or equal to the preset threshold, record the first fault information and end the test.
[0026] 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, receives the returned data packet, performs statistical processing on the returned data packet, obtains network quality parameters, including packet loss rate, bandwidth load and network jitter parameters, and compares them with the preset quality threshold. For example, in the embodiment of this scheme, the packet loss rate threshold is set to be less than 0.07%, and the bandwidth load threshold is ≥80%. If all network quality parameters are greater than the corresponding thresholds of the preset quality thresholds, they are qualified, and the external network communication is judged to be normal. On the contrary, if not all are greater than the corresponding thresholds of the preset quality thresholds, they are unqualified, and the external network communication is abnormal. The first fault information is recorded and the test ends.
[0027] According to an embodiment of the present invention, the process of collecting bus data to a host computer and drawing a dynamic waveform, performing comparative detection on the board status based on the waveform error, and collecting the second fault information includes: The main control module collects the bus data of the driver module; The bus data is transmitted to the host computer in real time, and a dynamic waveform is drawn and waveform errors are collected; Compare the collected waveform error with the preset error threshold; If the waveform error is not greater than the preset error threshold, the board is judged to be in normal condition; If it is greater than the preset error threshold, the second fault information is recorded and the test ends.
[0028] 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 host 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 scheme, the tolerance threshold of the voltage waveform is set to ±5%. If the waveform error is not greater than the preset error threshold, the board state is judged to be normal. Otherwise, the board is judged to be abnormal, the second fault information is recorded and the test ends.
[0029] According to an embodiment of the present invention, the step of docking the input and output ports of the driver module, performing automatic polling detection and internal communication detection on the port group, and collecting the third fault information and the fourth fault information includes: Connect the input and output ports of the driver module; Sending the first set value to each output point in turn and collecting the collected value of the corresponding input point; Compare the first set value with the collected value, and if they are consistent, determine that the corresponding IO point test has passed; If they are inconsistent, the corresponding IO point test is determined to have failed, and the third fault information is recorded; Sending a read instruction to the driver module through the internal communication interface; Obtain specific data and corresponding interval time, and compare the interval time with the preset interval time threshold; If the specific data is read within the preset interval time threshold, it is determined that the internal communication is normal; If the reading fails, it is determined that the internal communication is abnormal and the fourth fault information is recorded.
[0030] Among them, the input and output ports of the driver module are connected, and the first set value is sent to each output point in turn through a preset test model such as a host computer test model, and the collected value of the corresponding input point is collected. The main control module compares the first set value with the collected value. If they are consistent, it is determined that the IO point test has passed. If they are inconsistent, it is determined that the IO point test has failed and the third fault information is recorded. The main control module sends a read instruction to the driver module through the internal communication interface to obtain specific data such as product ID, version, etc. and the corresponding interval time, and compares it with the preset interval time threshold. If specific data is read within the preset interval time threshold, it is determined that the internal communication is normal. If the reading fails, it is determined that the internal communication is abnormal and the fourth fault information is recorded.
[0031] According to an embodiment of the present invention, the cyclic reading of preset synchronization register data, performing synchronization status detection and collecting fifth fault information according to the timeout number of cycle information data, performing performance detection on the motor according to the read-back motor data and collecting sixth fault information, includes: The host computer cyclically reads the preset synchronization register data, obtains the cycle information data of the driver module, compares it with the second set value, and counts the timeout times of the cycle information data; Comparing the timeout count with a preset time threshold; If the timeout number is less than or equal to the preset number threshold, it is determined that the driver module synchronization is normal; If the timeout number is greater than the preset number threshold, it is determined that the driver module has lost steps, the test fails and fifth fault information is recorded; Controlling the motor execution module to rotate and reading back the motor data, comparing the motor data with the third set value to obtain a deviation value; Comparing the deviation value with a preset deviation threshold, if it is not greater than the preset deviation threshold, determining that the performance of the motor execution module is normal; If it is greater than the preset deviation threshold, the test is determined to have failed and the sixth fault information is recorded.
[0032] Among them, the host computer cyclically reads the preset synchronization register such as PLC data, obtains the cycle information data of the driver module, and compares it with the second set value such as the set cycle ≤2ms, and records the number of timeouts within the statistical time range. If the number of timeouts is less than or equal to the preset number threshold, such as 3 timeouts (the number threshold is 4 times), it is determined that the driver module synchronization is normal. If the number of timeouts is greater than the preset number threshold, it is determined that the driver module has lost steps, the test fails and the fifth fault information is recorded. Then, the motor execution module is controlled to rotate through the host computer interface, and the motor data of the motor execution module is read back at the same time, including speed, position, and torque information. The main control module compares the motor data fed back by the encoder, such as the speed, with the set speed of 2000rpm corresponding to the third set value, obtains the deviation value of the speed comparison, and compares it with the preset deviation threshold. If it is not greater than the deviation threshold, such as the deviation threshold is set to 3%, it is determined that the performance of the motor execution module is normal. If it is greater than the deviation threshold, the test is determined to have failed and the sixth fault information is recorded.
[0033] According to an embodiment of the present invention, the steps of binding the collected test data to a serial number and storing it in a database, and querying and obtaining a test report for quality analysis and product optimization include: Collect test data, including the first to sixth fault information; Store the test data binding number in the database and generate a test report; Query and export test reports through interactive modules; Conduct quality analysis and product optimization of servo drives based on test reports.
[0034] Among them, the main control module will collect test data, including numbers, test items, test results, and the collected first, second, third, fourth, fifth, and sixth fault information, bind the numbers and store them in the database to generate a test report. The test report can be queried and exported through the interactive module to perform quality analysis and product optimization on the servo drive based on the test report.
[0035] Please refer to Figure 4 , Figure 4 This is a high-level flow chart of an automated testing method for a stepper servo drive in some embodiments of the present application.
[0036] Please refer to Figure 5 , Figure 5 This is a system diagram of an automated testing system for a stepper servo drive in some embodiments of the present application.
[0037] In a second aspect, the present invention further discloses an automated testing system 5 for a stepping servo drive, the system comprising: Interactive module 501: uses a PC or embedded screen to provide a graphical interface to achieve automatic testing, test data display and information recording, and product numbering; Main control module 502: uses an industrial computer or PLC, has data processing and control capabilities, and is used for controlling and scheduling the test process; Driver module 503: Generates step pulse signals and direction signals to control the 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 execution module 504: supports pulse control and encoder feedback; Printer module 505: prints labels and calibrates products.
[0038] According to an embodiment of the present invention, the automated testing system for a stepper servo drive further includes: a memory and a processor, wherein the memory includes an automated testing method program for the stepper servo drive, and when the automated testing method program for the stepper servo drive is executed by the processor, the following steps are implemented: Automatically generate a unique number and bind it to the test record, display the binding number in real time and print a label to identify the servo drive under test; Sending a test data packet through a preset test model and processing it to obtain network quality parameters, detecting external network communications, and collecting first fault information; Collect bus data to the host computer and draw dynamic waveforms, compare and detect the board status based on waveform errors, and collect secondary fault information; 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; cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information according to the timeout number of the cycle information data, performing performance detection on the motor according to the read-back motor data and collecting sixth fault information; The collected test data is bound to a number and stored in the database, and the test report is queried for quality analysis and product optimization.
[0039] Among them, the system automatically generates a unique number for the servo drive and binds it to the test record. The interactive module displays the number in real time, sends a test data packet 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 a dynamic waveform. The board status is detected and the second fault information is collected and recorded based on the waveform error. The input / output port of the drive module is connected, and automatic polling detection and internal communication detection are performed to collect the third and fourth fault information. The preset synchronization register data is read cyclically, and the synchronization status is detected according to the timeout number of the cycle information data and the fifth fault information is collected. The motor performance is tested based on the readback motor data and the sixth fault information is collected. Finally, the test data is bound to the number and stored in the database. The servo drive is quality analyzed and product optimized through the exported test report. Through full-process automated dynamic analysis technology, IO self-closed-loop testing and centralized data management, data transmission and collaborative work are realized, the testing efficiency and accuracy of the servo drive are improved, and automated testing is realized.
[0040] According to an embodiment of the present invention, the method of automatically generating a unique number and binding the test record, displaying the binding number in real time, and printing a label to identify the servo drive under test includes: 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 number; The printer module prints a label with a number to identify the servo drive under test.
[0041] Among them, first, the test system is powered on, and a unique number is automatically assigned to the servo drive under test through the main control module such as an industrial computer or PLC. The number is bound to the test record information and stored in the database for subsequent quality inspection. The interactive module such as a PC or an embedded screen displays a graphical interface, prompting the user to bind the number and drive the digital tube display. The printer module prints a label with a number to identify the servo drive under test.
[0042] According to an embodiment of the present invention, sending a test data packet through a preset test model and processing to obtain a network quality parameter, detecting external network communication, and collecting first fault information includes: The main control module is connected to the driver module via a network interface; Send test data packets to the driver module through a preset test model and receive returned data packets; Processing the returned data packets to obtain network quality parameters, and comparing the parameters with preset quality thresholds; If the network quality parameter is greater than a preset quality threshold, it is determined that the external network communication is normal; If it is less than or equal to the preset quality threshold, the first fault information is recorded and the test ends.
[0043] 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, receives the returned data packet, performs statistical processing on the returned data packet, obtains network quality parameters, including packet loss rate, bandwidth load and network jitter parameters, and compares them with the preset quality threshold. For example, in the embodiment of this scheme, the packet loss rate threshold is set to be less than 0.07%, and the bandwidth load threshold is ≥80%. If all network quality parameters are greater than the corresponding thresholds of the preset quality thresholds, they are qualified, and the external network communication is judged to be normal. On the contrary, if not all are greater than the corresponding thresholds of the preset quality thresholds, they are unqualified, and the external network communication is abnormal. The first fault information is recorded and the test ends.
[0044] According to an embodiment of the present invention, the process of collecting bus data to a host computer and drawing a dynamic waveform, performing comparative detection on the board status based on the waveform error, and collecting the second fault information includes: The main control module collects the bus data of the driver module; The bus data is transmitted to the host computer in real time, and a dynamic waveform is drawn and waveform errors are collected; Compare the collected waveform error with the preset error threshold; If the waveform error is not greater than the preset error threshold, the board is judged to be in normal condition; If it is greater than the preset error threshold, the second fault information is recorded and the test ends.
[0045] 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 host 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 scheme, the tolerance threshold of the voltage waveform is set to ±5%. If the waveform error is not greater than the preset error threshold, the board state is judged to be normal. Otherwise, the board is judged to be abnormal, the second fault information is recorded and the test ends.
[0046] According to an embodiment of the present invention, the step of docking the input and output ports of the driver module, performing automatic polling detection and internal communication detection on the port group, and collecting the third fault information and the fourth fault information includes: Connect the input and output ports of the driver module; Sending the first set value to each output point in turn and collecting the collected value of the corresponding input point; Compare the first set value with the collected value, and if they are consistent, determine that the corresponding IO point test has passed; If they are inconsistent, the corresponding IO point test is determined to have failed, and the third fault information is recorded; Sending a read instruction to the driver module through the internal communication interface; Obtain specific data and corresponding interval time, and compare the interval time with the preset interval time threshold; If the specific data is read within the preset interval time threshold, it is determined that the internal communication is normal; If the reading fails, it is determined that the internal communication is abnormal and the fourth fault information is recorded.
[0047] Among them, the input and output ports of the driver module are connected, and the first set value is sent to each output point in turn through a preset test model such as a host computer test model, and the collected value of the corresponding input point is collected. The main control module compares the first set value with the collected value. If they are consistent, it is determined that the IO point test has passed. If they are inconsistent, it is determined that the IO point test has failed and the third fault information is recorded. The main control module sends a read instruction to the driver module through the internal communication interface to obtain specific data such as product ID, version, etc. and the corresponding interval time, and compares it with the preset interval time threshold. If specific data is read within the preset interval time threshold, it is determined that the internal communication is normal. If the reading fails, it is determined that the internal communication is abnormal and the fourth fault information is recorded.
[0048] According to an embodiment of the present invention, the cyclic reading of preset synchronization register data, performing synchronization status detection and collecting fifth fault information according to the timeout number of cycle information data, performing performance detection on the motor according to the read-back motor data and collecting sixth fault information, includes: The host computer cyclically reads the preset synchronization register data, obtains the cycle information data of the driver module, compares it with the second set value, and counts the timeout times of the cycle information data; Comparing the timeout count with a preset time threshold; If the timeout number is less than or equal to the preset number threshold, it is determined that the driver module synchronization is normal; If the timeout number is greater than the preset number threshold, it is determined that the driver module has lost steps, the test fails and fifth fault information is recorded; Controlling the motor execution module to rotate and reading back the motor data, comparing the motor data with the third set value to obtain a deviation value; Comparing the deviation value with a preset deviation threshold, if it is not greater than the preset deviation threshold, determining that the performance of the motor execution module is normal; If it is greater than the preset deviation threshold, the test is determined to have failed and the sixth fault information is recorded.
[0049] Among them, the host computer cyclically reads the preset synchronization register such as PLC data, obtains the cycle information data of the driver module, and compares it with the second set value such as the set cycle ≤2ms, and records the number of timeouts within the statistical time range. If the number of timeouts is less than or equal to the preset number threshold, such as 3 timeouts (the number threshold is 4 times), it is determined that the driver module synchronization is normal. If the number of timeouts is greater than the preset number threshold, it is determined that the driver module has lost steps, the test fails and the fifth fault information is recorded. Then, the motor execution module is controlled to rotate through the host computer interface, and the motor data of the motor execution module is read back at the same time, including speed, position, and torque information. The main control module compares the motor data fed back by the encoder, such as the speed, with the set speed of 2000rpm corresponding to the third set value, obtains the deviation value of the speed comparison, and compares it with the preset deviation threshold. If it is not greater than the deviation threshold, such as the deviation threshold is set to 3%, it is determined that the performance of the motor execution module is normal. If it is greater than the deviation threshold, the test is determined to have failed and the sixth fault information is recorded.
[0050] According to an embodiment of the present invention, the steps of binding the collected test data to a serial number and storing it in a database, and querying and obtaining a test report for quality analysis and product optimization include: Collect test data, including the first to sixth fault information; Store the test data binding number in the database and generate a test report; Query and export test reports through interactive modules; Conduct quality analysis and product optimization of servo drives based on test reports.
[0051] Among them, the main control module will collect test data, including numbers, test items, test results, and the collected first, second, third, fourth, fifth, and sixth fault information, bind the numbers and store them in the database to generate a test report. The test report can be queried and exported through the interactive module to perform quality analysis and product optimization on the servo drive based on the test report.
[0052] A third aspect of the present invention provides a readable storage medium, which stores a program for an automated testing method for a stepper servo drive. When the program for an automated testing method for a stepper servo drive is executed by a processor, the steps of the automated testing method for a stepper servo drive as described in any one of the above items are implemented.
[0053] The present invention discloses an automated testing method, system and medium for a stepper servo driver. The method automatically generates a unique number and binds records, sends data packets, detects external network communications, collects first fault information, collects bus data, detects board status, collects second fault information, docks driver module ports, performs automatic polling detection and internal communication detection, collects 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 performance detection on the motor and collects sixth fault information, stores test data, obtains test reports for quality analysis and product optimization, thereby realizing 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 the servo driver, and realizing automated testing.
[0054] 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 schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0055] The units described above as separate components may or may not be physically separated, and the components displayed 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 according to actual needs to achieve the purpose of the scheme of this embodiment.
[0056] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0057] Those skilled in the art will appreciate that all or part of the steps of the above-mentioned method embodiments may be implemented by hardware related to program instructions, and the aforementioned program may be stored in a readable storage medium. When the program is executed, the program executes the steps of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.
[0058] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as standalone products, they can also be stored on a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This software product, stored on a storage medium, includes instructions for enabling a computer device (such as a personal computer, server, or network device) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage media include various media capable of storing program code, such as removable storage devices, ROM, RAM, magnetic disks, or optical disks.
Claims
1. An automated testing method for a stepping servo drive, characterized in that: The following steps are involved: Automatically generate a unique number and bind it to the test record, display the binding number in real time and print a label to identify the servo drive under test; Sending a test data packet through a preset test model and processing it to obtain network quality parameters, detecting external network communications, and collecting first fault information; Collect bus data to the host computer and draw dynamic waveforms, compare and detect the board status based on waveform errors, and collect secondary fault information; 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; cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information according to the timeout number of the cycle information data, performing performance detection on the motor according to the read-back motor data and collecting sixth fault information; The collected test data is bound to a number and stored in the database, and the test report is queried for quality analysis and product optimization.
2. The automated testing method for a stepping servo driver according to claim 1, wherein: The method of automatically generating a unique number and binding the test record, displaying the binding number in real time and printing a label to identify the servo drive under test includes: 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 number; The printer module prints a label with a number to identify the servo drive under test.
3. The automated testing method for a stepping servo driver according to claim 2, wherein: The sending of the test data packet through the preset test model and processing to obtain the network quality parameter, detecting the external network communication, and collecting the first fault information includes: The main control module is connected to the driver module via a network interface; Send test data packets to the driver module through a preset test model and receive returned data packets; Processing the returned data packets to obtain network quality parameters, and comparing the parameters with preset quality thresholds; If the network quality parameter is greater than a preset quality threshold, it is determined that the external network communication is normal; If it 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 stepping servo driver according to claim 3, wherein: The collecting bus data to the host computer and drawing a dynamic waveform, performing a comparative test on the board state according to the waveform error, and collecting the second fault information includes: The main control module collects the bus data of the driver module; The bus data is transmitted to the host computer in real time, and a dynamic waveform is drawn and waveform errors are collected; Compare the collected waveform error with the preset error threshold; If the waveform error is not greater than the preset error threshold, the board is judged to be in normal condition; If it is greater than the preset error threshold, the second fault information is recorded and the test ends.
5. The automated testing method for a stepping servo driver according to claim 4, wherein: 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 the third fault information and the fourth fault information includes: Connect the input and output ports of the driver module; Sending the first set value to each output point in turn and collecting the collected value of the corresponding input point; Compare the first set value with the collected value, and if they are consistent, determine that the corresponding IO point test has passed; If they are inconsistent, the corresponding IO point test is determined to have failed, and the third fault information is recorded; Sending a read instruction to the driver module through the internal communication interface; Obtain specific data and corresponding interval time, and compare the interval time with the preset interval time threshold; If the specific data is read within the preset interval time threshold, it is determined that the internal communication is normal; If the reading fails, it is determined that the internal communication is abnormal and the fourth fault information is recorded.
6. The automated testing method for a stepping servo driver according to claim 5, wherein: The method of cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information according to the timeout number of cycle information data, and performing performance detection on the motor according to the read-back motor data and collecting sixth fault information includes: The host computer cyclically reads the preset synchronization register data, obtains the cycle information data of the driver module, compares it with the second set value, and counts the timeout times of the cycle information data; Comparing the timeout count with a preset time threshold; If the timeout number is less than or equal to the preset number threshold, it is determined that the driver module synchronization is normal; If the timeout number is greater than the preset number threshold, it is determined that the driver module has lost steps, the test fails and fifth fault information is recorded; Controlling the motor execution module to rotate and reading back the motor data, comparing the motor data with the third set value to obtain a deviation value; Comparing the deviation value with a preset deviation threshold, if it is not greater than the preset deviation threshold, determining that the performance of the motor execution module is normal; If it is greater than the preset deviation threshold, the test is determined to have failed and the sixth fault information is recorded.
7. The automated testing method for a stepping servo driver according to claim 6, wherein: The collected test data is bound to a serial number and stored in a database, and the test report is queried for quality analysis and product optimization, including: Collect test data, including the first to sixth fault information; Store the test data binding number in the database and generate a test report; Query and export test reports through interactive modules; Conduct quality analysis and product optimization of servo drives based on test reports.
8. An automated testing system for a stepping servo drive, characterized in that: include: Interactive module: uses a PC or embedded screen to provide a graphical interface to achieve automatic testing, test data display and information recording, and product numbering; Main control module: adopts industrial computer or PLC, with data processing and control capabilities, used for control and scheduling of test processes; Driver module: Generates step 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 execution module: supports pulse control and encoder feedback; Printer module: print labels and calibrate products.
9. An automated testing system for a stepping servo drive, characterized in that: The system further includes: a memory and a processor, wherein the memory includes a program of an automated testing method for a stepping servo drive, and when the program of the automated testing method for a stepping servo drive is executed by the processor, the following steps are implemented: Sending a test data packet through a preset test model and processing it to obtain network quality parameters, detecting external network communications, and collecting first fault information; Collect bus data to the host computer and draw dynamic waveforms, compare and detect the board status based on waveform errors, and collect secondary fault information; 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; cyclically reading preset synchronization register data, performing synchronization status detection and collecting fifth fault information according to the timeout number of the cycle information data, performing performance detection on the motor according to the read-back motor data and collecting sixth fault information; The collected test data is bound to a number and stored in the database, and the test report is queried for quality analysis and product optimization.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes an automated testing method program for a stepper servo drive. When the automated testing method program for a stepper servo drive is executed by a processor, the steps of the automated testing method for a stepper servo drive as described in any one of claims 1 to 7 are implemented.
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
Testing method, system and equipment of multi-axis integrated servo driver and medium
CN120143791A
Cited By
Circuit board automatic test method and system
CN121578109A