Plc-based multi-driver batch parallel modular integrated test system and method

The PLC-based multi-drive batch parallel modular testing system solves the problems of low testing efficiency and incomplete data in existing equipment, and achieves efficient and unified test data analysis and result consistency, supporting flexible testing and fault analysis of multiple drives.

CN123136265APending Publication Date: 2026-11-20SHENZHEN JUST MOTION CONTROL ELECTROMECHANICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611639226.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing driver testing equipment is insufficient to meet the efficiency requirements of batch testing, resulting in incomplete test data, poor consistency of results, lack of flexibility and unified data analysis, and incomplete anomaly records.

Method used

A PLC-based multi-driver batch parallel modular integrated testing system is adopted. Through multiple electrically isolated independent test channels, different test items and acquisition frequencies are configured. Data is synchronized using a unified clock source, communication status and abnormal logs are monitored, and data is classified, summarized and compared by PC data analysis and storage terminal.

Benefits of technology

It improves batch testing efficiency and result consistency, achieves the integrity and comparability of test data, supports flexible test task configuration, and simplifies fault analysis and quality control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123136265A_ABST
    Figure CN123136265A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of industrial driver automation testing, and discloses a multi-driver batch parallel modular comprehensive testing system and method based on PLC. The system comprises a PLC master module, multiple electrically isolated independent testing channels and a PC data analysis and storage terminal. The PC data analysis and storage terminal is respectively configured with test items and acquisition frequencies of each channel; the PLC master module creates independent testing tasks and calls corresponding function testing subprograms, so that at least two channels execute different test items within an overlapping period, synchronously acquires instruction data and feedback data based on a unified clock source and stores the data according to channels, monitors the communication and driver running state and records abnormal logs; and the PC data analysis and storage terminal classifies and summarizes data according to test items, determines test results in combination with preset determination thresholds and abnormal logs, and stores and outputs the test results. The application improves the batch testing efficiency of the driver and the completeness of the test data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial drive automation testing technology, and in particular to a PLC-based multi-drive batch parallel modular integrated testing system and method. Background Technology

[0002] Servo drives, stepper drives, and other industrial motion drive products are widely used in industrial automation motion control systems. Their position control accuracy, speed stability, torque output reliability, homing function consistency, and operational stability under complex operating conditions directly affect the overall performance of automated equipment. During the R&D performance verification, batch quality inspection, and reliability testing of drives, it is necessary to conduct performance tests on multiple drives under different test items, operating conditions, and test durations.

[0003] Existing driver testing equipment is typically designed for single test items. Different test items need to be completed separately on different devices or at different workstations, resulting in a fragmented testing process with significant equipment switching and manual operation, which fails to meet the efficiency requirements of mass production testing. While some multi-channel testing equipment can connect multiple drivers simultaneously, each channel primarily performs the same type of test tasks, making it difficult to execute different test items according to the testing needs of each channel. This limits the flexibility and parallel testing capabilities of the testing equipment. Regarding data acquisition, some testing equipment mainly acquires feedback data such as the actual position and speed of the driver, lacking synchronous acquisition of corresponding command data. This makes it difficult to establish an accurate time correspondence between command data and feedback data, affecting the calculation of tracking error and the evaluation of dynamic response performance. Furthermore, anomalies such as communication drops, data packet loss, driver overload, and driver alarms that occur during testing are not linked to the corresponding operational data, resulting in incomplete test data and making it difficult to analyze the operational situation at the time of the anomaly.

[0004] Regarding the adaptation of test duration and data acquisition frequency, some devices are only suitable for short-term performance verification or single long-term data acquisition, with a fixed acquisition frequency that is difficult to adjust flexibly according to different test items. Short-term dynamic performance testing and long-term aging stability testing have different requirements for data acquisition frequency and continuous running time, and it is difficult to meet the needs of both types of testing using a single acquisition method. In terms of test data analysis, the data generated by multi-channel testing lacks unified classification, summarization, and cross-comparison. Performance statistics and test result judgments rely heavily on manual work, which can easily lead to differences due to different statistical standards and judgment methods, affecting the comparability and consistency of batch test results. In addition, raw test data, anomaly records, and test results are stored in a scattered manner, lacking unified tabulation, persistent storage, and traceability archiving, making it difficult to form standardized and traceable test record reports, which is not conducive to product quality control and fault analysis. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a batch parallel modular integrated testing system and method based on PLC for multiple drivers, in order to solve the problems of low testing efficiency, incomplete test data and poor consistency of test results in the prior art of batch integrated testing of multiple drivers.

[0006] In a first aspect, embodiments of the present invention provide a PLC-based multi-driver batch parallel modular integrated testing system, the system comprising: a PLC main control module, multiple electrically isolated independent test channels, and a PC data analysis and storage terminal, wherein each of the independent test channels is used to connect to one driver under test; The PC data analysis and storage terminal is used to configure the test parameters of each of the independent test channels and send the test parameters to the PLC main control module. The test parameters include test items and acquisition frequency. The PLC main control module stores functional test subroutines corresponding to different test items, which are used to create independent test tasks for each of the independent test channels according to the test parameters, call the corresponding functional test subroutines, and issue test instructions through each of the independent test channels so that at least two of the independent test channels execute different test items in overlapping test periods. The PLC main control module is also used to synchronously acquire the instruction data and feedback data of each independent test channel based on a unified clock source and according to the acquisition frequency of each independent test channel; associate the instruction data and feedback data with the channel number, timestamp, and test item to obtain test data; and store the test data in a data buffer area divided by channel; monitor the communication status of each independent test channel and the operating status of the corresponding driver under test; and record anomaly logs associated with the channel number, occurrence time, and corresponding instruction data and feedback data. The PC data analysis and storage terminal is also used to receive test data and the abnormal log in the data cache, determine the following error based on the instruction data and feedback data in the test data, summarize the test data according to the test items, perform horizontal comparison analysis on the multi-channel test data of the same test item, determine the test results of each independent test channel in combination with the preset judgment threshold and the abnormal log, and store the test data, abnormal log and test results.

[0007] Secondly, embodiments of the present invention provide a PLC-based multi-driver batch parallel modular integrated testing method, the method comprising: Multiple drivers under test are connected to multiple electrically isolated independent test channels connected to the PLC main control module to complete communication initialization and system clock synchronization; The test parameters for each independent test channel are configured through the PC data analysis and storage terminal and then sent to the PLC main control module. The test parameters include test items and acquisition frequency. The PLC main control module creates independent test tasks for each of the independent test channels based on the test parameters, calls the corresponding functional test subroutines and issues test instructions, so that at least two of the independent test channels execute different test items in overlapping test periods. The PLC main control module, based on a unified clock source, synchronously acquires corresponding instruction data and feedback data according to the acquisition frequency of each independent test channel, associates the channel number, timestamp, and test item, obtains test data, and stores it in a data buffer area divided by channel; monitors the communication status of each independent test channel and the operating status of the corresponding driver under test, and records anomaly logs associated with the channel number, occurrence time, and corresponding instruction data and feedback data; The PLC main control module uploads the test data and the abnormal log in the data buffer to the PC data analysis and storage terminal; the PC data analysis and storage terminal determines the following error based on the instruction data and feedback data in the test data, and summarizes the test data according to the test items. The PC data analysis and storage terminal performs horizontal comparison analysis on the multi-channel test data of the same test project, and determines the test results of each independent test channel by combining the preset judgment threshold and the abnormal log. The test data, exception logs, and test results are stored on the PC data analysis and storage terminal, and a test record report is generated.

[0008] In summary, the beneficial effects of the present invention are as follows: The present invention provides a PLC-based multi-driver batch parallel modular integrated testing system and method. This system and method utilizes multiple electrically isolated independent test channels connected to the driver under test, reducing electrical interference between channels. By configuring test parameters for each channel, corresponding independent test tasks are created and corresponding functional test subroutines are called, enabling at least two channels to execute different test items within overlapping test periods, thus improving batch testing efficiency and the flexibility of test task configuration. Based on a unified clock source, corresponding instruction data and feedback data are synchronously acquired according to the acquisition frequency of each channel. Channel numbers, timestamps, and test items are associated and cached by channel, ensuring a clear data correspondence for error calculation and facilitating the differentiation and tracing of test processes across different channels. Simultaneously, communication status and driver operating status are monitored, and anomaly logs associated with the time of anomaly occurrence and corresponding instruction and feedback data are recorded, improving the completeness of test records and facilitating analysis of the operational situation during anomaly occurrences. By using PC data analysis and storage terminals, the system performs follow-up error calculation, test data classification and summarization, and multi-channel horizontal comparison of the same test item. Combined with preset judgment thresholds and anomaly logs, it determines the test results for each channel, reducing discrepancies caused by manual processing, calculation, and judgment, and improving the comparability and consistency of batch test results. Unified storage of test data, anomaly logs, and test results enables centralized management and traceability of test records, facilitating product quality control and fault analysis. Attached Figure Description

[0009] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.

[0010] Figure 1 This is a schematic diagram of a PLC-based multi-driver batch parallel modular integrated testing system according to an embodiment of the present invention.

[0011] Figure 2 This is a schematic diagram of a multi-channel heterogeneous parallel modular test according to an embodiment of the present invention.

[0012] Figure 3 This is a flowchart illustrating a PLC-based multi-driver batch parallel modular integrated testing method according to an embodiment of the present invention. Detailed Implementation

[0013] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.

[0014] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0015] Example 1 Please see Figure 1 This invention provides a PLC-based multi-driver batch parallel modular integrated testing system, including a PLC main control module 201, multiple electrically isolated independent test channels 301-1 to 301-N, and a PC data analysis and storage terminal 101. N represents the number of independent test channels, each connected to a driver under test (DUT), and the corresponding DUTs are labeled 401-1 to 401-N. The DUTs can be industrial motion drive products such as servo drives and stepper drives, and each channel can connect to the same or different models of DUTs. Depending on the specific test item, the DUT is connected to the corresponding motor or motion actuator to perform tests such as position, speed, torque, and homing.

[0016] In one embodiment, depending on the communication configuration and test requirements, the system may also be configured with an industrial Ethernet switch 202, a communication gateway 203, a high and low temperature test chamber 500, and an electromagnetic compatibility test instrument 600. The industrial Ethernet switch 202 can be used to realize data exchange between the PLC main control module 201, the PC data analysis and storage terminal 101, and devices using industrial Ethernet interfaces. The communication gateway 203 is used for communication protocol conversion to adapt to the drive under test using different communication protocols. The high and low temperature test chamber 500 is used to create low temperature, high temperature, or temperature change cycle conditions, and the electromagnetic compatibility test instrument 600 is used to apply electromagnetic interference to the corresponding drive under test according to test requirements.

[0017] The system adopts an architecture combining PLC main control, multi-channel heterogeneous parallel scheduling, functional test subroutines corresponding to different test items, synchronous acquisition of dual data (instructions and feedback), and PC analysis and horizontal comparison. Batch parallel testing is achieved through multiple electrically isolated independent test channels and corresponding independent test tasks. Modular functional testing is implemented by the PLC main control module 201 calling corresponding functional test subroutines according to the test items; the specific type and number of subroutines are determined based on the configured test items. Data acquisition and anomaly monitoring and recording are implemented by the PLC main control module 201, while data analysis and storage are implemented by the PC data analysis and storage terminal 101. With the above configuration and further settings for long and short time acquisition modes, the system can be functionally divided into seven parts: PLC main control, multi-drive batch parallel testing, full-dimensional modular functional testing, adaptive long and short time data acquisition, anomaly monitoring and recording, environmental and electromagnetic compatibility adaptation, and PC data analysis and storage. Among these, environmental and electromagnetic compatibility adaptation is achieved by the added high and low temperature test chamber 500, electromagnetic compatibility testing instrument 600, and corresponding interfaces. Each functional part is implemented through hardware, software, or a combination of both.

[0018] Figure 1 This diagram illustrates a hardware configuration for the system, whose architecture is divided into a user layer, a control layer, and an execution layer from top to bottom. The user layer includes a PC data analysis and storage terminal 101; the control layer includes a PLC main control module 201, and can be configured with an industrial Ethernet switch 202 and a communication gateway 203 according to communication requirements; the execution layer includes independent test channels 301-1 to 301-N and corresponding connected drivers under test 401-1 to 401-N, and can be further equipped with a high and low temperature test chamber 500 and an electromagnetic compatibility testing instrument 600 depending on the test items. Through this configuration, test parameter configuration, test task execution, operational data acquisition, anomaly monitoring, data analysis, and report output can be completed collaboratively within the same system.

[0019] The PC data analysis and storage terminal 101 can be an industrial computer equipped with test management software and communicate with the PLC main control module 201. It is used to send test parameters for each independent test channel to the PLC main control module 201 and to receive test data and anomaly logs. In one embodiment, this communication connection is implemented via an industrial Ethernet 102, through which the PC data analysis and storage terminal 101 interacts with the PLC main control module 201. The test management software provides a parameter configuration interface for each independent test channel, supports test task configuration and distribution, real-time monitoring and display of test data, test result analysis and judgment, generation and export of test tables and test record reports, as well as database management, maintenance, and historical test record querying. In one embodiment, the PC data analysis and storage terminal 101 has a standard threshold library, supporting user-defined pass / fail thresholds for each test item and enabling traceability and trend analysis of historical test data.

[0020] The PLC main control module 201 adopts an industrial-grade PLC with a time-sharing multi-tasking operating environment. It stores functional test subroutines corresponding to different test items and creates independent test tasks according to the configuration of each independent test channel. The number of independent test channels is preferably 4 to 8, but can be expanded according to the test scale. The test items, acquisition frequency, and test duration of each channel can be configured separately, making the system suitable for batch quality inspection before shipment, R&D performance verification, long-term aging stability testing, high and low temperature environment reliability testing, and electromagnetic compatibility and anti-interference testing.

[0021] From an overall operational perspective, the PC data analysis and storage terminal 101 configures the test parameters for each independent test channel and sends these parameters to the PLC main control module 201. These test parameters include test items and acquisition frequencies. The PLC main control module 201 then creates independent test tasks for each channel, calls the corresponding functional test subroutines, and issues test instructions, ensuring that at least two channels execute different test items during overlapping test periods. Simultaneously, it acquires instruction data and feedback data in pairs according to the acquisition frequencies of each channel, forming test data associated with channel numbers, timestamps, and test items. It also monitors communication status and driver operation status to record anomaly logs. After the test data and anomaly logs are uploaded to the PC data analysis and storage terminal 101, the terminal performs follow-up error calculation (in this embodiment, follow-up error refers to the difference between the instruction value and feedback value corresponding to the same performance parameter at the same acquisition time for the same independent test channel), classification and summarization, horizontal comparison of the same item, threshold determination, and data storage. The structure, function, and interrelationship of each component will be explained first, followed by an explanation of the system configuration and operation process through the specific application of eight channels.

[0022] In one embodiment, the PLC main control module 201 is responsible for task scheduling, test execution, data acquisition, and anomaly recording for multi-channel testing. Its software is organized hierarchically according to task scheduling, functional testing, data acquisition, and communication management, and the functions of each software level are shown in Table 1.

[0023] Table 1 Software Function Division of PLC Main Control Module Software layer Function Task scheduling layer Create, schedule, suspend, resume, and terminate independent test tasks for each channel. Functional test subroutine layer Call the functional test subroutine corresponding to the configured test item; in further configuration, perform position, speed, torque, and multi-mode zero return tests, and can add high and low temperature environment and electromagnetic compatibility tests. Data Acquisition Layer Based on a unified clock source and the acquisition frequency of each channel, pairs of command data and feedback data are obtained, and associated with the channel number, timestamp, and test item. Communications Management It completes data interaction with the PC data analysis and storage terminal 101 and the drive under test; when adding environmental and electromagnetic compatibility testing equipment, it also completes data interaction with the corresponding equipment. In one embodiment, the PLC main control module 201 is provided with a channel configuration table, a data buffer, a task control block, and a task scheduler, the functions of which are shown in Table 2.

[0024] Table 2 Data organization and task management within the PLC main control module Data structures or programs effect Channel Configuration Table Store the test items, acquisition frequency, and further configured test duration, test sequence, acquisition mode, and threshold parameters for each independent test channel. Data cache Storage areas are divided according to independent test channels, storing the test data, exception flags, and exception logs for each channel. Task control block Record the running status of each independent test task, including running, paused, completed, and exceptions, and can also record the initialization and ready states. Task scheduler Read the channel configuration table, call the corresponding functional test subroutine according to the test project, and manage the creation, running, suspending, resuming and ending of independent test tasks. Each independent test channel corresponds to one or a set of configuration records. The PLC main control module 201 updates and reads the corresponding configuration based on the channel number. Each storage area in the data buffer stores the data for its corresponding channel. Test data and exception logs can use different record structures and establish a correspondence through channel number, test item, and time information. The task control block stores the running status and test stage of each task, enabling the corresponding test process to continue after a task switch.

[0025] The PLC task scheduler reads the channel configuration table, creates independent test tasks based on the test items corresponding to each independent test channel, and calls the corresponding functional test subroutines. The task scheduler uses a priority-based time-slice round-robin scheduling method to manage the creation, execution, suspension, resumption, and termination of each task. After a task ends, the corresponding task resources are released or destroyed. During scheduling, execution opportunities are allocated based on task priority, and each independent test task is advanced through time-slice round-robin scheduling, balancing the real-time nature of test instructions and data acquisition and processing with fair operation of tasks across channels. Each independent test task saves its own test stage, running status, and related data, enabling different tasks to continuously progress within their respective time slices.

[0026] Each independent test task transitions from the initialization state to the ready state, and then to the running state after startup. As needed for the test operation, a running task can be paused and resumed upon resumption; after completing the set test content and duration, it enters the completed state; if an exception occurs that meets the task termination conditions, it enters the exception state and terminates the corresponding task. Exception logging and task termination are managed separately; logs are generated when necessary to record exceptions, and whether to pause or terminate the task is determined based on the corresponding task's running conditions.

[0027] In one embodiment, the functional test subroutine includes a position test subroutine, a speed test subroutine, a torque test subroutine, and a multi-mode homing test subroutine. When a high and low temperature test chamber 500 and an electromagnetic compatibility test instrument 600 are configured, the functional test subroutine also includes a high and low temperature environment test subroutine and an electromagnetic compatibility test subroutine. Each functional test subroutine is encapsulated as an independent functional block, which can be called individually or in combination by the corresponding independent test task. Their calling relationships are shown in Table 3.

[0028] Table 3 Modular Program Call Relationships Call relationship illustrate The task scheduler calls up independent test tasks for each channel. Scheduling is performed based on the configuration and task status of each channel. Independent test tasks call corresponding functional test subroutines It can perform configured test items, such as position, speed, torque, or homing tests; it can also perform high and low temperature environment or electromagnetic compatibility tests. The functional test subroutine calls the communication driver and the data acquisition driver. Issuing test commands, obtaining device status, and collecting test data Data acquisition driver writes to data buffer Write the test data to the storage area of ​​the corresponding independent test channel. The multi-drive batch parallel testing section consists of multiple electrically isolated independent test channels and corresponding independent test tasks. In one embodiment, each independent test channel includes a signal interface unit, an electrical isolation unit, a signal conditioning unit, and an independent communication interface. The composition and function of each unit are shown in Table 4.

[0029] Table 4 Composition and Functions of Independent Test Channels Composition unit Functions and Implementation Signal interface unit Connect the control signal interface and feedback signal interface of the corresponding driver under test. The control signal can be a pulse direction signal, analog command, etc., and the feedback signal can be encoder feedback, Hall feedback, etc. Electrical isolation unit Optical or magnetic isolation is used to achieve electrical isolation between the PLC main control module and the driver under test. Signal conditioning unit The input and output signals of the corresponding channels are subjected to level conversion, filtering and shaping, amplification or attenuation processing. Independent communication interface This enables the PLC main control module 201 to issue test commands, acquire feedback data, and interact with the corresponding driver under test. The signal interface unit sets up corresponding interfaces according to the driver under test and its connected motion actuator. For the driver under test that controls motion through pulse direction signals, the signal interface unit provides corresponding pulse and direction signal connections; for the driver under test that uses analog commands, it provides corresponding analog connections; and for test items that require encoder or Hall feedback, it provides corresponding feedback signal connections.

[0030] Each channel is equipped with an electrical isolation path to reduce the propagation of electrical interference from the driver under test to the PLC side and to minimize the possibility of mutual interference between different channels via signal connections. The signal conditioning unit converts inconsistent signal levels between the PLC interface and the driver interface, filters and shapes pulse signals, and amplifies or attenuates signals according to the input range of the analog interface to ensure that the input and output signals meet the requirements of the corresponding control interface or acquisition interface.

[0031] Each independent communication interface corresponds to an independent test channel 301-1 to 301-N, allowing the PLC main control module 201 to address and interact with different drives under test. The PLC main control module 201 and the drives under test can use communication protocols such as EtherCAT, PROFINET, or Modbus TCP. When the communication protocols of the PLC main control module 201 and the drives under test are directly compatible, they are connected through the corresponding independent communication interface; when protocol conversion is required, adaptation is completed through the communication gateway 203.

[0032] In one embodiment, the PLC main control module 201 and the PC data analysis and storage terminal 101 communicate using Modbus TCP or EtherNet / IP protocols. The high and low temperature test chamber 500 can be connected via an industrial Ethernet or RS485 interface, and the electromagnetic compatibility test instrument 600 can be connected via a digital I / O or Modbus TCP interface. Table 5 shows the interfaces, data flow, and interaction content of the above specific configurations, where the temperature control, temperature feedback, and interference injection interfaces correspond to the aforementioned additional equipment.

[0033] Table 5 System Interfaces and Interaction Content Interface Name Communication method examples Data flow Interactive content Configuration distribution interface Modbus TCP, Ethernet / IP PC data analysis and storage terminal 101 to PLC main control module 201 Test parameters, acquisition modes and related configurations for each channel Real-time data interface Modbus TCP, Ethernet / IP PLC main control module 201 to PC data analysis and storage terminal 101 Real-time test data collected from each channel Exception Log Interface Modbus TCP, Ethernet / IP PLC main control module 201 to PC data analysis and storage terminal 101 Anomaly type, occurrence time, and related data Status query interface Modbus TCP, Ethernet / IP Two-way interaction System and independent test task running status Driver control command interface EtherCAT, PROFINET, Modbus TCP PLC main control module 201 to the driver under test Test commands for position, speed, torque, and homing. Driver Feedback Data Interface EtherCAT, PROFINET, Modbus TCP Driver under test to PLC main control module 201 Feedback data such as position, speed, and torque Driver status monitoring interface EtherCAT, PROFINET, Modbus TCP Driver under test to PLC main control module 201 Operating status and alarm information Temperature control interface Modbus TCP or RS485 interface communication PLC main control module 201 to high and low temperature test chamber 500 Temperature setpoint, temperature setpoint sequence, or temperature change curve Temperature feedback interface Modbus TCP or RS485 interface communication High and low temperature test chamber 500 to PLC main control module 201 Actual temperature and equipment status Interference Injection Control Interface Digital I / O, Modbus TCP PLC main control module 201 to electromagnetic compatibility test instrument 600 Interference injection trigger command Interference Injection State Interface Digital I / O, Modbus TCP Electromagnetic Compatibility Test Instrument 600 to PLC Main Control Module 201 Interference Injection State Through the aforementioned interfaces, the system establishes a data interaction process for test configuration and command issuance, test data acquisition, and anomaly reporting. It also controls the corresponding environmental conditions through the interfaces of the aforementioned auxiliary devices. The PC data analysis and storage terminal 101 sends test parameters for each channel to the PLC main control module 201. The PLC main control module 201 calls the corresponding functional test subroutine based on the test parameters and issues specific test commands to the driver under test through each independent test channel. The feedback signal from the driver under test, after passing through the corresponding interface and undergoing necessary isolation and conditioning processing, is sent to the PLC main control module 201, recorded in pairs with the actually issued command data, and then uploaded to the PC data analysis and storage terminal 101.

[0034] For high and low temperature and electromagnetic compatibility (EMC) tests, the PLC main control module 201 sends temperature control commands to the high and low temperature test chamber 500 or interference injection commands to the EMC test instrument 600, and obtains feedback information from the corresponding devices. During the anomaly reporting process, the PLC main control module 201 identifies anomalies based on the communication status and the operating status of the driver under test, records the channel number, anomaly occurrence time, associated command data, and feedback data as an anomaly log, and uploads it to the PC data analysis and storage terminal 101.

[0035] Multi-drive batch parallel testing is achieved through the aforementioned independent test channels and channel tasks. Each channel has independent hardware connections, communication interactions, and program running status. The PLC main control module 201 can issue test commands separately, and the commands and data for different tasks are distinguished by channel. The PC data analysis and storage terminal 101 configures the test parameters for each independent test channel and sends the test parameters to the PLC main control module 201. The test parameters include test items and acquisition frequency. Test items determine the functional test content executed by the corresponding channel, and acquisition frequency determines the frequency at which the channel generates test data records. In one embodiment, test duration, test sequence, and judgment threshold are also configured. Different channels can use the same configuration or different configurations, enabling the system to perform single-channel independent testing, multi-channel batch testing of the same items, and multi-channel heterogeneous parallel testing of different items. Figure 2 The diagram shown illustrates a multi-channel heterogeneous parallel modular test.

[0036] In this embodiment, heterogeneous parallel testing refers to at least two independent test channels executing different test items within overlapping test periods. The start time, end time, and test duration of each channel can differ, as long as the runtime periods of at least two different test items overlap, thus forming a corresponding heterogeneous parallel test. Short-duration tasks can terminate their tests upon completion, while long-duration tasks continue execution according to their own configurations.

[0037] Each independent test task calls its corresponding functional test subroutine during runtime, and these different functional test subroutines interact with the hardware device through a unified communication and data acquisition interface. The following section uses the position, speed, torque, and multi-mode homing-to-zero test subroutines as examples to illustrate the instruction generation, runtime data, and performance indicators for each test item, and further explains the coordination process when adding high and low temperature environment tests and electromagnetic compatibility tests.

[0038] In the embodiment configuring corresponding functional test subroutines, each subroutine executes the following test process according to the corresponding test item. The position test subroutine is used to output multi-segment position commands, whose position sequences include fixed-point positioning, reciprocating motion, or limit motion. In the fixed-point positioning test, a target position is set, the motion actuator connected to the driver under test is controlled to reach that position, and the position command value and position feedback value are obtained in the corresponding detection phase to determine the positioning error, i.e., the position following error: ; in, For the first Positioning error of the second detection. For the corresponding position instruction value, This is the feedback value for the corresponding location.

[0039] In the repetitive positioning test, multiple positioning operations are performed at the same target location, and the feedback positions after each positioning are obtained. The standard deviation of these feedback positions is used to evaluate the dispersion of the positioning results, and this dispersion is used to characterize the repetitive positioning accuracy. In the reciprocating motion test, the same target location is approached from both forward and reverse directions, and the corresponding positioning feedback values ​​are obtained. The return deviation is determined based on the difference between the forward and reverse positioning feedback values ​​to evaluate the impact of changes in motion direction on the positioning results.

[0040] Limit motion testing controls the motion actuator to approach the corresponding motion boundary according to a prescribed position sequence, and records the command value, feedback value, and operating status during the process. Fixed-point positioning, reciprocating motion, and limit motion can be combined to form multi-segment position sequences, enabling the acquisition of data from different motion stages for the same position test task.

[0041] The speed test subroutine outputs constant speed commands, stepped speed change commands, or dynamic speed adjustment commands, and obtains the corresponding speed feedback values. The speed following error is: ; in, For the first Speed ​​tracking error of each collected data point This is the speed command value. This is the speed feedback value.

[0042] The constant speed test evaluates steady-state operation at a specified speed. During the corresponding steady-state phase, the steady-state error is determined based on the difference between the speed command value and the speed feedback value. The stepped speed change test sets the speed command to multiple speed levels and switches between them to obtain response data during speed changes. The dynamic speed regulation test controls acceleration and deceleration according to a set command sequence, and the dynamic response deviation is determined based on the maximum following deviation during the dynamic process.

[0043] The velocity fluctuation is determined based on the fluctuation range of the feedback velocity during the steady-state phase, for example, by using the difference between the maximum and minimum values ​​of the steady-state feedback velocity. Data from the steady-state phase and the dynamic change phase are statistically analyzed separately, so that the velocity steady-state error, dynamic response deviation, and velocity fluctuation correspond to their respective evaluated operating processes.

[0044] The torque test subroutine outputs the rated torque command, instantaneous torque command, or overload torque command, and obtains the corresponding torque feedback value. The deviation between the torque command value and the torque feedback value is: ; in, For the first The torque deviation at each data collection point is the torque following error. This is the torque command value. This is the torque feedback value.

[0045] Torque output accuracy is determined based on the aforementioned torque deviation. Overload stability is evaluated based on torque output capability, output changes, and operating status under overload conditions. Response hysteresis is determined based on the time difference between the moment the torque command is issued or changes and the moment the corresponding change occurs in the feedback. Command data, feedback data, and alarm status can be acquired at different torque levels and operating stages. The torque level and duration of each stage are determined based on the permissible test conditions of the driver under test.

[0046] The multi-mode homing test subroutine is used to perform a cyclic test according to at least one of the following homing modes: mechanical limit homing, photoelectric induction homing, encoder zero-point homing, and power-off restart homing. Mechanical limit homing uses the mechanical limit signal to determine the homing reference position; photoelectric induction homing uses the photoelectric detection signal to determine the homing reference position; encoder zero-point homing uses the encoder zero-point signal to determine the zero position; and power-off restart homing is used to verify the homing function of the driver under test after power failure and restart.

[0047] For power-off restart zeroing, the zeroing process is performed after the device restarts and communication and operating conditions are restored, and the corresponding test results are obtained. Each zeroing test records the position after zeroing, the zeroing time, and the zeroing completion status. The zeroing position deviation, i.e., the zeroing position following error, is: ; in, For the first The zero-return position deviation during the second zero-return test This is the feedback position after the return to zero. This refers to the absolute zero position used in this test. The absolute zero position is determined through equipment calibration or a specified reference position and remains consistent throughout the same set of cyclic zero-return tests.

[0048] The zeroing time is the time from the start of the zeroing process to its completion. The success rate of the zeroing process is determined based on the completion status of each zeroing attempt. ; in, To increase the success rate of returning to zero, To count the number of times you successfully reset to zero. This represents the total number of zero-return tests. The results of the loop tests for each zero-return mode are recorded, and the zero-return position deviation, zero-return time, and zero-return success rate for the corresponding mode are statistically analyzed.

[0049] The high and low temperature environment testing subroutine is used to link with the aforementioned high and low temperature test chamber 500, sending it temperature setpoints or temperature setpoint sequences, and obtaining the actual temperature. Under the corresponding temperature conditions, it calls at least one of the position test subroutine, speed test subroutine, torque test subroutine, and multi-mode homing test subroutine to control the corresponding driver under test to perform the test.

[0050] The temperature conditions can be fixed low temperature, fixed high temperature, or temperature-changing cycle, such as setting a low temperature condition of -40℃ and a high temperature condition of +85℃, or cycling in the order of -40℃, +85℃, and -40℃. The PLC main control module 201 sends the set value through the temperature control interface and continuously reads the actual temperature through the temperature feedback interface, and performs feedback control of the temperature conditions based on the correspondence between the actual temperature and the set value; the high and low temperature test chamber 500 performs temperature adjustment according to the received set value, and the PLC main control module 201 links the corresponding motion test tasks. The actual temperature also serves as the operating condition information for the corresponding test period, enabling the motion performance and zero-return data to be correlated with the temperature conditions.

[0051] When multiple drives under test are placed in the same high and low temperature test chamber 500, the corresponding channels adopt the same temperature conditions of the test chamber, and each channel still performs its own motion test task. The data of each channel is associated with the actual temperature of the same test chamber, and their respective test commands, feedback data, and operating status are recorded separately.

[0052] The electromagnetic compatibility (EMC) test subroutine is used to send interference injection commands to the EMC test instrument 600 according to a preset timing sequence during the operation of the corresponding independent test task, so that the corresponding driver under test can continuously perform the test under electromagnetic interference conditions. The interference type can be electrostatic discharge, electrical fast transient burst, or surge, and the preset timing sequence specifies the test phase and time interval of the interference injection.

[0053] Communication stability is evaluated based on communication error rate, packet loss rate, and communication disconnection occurrences. Parameter output accuracy is evaluated based on the deviation between commanded and feedback values ​​for position, speed, or torque. By combining interference injection timing, interference injection status, and anomaly logs, the corresponding operating data before and after the interference event can be reviewed to evaluate the electromagnetic interference immunity of the driver under test.

[0054] The aforementioned high and low temperature test chamber 500, electromagnetic compatibility test instrument 600, and their corresponding communication interfaces, high and low temperature environment test subroutines, and electromagnetic compatibility test subroutines collectively achieve environmental and electromagnetic compatibility adaptation functions. The functional test subroutine completes temperature control, interference triggering, and status feedback interaction through the underlying communication driver, while the data acquisition driver synchronously saves the corresponding operating data. Through these independent functional blocks, a single type of test can be completed, or motion testing can be combined with high and low temperature environment testing or electromagnetic compatibility testing, enabling the same system to perform motion performance, zero-return function, and reliability tests under different operating conditions.

[0055] All of the above functional tests require recording corresponding instruction data, feedback data, and operating condition information during execution. To accommodate the different data requirements of short-term dynamic performance verification and long-term reliability testing, each channel adopts the following independently configured acquisition mode.

[0056] In conjunction with functional testing, the PLC main control module 201 achieves adaptive long and short-time data acquisition through high-speed acquisition registers and configurable sampling clocks. In one embodiment, the PC data analysis and storage terminal 101 further configures the acquisition mode for each independent test channel and sends the acquisition mode to the PLC main control module 201. The acquisition modes include short-time high-precision acquisition mode and long-time aging acquisition mode, and their configuration range and applicable scenarios are shown in Table 6.

[0057] Table 6. Data Acquisition Modes and Applicable Scenarios Acquisition Mode sampling frequency Applicable Scenarios Short-time high-precision acquisition mode 10~100Hz New product performance verification, R&D debugging, factory sampling inspection and dynamic response testing Long-term aging collection mode 0.1~1Hz Long-term operation, reliability aging and performance degradation monitoring The short-term high-precision acquisition mode records command and feedback changes at a high acquisition frequency for analyzing dynamic deviations during motion. The long-term aging acquisition mode records long-term operating parameters through low-frequency, timed acquisition, supporting 24 / 7 continuous acquisition and enabling the system to continuously record performance degradation data during long-term operation. Different acquisition modes can be used for each channel; for example, the position test channel uses 50Hz, the torque test channel uses 100Hz, and the high / low temperature aging test channel uses 0.5Hz, to accommodate both short-term motion processes and long-term performance changes.

[0058] The PC data analysis and storage terminal 101 encapsulates the acquisition mode, acquisition frequency, and related test parameters of each channel into a configuration message, which is then sent through the communication connection between the terminal and the PLC main control module 201. After receiving the configuration, the PLC main control module 201 updates the channel configuration table and reconfigures the timer period register of the corresponding data acquisition task according to the acquisition mode and acquisition frequency of each channel.

[0059] The relationship between the sampling period and the sampling frequency is as follows: ; in, For the first Sampling period of each independent test channel, This represents the sampling frequency for this channel. The sampling period is in seconds, and the sampling frequency is in Hz.

[0060] For example, 50Hz corresponds to 20ms, 100Hz corresponds to 10ms, 20Hz corresponds to 50ms, and 0.5Hz corresponds to 2s. When the PC data analysis and storage terminal 101 issues a new acquisition frequency, the PLC main control module 201 modifies the timer period register of the corresponding data acquisition task, so that subsequent acquisitions are executed according to the new period. The sampling period parameter takes effect dynamically without restarting the system.

[0061] In one embodiment, the PLC main control module 201, based on a unified clock source, synchronously acquires the instruction data and feedback data of each independent test channel according to the acquisition frequency of each independent test channel, associates the two with the channel number, timestamp, and test item to obtain test data, and stores it in the data buffer area divided by channel.

[0062] The PLC main control module 201 sets up instruction data registers and feedback data registers corresponding to each channel. The instruction data register stores the actual instruction value issued by that channel, and the feedback data register stores the feedback value obtained through the corresponding signal interface or communication interface. Test instructions can be generated by the functional test subroutine based on test parameters, or they can be executed according to the instruction sequence issued by the PC data analysis and storage terminal 101, used to form the correspondence between the instruction value of the test data and the actual instruction issued to the driver under test.

[0063] When an interrupt is triggered by the acquisition of a corresponding channel based on a unified clock source, the interrupt service routine simultaneously latches the instruction data register value and the feedback data register value of that channel and associates them with the same acquisition timestamp. For example, a 50Hz acquisition frequency corresponds to an acquisition process every 20ms, 100Hz corresponds to an acquisition process every 10ms, and 0.5Hz corresponds to an acquisition process every 2s.

[0064] Different channels generate test data records according to their own acquisition frequencies. When multiple channels acquire data at the same time, the data latching of these channels is completed in the same acquisition trigger process. In the embodiment using a unified acquisition interrupt, the interrupt service routine can simultaneously latch the instruction data register and feedback data register of each channel, and then write the channel data that has reached the sampling time into the corresponding buffer area according to the sampling period configured for each channel, thereby taking into account both unified latching of all channels and data recording at different frequencies of each channel. Each channel uses a unified clock source as a time reference, and the instruction value and feedback value in the same test data record are saved in pairs in the same acquisition trigger process. The timestamp in the test data represents the time of acquisition and latching on the PLC side, and is used to establish the time relationship between instruction data, feedback data, test items, and abnormal events.

[0065] In one embodiment, the timestamp acquisition uses a 1ms resolution. When device communication refresh and synchronous acquisition meet the corresponding conditions, the time alignment error between instruction data and feedback data is controlled within a range of no more than 1ms. The timestamp resolution, device clock synchronization error, and instruction-feedback time alignment error correspond to the requirements for data recording, device time reference, and data pair synchronization, respectively. By pairwise latching and associating the same acquisition timestamp, the tracking error calculation uses data pairs corresponding to the same acquisition time.

[0066] In one embodiment, the test data structure is shown in Table 7.

[0067] Table 7 Example of Test Data Structure Field Name Data type examples meaning ChannelID UINT8 Channel number, with values ​​ranging from 1 to N. Timestamp UINT64 Collect timestamps, with a resolution of 1ms. TestItem UINT8 Test project coding CmdPosition FLOAT Position command value FbkPosition FLOAT Location feedback value CmdSpeed FLOAT Speed ​​command value FbkSpeed FLOAT Speed ​​feedback value CmdTorque FLOAT Torque command value FbkTorque FLOAT Torque feedback value AlarmFlag UINT16 Abnormal flag Reserved Determine by extended content Reserved extended fields Position tests use position command values ​​and position feedback values; speed tests use speed command values ​​and speed feedback values; and torque tests use torque command values ​​and torque feedback values. A unified data structure can be used to store these fields, with the valid fields determined based on the test item. Alternatively, corresponding record formats can be set for different test items.

[0068] The data acquisition driver writes test data to the storage area of ​​the corresponding independent test channel in the data buffer according to the channel number. Each area stores the data of its corresponding channel, so that the data of different independent test tasks are organized by channel. For long-term tests, the buffered data is continuously transmitted to the PC data analysis and storage terminal 101 through real-time or batch upload, and then written to the local database.

[0069] Anomaly monitoring and logging are implemented by the status monitoring and logging program in the PLC main control module 201. During test execution and periodic data acquisition, the PLC main control module 201 monitors the communication status of each independent test channel and the operating status of the corresponding driver under test, identifying anomalies and determining their types. Anomaly types and their meanings are shown in Table 8.

[0070] Table 8. Anomaly Types and Meanings Exception types meaning Communication dropped The communication connection between the PLC main control module 201 and the corresponding driver under test is disconnected. Data packet loss There were data packets that were not received normally during the communication process. Drive alarm The driver under test generates alarms for overvoltage, overcurrent, and overheating. Overload error The driver under test generates an error state related to exceeding the allowable load. extraordinary The tracking error of the corresponding independent test channel exceeds the preset error threshold. Failed to return to zero The zeroing operation failed to complete normally. Communication disconnections and data packet loss are identified based on the connection status and data interaction status of the communication interface; drive alarms and overload errors are identified based on the alarm information or operating status fed back by the drive under test, where an overload error indicates that the drive under test has generated a corresponding error state under conditions exceeding the rated load; zero-return failure is identified based on the corresponding zero-return completion status. The PLC main control module 201 also determines the following error based on the instruction data and feedback data for real-time out-of-tolerance detection, and its calculation relationship is consistent with that on the PC side.

[0071] In one embodiment, the PLC main control module 201 records the exception log using the event triggering method shown in Table 9.

[0072] Table 9. Exception Log Triggering Methods Triggering method Triggering conditions and processing Communication interruption triggered When a communication failure is detected between the corresponding driver under test and the PLC main control module 201, an exception log is recorded. Driver alarm bit rising edge trigger When an alarm bit changes from a non-alarm state to an alarm state, record the data corresponding to the time the alarm occurred. Follow-up error exceeds limit trigger When the tracking error exceeds a preset error threshold, an abnormality log is recorded. The three methods described above illustrate typical triggering conditions for anomaly logs. For identified data packet loss, overload errors, and zero-return failures, anomaly records are also generated based on the corresponding communication or operational status. For test items using deviation amplitude as the criterion, the absolute value of the following error can be compared with a preset error threshold. When an anomaly log is triggered, the PLC main control module 201 latches the instruction and feedback values ​​of the corresponding channel, records the channel number, anomaly occurrence time, anomaly type, and corresponding following error. The anomaly occurrence time uses a 1ms resolution. Additional information such as alarm descriptions and communication status can also be saved.

[0073] The data structure of the exception log can be shown in Table 10.

[0074] Table 10 Example of Exception Log Data Structure Field Name Data type examples meaning ChannelID UINT8 Channel number to which the anomaly belongs Timestamp UINT64 The time of anomaly occurrence can be as low as 1ms. AlarmType UINT8 Exception type coding CmdValue FLOAT The instruction value corresponding to the occurrence of the exception FbkValue FLOAT Feedback register value when an exception occurs ErrorValue FLOAT Corresponding following error ExtraInfo STRING Additional information such as alarm description and communication status The ErrorValue represents the same following error as the one used for data analysis on the PC side, both being obtained by subtracting the feedback value from the corresponding instruction value. In cases where feedback updates are interrupted due to communication failures, the feedback value in the log is the feedback register value that the PLC can obtain at the time of triggering, and it also records the communication interruption status and corresponding exception type, enabling the PC data analysis and storage terminal 101 to analyze the communication conditions of the corresponding data by combining the log.

[0075] Anomaly logs are stored in the corresponding channel's cache area and uploaded to the PC data analysis and storage terminal 101 via the anomaly log interface. By using the channel number and the time of anomaly occurrence, the corresponding test item, motion stage, and recorded test data can be associated to analyze the operational status at the time of the anomaly. Anomaly monitoring and scheduled data acquisition are executed in parallel, ensuring that even with low acquisition frequencies during long-term aging data acquisition, event-triggered recording of communication and driving operational anomalies is still possible.

[0076] Therefore, each independent test channel generates test data and anomaly logs simultaneously when executing test tasks. After both are uploaded to the PC data analysis and storage terminal 101, the PC data analysis and storage terminal 101 can correlate performance changes with the time of anomaly occurrence and operating condition information.

[0077] The PLC main control module 201 uploads test data and exception logs from the data buffer to the PC data analysis and storage terminal 101 via a communication connection. Each channel can upload batch data after completing its own test, or it can upload data through the real-time data interface during operation. For long-term tests, data is continuously uploaded or uploaded in batches during operation. After the task is completed, any data that has not yet been transmitted is uploaded, and the complete records of the corresponding channels are summarized.

[0078] The PC data analysis and storage terminal 101 communicates in real time with the PLC main control module 201, receiving test data and anomaly logs for different test items from each channel. It then sequentially performs deviation calculation, classification and tabulation, horizontal comparison, vertical trend analysis, result judgment, and persistent archiving. After receiving the test data and anomaly logs, it determines the following error point-by-point based on the command and feedback values ​​in the test data. The following errors for position, speed, and torque are calculated using the corresponding physical quantity units, and the command and feedback values ​​in the same data pair are calculated using the same units. The following error used for real-time out-of-tolerance monitoring on the PLC side and the following error used for statistical analysis on the PC side follow the same calculation relationship as described above.

[0079] The PC data analysis and storage terminal 101 summarizes the test data, corresponding tracking errors, and anomaly information from the anomaly logs for each channel according to the channel number and test item, and automatically generates standardized test tables categorized by test item. The table corresponding to the same test item contains the data records of each independent test channel that performed the test item, and the table content can be as shown in Table 11.

[0080] Table 11 Example of the contents of a standardized test form Content Categories Fields or record content Test Information Channel number, test item, test time, test duration Raw data Command value, feedback value, and collection timestamp Error data Follow-up error and corresponding performance indicators Abnormal information Exception type, occurrence time, associated instruction value, and feedback value Operating conditions information Actual temperature, temperature setpoint, interference type, interference level, and interference injection timing Judgment Information Performance index assessment results and channel test results Standardized test forms can contain both point-by-point data and channel summary data, facilitating the review of original records and statistical results. For example, a location test form summarizes data from each channel during location testing, a high / low temperature test form stores corresponding motion data and temperature conditions, and an electromagnetic compatibility test form stores corresponding operating data and interference test conditions. The PC data analysis and storage terminal 101 supports exporting these forms to at least one of the following formats: Excel, CSV, and PDF.

[0081] The PC data analysis and storage terminal 101 performs horizontal comparative analysis of multi-channel test data for the same test item to determine the performance statistics corresponding to each independent test channel. Performance statistics include the mean and standard deviation, as well as at least one of the maximum, minimum, and pass rate. Performance parameters included in the statistics can be positioning error, speed following error, torque deviation, or zero-return position deviation, etc. Comparisons between channels use data from the same test item, with the same performance parameters, and under comparable test conditions.

[0082] No. The mean and standard deviation of each channel are determined according to the following formulas: ; ; in, For the first The first channel Performance parameter data, This refers to the number of data points that participated in the statistics for this channel. The mean, The standard deviation is calculated using at least two data points.

[0083] Different channels can use different acquisition frequencies and test durations, so the number of data points involved in the statistics for each channel can be different. The PC data analysis and storage terminal 101 determines the statistical indicators for each channel, and then compares the same indicators. The maximum and minimum values ​​are used to represent the range of performance parameters. The pass rate is determined according to the specific statistical object, such as the ratio of the number of repeated tests that meet the judgment requirements to the total number of tests, and the statistical object is recorded in the corresponding table.

[0084] In one example of anomaly point labeling, data points that deviate from the statistical distribution of their respective channels are identified according to the following formula: ; When the above conditions are met, the PC data analysis and storage terminal 101 marks the corresponding data point as an anomaly and marks the independent test channel to which the data point belongs as a channel with statistically abnormal data points. Here, the mean and standard deviation are derived from the same performance parameter data of the channel to which the data point belongs. Based on the statistical results of each channel, a horizontal comparison chart, a deviation distribution chart, and a performance index comparison table are generated. Channel performance rankings can also be generated according to selected performance indicators.

[0085] The PC data analysis and storage terminal 101 also performs longitudinal comparisons of historical test data from the same independent test channel, generating trend curves of performance parameters over time and identifying performance degradation inflection points. For example, it analyzes the positioning error, speed fluctuation, or torque deviation recorded during the 72-hour aging process of the same driver under test in chronological order, or compares similar performance parameters of the same driver under test in different test batches to evaluate performance changes during long-term operation.

[0086] Performance degradation can manifest as increased positioning error, wider speed fluctuation range, increased torque output deviation, or decreased zero-return consistency. The performance degradation inflection point indicates the point in time where the performance change state in the trend curve reverses, for example, the point where the performance changes from relatively stable to a point of continuous increase in deviation. The PC data analysis and storage terminal 101 identifies and marks this point based on the performance parameter change trend, allowing it to be viewed in conjunction with the corresponding temperature conditions, test phase, and anomaly logs. When performing historical comparisons, data with comparable conditions is selected by combining the corresponding records of the test batch and the test object.

[0087] In one embodiment, the PC data analysis and storage terminal 101 is equipped with a standard threshold library for storing preset judgment thresholds and supports configuration according to the test requirements of the product under test. The standard threshold library can save allowable positioning error values, repeatability accuracy requirements, allowable steady-state speed error values, speed fluctuation range, torque deviation requirements, allowable zero-return position deviation values, zero-return success rate requirements, and the number of allowed anomalies, etc. The error thresholds required for real-time out-of-tolerance detection on the PLC side can be issued along with the test configuration, and the PC side completes the test result judgment based on the standard threshold library.

[0088] The PC data analysis and storage terminal 101, combined with preset judgment thresholds and anomaly logs, determines the performance accuracy, operational stability, and number of anomalies of the corresponding drive under test. Performance accuracy is evaluated based on corresponding error indicators, operational stability is evaluated based on standard deviation, fluctuation, and continuous operating status, and the number of anomalies is statistically analyzed from the anomaly logs. First, the judgment results of each test item and its performance indicators are determined. Then, the judgment results of the corresponding channel's current execution items are summarized to obtain qualified or unqualified test results. Anomalies and unqualified items are marked, forming single-channel conclusions and batch summary conclusions.

[0089] When the same driver under test needs to complete multiple test items, different functional test subroutines can be called by combining corresponding independent test tasks, or unfinished items can be executed in subsequent test configurations, and the corresponding records can be summarized. The test results of each channel are based on the completed test items and their judgment results.

[0090] The PC data analysis and storage terminal 101 uses a local database to persistently store test data, anomaly logs, and test results. It can also save standardized test tables, analysis logs, performance statistics, trend curves, and test record reports. The database can be SQLite or MySQL, and raw records, anomaly records, and judgment results can be organized by test batch, channel number, and test item.

[0091] Various records are linked by test batch, channel number, and test item. Users can perform multi-dimensional queries by batch number, time range, channel number, and test item to retrieve raw data, abnormal events, analysis results, and test conclusions, and to perform historical comparisons, fault tracing, and quality record verification.

[0092] The PC data analysis and storage terminal 101 generates a test record report based on the collected, analyzed, and judged results. The test record report includes at least one of the following: original test data table, follow-up error analysis chart, horizontal comparison chart, anomaly log, and test results. In one example report, the report saves the original data table for each channel, the follow-up error analysis table and analysis chart, the inter-channel performance comparison chart, the anomaly log, and the pass / fail judgment conclusion, and records the corresponding test configuration and operating condition information. The report supports export, archiving, and historical querying for product quality inspection records and R&D performance analysis.

[0093] In one embodiment, historical test data is used as a configuration reference for subsequent test batches. Testers evaluate the applicability of existing sampling frequencies, test durations, and judgment thresholds through historical queries, horizontal comparisons, and vertical trend analysis. They adjust parameters for subsequent batches in the standard threshold library and test configuration interface, and then distribute relevant configurations via PC data analysis and storage terminal 101, establishing a correspondence between historical test records and subsequent configuration adjustments. Historical test data and analysis results are used to optimize threshold parameters and test configurations for subsequent batches, and the updated configurations are then used again for PLC-side test execution.

[0094] In a specific application example, an eight-channel test platform is built using the aforementioned industrial Ethernet communication and high / low temperature and electromagnetic compatibility extended configurations. The process involves sequentially completing hardware configuration and debugging, differentiated task allocation, acquisition mode configuration, automated heterogeneous parallel operation, synchronous acquisition of commands and feedback, and anomaly recording. The task organization time, batch analysis and judgment, and data archiving are then explained. The equipment specifications, acquisition frequency, test duration, and test level in this example illustrate the specific configuration method; the structure and working principle of each module correspond to the aforementioned descriptions.

[0095] In an eight-channel hardware configuration example, the PLC main control module 201 uses a Siemens S7-1500 series PLC, and eight independent test channels are connected to eight servo drives under test. Each drive under test is connected to the PLC main control module 201 through a corresponding EtherCAT communication interface and adapter components. The high and low temperature test chamber 500 is connected via Ethernet, and the electromagnetic compatibility test instrument 600 is connected via digital I / O. The PLC main control module 201 interacts with the PC data analysis and storage terminal 101 via industrial Ethernet. The equipment selection and specifications for this example are shown in Table 12.

[0096] Table 12 System Hardware Configuration Examples equipment or components Selection or specification examples quantity PLC main control module Industrial-grade PLCs that support time-sharing and multi-tasking operation, such as the Siemens S7-1500 series PLCs, are recommended, with the S7-1516 serving as a selection reference. 1 unit Industrial Ethernet Switches Eight-port gigabit industrial-grade switch 1 unit Electrical isolation components Eight-channel optocoupler isolation board, isolation voltage 2500Vrms 1 set Communication components Provides eight independent communication connections, such as using EtherCAT communication interfaces and adapters, with a communication rate of 100Mbps. 1 set High and low temperature test chamber The equipment has a temperature range of -50℃ to +120℃, and a temperature change rate of not less than 3℃ / min. 1 unit electrostatic discharge generator Capable of outputting 30kV 1 unit Electrical Fast Transient Burst Generator Capable of 5kV output 1 unit PC Data Analysis and Storage Terminal Industrial computers, for example, use Intel Core i7 processors, 16GB of RAM, and 1TB solid-state drives. 1 unit The above equipment specifications are for illustrating one hardware configuration method. The PLC's program storage capacity and data storage capacity are determined based on the number of functional test subroutines, the number of independent test tasks, the acquisition frequency, and the amount of buffered data. For example, selection may be based on configuration requirements of 4MB program storage capacity and 20MB data storage capacity, respectively. The specific product model is based on its actual storage capacity, communication capabilities, and task execution capabilities. The Industrial Ethernet switch 202 is used to achieve high-speed data exchange; the Industrial Ethernet communication rate in this configuration is no less than 100Mbps.

[0097] The high and low temperature test chamber 500 covers the actual testing temperature range. For example, during actual testing, the temperature condition can be set within the range of -40℃ to +100℃, or a temperature cycling condition between -40℃ and +85℃ can be used. The actual interference level of the electromagnetic compatibility test instrument 600 is set according to the testing requirements of the product under test, and its test output level can be lower than the instrument's maximum output capability. Depending on the test items, a surge generator can also be configured to perform corresponding surge immunity tests.

[0098] Before system testing begins, hardware connections, communication initialization, relevant equipment calibration, and system clock synchronization are completed. Communication initialization includes configuring the IP address or slave address, communication rate, and data format of each channel's driver under test, and performing a communication handshake to confirm that the PLC main control module 201 can interact normally with the corresponding driver under test. For channels using analog or pulse signal interfaces, zero-point calibration and gain calibration are performed on the signal conditioning unit to ensure that the correspondence between input / output signals and corresponding physical quantities meets the test requirements.

[0099] For the high and low temperature test chamber 500, temperature calibration was performed, and the correspondence between the actual temperature and the set temperature value was verified to complete the temperature parameter configuration. For the electromagnetic compatibility test instrument 600, the interference type, test level, and trigger parameters were configured and calibrated. In equipment configurations with corresponding clock synchronization conditions, the clock error of the relevant equipment was controlled to within 1ms. Data acquisition and anomaly recording on the PLC side used a unified clock source to generate timestamps, with a timestamp resolution set to 1ms. The temperature calibration of the high and low temperature test chamber 500 was used to confirm the correspondence between the actual temperature and the set value, and the parameter calibration of the electromagnetic compatibility test instrument 600 was used to confirm that the interference output and trigger parameters met the set test requirements. After initialization, each independent test channel entered the configurable and ready-to-start state.

[0100] After completing the hardware connection and initialization, the test management software of the PC data analysis and storage terminal 101 is used to set the test items, acquisition modes, acquisition frequencies, and test durations for each of the eight independent test channels, and the corresponding judgment thresholds are configured according to the test requirements of the product under test. The differentiated test configurations for each channel are shown in Table 13.

[0101] Table 13 Example of Eight-Channel Heterogeneous Parallel Test Configuration ; The eight channels correspond to six test categories: position, speed, torque, multi-mode homing, high and low temperature environment, and electromagnetic compatibility. During acquisition mode configuration, channels 1, 2, 3, 4, 7, and 8 are configured for short-time high-precision acquisition, with acquisition frequencies of 50Hz, 50Hz, 100Hz, 20Hz, 50Hz, and 50Hz, respectively; channels 5 and 6 are configured for long-term aging acquisition, with an acquisition frequency of 0.5Hz and continuous operation for 72 hours. The PC data analysis and storage terminal 101 encapsulates the test items, acquisition frequencies, acquisition modes, test durations, and related threshold parameters for each channel into configuration messages and sends them out. The PLC main control module 201 updates the channel configuration table and reconfigures the timer period registers for each channel's data acquisition task, forming sampling periods of 20ms, 10ms, 50ms, or 2s, respectively. These sampling period parameters take effect dynamically without requiring a system restart.

[0102] After the test is started, the task scheduler of the PLC main control module 201 reads the channel configuration table, creates independent test tasks according to the test items of each channel, and calls the corresponding functional test subroutines. The tasks are organized using a priority-based time-slice rotation method. The running segments of each channel overlap, each completing its own instruction output, feedback acquisition, and status monitoring. Short-time tasks terminate after reaching their respective test durations, while the high and low temperature stability test tasks continue to run according to the 72-hour configuration. Each independent test task records its running, paused, completed, or abnormal status through the corresponding task control block.

[0103] Taking the position test of channel 1 and the torque overload test of channel 3 as examples, the two can perform different actions during the same operating period, and their execution process is shown in Table 14.

[0104] Table 14 Examples of Overlapping Execution of Position and Torque Tests runtime segment Position test action of channel 1 Torque test operation of channel 3 0~3s The position command changes from 0 to 100mm Output rated torque command 3~6s Maintain position and collect location data Maintain rated torque and collect torque data. 6~9s The position command returned to 0 from 100mm. Output 150% rated torque command 9~12s Maintain position and collect return positioning data Maintain overload conditions and collect stability data. 12~15s The position command changes from 0 to -100mm Command to restore rated torque 15~18s Maintain position and collect location data Output 200% rated torque instantaneous command Subsequent periods Loop through the position command sequence or execute subsequent stages. Cycle through the torque command sequence or execute subsequent stages. Table 14 shows that the two tasks perform position and torque actions respectively during the same runtime. Holding or switching position commands does not require the torque task to wait, and changes in the phases of the torque task do not require the position task to stop. Channel 3 sequentially experiences the rated torque, 150% rated torque overload, recovery of rated torque, and instantaneous 200% rated torque phases; Channel 4 performs 10 cycles each for mechanical limit return to zero, photoelectric induction return to zero, and encoder zero point return to zero, recording the position, time, and completion status after return to zero.

[0105] In a high and low temperature stability test example, the temperature change rate was set to 3℃ / min, and the test was performed continuously for 72 hours. Repeated positioning tests can be performed under low temperature conditions, and steady-state speed tests can be performed under high temperature conditions. Torque or zero-return tests can be continuously performed during the temperature change cycle to analyze the relationship between temperature changes and positioning errors, speed fluctuations, torque deviations, or zero-return consistency.

[0106] In an electromagnetic compatibility (EMC) immunity test example, 8kV contact discharge and 2kV electrical fast transient / burst tests are set up. The PLC main control module 201 triggers the corresponding instruments via digital I / O, for example, performing interference injection every 5 minutes. During the interference application, the system continuously acquires command and feedback data from the corresponding channels and monitors the communication status, alarm status, and parameter output accuracy.

[0107] During the execution of the above tasks, channels 5 and 6 are linked to the high and low temperature test chamber 500, switching temperature conditions between -40℃ and +85℃ according to a set sequence and acquiring the actual temperature; channels 7 and 8 trigger the electromagnetic compatibility test instrument 600 according to a set timing sequence and acquire the interference injection status. The operational feedback and abnormal status of each driver under test are transmitted back to the PLC main control module 201, and the environmental equipment simultaneously transmits the corresponding status. After each task is configured and started, the system automatically performs tests, collects data, and records anomalies. Normal testing does not require manual intervention.

[0108] In such Figure 2 In the six-channel configuration example shown, channels 1 to 4 perform position accuracy testing, speed response testing, torque overload testing, and multi-mode homing testing, respectively, with acquisition frequencies and test durations of 50Hz and 20min, 50Hz and 20min, 100Hz and 15min, and 20Hz and 30min. Channel 5 performs a 0.5Hz, 72-hour high and low temperature environment test, and channel 6 performs a 50Hz, 10-minute electromagnetic compatibility test. This six-channel example uses a different channel allocation than the eight-channel example listed in Table 13, and both achieve overlapping execution of different test items through independent configuration and task scheduling.

[0109] In the above eight-channel test, taking the 50Hz position test of channel 1 as an example, the PLC's internal hardware timer generates a data acquisition trigger interrupt every 20ms. The interrupt service routine simultaneously latches the instruction data register and feedback data register of channels 1 to 8, and associates them with the 1ms resolution timestamp generated by the current unified clock source. Each channel still writes to the buffer according to its own sampling period: channels 1, 2, 7, and 8 are saved every 20ms, channel 3 every 10ms, channel 4 every 50ms, and channels 5 and 6 every 2s. Therefore, the unified latching process is implemented in conjunction with the corresponding acquisition trigger and recording time of each channel. The 100Hz acquisition of channel 3 is also guaranteed by its 10ms acquisition trigger, avoiding the interpretation of the 20ms trigger as a common and unique sampling period for all channels. The instruction data register stores the actual issued instruction value, and the feedback data register stores the feedback value read from the corresponding driver. Each valid test data is written to the storage area of ​​the corresponding channel according to the structure shown in Table 7.

[0110] During scheduled data acquisition, the anomaly monitoring program simultaneously monitors communication and drive operation status. Upon detecting a communication outage, a rising edge of the drive alarm bit, or an excessive following error, the program immediately records the anomaly occurrence time, channel number, anomaly type, corresponding command value, feedback value, and following error according to the triggering method shown in Table 9. Identified data packet loss, overload errors, or failed zero-return operations also generate corresponding anomaly records. The anomaly log is written to the corresponding channel buffer area according to the structure shown in Table 10, and the acquired data is associated with the channel number and timestamp, ensuring that anomalies occurring during low-frequency aging data acquisition are also retained.

[0111] For a set of test tasks that can be executed independently and do not have a mandatory sequential execution relationship, the serial execution time is mainly the sum of the durations of each task; when each task can be started simultaneously and the corresponding devices meet the conditions for parallel execution, the overlapping execution time mainly depends on the duration of the longest task. Let the... The duration of each task is The number of tasks is Without considering preparation, configuration, and data processing time, we have: ; ; In a set of task time comparison examples, the following tests were set: position accuracy test (20 min), speed response test (20 min), torque overload test (15 min), multi-mode homing test (30 min), high and low temperature stability test (72 h), and electromagnetic compatibility anti-interference test (10 min). The task execution times under different organization methods are shown in Table 15.

[0112] Table 15 Examples of Time Relationships for Different Task Organization Methods Task organization method Execution method Task runtime Single-channel item-by-item execution Each project will be executed in sequence. The total duration of all items is 73 hours and 25 minutes. Execute projects in parallel, and different projects in batches. The same project is executed in the same batch, and different projects are organized sequentially. When executed sequentially according to the listed project batches, the time is 73 hours and 25 minutes. Heterogeneous parallel execution of different projects Assign independent tasks to different channels and execute them during overlapping time periods. Under the corresponding channel and equipment conditions, the main factor is the 72-hour high and low temperature mission. In the example above, heterogeneous parallel execution reduces execution time by 1 hour and 25 minutes compared to sequential execution of the listed items. This time relationship illustrates the organization of the set of independent tasks; the specific efficiency improvement depends on task duration, number of channels, device configuration, and the order of tasks. The calculation objects in Table 15 are the listed independent items or batches of items, and do not represent that each driver under test completes all test items in a single channel allocation.

[0113] As each channel's task is completed at different times, the PLC main control module 201 uploads the corresponding batch data; during the 72-hour test, cached data is continuously or uploaded in batches. The PC data analysis and storage terminal 101 generates standardized test tables according to test item categories, containing instruction value sequences, feedback value sequences, point-by-point following errors, and abnormal event records for each channel, and can export them to Excel format. When multiple drivers under test need to be compared under the same project, the same test items are configured for the relevant channels, and performance parameters with comparable conditions are selected for statistical analysis and threshold determination.

[0114] In another test configuration example, both Channel 1 and Channel 2 are configured for position testing, while other channels can still perform different test items. The statistics and judgment results are shown in Table 16.

[0115] Table 16 Examples of Multi-channel Statistics and Judgment for the Same Project index Channel 1 Channel 2 Judgment requirements Mean positioning error 0.025mm 0.12mm No larger than 0.05mm Standard deviation of repeatability 0.008mm 0.045mm No larger than 0.02mm Three times the standard abnormality marker Unmarked Marked Determine whether the original data points of each channel meet the anomaly marking conditions. The above accuracy index judgment results qualified Unqualified Judge according to the same requirements. In the example shown in Table 16, the three-standard-difference anomaly marker represents the marking result obtained from the inspection of the original data points of each channel. No data points meeting this condition were found in channel 1, while data points meeting this condition were found in channel 2 and were marked. This marker is determined based on the original data points and their corresponding statistics. The standard deviation corresponding to the repeatability accuracy is determined based on the feedback position after multiple positioning attempts. The mean and standard deviation used for the three-standard-difference anomaly marker correspond to the same performance parameter data being inspected. Product qualification is determined based on the preset judgment threshold and anomaly logs. Channels without three-standard-difference anomaly data points may still be judged as unqualified because the overall error exceeds the allowable value.

[0116] Based on the above statistical results, the PC data analysis and storage terminal 101 compares preset pass thresholds channel by channel and combines them with corresponding anomaly logs to determine the test results, generating single-channel test conclusions and batch summary judgment reports. For long-term high and low temperature tests, performance parameters and temperature conditions are also analyzed in chronological order to generate trend curves and mark performance degradation inflection points, ensuring that both horizontal comparisons of short-term projects and vertical changes of long-term projects are recorded.

[0117] In this specific application, a local SQLite database is used to archive all raw test data, standardized test tables, analysis logs and reports, exception logs, and test results. The database table structure is shown in Table 17.

[0118] Table 17 Example of local database table structure Data table Stored content Main test record table Information such as test batch, test time, and testers Channel test data table Raw data sequences, acquisition timestamps, and test items for each channel Exception log table Anomaly types, occurrence times, associated command data, feedback data, and tracking errors for each channel Test Conclusion Table Judgment results of each channel and corresponding test item The four types of data tables mentioned above are linked by test batch, channel number, and test item, supporting multi-dimensional retrieval by batch number, time range, channel number, and test item. The PC data analysis and storage terminal 101 simultaneously outputs a complete test record report, which includes original test data tables for each channel, follow-up error analysis tables and charts, horizontal comparison charts, abnormal event logs, and pass / fail conclusions, as well as recording corresponding test configurations and operating condition information. The relevant tables and reports support Excel, CSV, and PDF formats for product quality inspection archiving, R&D data analysis, and fault tracing; historical records and analysis results can also serve as a reference for adjusting subsequent batch test parameters and standard threshold libraries.

[0119] In summary, this embodiment achieves independent configuration of test items, acquisition frequencies, and test durations by implementing electrical isolation, independent communication, and separate management of task status for each independent test channel. Through the independent encapsulation and combined invocation of functional test subroutines, motion performance, homing function, high and low temperature environmental adaptability, and electromagnetic compatibility anti-interference tests are completed within the same system, improving the organizational flexibility of different test tasks and the degree of equipment reusability. In configurations where different test items do not require the use of different dedicated test platforms, redundant equipment and space configurations can be reduced, and parallel utilization can be improved by adjusting scheduling methods based on existing multi-channel hardware.

[0120] Command and feedback data are recorded in pairs under a unified clock source, providing corresponding data and time basis for tracking error calculation. Anomaly logs store anomaly types, occurrence times, and associated commands and feedback data, enabling performance deviations to be analyzed in conjunction with communication status, drive alarms, and operating conditions. Short-term high-precision acquisition mode and long-term aging acquisition mode are respectively adapted to dynamic performance verification and long-term reliability testing. Dynamically configurable sampling periods allow different channels to operate continuously according to their own data requirements.

[0121] The PC-based data analysis and storage terminal 101 automatically completes classification and tabulation, statistical analysis, horizontal comparison with similar projects, historical trend analysis, and threshold determination. This reduces discrepancies caused by manual operation, data processing, and calculation, ensuring that different batches complete testing with the same configuration, statistical standards, and judgment requirements, thus improving the consistency and repeatability of test results. The database uniformly stores original test data, anomaly records, analysis results, and test conclusions, generating standardized test record reports to form a searchable, comparable, and traceable test archive for product quality control, fault analysis, and performance improvement.

[0122] Example 2 This embodiment provides a PLC-based multi-driver batch parallel modular integrated testing method, applied to the aforementioned integrated testing system. This method executes test tasks for each independent test channel through the PLC main control module, synchronously collects instructions and feedback data, and records anomalies. It then uses a PC data analysis and storage terminal to complete test parameter configuration, data classification and summarization, comparative analysis, result judgment, and persistent storage. The method specifically includes the following steps: S1: Connect multiple drivers under test to multiple electrically isolated independent test channels connected to the PLC main control module to complete communication initialization and system clock synchronization; S2: Configure the test parameters of each independent test channel through the PC data analysis and storage terminal, and send them to the PLC main control module. The test parameters include test items and acquisition frequency. S3: The PLC main control module creates independent test tasks for each of the independent test channels according to the test parameters, calls the corresponding functional test subroutines and issues test instructions, so that at least two of the independent test channels execute different test items in overlapping test periods; S4: The PLC main control module, based on a unified clock source, synchronously acquires the corresponding instruction data and feedback data according to the acquisition frequency of each independent test channel, associates the channel number, timestamp, and test item, obtains the test data, and stores it in the data buffer area divided by channel; monitors the communication status of each independent test channel and the operating status of the corresponding driver under test, and records the abnormal log associated with the channel number, occurrence time, and corresponding instruction data and feedback data; S5: The test data and the abnormal log in the data buffer area are uploaded to the PC data analysis and storage terminal through the PLC main control module; the PC data analysis and storage terminal determines the following error based on the instruction data and feedback data in the test data, and summarizes the test data according to the test items. S6: The PC data analysis and storage terminal performs a horizontal comparison analysis of the multi-channel test data of the same test project, and determines the test results of each independent test channel by combining the preset judgment threshold and the abnormal log; S7: The test data, exception logs, and test results are stored through the PC data analysis and storage terminal, and a test record report is generated.

[0123] Specifically, (1) Connection and system initialization of the driver under test. Connect multiple drivers under test to multiple electrically isolated independent test channels connected to the PLC main control module, with each independent test channel corresponding to one driver under test. Connect the corresponding control signal interface, feedback signal interface and communication interface according to the interface type of the driver under test, and connect the corresponding motor or motion actuator according to the test item.

[0124] After establishing the connection, configure the communication parameters between each drive under test (DUT) and the PLC main control module, including IP address or slave address, communication speed, and data format. The PLC main control module communicates with each DUT through its corresponding independent communication interface to obtain the device's operating status and confirm that each channel can complete the issuance of test commands, acquisition of feedback data, and exchange of status information. For DUTs using different communication protocols, a communication gateway can be used for protocol conversion to adapt them to the communication interface of the corresponding channel.

[0125] For channels using analog or pulse signal interfaces, perform zero-point calibration and gain calibration of the signal conditioning unit, and verify the signal level and physical quantity relationship corresponding to the command output and feedback input, so that the command data and feedback data can be recorded and compared according to consistent physical quantities and units.

[0126] In configuring the high and low temperature environment test, complete the communication initialization and temperature calibration between the high and low temperature test chamber and the PLC main control module, and verify the correspondence between the temperature setpoint and the actual temperature feedback. In configuring the electromagnetic compatibility test, complete the connection and parameter calibration of the electromagnetic compatibility test instrument, configure the interference type, output level and trigger parameters, and confirm that the interference injection command and status feedback can interact normally.

[0127] Subsequently, system clock synchronization is completed, establishing a time reference for both test data and anomaly logs. In this embodiment, the clock error of relevant devices is controlled within a range of no more than 1ms. The PLC main control module uses a unified clock source for data acquisition triggering and event timing, and the recording resolution for data acquisition timestamps and anomaly occurrence times is set to 1ms. After completing the above initialization, each independent test channel has the conditions for test configuration and task startup.

[0128] (2) Configuration and distribution of test parameters for each channel.

[0129] The test parameters for each independent test channel are configured using the test management software in the PC data analysis and storage terminal. These test parameters include test items and acquisition frequency; in one implementation, test duration, test sequence, and threshold parameters are also configured, and the acquisition mode for each channel is set separately.

[0130] The test items are selected from position testing, speed testing, torque testing, multi-mode homing testing, high and low temperature environment testing, and electromagnetic compatibility testing, based on the verification requirements of the driver under test. Each channel can select the same test item for batch testing of the same item, or select different test items for heterogeneous parallel testing. For channels requiring motion performance verification under specific environmental conditions, the high and low temperature environment testing or electromagnetic compatibility testing is configured to be combined with the corresponding motion testing in a combined manner.

[0131] The acquisition modes include a short-time high-precision acquisition mode and a long-term aging acquisition mode. The short-time high-precision acquisition mode has an acquisition frequency of 10–100 Hz and is used to acquire command and feedback data during motion changes. The long-term aging acquisition mode has an acquisition frequency of 0.1–1 Hz and is used to record performance changes during long-term operation. Different channels can use different acquisition modes simultaneously.

[0132] For example, in an eight-channel configuration, channel 1 is configured for position accuracy testing, with a sampling frequency of 50Hz and a test duration of 20 minutes; channel 2 is configured for speed response testing, with a sampling frequency of 50Hz and a test duration of 20 minutes; channel 3 is configured for torque overload testing, with a sampling frequency of 100Hz and a test duration of 15 minutes; channel 4 is configured for multi-mode homing testing, with a sampling frequency of 20Hz and a test duration of 30 minutes; channels 5 and 6 are configured for high and low temperature stability testing, with a sampling frequency of 0.5Hz and a test duration of 72 hours; and channels 7 and 8 are configured for electromagnetic compatibility anti-interference testing, with a sampling frequency of 50Hz and a test duration of 10 minutes.

[0133] After configuration, the PC data analysis and storage terminal encapsulates the configuration parameters of each channel into configuration messages and transmits them to the PLC main control module through the configuration distribution interface. The PLC main control module updates the channel configuration table according to the channel number, establishing an association between the test items, acquisition frequency, test duration, and corresponding threshold parameters of each channel and the corresponding channel.

[0134] The PLC main control module reconfigures the timer period register for the corresponding data acquisition task based on the received acquisition mode and frequency. For example, the sampling period for a 50Hz acquisition frequency is set to 20ms, for 100Hz to 10ms, for 20Hz to 50ms, and for 0.5Hz to 2s. The changes to the acquisition parameters take effect dynamically without requiring a system restart.

[0135] Among them, the preset judgment threshold used for product qualification determination is stored in the standard threshold library of the PC data analysis and storage terminal; the preset error threshold used for real-time out-of-tolerance identification on the PLC side is provided to the PLC main control module according to the corresponding channel configuration.

[0136] (3) Independent test task creation and multi-channel overlapping execution.

[0137] The PLC main control module reads the channel configuration table for each channel, creates corresponding independent test tasks based on the test items, and records the running status of the task through the task control block. Each independent test task calls its corresponding functional test subroutine, which is uniformly managed by the task scheduler using a priority-based time-slice round-robin scheduling method.

[0138] Each functional test subroutine is encapsulated as an independent functional block. It generates test instructions based on the configuration of the corresponding test task, calls the communication driver, and sends the test instructions to the driver under test through the corresponding independent test channel. Each task saves its own test stage and running state, so that after the task scheduler switches to other tasks, the original task can continue its test process in subsequent scheduling.

[0139] For position testing tasks, the position testing subroutine is called to output multi-segment position commands according to the position sequence of fixed-point positioning, reciprocating motion or limit motion, control the corresponding driver under test to execute different motion stages, and obtain data for determining positioning error, repeatability accuracy and return deviation.

[0140] For speed testing tasks, the speed testing subroutine is called to output constant speed command, stepped speed change command, or dynamic speed regulation command, respectively, to obtain data in the steady-state operation stage and acceleration / deceleration stage, which are used to determine the steady-state speed error, dynamic response deviation, and speed fluctuation.

[0141] For torque testing tasks, the torque testing subroutine is invoked to output rated torque commands, overload torque commands, or instantaneous torque commands according to the set timing sequence. For example, the rated torque operation, 150% rated torque overload, rated torque recovery, and 200% rated torque instantaneous operation stages are executed sequentially to obtain torque output and operating status data for each stage.

[0142] For multi-mode zero-return test tasks, the multi-mode zero-return test subroutine is called to perform cyclic zero-return according to the configured zero-return mode, and the position after each zero-return, the zero-return time, and the zero-return completion status are recorded. For example, 10 cyclic tests are performed for mechanical limit zero-return, photoelectric induction zero-return, and encoder zero-point zero-return respectively.

[0143] For high and low temperature environment testing tasks, the high and low temperature environment testing subroutine is invoked to send temperature setpoints or temperature setpoint sequences to the high and low temperature test chamber and continuously acquire the actual temperature. Under low temperature, high temperature, or temperature change cycle conditions, at least one of the position, speed, torque, and multi-mode zero-return test subroutines is invoked in combination to enable the corresponding drive under test to perform the test under that temperature condition. When multiple channels share the same high and low temperature test chamber, these channels use a common temperature sequence and execute their respective motion test tasks.

[0144] For electromagnetic compatibility (EMC) testing tasks, an EMC testing subroutine is invoked to send interference injection commands to the EMC testing instrument according to a preset timing sequence during the continuous execution of the test for the corresponding driver under test. For example, interference injection is triggered every 5 minutes, and motion data and communication status are continuously acquired during the interference application period to evaluate the communication stability and parameter output accuracy under interference conditions.

[0145] Through the above task scheduling, at least two independent test channels can execute different test items during overlapping test periods. For example, while channel 1 is performing reciprocating position movement, channel 3 executes the torque overload command sequence; channels 5 and 6 continuously execute 72-hour high and low temperature tests according to their own configurations, and end their own tests after other short-term tasks are completed.

[0146] Each task is managed according to its initialization, ready, running, paused, completed, or abnormal termination status. A task can resume execution after being paused, and enters the completed state after fulfilling the set test content. If an abnormal termination condition is met, the corresponding exception is recorded and the task status is updated. Different channels complete tasks according to their own test content and test duration.

[0147] (4) Synchronous collection of instructions and feedback and recording of abnormal logs.

[0148] During the operation of each independent test task, the PLC main control module synchronously acquires the instruction data and feedback data of the corresponding channel based on a unified clock source and according to the acquisition frequency configured for each channel.

[0149] The PLC main control module stores the actual instruction values ​​issued to the corresponding channel through the instruction data register and the feedback values ​​obtained from the driver under test or the corresponding feedback signal interface through the feedback data register. When the acquisition trigger interrupt of the corresponding channel arrives, the interrupt service routine simultaneously latches the instruction data register value and the feedback data register value of that channel, associating the paired data with the same acquisition timestamp, corresponding channel number, and test item to obtain the test data.

[0150] For example, channel 1 acquires position command and position feedback values ​​at a 20ms cycle, channel 3 acquires torque command and torque feedback values ​​at a 10ms cycle, and channel 5 records corresponding aging test data at a 2s cycle. Different channels perform acquisition according to their own sampling cycles, and the acquisition time of each channel is referenced to a unified clock source; for multiple channels arriving at the same acquisition time, data latching of these channels can be completed in the corresponding acquisition processing.

[0151] The data acquisition driver writes the generated test data to the corresponding storage area in the channel-specific data buffer. The test data includes at least the channel number, acquisition timestamp, test item, corresponding command value, and feedback value. It can also save fields such as position, speed, torque data, and anomaly flags based on the test item. High and low temperature environment tests and electromagnetic compatibility tests also record corresponding temperature or interference condition information for analysis in conjunction with motion data.

[0152] During data acquisition, the PLC main control module simultaneously monitors the communication status of each channel and the operating status of the corresponding driver under test, identifying anomalies such as communication disconnection, data packet loss, driver alarm, overload error, error exceeding limit, and failure to return to zero. Communication anomalies are determined based on the communication connection and data interaction status; driver alarms and overload errors are determined based on the alarm information and operating status of the driver under test; failure to return to zero is determined based on the completion status of the zero-return process; and error exceeding limit is determined based on whether the following error between the corresponding instruction value and the feedback value exceeds a preset error threshold.

[0153] When a communication disconnection, the rising edge of the alarm bit of the driver under test, or an over-range abnormality is detected, an abnormal log is triggered, latching the command value and feedback value that can be obtained when the abnormality is triggered for the corresponding channel, recording the channel number, the time of the abnormality, the type of abnormality, and the corresponding following error, and can also record additional information such as alarm description and communication status.

[0154] Anomaly logs are stored in the corresponding channel's buffer area, and are associated with test data through the channel number and occurrence time. In cases where communication failure causes feedback updates to be interrupted, the log records the feedback register value available to the PLC at the time of the incident, along with the communication failure anomaly type, for subsequent analysis of the communication conditions corresponding to that feedback value.

[0155] (5) Upload test data, determine and classify error.

[0156] After each independent test task is completed, the PLC main control module uploads the test data and exception logs from the corresponding data buffer to the PC data analysis and storage terminal via industrial Ethernet. Since the test durations for different channels can vary, each channel can complete data upload at different times, without waiting for all channels to finish testing simultaneously.

[0157] During long-term aging tests, data can be uploaded during the test run via a real-time data interface, and continuously received and saved by the PC data analysis and storage terminal; after the corresponding task is completed, the data that has not yet been transmitted is uploaded, and the complete test record of the task is summarized.

[0158] The PC data analysis and storage terminal organizes the received data according to the channel number and test item, and performs point-by-point calculations on the command value and feedback value in the same test data. The corresponding following error is obtained by subtracting the feedback value from the command value. The following errors for position, speed, and torque are expressed in the units of the corresponding physical quantities.

[0159] Subsequently, the test data, corresponding tracking errors, and anomaly information from the anomaly logs for each channel are categorized and summarized according to channel number and test item, automatically generating standardized test tables. The table corresponding to the same test item contains data records from each independent test channel that performed that test item.

[0160] The standardized test form includes channel number, test item, test duration, acquisition timestamp, instruction data, feedback data, tracking error, and anomaly information. For environmental condition testing, it also includes operating condition information such as actual temperature, temperature setpoint, or interference test conditions. By associating the time of an anomaly occurrence with the corresponding channel's acquisition timestamp, users can view the instructions, feedback, and operating condition records for the time of the anomaly and the relevant test period.

[0161] For channels performing different test items, tables corresponding to the test items are created; for multiple channels performing the same test item, data records for each channel are retained in the same table to provide a corresponding data set for subsequent horizontal comparisons.

[0162] (6) Multi-channel horizontal comparison, vertical trend analysis and test result judgment.

[0163] The PC data analysis and storage terminal performs horizontal comparative analysis of multi-channel test data for the same test item. First, the performance parameters to be analyzed are determined according to the corresponding test item, such as positioning error, repeatability accuracy, steady-state speed error, speed fluctuation, torque deviation, or zero-return position deviation.

[0164] For the same performance parameter data from each independent test channel, determine at least one performance statistical indicator from among the mean, standard deviation, maximum value, minimum value, and pass rate. Then compare the same indicators for each channel. The data acquisition frequency and test duration may differ between channels, thus the number of data points involved in the statistics may also differ. Each channel uses its own corresponding dataset to determine the statistical results.

[0165] Based on the mean and standard deviation of the same performance parameter data for each channel, data points whose absolute value of the difference from the corresponding mean is greater than three times the corresponding standard deviation are marked as outliers, and their respective independent test channels are identified. Based on the cross-sectional comparison results, a performance index comparison table and a deviation distribution chart are generated, and performance rankings for each channel can be generated according to the selected performance index.

[0166] For example, both Channel 1 and Channel 2 are configured for position testing and compared according to the same judgment requirements. For instance, the allowable value for the mean positioning error is 0.05 mm, and the allowable value for the standard deviation of repeatability is 0.02 mm. If the two indicators for Channel 1 are 0.025 mm and 0.008 mm, and for Channel 2 they are 0.12 mm and 0.045 mm, then the corresponding indicators for Channel 1 meet the requirements, while the corresponding indicators for Channel 2 do not. This configuration is an implementation method for horizontal comparison within the same project and is implemented separately from the aforementioned configuration for performing speed testing on Channel 2.

[0167] In one implementation, the PC data analysis and storage terminal performs a longitudinal comparison of historical test data from the same independent test channel. For example, for the performance parameter data generated during the 72-hour aging process of the same driver under test, trend curves are generated in chronological order to analyze long-term changes in positioning error, speed fluctuation, or torque deviation, and to identify and mark performance degradation inflection points. The trend changes are then reviewed in conjunction with corresponding temperature conditions, test stages, and anomaly logs to analyze the operating conditions at which performance changes occurred.

[0168] After completing the statistical analysis, the PC data analysis and storage terminal reads the preset judgment thresholds from the standard threshold library to determine the performance accuracy, operational stability, and number of anomalies determined from the anomaly logs for each channel. Performance accuracy is evaluated based on the corresponding error indicators, operational stability is evaluated based on indicators such as standard deviation and fluctuation, and the number of anomalies is statistically analyzed based on the event records in the anomaly logs.

[0169] First, the judgment results for each test item are obtained. Then, the judgment results for completed items in each channel are summarized to obtain qualified or unqualified test results, and abnormal and unqualified items are marked. For the driver under test that needs to complete multiple test items, the corresponding records formed by its combined test or subsequent test configuration are summarized. It is also worth noting that the three-times standard difference abnormality marker is used to identify data points that deviate from the statistical distribution of this channel. The qualified judgment is completed by combining the preset judgment threshold and the abnormal log. For example, although no three-times standard difference abnormal data points appear in a certain channel, if its average positioning error exceeds the allowable value, the corresponding item will still be judged as unqualified.

[0170] (7) Data persistence storage, test record report generation and historical query.

[0171] The PC data analysis and storage terminal stores test data, anomaly logs, and test results in a local database, and saves corresponding standardized test tables and analysis results. For example, in an implementation using an SQLite database, a main test record table, a channel test data table, an anomaly log table, and a test conclusion table are set up. The main test record table stores information such as test batch, test time, and test personnel; the channel test data table stores the raw data sequence, acquisition timestamp, and test items for each channel; the anomaly log table stores the anomaly type, occurrence time, associated instruction data, and feedback data; and the test conclusion table stores the judgment results for each channel and corresponding test item. These records are linked by test batch, channel number, and test item, enabling the querying of raw data, anomaly events, statistical analysis results, and test conclusions for the same test task.

[0172] A test record report is generated based on the above data. The test record report includes at least one of the following: original test data table, error analysis chart, horizontal comparison chart, anomaly log, and test results. In a complete report implementation, test configuration and operating condition information are also recorded, ensuring that test conclusions correspond to specific test conditions and data records. Standardized test forms support export to at least one of Excel, CSV, and PDF formats. The test record report is exported and archived according to the corresponding output requirements for product quality inspection records and R&D performance analysis. After testing, historical records can be retrieved by batch number, time range, channel number, and test item to view original data, anomalies, and test conclusions. Historical test data and trend analysis results can also be used to evaluate the applicability of existing threshold parameters, allowing testers to adjust the test configuration or standard threshold library parameters for subsequent batches and distribute the corresponding configurations via a PC data analysis and storage terminal.

[0173] The above steps are explained according to the processing relationship of the test tasks. In actual operation, the test execution in step S3 is carried out simultaneously with the data acquisition and anomaly monitoring in step S4; when using the real-time upload method, the data upload in step S5 and the data storage in step S7 can continue during the test run. Each channel enters the subsequent summary and analysis processing according to its own task status and completion time, so that the data processing of short-term tests and the continuous execution of long-term tests are interconnected.

[0174] The PLC-based batch parallel modular integrated testing method for multiple drivers provided in this invention configures the test parameters of each independent test channel, creates corresponding independent test tasks, and calls the corresponding functional test subroutines. This allows different drivers under test to execute different test items within overlapping test periods, improving batch testing efficiency and the flexibility of test task configuration. Based on a unified clock source, corresponding instruction data and feedback data are synchronously acquired according to the acquisition frequency of each channel, and associated with channel number, timestamp, and test item. This ensures a clear data correspondence in error calculation, improving the consistency and traceability of test data. During the test, communication status and driver operating status are monitored in parallel, and anomaly logs associated with the time of anomaly occurrence and corresponding instruction and feedback data are recorded, facilitating the location of the channel to which the anomaly belongs and the analysis of the operating conditions at the time of the anomaly. The PC data analysis and storage terminal automatically completes the classification and summarization of test data, the horizontal comparison of multiple channels for the same test item, and the result judgment based on preset judgment thresholds and anomaly logs, reducing the differences caused by manual sorting, calculation, and judgment, and improving the comparability and consistency of batch test results. By unifying the storage of test data, exception logs, and test results and generating test record reports, the test process and results are centrally archived, facilitating historical queries, quality traceability, and fault analysis.

[0175] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0176] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0177] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0178] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.

Claims

1. A PLC-based multi-driver batch parallel modular integrated testing system, characterized in that, It includes a PLC main control module, multiple electrically isolated independent test channels, and a PC data analysis and storage terminal. Each of the independent test channels is used to connect to one driver under test. The PC data analysis and storage terminal is used to configure the test parameters of each of the independent test channels and send the test parameters to the PLC main control module. The test parameters include test items and acquisition frequency. The PLC main control module stores functional test subroutines corresponding to different test items, which are used to create independent test tasks for each of the independent test channels according to the test parameters, call the corresponding functional test subroutines, and issue test instructions through each of the independent test channels so that at least two of the independent test channels execute different test items in overlapping test periods. The PLC main control module is also used to synchronously acquire the instruction data and feedback data of each independent test channel based on a unified clock source and according to the acquisition frequency of each independent test channel; associate the instruction data and feedback data with the channel number, timestamp, and test item to obtain test data; and store the test data in a data buffer area divided by channel; monitor the communication status of each independent test channel and the operating status of the corresponding driver under test; and record anomaly logs associated with the channel number, occurrence time, and corresponding instruction data and feedback data. The PC data analysis and storage terminal is also used to receive test data and the abnormal log in the data cache, determine the following error based on the instruction data and feedback data in the test data, summarize the test data according to the test items, perform horizontal comparison analysis on the multi-channel test data of the same test item, determine the test results of each independent test channel in combination with the preset judgment threshold and the abnormal log, and store the test data, abnormal log and test results.

2. The PLC-based multi-driver batch parallel modular integrated testing system according to claim 1, characterized in that, Each of the independent test channels includes a signal interface unit, an electrical isolation unit, a signal conditioning unit, and an independent communication interface; The signal interface unit is used to connect the control signal interface and feedback signal interface of the corresponding driver under test; The electrical isolation unit is used to achieve electrical isolation between the PLC main control module side and the corresponding driver under test side; The signal conditioning unit is used to perform level conversion, filtering, shaping, amplification, or attenuation processing on the input and output signals of the corresponding independent test channels; The independent communication interface is used to enable the PLC main control module to issue test commands, acquire feedback data, and interact with the corresponding driver under test.

3. The PLC-based multi-driver batch parallel modular integrated testing system according to claim 1, characterized in that, The PLC main control module is equipped with the data buffer area, as well as a channel configuration table, a task control block, and a task scheduler; The channel configuration table is used to store the test parameters corresponding to each of the independent test channels; The data cache area is independently divided into multiple storage areas according to each independent test channel. Each storage area is used to store the test data and exception logs of the corresponding independent test channel. The task control block is used to record the running status of the independent test tasks corresponding to each independent test channel. The running status includes running, paused, completed, and abnormal. The task scheduler is used to read the channel configuration table, call the corresponding functional test subroutines according to the test items corresponding to each independent test channel, and use a priority-based time slice round-robin scheduling method to manage the creation, running, suspension, resumption and termination of each independent test task. Each of the functional test subroutines is encapsulated as an independent functional block, which can be called individually or in combination by the corresponding independent test task, and the test data of the corresponding independent test channel is written into the corresponding storage area in the data buffer through the data acquisition driver.

4. The PLC-based multi-driver batch parallel modular integrated testing system according to claim 1, characterized in that, The PC data analysis and storage terminal is also used to configure the acquisition mode of each of the independent test channels and send the acquisition mode to the PLC main control module. The acquisition mode includes a short-time high-precision acquisition mode with an acquisition frequency of 10 to 100 Hz and a long-time aging acquisition mode with an acquisition frequency of 0.1 to 1 Hz. The PLC main control module is also used to reconfigure the timer period register of the corresponding data acquisition task according to the acquisition mode and acquisition frequency of each independent test channel, so that the sampling period parameter can take effect dynamically without restarting the system.

5. The PLC-based multi-driver batch parallel modular integrated testing system according to claim 1, characterized in that, The functional test subroutines include position test subroutines, speed test subroutines, torque test subroutines, and multi-mode zero-return test subroutines; The position test subroutine is used to output a multi-segment position command including a position sequence of fixed-point positioning, reciprocating motion or limit motion, and to determine the positioning error, repeatability and return deviation based on the corresponding position command value and position feedback value. The speed test subroutine is used to output constant speed command, stepped speed change command or dynamic speed adjustment command, and to determine the steady-state speed error, dynamic response deviation and speed fluctuation based on the corresponding speed command value and speed feedback value. The torque test subroutine is used to output rated torque command, instantaneous torque command or overload torque command, and to determine torque output accuracy, overload stability and response hysteresis based on the corresponding torque command value and torque feedback value. The multi-mode zero-return test subroutine is used to perform cyclic zero-return tests according to at least one of the following zero-return modes: mechanical limit zero-return, photoelectric induction zero-return, encoder zero-point zero-return, and power-off restart zero-return. It obtains the zero-return position, zero-return time, and zero-return completion status of each zero-return test, determines the zero-return position deviation based on the zero-return position and the absolute zero point position, and determines the zero-return success rate based on the zero-return completion status.

6. The PLC-based multi-driver batch parallel modular integrated testing system according to claim 5, characterized in that, The system also includes a high and low temperature test chamber and an electromagnetic compatibility test instrument connected to the PLC main control module. The functional test subroutine also includes a high and low temperature environment test subroutine and an electromagnetic compatibility test subroutine. The high and low temperature environment test subroutine is used to send temperature setpoints or temperature setpoint sequences to the high and low temperature test chamber, obtain the actual temperature of the high and low temperature test chamber, and call at least one of the position test subroutine, speed test subroutine, torque test subroutine and multi-mode zero return test subroutine under the corresponding temperature conditions to control the corresponding driver under test to perform the test. The electromagnetic compatibility test subroutine is used to send interference injection commands to the electromagnetic compatibility test instrument according to a preset timing sequence during the execution of independent test tasks in the corresponding independent test channel, so that the corresponding driver under test can continuously perform tests under electromagnetic interference conditions, and monitor the communication stability and parameter output accuracy of the corresponding driver under test. The electromagnetic compatibility testing instrument includes at least one of an electrostatic discharge generator, an electrical fast transient / burst generator, and a surge generator.

7. The PLC-based multi-driver batch parallel modular integrated testing system according to claim 1, characterized in that, When monitoring the communication status of each independent test channel and the operating status of the corresponding driver under test, the PLC main control module is specifically used to identify anomalies and determine the corresponding anomaly types. The anomaly types include communication disconnection, data packet loss, driver alarm, overload error, error exceeding limit, and zero return failure. Among them, the error exceeding limit is when the following error of the corresponding independent test channel exceeds a preset error threshold. The PLC main control module is also used to trigger the recording of the anomaly log when a communication disconnection, the rising edge of the alarm bit of the driver under test, or the error exceeding limit is detected. The anomaly log also includes the anomaly type and the following error corresponding to the occurrence of the anomaly.

8. The PLC-based multi-driver batch parallel modular integrated testing system according to claim 1, characterized in that, When performing a horizontal comparative analysis of multi-channel test data for the same test project, the PC data analysis and storage terminal is specifically used to determine the performance statistics corresponding to each independent test channel. The performance statistics include the mean and standard deviation, as well as at least one of the maximum value, minimum value, and pass rate. The PC data analysis and storage terminal is also used to mark data points whose absolute value of the difference from the corresponding mean is greater than three times the corresponding standard deviation, based on the mean and standard deviation of the same performance parameter data of each independent test channel, as abnormal data points, and to mark the independent test channel to which the abnormal data points belong. The PC data analysis and storage terminal is also used to perform longitudinal comparison of historical test data of the same independent test channel, generate trend curves of performance parameters changing over time, and identify performance degradation inflection points. The PC data analysis and storage terminal is equipped with a standard threshold library for storing the preset judgment thresholds. When determining the test results of each independent test channel, it is specifically used to judge the performance accuracy, operational stability and number of anomalies of the corresponding driver under test according to the preset judgment thresholds in the standard threshold library, and to obtain a qualified or unqualified test result. The PC data analysis and storage terminal uses a local database for data storage and generates test record reports. The test record reports include at least one of the following: original test data table, follow-up error analysis chart, horizontal comparison chart, anomaly log, and test results.

9. The PLC-based multi-driver batch parallel modular integrated testing system according to any one of claims 1-8, characterized in that, When the PC data analysis and storage terminal summarizes the test data by test item, it is specifically used to summarize the test data of each independent test channel, the corresponding tracking error, and the abnormal information in the abnormal log according to the channel number and test item, and automatically generate a standardized test table classified by test item. The standardized test table corresponding to the same test item contains the data records of each independent test channel that performed the test item. The PC data analysis and storage terminal is also used to export the standardized test table to at least one of Excel, CSV, and PDF formats.

10. A batch parallel modular integrated testing method based on PLC multi-driver, characterized in that, include: Multiple drivers under test are connected to multiple electrically isolated independent test channels connected to the PLC main control module to complete communication initialization and system clock synchronization; The test parameters for each independent test channel are configured through the PC data analysis and storage terminal and then sent to the PLC main control module. The test parameters include test items and acquisition frequency. The PLC main control module creates independent test tasks for each of the independent test channels based on the test parameters, calls the corresponding functional test subroutines and issues test instructions, so that at least two of the independent test channels execute different test items in overlapping test periods. The PLC main control module, based on a unified clock source, synchronously acquires corresponding instruction data and feedback data according to the acquisition frequency of each independent test channel, associates the channel number, timestamp, and test item, obtains test data, and stores it in a data buffer area divided by channel; monitors the communication status of each independent test channel and the operating status of the corresponding driver under test, and records anomaly logs associated with the channel number, occurrence time, and corresponding instruction data and feedback data; The test data and the abnormal log in the data cache are uploaded to the PC data analysis and storage terminal through the PLC main control module. The PC data analysis and storage terminal determines the following error based on the instruction data and feedback data in the test data, and summarizes the test data according to the test items. The PC data analysis and storage terminal performs horizontal comparison analysis on the multi-channel test data of the same test project, and determines the test results of each independent test channel by combining the preset judgment threshold and the abnormal log. The test data, exception logs, and test results are stored on the PC data analysis and storage terminal, and a test record report is generated.