Circuit board automatic test method, system and device and storage medium

Through the automated testing method of servo drives and communication protocols, the problems of poor board testing flexibility and high maintenance costs are solved, efficient and stable board testing is achieved, and human resource requirements and maintenance time are reduced.

CN119044738AInactive Publication Date: 2024-11-29TSINO-DYNATRON ELECTRICAL TECH (BEIJING) CO LTD

Patent Information

Application Number
CN202411526118.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2024-11-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing circuit board testing methods are poor in flexibility, and each circuit board needs to be equipped with special testing tooling, which has high maintenance costs, long testing time, poor compatibility, and occupies human resources.

Method used

Automatic testing methods are realized through servo drives, and communication protocols such as RS232, RS485, Modbus TCP/IP are used to connect the upper computer and each device. Scan the code to obtain the circuit board serial number, automatically obtain the test cases, and automatically press down the test point after the tester leaves. , collect data and upload it to the server, supporting Ether CAT and CAN communication protocols.

Benefits of technology

Improves the flexibility and production efficiency of circuit board testing, reduces maintenance costs, reduces human resource requirements, and ensures test consistency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119044738A_ABST
    Figure CN119044738A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a circuit board automatic testing method, system and device and a storage medium. The method comprises the steps that an upper computer is in communication connection with a program control direct-current power source, an analog-to-digital acquisition board card, a PLC and an interface adapter board; acquiring a serial number of a circuit board to be tested by using a code scanning gun, analyzing the serial number and acquiring a corresponding circuit board function test case from a database; when the tester leaves the test bench, the pressure plate is automatically pressed down to connect the test point of the circuit board to be tested with the test pin, the test case is automatically called for testing, data and high voltage are collected, detection feedback is performed through PLC analog quantity and sent to the upper computer, and production test data are generated. And recording and uploading the production test data to a server. According to the embodiment of the invention, various voltage environments can be provided, different types of signals can be detected, and different circuit boards can be automatically tested, so that the production efficiency of an existing circuit board test tool is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of circuit board testing, and in particular to a circuit board automatic testing method, system, equipment and storage medium. Background Art

[0002] PCB Test System (PTS) is a general term for a type of system that can automatically complete stimulation, measurement, data processing, display or output test results under the control of a computer. PCB testing is used to complete the performance test of the PCB under test. Common PCB testing methods include insulation resistance testing, continuity testing, high voltage testing and functional testing. In-circuit testing (ICT) is a necessary test equipment for modern PCB manufacturers. It detects open circuits, short circuits, and faults of all parts of the PCBA by contacting the test points on the PCB layout with test probes, and clearly informs the staff.

[0003] Conventional circuit board testing can only be equipped with a dedicated test fixture for each circuit board, which has very poor flexibility. When other circuit boards need to be tested, new test fixtures need to be rebuilt for testing. In addition, different circuit boards have different test programs, and corresponding test programs need to be added, which has high maintenance costs. This will result in long test time, single test, poor compatibility, and occupying human resources for maintenance and update, which has high time costs. Summary of the invention

[0004] To this end, the embodiments of the present invention provide a circuit board automated testing method, system, device and storage medium to solve the technical problems of poor flexibility and high maintenance cost in the prior art of testing using dedicated testing tools.

[0005] In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:

[0006] According to a first aspect of an embodiment of the present invention, a circuit board automatic testing method is provided, the method being applied to a servo drive and comprising:

[0007] S1. Establish a communication connection between the host computer and the program-controlled DC power supply through the RS232 serial port, establish a communication connection between the host computer and the analog-to-digital acquisition board through PICE, establish a communication connection between the host computer and the PLC through the Modbus TCP / IP bus, and establish a communication connection between the host computer and the interface adapter board through the RS485 serial port;

[0008] S2, obtaining a circuit board to be tested and using a barcode scanner to obtain the serial number of the circuit board to be tested, sending the serial number to a host computer, and the host computer parses the serial number and obtains a corresponding circuit board function test case from a database;

[0009] S3, detecting whether the tester has left the test bench, and when the tester has left the test bench, automatically pressing down the pressing plate to connect the test point of the circuit board to be tested with the test needle and starting to automatically call the test case for testing;

[0010] S4. Use the analog acquisition card to collect data and high voltage, detect and feedback through the PLC analog quantity and send it to the host computer, and at the same time determine whether the signal of the circuit board to be tested is qualified, generate production test data, record the production test data and upload it to the server.

[0011] Furthermore, the RS485 protocol of the RS485 serial port is an EtherCAT communication protocol or a CAN communication protocol.

[0012] Furthermore, detecting whether the tester has left the test bench includes:

[0013] The host computer receives the start command from the user and determines whether the tester has left the test bench;

[0014] If the tester has not left the test bench, a prompt is issued to ask the tester to leave the test bench as soon as possible;

[0015] If the tester has left the test bench, the pressing plate is automatically pressed down to connect the test points of the circuit board to be tested with the test needles.

[0016] Furthermore, an IO unit is constructed through the Modbus-TCP protocol between the host computer and the PLC, and the IO unit is used to control the electrical appliances;

[0017] The host computer, the PLC and the IO unit jointly form a test environment for the test case.

[0018] Furthermore, the circuit board to be tested is powered by the program-controlled power supply and the constant voltage source, and each acquisition signal and the communication interface are communicatively connected via an interface adapter board.

[0019] Furthermore, the host computer also includes:

[0020] Use EtherCAT to burn ESI files and firmware.

[0021] Furthermore, an analog acquisition card is used to collect data and high voltage, including:

[0022] The data collected by the analog quantity acquisition card includes: differential signal measurement data, single-ended signal measurement data, PWM waveform measurement data and diode detection data.

[0023] According to a second aspect of an embodiment of the present invention, there is provided a circuit board automatic testing system, the system comprising:

[0024] The communication connection module is used to establish a communication connection between the host computer and the program-controlled DC power supply through the RS232 serial port, to establish a communication connection between the host computer and the analog-to-digital acquisition board through PICE, to establish a communication connection between the host computer and the PLC through the Modbus TCP / IP bus, and to establish a communication connection between the host computer and the interface adapter board through the RS485 serial port;

[0025] The test case acquisition module is used to acquire the circuit board to be tested and obtain the serial number of the circuit board to be tested by using a barcode scanner, and send the serial number to the host computer. The host computer parses the serial number and obtains the corresponding circuit board function test case from the database;

[0026] The test module is used to detect whether the tester has left the test bench. When the tester has left the test bench, the pressure plate is automatically pressed down to connect the test point of the circuit board to be tested with the test needle and the test case is automatically called for testing;

[0027] The data recording module is used to collect data and high voltage using an analog acquisition card, detect and feedback through PLC analog quantities and send them to the host computer, while determining whether the signal of the circuit board to be tested is qualified, generate production test data, and record and upload the production test data to the server.

[0028] According to a third aspect of an embodiment of the present invention, there is provided a circuit board automatic testing device, the device comprising: a processor and a memory;

[0029] The memory is used to store one or more program instructions;

[0030] The processor is used to run one or more program instructions to execute the steps of a circuit board automatic testing method as described in any one of the above items.

[0031] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a circuit board automatic testing method as described in any one of the above items are implemented.

[0032] The embodiments of the present invention have the following advantages:

[0033] The embodiment of the present invention can provide a variety of voltage environments, and can detect different types of signals, and can perform automated testing on different circuit boards, thereby improving the current production efficiency of circuit board testing tooling, ensuring product testing consistency, and reducing the maintenance cost of later tooling equipment hardware and test programs. There is no need to occupy a large amount of human resources to redevelop new equipment and test programs, which reduces maintenance time, improves the production efficiency of servo drives, ensures high test stability, and improves production test quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0035] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0036] Figure 1 A schematic diagram of the logical architecture of a circuit board automatic testing system provided by an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of a flow chart of a circuit board automated testing method provided by an embodiment of the present invention;

[0038] Figure 3 A schematic diagram of a test system for a circuit board automated testing method provided by an embodiment of the present invention;

[0039] Figure 4 A flow chart of a test case in a circuit board automatic testing method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Conventional circuit board testing can only be equipped with a dedicated test fixture for each circuit board, which has very poor flexibility. When other circuit boards need to be tested, new test fixtures need to be rebuilt for testing. In addition, different circuit boards have different test programs, and corresponding test programs need to be added, which has high maintenance costs. This will result in long test time, single test, poor compatibility, and occupying human resources for maintenance and update, which has high time costs.

[0042] In order to solve the above technical problems of poor flexibility and high maintenance cost in testing by means of special testing tooling.

[0043] refer to Figure 1 The embodiment of the present invention discloses a circuit board automatic testing system, which includes: a communication connection module 1; a test case acquisition module 2; a test module 3; and a data recording module 4.

[0044] Corresponding to the above disclosed circuit board automatic testing system, the embodiment of the present invention further discloses a circuit board automatic testing method. The following describes in detail the circuit board automatic testing method disclosed in the embodiment of the present invention in combination with the above described circuit board automatic testing system.

[0045] refer to Figure 2 and Figure 3 The present invention discloses a circuit board automatic testing method, which is applied to a servo driver and comprises: S1, establishing a communication connection between a host computer and a program-controlled DC power supply through an RS232 serial port, establishing a communication connection between the host computer and an analog-to-digital acquisition board through PICE, establishing a communication connection between the host computer and a PLC through a Modbus TCP / IP bus, and establishing a communication connection between the host computer and an interface adapter board through an RS485 serial port.

[0046] The upper computer software circuit board establishes communication through RS485 protocol (Ether CAT communication protocol or CAN communication), PLC through Modbus-TCP protocol, program-controlled power supply through RS232 protocol, and acquisition card through PCI e protocol.

[0047] S2. Obtain a circuit board to be tested and use a barcode scanner to obtain the serial number of the circuit board to be tested, and send the serial number to a host computer. The host computer parses the serial number and obtains a corresponding circuit board function test case from a database.

[0048] The serial number of the circuit board is obtained by scanning the barcode gun. The upper computer software automatically obtains the functional test cases of different circuit boards in the database by parsing the serial number. After receiving the start command, the upper computer software determines whether the tester has left the test bench. After determining that the tester has left, the pressure plate is automatically pressed down to tightly connect the test points of the circuit board with the test needles, and the test cases are automatically called.

[0049] S3, detecting whether the tester has left the test bench, and when the tester has left the test bench, automatically pressing down the pressing plate to connect the test point of the circuit board to be tested with the test needle and starting to automatically call the test case for testing.

[0050] S4. Use the analog acquisition card to collect data and high voltage, detect and feedback through the PLC analog quantity and send it to the host computer, and at the same time determine whether the signal of the circuit board to be tested is qualified, generate production test data, record the production test data and upload it to the server.

[0051] The circuit board control signal is controlled by the host computer through RS485 communication. The host computer also supports ESI file burning and firmware burning functions of Ether CAT. All acquisition signals are connected to the communication interface through the interface adapter board. In different functional tests, analog acquisition cards (differential signal measurement, single-ended signal measurement, PWM waveform measurement, diode detection, etc.) are used to collect data and high voltage through PLC analog detection and feedback to the host computer, and determine whether the signal of the circuit board is qualified. After the test is completed, the production test data record is generated and uploaded to the server.

[0052] Furthermore, the RS485 protocol of the RS485 serial port is an EtherCAT communication protocol or a CAN communication protocol.

[0053] Use a barcode scanner to obtain the SN code on the PCBA board. Figure 3 , the SN code is sent to the host computer through USB communication; the interface adapter board is connected to the sensor and relay through electrical control, the constant voltage source and the programmable DC power supply power the sensor and relay, the sensor and relay send the PWM waveform differential and single-ended signals to the analog-to-digital acquisition board; the sensor and relay communicate with the IO module, the IO module and the PLC communicate with the host computer through the Modbus TCP / IP bus, the IO module includes digital and analog quantities, the analog-to-digital acquisition board communicates with the host computer through the PICE protocol, and the host computer stores the received data in the corresponding database.

[0054] Furthermore, detecting whether the tester has left the test bench includes: the upper computer receives a start instruction from the user and determines whether the tester has left the test bench; if the tester has not left the test bench, a prompt is issued to ask the tester to leave the test bench as soon as possible; if the tester has left the test bench, a pressure plate is automatically pressed down to connect the test point of the circuit board to be tested with the test needle.

[0055] refer to Figure 4After the start, it will be initialized and wait for the command from the host computer. After receiving the command from the host computer, it will provide data feedback to determine whether the test is over. If the test is over, it will directly end. If the test is not over, it will wait for the command from the host computer again.

[0056] Furthermore, an IO unit is constructed through the Modbus-TCP protocol between the host computer and the PLC, and the IO unit is used to control the electrical appliance; the host computer, the PLC and the IO unit jointly form a test environment for the test case.

[0057] Among them, the test environment of the test case is that the host computer and PLC control the electrical IO unit through Modbus-TCP. According to different test environments, the circuit board is powered by a programmable power supply and a constant voltage source.

[0058] Furthermore, the circuit board to be tested is powered by the program-controlled power supply and the constant voltage source, and each acquisition signal and the communication interface are communicatively connected via an interface adapter board.

[0059] Furthermore, the host computer also includes: utilizing Ether CAT to burn ESI files and firmware.

[0060] Furthermore, using an analog quantity acquisition card to collect data and high voltage includes: the data collected by the analog quantity acquisition card includes: differential signal measurement data, single-ended signal measurement data, PWM waveform measurement data and diode detection data.

[0061] The embodiment of the present invention improves the production efficiency of the servo drive, has high test stability, improves the production test quality, and saves manpower and time. Compared with the existing design, it improves the production test efficiency, saves manpower and time costs, and can be applied to the production of circuit board automation testing.

[0062] In addition, an embodiment of the present invention also provides a circuit board automatic testing device, which includes: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the steps of a circuit board automatic testing method as described in any of the above items.

[0063] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a circuit board automatic testing method as described in any one of the above items are implemented.

[0064] In the embodiment of the present invention, the processor may be an integrated circuit chip having the signal processing capability. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0065] The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The processor reads the information in the storage medium and completes the steps of the above method in combination with its hardware.

[0066] The storage medium may be a memory, which may be, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.

[0067] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.

[0068] The volatile memory may be a random access memory (RAM) which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM).

[0069] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.

[0070] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention can be implemented using a combination of hardware and software. When software is used, the corresponding functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.

[0071] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A circuit board automated testing method, characterized in that: The method is applied to a servo drive and comprises: S1. Establish a communication connection between the host computer and the program-controlled DC power supply through the RS232 serial port, establish a communication connection between the host computer and the analog-to-digital acquisition board through PICE, establish a communication connection between the host computer and the PLC through the Modbus TCP / IP bus, and establish a communication connection between the host computer and the interface adapter board through the RS485 serial port; S2, obtaining a circuit board to be tested and using a barcode scanner to obtain the serial number of the circuit board to be tested, sending the serial number to a host computer, and the host computer parses the serial number and obtains a corresponding circuit board function test case from a database; S3, detecting whether the tester has left the test bench, and when the tester has left the test bench, automatically pressing down the pressing plate to connect the test point of the circuit board to be tested with the test needle and starting to automatically call the test case for testing; S4. Use the analog acquisition card to collect data and high voltage, detect and feedback through the PLC analog quantity and send it to the host computer, and at the same time determine whether the signal of the circuit board to be tested is qualified, generate production test data, record the production test data and upload it to the server.

2. A circuit board automated testing method as claimed in claim 1, characterized in that: The RS485 protocol of the RS485 serial port is the EtherCAT communication protocol or the CAN communication protocol.

3. A circuit board automated testing method as claimed in claim 2, characterized in that: Detect whether the tester leaves the test bench, including: The host computer receives the start command from the user and determines whether the tester has left the test bench; If the tester has not left the test bench, a prompt is issued to ask the tester to leave the test bench as soon as possible; If the tester has left the test bench, the pressing plate is automatically pressed down to connect the test points of the circuit board to be tested with the test needles.

4. A circuit board automated testing method as claimed in claim 3, characterized in that: An IO unit is constructed through the Modbus TCP / IP protocol between the host computer and the PLC, and the IO unit is used to control the electrical appliances; The host computer, the PLC and the IO unit jointly form a test environment for the test case.

5. A circuit board automated testing method as claimed in claim 4, characterized in that: The circuit board to be tested is powered by a program-controlled power supply and a constant voltage source, and each acquisition signal and communication interface are connected through an interface adapter board.

6. A circuit board automated testing method as claimed in claim 5, characterized in that: The host computer also includes: Use EtherCAT to burn ESI files and firmware.

7. A circuit board automated testing method as claimed in claim 6, characterized in that: Use analog acquisition cards to collect data and high voltage, including: The data collected by the analog quantity acquisition card includes: differential signal measurement data, single-ended signal measurement data, PWM waveform measurement data and diode detection data.

8. A circuit board automatic testing system, characterized in that: The system comprises: The communication connection module is used to establish a communication connection between the host computer and the program-controlled DC power supply through the RS232 serial port, to establish a communication connection between the host computer and the analog-to-digital acquisition board through PICE, to establish a communication connection between the host computer and the PLC through the Modbus TCP / IP bus, and to establish a communication connection between the host computer and the interface adapter board through the RS485 serial port; The test case acquisition module is used to acquire the circuit board to be tested and obtain the serial number of the circuit board to be tested by using a barcode scanner, and send the serial number to the host computer. The host computer parses the serial number and obtains the corresponding circuit board function test case from the database; The test module is used to detect whether the tester has left the test bench. When the tester has left the test bench, the pressure plate is automatically pressed down to connect the test point of the circuit board to be tested with the test needle and the test case is automatically called for testing; The data recording module is used to collect data and high voltage using an analog acquisition card, detect and feedback through PLC analog quantities and send them to the host computer, while determining whether the signal of the circuit board to be tested is qualified, generate production test data, and record and upload the production test data to the server.

9. A circuit board automated testing device, characterized in that: The device comprises: a processor and a memory; The memory is used to store one or more program instructions; The processor is used to run one or more program instructions to execute the steps of a circuit board automatic testing method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the circuit board automatic testing method as claimed in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Circuit board test system and method

    CN104181452A

  • Printed circuit automatic detection system and detection method

    CN113253096A

  • Circuit board automatic test system and test method

    CN117538576A

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

    CN118259618A

  • Circuit board number of writing testing arrangement

    CN206824217U

Cited By

  • Sensor module aging calibration system and aging calibration method using same

    CN119309615A

  • Product testing method and device and storage medium

    CN119494355A

  • Product Testing Method, Device and Storage Medium

    CN119494355B

  • Circuit testing system and method and related equipment

    CN119644119A

  • Automatic PCBA comprehensive test method and system

    CN120256221A