Automatic test system and test method for controller

Through the automated test system, the power control, communication, signal excitation and detection modules are used to realize automated testing of PLC I/O ports, solving the problems of low manual operation efficiency and insufficient accuracy in the existing technology, significantly improving the testing efficiency and reliability.

CN118897538APending Publication Date: 2024-11-05ZHEJIANG GUOLI XINAN TECH CO LTD

Patent Information

Application Number
CN202411359687.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The I/O port test of existing PLCs relies on manual operation, is inefficient and susceptible to human factors, resulting in inaccurate and reliable enough to fully evaluate the performance of I/O ports.

Method used

Provide an automated testing system, including a power control module, a communication module, a signal excitation module and a signal detection module, through the central processing module, automatically power supply, establish communication connections, provide excitation signals and detect output signals, and realize the Automatic power-on and functional testing of PLC.

Benefits of technology

It significantly improves testing efficiency and system reliability, avoids human operation errors, and realizes comprehensive testing of PLC I/O ports to ensure the accuracy and consistency of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897538A_ABST
    Figure CN118897538A_ABST
Patent Text Reader

Abstract

The invention provides an automatic testing system for a controller, a testing method for the automatic testing system for the controller, equipment and a medium, the system comprises a power supply control module, a communication module, a signal excitation module and a central processing module, and the power supply control module is configured to supply power to the controller; the communication module is configured to establish a communication connection with the controller, the signal excitation module is configured to provide an excitation signal to the controller, and the signal detection module is configured to detect an output signal of the controller. The central processing module is in communication connection with the above modules and is configured to automatically transmit corresponding control commands to the power supply control module, the communication module, the signal excitation module and the signal detection module according to a preset test model. The power supply control module supplies power to the controller, the communication module is in communication connection with the controller, and the signal excitation module and the signal detection module are used for testing conditions of a CPU, an input port and an output port of the controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial controller test systems and test methods, and in particular to an automatic test system and test method for a controller. Background Art

[0002] In the field of industrial automation, the stability of programmable logic controller (PLC) as a core control device is directly related to the reliable operation of the entire system. With the advancement of intelligent manufacturing, Industry 4.0 and the deepening of the concept of smart factories, PLCs are carrying more and more control functions. Therefore, the input / output (I / O) ports of PLCs are not only large in number but also in variety, and must be able to support multiple signal types such as digital, analog, and high-frequency pulses.

[0003] At present, the I / O port test of PLC mainly relies on manual operation, which is not only inefficient, but also easily affected by human factors, resulting in inaccurate and unreliable test results. In addition, the traditional test method requires using a signal generator or multimeter to stimulate or measure signals while opening the I / O ports one by one through hardware configuration to read or stimulate signals. This method is not only cumbersome to operate, but also easy to introduce human operation errors, and cannot fully evaluate the performance of the I / O port. Summary of the invention

[0004] In response to the above problems, the present invention provides an automated testing system and testing method for a controller, which can not only realize comprehensive I / O port testing, but also realize automatic power-on and functional testing of the controller through a test model, a signal excitation module and a signal detection module, thereby avoiding the influence of human operation, and significantly improving the testing efficiency and the reliability of the testing system, thus solving the above problems.

[0005] According to a first aspect of the present disclosure, there is provided an automated testing system for a controller, comprising: a power control module, which is configured to supply power to the controller; a communication module, which is configured to establish a communication connection with the controller; a signal excitation module, which is configured to provide an excitation signal to the controller; a signal detection module, which is configured to detect an output signal of the controller; and a central processing module, which is communicatively connected to the power control module, the communication module, the signal excitation module and the signal detection module, and is configured to automatically transmit corresponding control commands to the power control module, the communication module, the signal excitation module and the signal detection module according to a preset test model, so as to supply power to the controller through the power control module, establish a communication connection with the controller through the communication module, and test the CPU, input port and output port of the controller through the signal excitation module test and the signal detection module test, thereby completing the test of the controller.

[0006] In one embodiment, the central processing module is further configured to compare the test data with preset data to determine the accuracy of the test result and calculate the test result error.

[0007] In one embodiment, the automated testing system further comprises a storage unit communicatively connected to the central processing module, wherein the storage unit is configured to store the test model and transmit the test model to the central processing module.

[0008] In one embodiment, the automated testing system further comprises a user interface communicatively connected to the central processing module and the storage unit, wherein the user interface is configured to allow manual editing and saving of the test model, start the test system, and display the test results.

[0009] In one embodiment, the power control module is further configured to activate the relays or solid-state relays of the power supply device in a preset sequence according to the instructions from the central processing module, thereby powering on the controller within a predetermined range.

[0010] In one embodiment, the power control module includes a power failure protection unit configured to allow the power supply to be cut off manually or automatically when a current exceeding a predetermined threshold is detected.

[0011] In one embodiment, the communication module is integrated with multiple communication protocol interfaces and is configured to support any one or more of Ethernet communication and serial communication.

[0012] In one embodiment, the test model includes multiple test points, a test case corresponding to each test point, and an automatic test process corresponding to the multiple test points.

[0013] In one embodiment, the test model includes a CPU test model, which is configured to be parsed by the central processing module, so that the automated test system can automatically perform communication testing, output port testing, and input port testing.

[0014] In one embodiment, the test model also includes an output port test model, which is configured to be parsed by the central processing module, so that the central processing module automatically sends instructions to the controller through the communication module for each test point to generate a signal through the CPU of the controller and output the signal through the output port of the controller, and the control signal detection module automatically detects the output signal, thereby completing the test of the output port.

[0015] In one embodiment, the output port test model includes a digital output port test model, the test points of the digital output port test model include at least an output capability test, and the test case corresponding to the output capability test includes the central processing module automatically sending an instruction to the controller to output a signal through the digital output port of the controller, and controlling the signal detection module to automatically and continuously detect the output signal, and Connect each channel of the digital output port to an adjustable load and gradually increase the load until the detected output signal reaches the maximum.

[0016] In one embodiment, the output port test model includes an analog output port test model, wherein the test points of the analog output port test model include at least an output range test, and the test case corresponding to the output range test includes a central processing module automatically sending instructions to a controller so that the CPU of the controller generates a series of signals from the minimum value to the maximum value of the analog output port to output signals through the analog output port, and controls the signal detection module to automatically and continuously detect the output signal.

[0017] In one embodiment, the test model also includes an input port test model, which is configured to be parsed by a central processing module, so that the central processing module automatically controls the signal excitation module to generate an excitation signal for each test point and inputs the excitation signal to the input port of the controller, and automatically obtains the signal from the input port received by the CPU through the communication module, thereby completing the test of the input port.

[0018] In one embodiment, the input port test model includes a digital input port test model, and the test points of the digital input port test model include at least a threshold test. The test case corresponding to the threshold test includes the central processing module automatically controlling the signal excitation module to generate a series of excitation signals within the ON / OFF threshold range to transmit the excitation signal to the digital input port of the controller, and automatically obtaining the signal received by the CPU from the digital input port through the communication module.

[0019] In one embodiment, the central processing module is further configured to record changes in the signal obtained when the excitation signal reaches an ON threshold and changes in the signal obtained when the excitation signal is below an OFF threshold.

[0020] In one embodiment, the input port test model includes an analog input port test model, and the test points of the analog input port test model include at least an acquisition range test. The test case corresponding to the acquisition range test includes a central processing module automatically controlling a signal excitation module to generate a series of excitation signals within the input range of the analog input port, so as to transmit the excitation signal to the analog input port of the controller, and continuously and automatically obtain the signal received by the CPU from the analog digital input port through the communication module.

[0021] In one embodiment, the signal detection module is integrated with a high-precision clock source and is configured to achieve acquisition timestamp synchronization.

[0022] According to a second aspect of the present disclosure, there is provided a testing method for an automated testing system for a controller as in any one of the aforementioned embodiments, comprising the following steps: selecting a test model; parsing the test model by a central processing module, and then the central processing module automatically transmitting corresponding control commands to a power control module, a communication module, a signal excitation module and a signal detection module according to the parsed test model, so as to test the controller through the following operations: supplying power to the controller through the power control module; establishing a communication connection with the controller through the communication module; testing the CPU, output port and input port of the controller through the signal excitation module test and the signal detection module test.

[0023] In another embodiment, the testing method further includes editing and saving the test model through a user interface of the automated testing system, starting the testing system, and reading the test results.

[0024] In another embodiment, the test model includes an output port test model, and the test method further includes: parsing the output port test model through a central processing module, and then the central processing module automatically sends instructions to the controller through the communication module for each test point according to the parsed output port test model, so as to generate a signal through the CPU of the controller and output the signal through the output port of the controller, and the control signal detection module automatically detects the output signal, thereby completing the test of the output port.

[0025] In another embodiment, the test model includes an input port test model, and the test method further includes: parsing the input port test model through a central processing module, and then the central processing module automatically controls the signal excitation module to generate an excitation signal for each test point according to the parsed input port test model and inputs the excitation signal to the input port of the controller, and automatically obtains the signal from the input port received by the CPU through the communication module, thereby completing the test of the input port.

[0026] According to a third aspect of the present disclosure, a computing device for testing a domain controller is provided, comprising one or more processors; and a memory storing computer executable instructions, which, when executed by the one or more processors, cause the one or more processors to execute a testing method for a controller according to any one of the aforementioned other embodiments.

[0027] According to a fourth aspect of the present disclosure, there is provided a non-volatile storage medium having computer executable instructions stored thereon, which, when executed by a computer, causes the computer to execute a test method for a controller according to any one of the aforementioned other embodiments.

[0028] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements.

[0030] Figure 1 A schematic diagram of an automated testing system according to an embodiment of the present disclosure is shown.

[0031] Figure 2 A schematic diagram of a CPU test model according to an embodiment of the present disclosure is shown.

[0032] Figure 3 A schematic diagram of a digital output test model according to an embodiment of the present disclosure is shown.

[0033] Figure 4 A schematic diagram of a simulation output test model according to an embodiment of the present disclosure is shown.

[0034] Figure 5 A schematic diagram of a digital input test model according to an embodiment of the present disclosure is shown.

[0035] Figure 6 A schematic diagram of a simulated input test model according to an embodiment of the present disclosure is shown.

[0036] Figure 7 A flow chart of a testing method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0037] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0038] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". Other explicit and implicit definitions may also be included below.

[0039] As mentioned above, the I / O port test of the existing controller mainly relies on manual operation. The manual method of troubleshooting code errors is not only inefficient, but also easily affected by human factors, resulting in inaccurate and unreliable test results. Moreover, the existing test system usually relies on a signal generator or a multimeter to collect and stimulate signals, and cannot achieve comprehensive I / O port testing. Although in order to improve test efficiency and accuracy, the prior art discloses some automated test systems. It uses an industrial computer with multiple types of boards integrated internally, and expands the interface through PCI-E and PCI plug-in solutions. These multi-interface test systems can test multiple interfaces such as LVDS high-speed interface, digital audio interface and optical fiber interface, and use FPGA as the core processor to transmit data through a high-speed bus to meet test requirements.

[0040] However, the existing technology still has some problems. Specifically, although the multi-interface automated test system can provide a variety of test functions, it generally has wiring, space and movement restrictions, and the test system has limited scalability and is difficult to adapt to future technological developments and new test requirements.

[0041] Therefore, the present disclosure provides an improved automated test system for a controller, which can realize comprehensive input / output (I / O) port testing through a test model, a signal excitation module, and a signal detection module, and can also realize automatic power-on and functional testing of the controller, thereby avoiding the influence of human operation, thereby significantly improving the test efficiency and the reliability of the test system. The automated test system for a controller according to various embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the actual test system may have other components, but in order to avoid blurring the focus of the present disclosure, the present disclosure does not discuss these other components and the accompanying drawings do not show them.

[0042] Figure 1 An automated testing system for a controller according to some embodiments of the present disclosure is shown. Figure 1As shown, the automated test system includes a power control module, a communication module, a signal excitation module, a signal detection module and a central processing module, wherein the central processing module is in communication connection with the power control module, the communication module, the signal excitation module and the signal detection module. The power control module can be configured to supply power to the controller. The communication module can be configured to establish a communication connection with the controller. The signal excitation module can be configured to simulate various input signals to provide an excitation signal to the controller. The signal detection module can be configured to detect the output signal of the controller. The central processing module can be configured to automatically transmit corresponding control commands to the power control module, the communication module, the signal excitation module and the signal detection module according to a preset test model.

[0043] Specifically, the central processing module analyzes the preset test model, and then supplies power to the controller through the power control module according to the analyzed test model, establishes a communication connection with the controller through the communication module, and tests the CPU, output port and input port of the controller through the signal excitation module and the signal detection module, thereby completing the test of the controller. The central processing module is also configured to compare the test data with the preset data to determine the accuracy of the test result and calculate the test result error.

[0044] The test model includes multiple test points, test cases corresponding to each test point, and automatic test processes corresponding to multiple test points. Among them, the test model includes a CPU test model, which is configured to be parsed by the central processing module, so that the automated test system can automatically perform communication tests, IO instruction control and data acquisition tests. The test model also includes an output port test model, which is configured to be parsed by the central processing module, so that the central processing module automatically sends instructions to the controller through the communication module for each test point, so as to generate a signal through the CPU of the controller and output the signal through the output port of the controller, and the control signal detection module automatically detects the output signal, thereby completing the test of the output port. The test model also includes an input port test model, which is configured to be parsed by the central processing module, so that the central processing module automatically controls the signal excitation module to generate an excitation signal for each test point and inputs the excitation signal to the input port of the controller, and automatically obtains the signal from the input port received by the CPU through the communication module, thereby completing the test of the input port.

[0045] Optionally, the test model is stored in a storage unit that is communicatively connected to the central processing module, and the storage unit is configured to store the test model and transmit the test model to the central processing module. The automated test system also includes a user interface that is communicatively connected to the central processing module and the storage unit, and the user interface is configured to allow manual editing and saving of the test model, start the test system, and display test results.

[0046] In the automated test system, the power control module is configured to activate the relay or solid-state relay of the power supply device in a preset order according to the instructions from the central processing module, thereby realizing the power-on of the controller and providing the controller with a voltage within a predetermined range. The automated test system can also remotely power off the controller through the power control module, thereby providing an automated power switch function for the controller. Preferably, the power control module may also include a power-off protection unit, so that the user can manually cut off the power supply as needed or automatically cut off the power supply when a current exceeding a predetermined threshold is detected.

[0047] Exemplarily, the power-off protection unit is an emergency power-off button externally mounted on the power control module, which allows the emergency power-off button to be used to timely cut off the power supply in case of an emergency, thereby protecting the safety of equipment and personnel. The power-off protection unit may also be integrated with an overload protection circuit, so that when the power-off protection unit of the power control unit detects that the current of the controller exceeds the set safety value, the power supply is automatically disconnected, thereby protecting the controller and the test system. In addition, the power-off protection unit may also be designed with a short-circuit protection logic, which will automatically cut off the power supply and trigger an alarm immediately once it detects that the short-circuit logic is satisfied. Moreover, the power control module adopts isolation technology, thereby protecting the automated test system and the controller from damage by high voltage and current, thereby ensuring the stability and safety of the automated test system. Moreover, the power-off protection unit may also be designed with a clear indicator light and an alarm system, thereby displaying the power supply status in a normal power-on or power-off state, and sounding an alarm in abnormal situations such as overload and short circuit as described above.

[0048] The communication module is integrated with a variety of communication protocol interfaces for data exchange with the controller, and is configured to support any one or more of Ethernet communication and serial communication. Exemplarily, the communication module uses a high-performance communication chip and a stable communication protocol Modbus compatible with the controller, and supports Modbus RTU / TCP. In addition, the communication module has a good shielding and grounding design, which can reduce electromagnetic interference and improve communication stability. Preferably, a data buffer is also configured in the communication module to temporarily store received and sent data to prevent data overflow. In addition, the communication module is added with a CRC check function, which can provide communication error detection.

[0049] The signal excitation module can simulate various excitation signals and is also integrated with a timer with high-precision timing control function, thereby ensuring synchronous excitation signal input for multiple channels to ensure synchronous update of the controller's input port status.

[0050] The signal detection module uses a high-resolution and high-sampling-rate ADC to ensure that analog signals can be accurately converted, and uses a high-precision clock source to ensure that the timestamps of all input signals are accurately synchronized. In addition, both the signal excitation module and the signal detection module are integrated with overload protection and short-circuit protection units to prevent damage to the input ports and output ports of the controller.

[0051] In order to achieve comprehensive automated testing, the test model is configured to allow users to define and save custom test sequences and test parameters, so that the central processing unit of the automated test system can automatically execute test cases according to the preset test model, provide verification and assertion functions for test results, and ensure the comprehensiveness of the test. In addition, the test model adopts a structured design, defines test points, test cases, and test processes, and can ensure comprehensive verification of the controller's I / O functions.

[0052] In general, the test model adopts a refined design and clearly divides the test points, including key performance indicators such as signal integrity, response time, accuracy, and stability. Through carefully designed test cases, the test model covers a full range of scenarios from routine operations to edge conditions. At the same time, the test process in the test model stipulates standardized operations, thereby ensuring automated execution and monitoring, and ensuring the consistency, repeatability, and comprehensiveness of the test. In addition, the test model is also equipped with intelligent diagnosis and real-time feedback mechanism functions, so that the central processing module can quickly identify and locate potential problems based on the test results obtained, thereby improving test efficiency and accuracy. For different products, the controller's CPU test model, digital output port test model, analog output port test model, digital input port test model, and analog input port test model can also be preset in the storage module through the user interface.

[0053] like Figures 2 to 6 As shown, the test points of the CPU test model optionally include Ethernet communication tests, specifically including Ethernet interface, connection speed and connection mode tests, and the test points of the CPU test model also optionally include serial communication tests, specifically including serial interface baud rate, data bits, stop bits and check bits tests.

[0054] like Figure 2As shown, the CPU test model may include an Ethernet communication test point, a serial communication test point, and an IO instruction control and data acquisition test point. Wherein, the test case corresponding to the Ethernet communication test point includes configuring the Ethernet interface of the controller and setting the IP address, and then the automated test system automatically sends a data packet to the controller through the communication module according to the TCP / IP protocol, and automatically collects the response time and data transmission rate of the controller through the communication module. The test case corresponding to the serial communication test point includes the central processing module of the automated test system automatically setting the serial communication parameters of the controller, such as baud rate, data bit, stop bit and check bit, and automatically sending a test data string to the controller through the communication module, and then verifying whether the reception and response of the controller are accurate through the display state of the controller. Optionally, the central processing module of the automated test system can also be used to configure the digital output port channel of the controller CPU through the communication module, send an ON or OFF signal through the communication module, and send a series of analog output port instructions to adjust the output value of the analog output port signal. In addition, the data of all digital output ports, digital input ports, analog output ports and analog input ports collected in the controller CPU can also be periodically obtained through the communication unit.

[0055] like Figure 3 As shown, the test points of the digital output port test model at least include an output capacity test, and the test case corresponding to the output capacity test includes the central processing module automatically sending instructions to the controller according to the digital output port test model to generate a digital output signal through the CPU of the controller and output the signal through the digital output port of the controller, and controlling the signal detection module to automatically and continuously detect the output signal. Optionally, the test case corresponding to the output capacity test may also include connecting each channel of the digital output port of the controller to an adjustable load, and gradually increasing the load until the detected output signal reaches the maximum, that is, until the maximum output capacity of the digital output port is reached.

[0056] Optionally, the test points of the digital output port test model also include short-circuit protection. The test cases corresponding to the short-circuit protection include the central processing module simulating a short-circuit condition according to the digital output port test model, automatically sending the short-circuit condition data to the CPU of the controller through the communication module, and automatically detecting the signal of the digital output port of the controller through the signal detection module to verify whether the protection mechanism of the digital output port is triggered and whether the monitoring channel is damaged.

[0057] Optionally, the test points of the digital output port test model also include a response time test. The test case corresponding to the response time test includes the central processing module sending a digital output port closing instruction to the CPU of the controller through the communication unit according to the digital output port test model to control the output closing of the digital output port, and automatically detecting the time required for the digital output port output closing to change from receiving the instruction to the state change through the signal detection module.

[0058] like Figure 4 As shown, the output port test model includes an analog output port test model, wherein the test points of the analog output port test model include at least an output range test, and the test case corresponding to the output range test includes the central processing module automatically sending instructions to the controller, so that the CPU of the controller generates a series of signals from the minimum value to the maximum value of the analog output port to output the signal through the analog output port, and controls the signal detection module to automatically and continuously detect the output signal.

[0059] The test points of the analog output port test model may also include accuracy and load capacity tests. The test cases corresponding to the accuracy and load capacity tests include the central processing module automatically sending instructions to the controller according to the analog output port test model, so that the CPU of the controller generates an analog output signal to be output through the analog output port connected to different loads, and controls the signal detection module to automatically and continuously detect the output signal, thereby verifying the output accuracy and load capacity based on the detected output signal.

[0060] The test points of the analog output port test model may also include stability testing. The test cases corresponding to the stability test include the central processing module automatically sending instructions to the controller according to the analog output port test model, so that the CPU of the controller generates an analog output signal to output the analog output port, and controls the signal detection module to automatically monitor the output signal of the analog output port for a long time to evaluate the stability of the analog output port.

[0061] The test points of the analog output port test model may also include a step response test. The test cases corresponding to the step response test include the central processing module automatically sending instructions to the controller according to the analog output port test model, so that the CPU of the controller generates an analog output signal to simulate the output port output, and controls the signal detection module to automatically monitor the time required for the analog output port to generate an output signal state change from receiving the instruction to generating an output signal state change.

[0062] like Figure 5As shown, the digital input port test model may include a threshold test. The test case corresponding to the threshold test includes the central processing module of the automated test system automatically controlling a series of excitation signals generated by the signal excitation module within the ON / OFF threshold range according to the digital input port test model, automatically transmitting the excitation signal to the digital input port of the controller, and automatically acquiring the signal from the digital input port received by the CPU through the communication module, and then recording the change of the signal collected by the digital input port when the signal reaches the ON threshold and the change of the signal collected by the digital input port when the signal is lower than the OFF threshold. Exemplarily, the signal excitation module uses a signal generator to generate an excitation signal within the ON / OFF threshold range.

[0063] The digital input port test model may also include a filter time test, and the test case corresponding to the filter time test includes the central processing module of the automated test system automatically controlling the signal excitation module to generate excitation signals of different frequencies according to the digital input port test model, sending the excitation signal to the digital input port input, and automatically obtaining the signal received by the CPU from the digital input port through the communication module. Optionally, the test case corresponding to the filter time test also includes controlling the signal excitation module to simulate jitter, monitoring the changes in the input state of the digital input port acquisition, and automatically calculating its filter time.

[0064] like Figure 6 As shown, the test points of the analog input port test model at least include the acquisition range test, and the test case corresponding to the acquisition range test includes the central processing module automatically controlling the signal excitation module to generate a series of excitation signals within the input range of the analog input port according to the analog input port test model, so as to transmit the excitation signal to the analog input port of the controller, and continuously and automatically obtain the signal received by the CPU from the analog digital input port through the communication module. The analog input port test model generates a series of analog signals within the input range of the analog input port by controlling the signal excitation module, which can ensure that the test covers the entire input range, and uses a high-precision signal source to provide a known reference value according to the analog input port test model, which can effectively avoid errors and monitor the stability under long-term operation.

[0065] It should be understood that the test points of the above-mentioned input port test model and output port test model are not limited to the test points described in detail above, and may also include other test points. For example, the test points of the digital input port test model may include the ON threshold range, OFF threshold range and filtering time of the controller digital input port. The test points of the analog input port test model may include the acquisition range, acquisition accuracy, long-term stability and over-range detection of the controller analog input port. The test points of the digital output port test model may include the short-circuit protection, response time, load capacity under the power distribution output capacity of the controller digital output port, and the short-circuit protection and response time under the non-power distribution output capacity. The test points of the analog output port test model may include the power distribution output range, output accuracy, load capacity, step response time, long-term stability, short-circuit protection of the controller analog output port, the non-power distribution output range, output accuracy, load capacity, long-term stability and short-circuit protection, etc., which are not repeated here.

[0066] Moreover, the central processing module is also configured to compare the test data with the preset data to determine the accuracy of the test results and calculate the test result error. The central processing module is also configured to automatically summarize the test configuration, performance indicators and error logs by generating a comprehensive test report based on the test results, providing users with a clear overview of the test results, helping to quickly locate problems and optimize performance, thereby solving the problem of unintuitive and time-consuming post-test data analysis.

[0067] like Figure 7 As shown, a test method for an automated test system for a controller, wherein the test method comprises the following steps: Select the test model through the user interface; The test model is parsed by the central processing module, and then the central processing module automatically transmits corresponding control commands to the power control module, communication module, signal excitation module and signal detection module according to the parsed test model to test the controller through the following operations: Supply power to the controller through the power control module; Establishing a communication connection with the controller through the communication module; and The controller's CPU, input port and output port are tested through the signal excitation module test and the signal detection module.

[0068] The test model includes an output port test model, and the test method also includes parsing the output port test model through a central processing module, and then the central processing module automatically sends instructions to the controller through a communication module for each test point according to the parsed output port test model, so as to generate a signal through the CPU of the controller and output the signal through the output port of the controller, and the control signal detection module automatically detects the output signal, thereby completing the test of the output port.

[0069] The test model includes an input port test model, and the test method also includes parsing the input port test model through a central processing module, and then the central processing module automatically controls the signal excitation module to generate an excitation signal for each test point according to the parsed input port test model and inputs the excitation signal to the input port of the controller, and automatically obtains the signal from the input port received by the CPU through the communication module, thereby completing the test of the input port.

[0070] Optionally, the testing method for the automated testing system further includes editing and saving the test model and reading the test result through a user interface of the automated testing system.

[0071] Optionally, the user can select a power-on instruction through the user interface, and then the power control unit receives the instruction and automatically powers the controller according to a preset power sequence. The test method also includes issuing a power-off instruction through the user interface after the test is completed, and automatically cutting off the power supply of the controller using the power control unit. Compared with manual power on and off, the automated test system provided by the present disclosure has an automated power on and off function, which can reduce manual operations and improve efficiency.

[0072] Optionally, after the controller is powered on, the controller status is confirmed after the automatic test system establishes a communication connection with the controller, and after the confirmation is completed, the IO detection is prepared.

[0073] The testing method also includes comparing and analyzing the collected input and output data with the preset test model after the test is completed to verify the test results. Statistical analysis methods and automated scripts can also be used to analyze the data comparison results. Based on the results of the comparative analysis, a test result model is formed to highlight any abnormalities that deviate from the expected behavior. The recorded test results can also be read through the user interface to view detailed test reports.

[0074] As required, the above-mentioned automatic testing system can also be set to a loop mode, so that the automatic testing system automatically repeats the above-mentioned testing process.

[0075] The present disclosure also provides a computing device for testing a controller, which includes one or more processors and a memory storing computer executable instructions. When the computer executable instructions are executed by the one or more processors, the one or more processors execute a testing method for a controller according to any of the aforementioned embodiments of the present disclosure.

[0076] The present disclosure also provides a non-transitory storage medium having computer executable instructions stored thereon, which, when executed by a computer, enables the computer to execute a test method for a controller according to any of the aforementioned embodiments of the present disclosure.

[0077] According to the automated test system and test method disclosed in the present invention, it is possible to automatically realize comprehensive, reliable, accurate and rapid functional verification of the controller, ensure the consistency and repeatability of each test through the automated solution, confirm whether the signal response speed and time accuracy of the tested controller meet the design requirements, thereby abandoning the traditional manual test control method, effectively avoiding the error interference caused by human operation, ensuring the integrity of signal transmission, and improving the test efficiency and quality. Moreover, the automated test system simulates the input signal in the production process through the signal excitation module, which can ensure the accuracy and stability of the input signal, and the real-time data acquisition and processing capabilities allow instant monitoring of the test status and rapid response, thereby avoiding the impact on the test results. The automated test system can also provide precise input signals and accurately read output signals, thereby ensuring the accuracy of the test results. The automated test solution improves the objectivity and accuracy of the results by eliminating human factors, and significantly improves the overall test efficiency.

[0078] Moreover, the automated test system provided by the present disclosure supports custom test sequences and scripts to improve the flexibility and coverage of the test. Comprehensive test scripts and automated processes ensure extensive test coverage, ensuring that the test model can cover all key I / O functional points, including edge cases and abnormal tests. By establishing standardized test modules to form standardized test processes, the consistency and comparability of test results in different test scenarios are ensured. In addition, the test module can configure an automated error judgment mechanism according to demand, thereby facilitating accurate error calculation and judgment of the test results of the port channel, thereby achieving refinement and in-depth analysis of the test. At the same time, the automated test system adopts a modular design, which enables the automated test system to adapt to test requirements of different scales and types, providing a high degree of flexibility and configurability.

[0079] The automated test system can monitor data in real time through the signal detection module and user interface, providing transparent management and immediate feedback of the test process. The automatically generated test report provides detailed documentation of the test activities, which is helpful for recording and auditing. The accuracy and reliability of the test results are improved through precise comparison with the preset test model. Subsequent models can quickly identify faults and performance deviations, providing data support for risk assessment and troubleshooting.

[0080] In summary, the present invention provides a powerful controller automation test solution through highly modular design, sophisticated configuration management, flexible data processing capabilities, intelligent test result verification and a comprehensive log reporting system, which effectively meets the test requirements in different application scenarios and improves test efficiency and accuracy. Through the above design, the automated test system can not only support comprehensive I / O port coverage and intelligent adaptation, but also realize accurate timing and signal simulation, automated test sequence and fault injection, visual monitoring and instant feedback, and comprehensive test reports and data analysis, thereby significantly improving test efficiency and system reliability, and meeting the high standards for intelligent manufacturing in the Industrial 4.0 era.

[0081] Those skilled in the art should understand that the present invention is not limited to the above-mentioned embodiments, and the present invention can be implemented in many other forms without departing from its purpose and scope. Therefore, the examples and embodiments shown are regarded as illustrative rather than restrictive, and the present invention can cover various modifications and substitutions without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. An automated test system for a controller, It is characterized in that include: a power control module configured to supply power to the controller; a communication module configured to establish a communication connection with the controller; A signal excitation module, configured to provide an excitation signal to the controller; a signal detection module, configured to detect an output signal of the controller; as well as A central processing module, wherein the central processing module is communicatively connected with the power control module, the communication module, the signal excitation module and the signal detection module and is configured to: According to a preset test model, corresponding control commands are automatically transmitted to the power control module, the communication module, the signal excitation module and the signal detection module to test the central processing unit, input port and output port of the controller through the signal excitation module and the signal detection module.

2. The automated testing system according to claim 1, It is characterized in that The central processing module is also configured to compare the test data with preset data to determine the accuracy of the test result and calculate the test result error.

3. The automated testing system according to claim 2, It is characterized in that The invention also includes a storage unit communicatively connected to the central processing module, wherein the storage unit is configured to store the test model and transmit the test model to the central processing module.

4. The automated testing system according to claim 3, It is characterized in that The test model includes multiple test points, test cases corresponding to each test point, and automatic test processes corresponding to the multiple test points.

5. The automated testing system according to claim 4, It is characterized in that The test model includes a central processing unit test model, and the central processing unit test model is configured to: It can be parsed by the central processing module so that the automated testing system can automatically perform communication testing, output port testing and input port testing.

6. The automated testing system according to claim 5, It is characterized in that The test model further comprises an output port test model, wherein the output port test model is configured to: The central processing module analyzes the data, so that the central processing module automatically sends instructions to the controller through the communication module for each test point; The signal detection module is controlled to automatically detect the output signal to complete the test of the output port.

7. The automated testing system according to claim 6, It is characterized in that The output port test model includes a digital output port test model and an analog output port test model.

8. The automated testing system according to claim 5, It is characterized in that The test model further comprises an input port test model, wherein the input port test model is configured to: The central processing module analyzes the data, so that the central processing module automatically controls the signal excitation module to generate an excitation signal for each test point and inputs the excitation signal to the input port of the controller; as well as The signal from the input port received by the central processor is automatically acquired through the communication module, thereby completing the test of the input port.

9. The automated testing system according to claim 6, It is characterized in that The input port test model includes a digital input port test model and an analog input port test model.

10. A testing method using the automated testing system for a controller according to any one of claims 1 to 9, It is characterized in that The test method includes: Select the test model for the controller; The test model is parsed by the central processing module, and then the central processing module automatically transmits corresponding control commands to the power control module, the communication module, the signal excitation module and the signal detection module according to the parsed test model, so as to test the controller through the following operations: Supplying power to the controller via the power control module; Establishing a communication connection with the controller through the communication module; and The central processing unit, output port and input port of the controller are tested by the signal excitation module test and the signal detection module test.

11. A computing device for testing a domain controller, It is characterized in that include: one or more processors; as well as A memory storing computer executable instructions, which when executed by the one or more processors cause the one or more processors to perform the testing method for a controller according to claim 10.

12. A non-transitory storage medium having computer executable instructions stored thereon, It is characterized in that When the computer executable instructions are executed by a computer, the computer performs the testing method for a controller according to claim 10 .

Citation Information

Patent Citations

  • Equipment and method for testing universal IO interface of FPGA

    CN111338326A

  • Test system and test method for vehicle body domain controller

    CN115599076A

  • Automatic testing arrangement of automobile body controller network communication signal

    CN206671879U

Cited By

  • Motion control function block test system and method

    CN119556684A