WO2023065620A1 - Ethercat bus-based wiring harness test method and apparatus - Google Patents

Ethercat bus-based wiring harness test method and apparatus Download PDF

Info

Publication number
WO2023065620A1
WO2023065620A1 PCT/CN2022/087300 CN2022087300W WO2023065620A1 WO 2023065620 A1 WO2023065620 A1 WO 2023065620A1 CN 2022087300 W CN2022087300 W CN 2022087300W WO 2023065620 A1 WO2023065620 A1 WO 2023065620A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
node
wire harness
harness
nodes
Prior art date
Application number
PCT/CN2022/087300
Other languages
French (fr)
Chinese (zh)
Inventor
王家斌
Original Assignee
上海赞太科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海赞太科技有限公司 filed Critical 上海赞太科技有限公司
Publication of WO2023065620A1 publication Critical patent/WO2023065620A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/58Testing of lines, cables or conductors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/52Testing for short-circuits, leakage current or ground faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present application relates to the technical field of electronic detection, and in particular to a wire harness testing method and device based on an EtherCAT bus.
  • the correctness of the connection of the wiring harness and the correctness of the parameters of the functional components in the wiring harness are related to whether a device can work reliably.
  • the wiring harness test is to test the wiring components connected to various electrical components in the device and the functional components such as resistors and diodes contained in the wiring harness. Generally, it is necessary to measure the conduction of the wiring harness and the parameters of functional components.
  • the existing wiring harness testing device adopts the method of cascading multiple wiring motherboards, and the wiring harness adapters to be tested are sequentially connected to the test terminal arrays of the wiring motherboards.
  • the lumped installation and deployment of test devices is complicated and error-prone.
  • the existing wire harness testing devices generally use bus technologies such as RS485 (maximum 10 Mbps), CAN (maximum 1 Mbps) and other bus technologies to transmit test data.
  • bus technologies such as RS485 (maximum 10 Mbps), CAN (maximum 1 Mbps) and other bus technologies to transmit test data.
  • RS485 maximum 10 Mbps
  • CAN maximum 1 Mbps
  • the communication rate of this type of bus can no longer meet the needs of efficient production. Limited by the communication speed, the existing wire harness testing device can only test one connection of the wire harness to be tested at a time, and the production efficiency is low.
  • bus technologies such as RS485 and CAN used by current test devices cannot accurately locate the specific position where each test node is connected in the bus.
  • the first test node starts to check each test node connected to the bus one by one, and the fault repair takes a lot of time.
  • the current wiring harness testing method has the problems of poor flexibility, slow communication speed, low production efficiency, and time-consuming fault repair.
  • a wire harness testing device based on the EtherCAT bus, including a machine table, also includes:
  • M wire harness adapters are installed on the machine platform, and the M wire harness adapters are used to connect with the wire harness to be tested;
  • N test nodes are all installed under the machine platform, and the N test nodes are connected in turn and are used to connect with the M described harness adapters;
  • a DC power supply is installed on the machine platform, and the DC power supply is used to provide an adjustable DC power supply voltage for the N test nodes; an industrial computer is installed on the machine platform, and the industrial computer is connected to the N said test nodes.
  • the test node is connected through the EtherCAT bus, and the industrial computer sends a harness test command through the EtherCAT bus, and tests the harnesses to be tested connected to the M harness adapters through the N test nodes, and generates a test report after the test is completed.
  • each of the N test nodes includes a test terminal array, an excitation measurement module, a microprocessor, and an EtherCAT controller, and the number of the test terminal arrays is multiple, and each of the test terminal arrays is used to communicate with M
  • the connecting terminals of the wire harness adapter are connected, the excitation measurement module is connected with the test terminal array and the DC power supply, the microprocessor is connected with the test terminal array through an SPI data interface or an I2C data interface, and the The microprocessor is also connected with the excitation measurement module, the EtherCAT controller is connected with the microprocessor through the SPI data interface or the I2C data interface, one end of the EtherCAT controller is connected with an RJ45_1 interface, and the EtherCAT controller The other end is connected to an RJ45_2 interface, the RJ45_1 interface is connected to the RJ45_2 interface of the test node on the left side of the test node where it is currently located, and the RJ45_2 interface is connected to the RJ45_1 interface of
  • test terminal array is an ordered collection of a group of test terminals, and there are multiple test terminals in one test terminal array.
  • the excitation measurement module includes a plurality of sampling devices and a plurality of sampling switches, both ends of each of the sampling devices are connected to the microprocessor, and the sampling switches are arranged on the sampling devices, the signal ground , Between the excitation output terminal VS of the DC power supply and the common line.
  • the wire harness testing device based on the EtherCAT bus also includes a scanning gun and a label printer, both of which are connected to the industrial computer and are used to input or output label information and test results of the wire harness to be tested .
  • wire harness test method based on EtherCAT bus
  • described wire harness test method is based on described wire harness test device, and described method comprises the following steps:
  • Step 1 the industrial computer obtains the topology description of the wiring harness to be tested, the configuration data on the machine platform, and the node basic information of each test node of N;
  • Step 2 The industrial computer sends a wiring harness test instruction through the EtherCAT bus, controls each test node to start an internal self-test according to the wiring harness test instruction, and obtains the connection status on the test terminal of each test node, and maps it to the wiring harness to be tested. topologically;
  • Step 3 After the internal self-test is successful, generate the group data of the test terminal;
  • Step 4 Execute the harness test in a single test node, and judge whether the harness test in a single test node is successful;
  • Step 5 If the harness test in a single test node is successful, execute the harness test between multiple test nodes, and judge whether the harness test between multiple test nodes is successful;
  • Step 6 If the harness test between multiple test nodes is successful, perform a short circuit test
  • Step 7 Generate a test report according to the short-circuit test results.
  • step two control each test node to start internal self-test according to the wiring harness test instruction, and the specific steps include:
  • Step 2-1 Construct a self-test loop based on the test terminals of the test node for internal self-test;
  • Step 2-2 Calculate the current internal resistance of the test terminal based on the self-test loop
  • Step 2-3 Judging whether the internal resistance is less than the preset correction threshold, if it is judged that the internal resistance is less than the preset correction threshold, the connection function of the test terminal is normal, if it is judged that the internal resistance is greater than the preset The corrected threshold value of the test terminal connection is not functioning properly.
  • Step 4 Execute the harness test within a single test node, and the specific steps include:
  • Step 4-1 Obtain a test node for conducting a harness test within a single test node, and construct a measurement loop based on the test terminals of the test node;
  • Step 4-2 Calculate the resistance value of the line L to be tested based on the measurement circuit
  • Step 4-3 If the resistance value of the line L to be tested is less than the preset conduction threshold, the test result is conduction; if the resistance value of the line L to be tested is greater than the preset open circuit threshold, the test result is open circuit, Otherwise, the test result is high resistance.
  • Step 3 When the internal self-test is successful, generate the grouped data of the test terminals, and then include the following steps:
  • step 4 judging whether the wire harness test in a single test node is successful
  • step 5 judging whether the wire harness test among multiple test nodes is successful, and then including:
  • the above-mentioned wire harness testing method and device based on the EtherCAT bus are successively provided with a machine platform, and M wire harness adapters, N test nodes, a DC power supply and an industrial computer, and the industrial computer is connected to the N test nodes through the EtherCAT bus,
  • the industrial computer sends a wire harness test command through the EtherCAT bus, and tests the wire harnesses to be tested connected to the M wire harness adapters through the N test nodes, and generates a test report after the test is completed, and can be connected through only one EtherCAT bus All test nodes of the wiring harness to be tested use the 100Mbps EtherCAT bus to transmit test data.
  • the communication speed is fast, which simplifies the installation and deployment work and process of the system. It has high flexibility, fast communication speed, high production efficiency, and realizes time-consuming fault repair short effect;
  • test node only needs to plug and unplug two RJ45 terminals, and the installation and deployment method is simple; when the wiring harness to be tested needs to be adjusted in the topology of a local area, it has good flexibility;
  • the wiring harness to be tested is divided into several connection sets, and the test method in a single test node, the test method between multiple test nodes and the short-circuit test method of the harness terminal can be executed in parallel on multiple connection sets in the connection set at the same time, and the production efficiency is high. ;
  • the self-test method, grouping method, test method within a single test node, test method between multiple test nodes, wire harness terminal short circuit test method and test node fault diagnosis can be expanded. method to improve production efficiency;
  • Each test node (slave station) has unique position information in the EtherCAT bus, and the position information increases sequentially from the first test node.
  • the fault diagnosis method proposed by the invention can quickly find the faulty test node, reducing the time for fault maintenance.
  • Fig. 1 is the structural block diagram of the wire harness testing device based on EtherCAT bus in an embodiment
  • Fig. 2 is the structural block diagram of test node in the wiring harness testing device based on EtherCAT bus line in an embodiment
  • Fig. 3 is the structural block diagram of test terminal array in the wiring harness testing device based on EtherCAT bus line in an embodiment
  • Fig. 4 is the structural block diagram of excitation measurement module in the wiring harness testing device based on EtherCAT bus line in an embodiment
  • Fig. 5 is a block diagram of the connection state between the test nodes performing the test terminal grouping process in one embodiment
  • Fig. 6 is the structural diagram when carrying out the self-test of test node in an embodiment
  • Fig. 7 is a structural block diagram of an example when performing fault diagnosis of a test node in an embodiment
  • Fig. 8 is an example structural block diagram of testing in a single test node in one embodiment
  • Fig. 9 is an example structural block diagram of testing between multiple test nodes in one embodiment
  • Fig. 10 is a structural block diagram of an example of performing a short circuit test on a wire harness terminal in an embodiment.
  • a kind of wire harness testing device based on EtherCAT bus is provided, including machine platform, described wire harness testing device based on EtherCAT bus also includes:
  • the M wire harness adapters are all installed on the machine platform, and the M wire harness adapters are used to connect with the wire harness to be tested; wherein, the wire harness to be tested is composed of several wires and connectors. The connectivity of the wires and the parameters of the components are tested.
  • the wire harness adapter is a connecting device that connects the wiring terminals of the wire harness to be tested with the test terminals of the test node.
  • N test nodes are all installed under the machine platform, and the N test nodes are connected in sequence and used to connect with the M harness adapters; wherein, the test nodes are designed based on the EtherCAT controller.
  • the test node is connected to the EtherCAT bus through two RJ45 interfaces, which is easy to install and deploy, and has good flexibility.
  • the test terminals in the test node are connected to the wiring terminals of the wire harness to be tested through the wire harness adapter, and multiple wire harness adapters can be connected to each test node, and multiple test nodes can also be connected to a single wire harness adapter.
  • a DC power supply is installed on the machine, and the DC power supply is used to provide adjustable DC power supply voltages for the N test nodes; wherein, the DC power supply voltage and current amplitude of the adjustable DC power supply voltage can be adjusted according to the wiring harness to be tested needs to be set.
  • the industrial computer is installed on the machine platform, the industrial computer is connected to the N test nodes through the EtherCAT bus, the industrial computer sends the wiring harness test command through the EtherCAT bus, and the M wiring harnesses are passed through the N test nodes. Test the wiring harness to be tested connected by the adapter, and generate a test report after the test is completed. Among them, all test nodes are connected to the industrial computer through the EtherCAT bus. Each test node receives test instructions from the test program through the EtherCAT bus, builds a test loop between a single test node or multiple test nodes through the switch in the test node, sets the measurement stimulus, collects the test response signal in the test loop and returns to the test program.
  • the industrial computer has a data memory and two Ethernet interfaces.
  • One of the Ethernet interfaces connects N test nodes through the EtherCAT bus, and the other Ethernet interface is used to connect to external networks such as MES systems.
  • EtherCAT is an industrial Ethernet field bus proposed by German BECKHOFF company, which has the characteristics of synchronous data transmission, high real-time performance, flexible system structure topology, and data bandwidth up to 100Mbps.
  • the EtherCAT data frame is developed based on the standard 100M Ethernet data frame, and uses a dedicated real-time protocol to achieve high-speed, high-synchronization, and high-real-time characteristics.
  • EtherCAT encodes the communication data of all slave stations in EtherCAT data frames. Each slave station reads the corresponding output data of the master station when the EtherCAT data frame passes through its node, and at the same time inserts the input data of the master station into the corresponding position of the EtherCAT data frame, thereby realizing parallel data transmission between the master station and all slave stations .
  • an ordinary industrial computer is used as the master station, and a specially designed test node is used as the slave station.
  • the EtherCAT bus has a flexible topology, and the connection between the master station and the slave station is simple.
  • the N test nodes all include a test terminal array, an excitation measurement module, a microprocessor and an EtherCAT controller, and the number of the test terminal arrays is multiple, each of the The test terminal array is used to be connected to the wiring terminals of the M wire harness adapters, the excitation measurement module is connected to the test terminal array and the DC power supply, and the microprocessor is connected to the The test terminal array is connected, the microprocessor is also connected with the excitation measurement module, the EtherCAT controller is connected with the microprocessor through the SPI data interface or the I2C data interface, and one end of the EtherCAT controller is connected to a RJ45_1 interface, the other end of the EtherCAT controller is connected to an RJ45_2 interface, the RJ45_1 interface is connected to the RJ45_2 interface of the test node on the left side of the currently located test node, and the RJ45_2 interface is connected to the currently located test node Connect the RJ45_1 interface of the test no
  • test nodes are connected to a common ground wire, ensuring that the internal circuits of each test node use the same reference ground. And all test nodes share a common line, which is used to assist the harness test method and build a test loop.
  • the test node is connected to a DC power supply through a 2-core power cable, and the internal power supply module converts it into a power supply of various voltages required.
  • the microprocessor MCU
  • the digital-to-analog converter DAC
  • ADC analog-to-digital converter
  • the test node supports the measurement of parameters of wire harnesses or functional components such as resistors and diodes.
  • test node can expand the test terminal array, increase the number of test terminals of a single test node, and support the testing of complex wire harness connectors.
  • the test node can also control color sensors, airtight sensors and other sensors to perform special function tests through data interfaces (such as SPI, I2C, etc.).
  • the EtherCAT controller is used to realize the communication function of the EtherCAT bus.
  • the EtherCAT controller can be an independent chip such as AX58100, ET1100, LAN9252, or an EtherCAT controller integrated in an MCU chip such as AX58200.
  • the transmission process of the test data is as follows: first, the EtherCAT controller receives the EtherCAT data frame from the previous test node through the RJ45_1 interface, obtains the test instruction from it, and transmits it to the MCU through the data transmission interface SPI for processing after parsing.
  • the test result data transmitted by the MCU to the EtherCAT controller through the data transmission interface SPI is written into the EtherCAT data frame, and then transmitted to the next test node through the RJ45_2 interface.
  • the EtherCAT data frames are transmitted sequentially between the test nodes according to the topology until the last test node.
  • the EtherCAT data frame is transmitted to the RJ45_2 interface of the last test node through its RJ45_1 interface.
  • the test nodes are input from their RJ45_1 interface in turn, and the EtherCAT data frame is output from its RJ45_2 interface until it finally reaches the test software of the master station industrial computer for processing.
  • the test terminal array is an ordered collection of a group of test terminals, and there are multiple test terminals in one test terminal array.
  • the number of test terminals in an array can be flexibly configured as required.
  • a test terminal array supporting 32 test terminals is shown in this embodiment, as shown in Figure 3, the MCU writes the switch control data of the test terminals into the corresponding When the output enable is valid, the switch control data Sx of the test terminal controls the switches SHx and SLx of each test terminal to perform actions.
  • switches SHx and SLx of a test terminal has 4 states, which are "disconnected”, “connected to high-end”, “connected to low-end”, and “connected to high-end and low-end at the same time”.
  • test terminal is not connected to the measurement circuit.
  • Connected to the high end means that the test terminal is connected to the excitation of the test node, which is the terminal with the high potential in the measurement circuit.
  • Connected to the low end means that the test terminal is connected to the signal return terminal of the test node, which is the terminal with the low potential in the measurement circuit.
  • Simultaneously connected to high-end and low-end means that the test terminal is connected to the internal test circuit of the test node, which is used to self-test the test terminal, calculate the internal resistance of the test terminal, and judge the correctness of the function of the test terminal.
  • the switch of the test terminal can be implemented by using MOS transistors, MOS relays, and mechanical relays.
  • the excitation measurement module includes a plurality of sampling devices and a plurality of sampling switches, both ends of each of the sampling devices are connected to the microprocessor, and the sampling switches are set to Between the sampling device, the excitation output terminal VS of the DC power supply and the common line.
  • the sampling device is a resistor. Taking the number of sampling devices as 2 as an example, the number of sampling switches is 2 as an example.
  • the excitation measurement module includes 4 ADC voltage sampling channel, which can simultaneously collect 4 voltage values across two current-limiting resistors R1 and R2, namely voltage VH2, voltage VH1, voltage VL2 and voltage VL1.
  • the excitation VS is a programmable DC power output
  • the MCU can program the excitation voltage in the measurement circuit by setting the output value of the DAC.
  • Switch S1 is used to switch the internal excitation or common line.
  • the switch S2 is used to switch the signal ground or the common line.
  • the common line is used for cascading test nodes, and a measurement loop can be constructed between two or more test nodes.
  • the wire harness testing device based on the EtherCAT bus also includes a scanning gun and a label printer, both of which are connected to the industrial computer and are used to input or output the label information and label information of the wire harness to be tested. Test Results.
  • a kind of wire harness test method based on EtherCAT bus is based on described wire harness test device, and described method comprises the following steps:
  • Step 1 the industrial computer obtains the topology description of the wiring harness to be tested, the configuration data on the machine platform, and the node basic information of each test node of N;
  • the wire harness to be tested is connected to multiple test nodes through a plurality of wire harness connectors, and the present invention groups the wire harness terminals according to the topological structure of the wire harness to be tested before performing the wire harness test.
  • test terminal grouping method As shown in Figure 5, the test terminal grouping method is explained:
  • H1 stores connections within a single node
  • H2 stores connections between nodes.
  • L(IOx, IOy) in H if IOx and IOy are in a single test node, store L(IOx, IOy) in the connection set H1; if T1 and T2 belong to different test nodes, Store L(IOx,IOy) into H2.
  • H2 ⁇ L2, L3, L6, L7, L9, L10 ⁇ .
  • this grouping method can improve the test speed.
  • Step 2 The industrial computer sends a wiring harness test instruction through the EtherCAT bus, controls each test node to start an internal self-test according to the wiring harness test instruction, and obtains the connection status on the test terminal of each test node, and maps it to the wiring harness to be tested. topologically;
  • Step 3 After the internal self-test is successful, generate the group data of the test terminal;
  • Step 4 Execute the harness test in a single test node, and judge whether the harness test in a single test node is successful;
  • Step 5 If the harness test in a single test node is successful, execute the harness test between multiple test nodes, and judge whether the harness test between multiple test nodes is successful;
  • Step 6 If the harness test between multiple test nodes is successful, perform a short circuit test
  • Step 7 Generate a test report according to the short-circuit test results.
  • step 2 control each test node to start the internal self-test according to the wiring harness test instruction, and the specific steps include:
  • Step 2-1 Construct a self-test loop based on the test terminals of the test node for internal self-test;
  • Step 2-2 Calculate the current internal resistance of the test terminal based on the self-test loop
  • Step 2-3 Judging whether the internal resistance is less than the preset correction threshold, if it is judged that the internal resistance is less than the preset correction threshold, the connection function of the test terminal is normal, if it is judged that the internal resistance is greater than the preset The corrected threshold value of the test terminal connection is not functioning properly.
  • step 2-1 before performing the wiring harness test, it is necessary to perform a diagnostic test on all test terminals of the test node to determine whether the function of the test terminals is normal.
  • a diagnostic test on all test terminals of the test node to determine whether the function of the test terminals is normal.
  • a self-test loop is constructed, which is described in step 2-1.
  • RL (VH2-VL2)/((VH1-VH2)/ R1), if RL is less than the set correction threshold, it means that the connection function of the test terminal is normal, and RL/2 is stored in the test software as the internal correction value of the test terminal. If RL is greater than the set correction threshold, it means that the connection function of the test terminal is not normal, the self-test fails, and the hardware circuit of the test terminal needs to be further repaired and diagnosed.
  • the self-test method of the test node is to execute the above-mentioned test process for each test terminal. Only after the self-test of all test terminals in the test node passes, the test terminal can be used to test the wire harness to be tested.
  • step 3 after the internal self-test is successful, generate the packet data of the test terminal, and then include the following steps:
  • the steps for performing fault diagnosis and repair of the test node are as follows:
  • test program is sent based on the EtherCAT data frame to scan the slave station on the EtherCAT bus, that is, the test node. Since the test node x+1 fails, the EtherCAT data frame loops back after being transmitted to the test node x, and returns to the master station of the test device, that is, the industrial computer.
  • the industrial computer judges the number of test nodes passed by the EtherCAT data frame. If only x test nodes are scanned, and x ⁇ n, it means that the x+1th test node has failed. Then, the industrial computer sets the LED of the xth test node to "ON" state, indicating the faulty previous test node. Maintenance personnel use the "slave connection" cable of the xth test node to find the x+1th node for troubleshooting.
  • step 4 execute the wire harness test in a single test node, and the specific steps include:
  • Step 4-1 Obtain a test node for conducting a harness test within a single test node, and construct a measurement loop based on the test terminals of the test node;
  • Step 4-2 Calculate the resistance value of the line L to be tested based on the measurement circuit
  • Step 4-3 If the resistance value of the line L to be tested is less than the preset conduction threshold, the test result is conduction; if the resistance value of the line L to be tested is greater than the preset open circuit threshold, the test result is open circuit, Otherwise, the test result is high resistance.
  • the test terminal IOx is connected to the excitation VS through the switches SHx and S1, and the test terminal IOy is connected to the signal ground through the switches SLy and S2, thereby constructing a measurement loop.
  • This measurement loop is the measurement loop in step 4-1.
  • test result is conduction; if RL is greater than the set open circuit threshold, the test result is open circuit; otherwise, the test result is high resistance.
  • RL is the resistance value. If the object under test is a diode, perform the second test in reverse, judge the direction of the diode according to the resistance values of the two tests, and judge the threshold voltage of the diode according to the voltage difference VH2-VL2 of the two tests.
  • test program executes the test in a single node, and the test method is as follows:
  • test nodes where all the test terminals stored in the REQ are located perform tests according to the REQ test instructions, and return the test results;
  • the test program calculates and stores the test results of all connections stored in the REQ. If H1 is an empty set, it means that the connections in all nodes have been tested. If H1 is a non-empty set, continue to Step1 until H1 is an empty set.
  • H1 ⁇ L1, L4, L5, L8, L11 ⁇
  • step five if the harness test in a single test node is successful, then perform the harness test between multiple test nodes, the specific process is as follows:
  • IOx of test node A is connected to excitation VS of node A through switches SHx, S1.
  • the IOy of the test node B is connected to the signal ground through the switches SLy and S2, and a measurement loop is constructed.
  • Two voltages VH1 and VH2 are collected at both ends of the current limiting resistor R1 at node A.
  • Two voltages VL2 and VL1 are collected at both ends of the current limiting resistor R2 of node B.
  • RL is less than the set conduction threshold, the test result is conduction; if RL is greater than the set cut-off threshold, the test result is open circuit; otherwise, the test result is high resistance. If the measured object is a resistor, RL is the resistance value.
  • the second test is performed in the reverse direction, the direction of the diode is judged according to the resistance values of the two tests, and the threshold voltage of the diode is judged according to the voltage difference VH2-VL2 of the two tests.
  • test program executes the test between multiple nodes.
  • the test method is as follows:
  • Step 1 Initialize an empty command set REQ
  • Step 3 Generate a test command according to REQ and send it to the EtherCAT bus;
  • Step 4 The test nodes where all the test terminals stored in the REQ are located execute the test according to the REQ test command and return the test result;
  • Step 5 The test program in the industrial computer calculates and stores the test results of all connections stored in the REQ. If H2 is an empty set, it means that the connection tests in all nodes are completed. If H2 is a non-empty set, continue to Step1 until H2 is an empty set.
  • H2 ⁇ L2, L3, L6, L7, L9, L10 ⁇
  • step 6 carry out short-circuit test and be used for ensuring that there is no electrical connection between each connection, connection and idle test terminal, specific steps are as follows: first connect all wiring harnesses to be tested Connections are grouped into networks.
  • each element net in N represents a set of test terminals.
  • test terminals if one of the test terminals is in the net of the existing N set, store the other test terminal in the net set. If two test terminals belong to two different net1 and net2 respectively, merge net1 and net1 into one net.
  • test terminal is taken from each net element of N to form a mutually exclusive test terminal set Prim.
  • initialize an empty instruction set REQ initialize an empty test terminal set BAD, which is used to record short-circuited test terminals; select a test terminal from Prim to set it as a high-end potential, and set the remaining test terminals as a low-end potential, and Generate a test instruction REQ and send it to the EtherCAT bus; the test node where all the test terminals stored in the REQ are located executes the test according to the REQ test instruction and returns the test result; the test program calculates and stores the test results of all the test terminals of the REQ.
  • the resistance value between the test terminal for setting the high-end potential and the test terminal for setting the low-end potential is less than the set threshold, it means that there is a short circuit between the nets where these test terminals are located, and the net where these test terminals are located is used as a cluster storage into the BAD collection.
  • each cluster in BAD indicates a short-circuit error, and this information is used for error diagnosis and troubleshooting.
  • the following examples illustrate, as shown in FIG. 10, there are three connections L1, L2, L3 in the wire harness, and one free test terminal IOA3. Since L1 and L2 share the test terminal IOA2, three nets are calculated, namely net1 (IOA1, IOA2, IOB1), net2 (IOB2, IOB3), and net3 (IOA3). Take a test terminal from net1, net2, and net3 to form Prim (IOA1, IOB2, IOA3). Then set a high potential on the test terminal IOA1, and set a low potential on the test terminals IOB2 and IOA3 for testing.
  • test results on the three test terminals of the Prim are: IOA1 is high potential, IOB2 is high potential, and IOA3 is low potential.
  • the test results show that IOA1 and IOB2 are short-circuited. All test terminals of net1 and net2 where the test terminals are located form an error cluster (IOA1, IOA2, IOB1, IOB2, IOB3).
  • step 4 judging whether the wire harness test in a single test node is successful, and in step 5: judging whether the wire harness test among multiple test nodes is successful, and then also including:
  • the system, device and each module provided by the present invention can be completely implemented by logically programming the method steps. Modules implement the same program in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded microcontrollers, among others. Therefore, the system, device and each module provided by the present invention can be regarded as a hardware component, and the modules included in it for realizing various programs can also be regarded as the structure in the hardware component; A module for realizing various functions can be regarded as either a software program realizing a method or a structure within a hardware component.
  • Non-volatile memory can include: U disk, mobile hard disk, read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic disc, or disc, etc.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM Static RAM
  • DRAM Dynamic RAM
  • SDRAM Synchronous DRAM
  • DDRSDRAM Double Data Rate SDRAM
  • ESDRAM Enhanced SDRAM
  • SLDRAM Synchronous Chain Synchlink DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

An EtherCAT bus-based wiring harness test method and apparatus. The apparatus comprises a bench, and further comprises: M wiring harness adapters all installed on the bench, the M wiring harness adapters being configured to be connected to a wiring harness to be tested; N test nodes all installed under the bench, the N test nodes being sequentially connected and configured to be connected to the M wiring harness adapters; a direct-current power supply installed on the bench, the direct-current power supply being configured to provide an adjustable direct-current power supply voltage for the N test nodes; and an industrial personal computer installed on the bench, the industrial personal computer being connected to the N test nodes by means of EtherCAT buses, wherein the industrial personal computer sends a wiring harness test instruction by means the EtherCAT buses, tests, by means of the N tests nodes, the wiring harness to be tested connected to the M wiring harness adapters, and generates a test report after the test is completed.

Description

基于EtherCAT总线的线束测试方法及装置Wire harness testing method and device based on EtherCAT bus 技术领域technical field
本申请涉及电子检测技术领域,特别是涉及一种基于EtherCAT总线的线束测试方法及装置。The present application relates to the technical field of electronic detection, and in particular to a wire harness testing method and device based on an EtherCAT bus.
背景技术Background technique
在汽车、航空、工业控制等领域,大量使用到各种型号的线束,线束的连接正确性以及线束中的功能元件参数正确性关系到一个装置能否可靠的工作。线束测试是对装置中连接各电气部件的接线部件及线束中包含的电阻、二极管等功能元件进行测试,一般需要测量线束的导通、功能元件参数等。In the fields of automobile, aviation, industrial control, etc., a large number of wiring harnesses of various types are used. The correctness of the connection of the wiring harness and the correctness of the parameters of the functional components in the wiring harness are related to whether a device can work reliably. The wiring harness test is to test the wiring components connected to various electrical components in the device and the functional components such as resistors and diodes contained in the wiring harness. Generally, it is necessary to measure the conduction of the wiring harness and the parameters of functional components.
现有的线束测试装置采用级联多个接线母板的方式,将被测线束连接线束适配器依次连接到接线母板的测试端子阵列上。测试装置集总式的安装部署方式复杂,容易出错。实际生产中,被测线束因为设计变更需要调整局部区域的线束适配器与接线母板的连接关系时,需要对整个测试装置重新进行部署,灵活性差。此外,现有的线束测试装置一般采用RS485(最大10Mbps)、CAN(最大1Mbps)等总线技术传输测试数据。随着待测线束复杂度的增加,测试数据和总的传输距离也在相应的增加,这类总线的通信速率已经越来越不能满足高效的生产需求。受限于通信的速度,现有的线束测试装置同一时刻只能对待测线束的一个连接进行测试,生产效率低。The existing wiring harness testing device adopts the method of cascading multiple wiring motherboards, and the wiring harness adapters to be tested are sequentially connected to the test terminal arrays of the wiring motherboards. The lumped installation and deployment of test devices is complicated and error-prone. In actual production, when the wiring harness under test needs to adjust the connection relationship between the wiring harness adapter and the wiring board in a local area due to design changes, the entire test device needs to be re-deployed, which has poor flexibility. In addition, the existing wire harness testing devices generally use bus technologies such as RS485 (maximum 10 Mbps), CAN (maximum 1 Mbps) and other bus technologies to transmit test data. As the complexity of the wiring harness to be tested increases, the test data and the total transmission distance also increase accordingly. The communication rate of this type of bus can no longer meet the needs of efficient production. Limited by the communication speed, the existing wire harness testing device can only test one connection of the wire harness to be tested at a time, and the production efficiency is low.
并且,目前的测试装置使用的RS485、CAN等总线技术本身不能精确的定位每个测试节点在总线中连接的具体位置,因此在测试节点发生故障时,现有的线束测试装置需要沿着总线从第一个测试节点开始逐一排查总线中连接的每一个测试节点,故障维修耗时多。Moreover, bus technologies such as RS485 and CAN used by current test devices cannot accurately locate the specific position where each test node is connected in the bus. The first test node starts to check each test node connected to the bus one by one, and the fault repair takes a lot of time.
显然,目前的线束测试方法存在灵活性差、通信速度慢、生产效率低、故障维修耗时多的问题。Obviously, the current wiring harness testing method has the problems of poor flexibility, slow communication speed, low production efficiency, and time-consuming fault repair.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种能够实现灵活性高、通信速度快、生产效率高以及故障维修耗时短的基于EtherCAT总线的线束测试方法及装置。Based on this, it is necessary to address the above technical problems and provide a wire harness testing method and device based on the EtherCAT bus that can achieve high flexibility, fast communication speed, high production efficiency, and short maintenance time.
本发明技术方案如下:Technical scheme of the present invention is as follows:
一种基于EtherCAT总线的线束测试装置,包括机台,还包括:A wire harness testing device based on the EtherCAT bus, including a machine table, also includes:
M个线束适配器,均安装于所述机台上,M个所述线束适配器用于与待测线束连接;M wire harness adapters are installed on the machine platform, and the M wire harness adapters are used to connect with the wire harness to be tested;
N个测试节点,均安装于所述机台下,N个所述测试节点依次连接并用于与M个所述线束适 配器连接;N test nodes are all installed under the machine platform, and the N test nodes are connected in turn and are used to connect with the M described harness adapters;
直流电源,安装于所述机台,所述直流电源用于为N个所述测试节点提供可调直流电源电压;工控机,安装于所述机台上,所述工控机与N个所述测试节点通过EtherCAT总线连接,所述工控机通过EtherCAT总线发送线束测试指令,通过N个所述测试节点对于M各线束适配器连接的待测线束进行测试,并在测试完成后生成测试报告。A DC power supply is installed on the machine platform, and the DC power supply is used to provide an adjustable DC power supply voltage for the N test nodes; an industrial computer is installed on the machine platform, and the industrial computer is connected to the N said test nodes. The test node is connected through the EtherCAT bus, and the industrial computer sends a harness test command through the EtherCAT bus, and tests the harnesses to be tested connected to the M harness adapters through the N test nodes, and generates a test report after the test is completed.
具体而言,N个所述测试节点均包括测试端子阵列、激励测量模块、微处理器和EtherCAT控制器,所述测试端子阵列的数量为多个,各所述测试端子阵列用于与M个所述线束适配器的接线端子连接,所述激励测量模块与所述测试端子阵列和所述直流电源连接,所述微处理器通过SPI数据接口或I2C数据接口与所述测试端子阵列连接,所述微处理器还与所述激励测量模块连接,所述EtherCAT控制器通过SPI数据接口或I2C数据接口与所述微处理器连接,所述EtherCAT控制器的一端连接一RJ45_1接口,所述EtherCAT控制器的另一端连接一RJ45_2接口,所述RJ45_1接口与当前所在的所述测试节点左侧的测试节点的RJ45_2接口连接,所述RJ45_2接口与当前所在的所述测试节点右侧的测试节点的RJ45_1接口连接。Specifically, each of the N test nodes includes a test terminal array, an excitation measurement module, a microprocessor, and an EtherCAT controller, and the number of the test terminal arrays is multiple, and each of the test terminal arrays is used to communicate with M The connecting terminals of the wire harness adapter are connected, the excitation measurement module is connected with the test terminal array and the DC power supply, the microprocessor is connected with the test terminal array through an SPI data interface or an I2C data interface, and the The microprocessor is also connected with the excitation measurement module, the EtherCAT controller is connected with the microprocessor through the SPI data interface or the I2C data interface, one end of the EtherCAT controller is connected with an RJ45_1 interface, and the EtherCAT controller The other end is connected to an RJ45_2 interface, the RJ45_1 interface is connected to the RJ45_2 interface of the test node on the left side of the test node where it is currently located, and the RJ45_2 interface is connected to the RJ45_1 interface of the test node on the right side of the test node where it is currently located connect.
具体而言,所述测试端子阵列为一组测试端子的有序集合,一个所述测试端子阵列中的测试端子为多个。Specifically, the test terminal array is an ordered collection of a group of test terminals, and there are multiple test terminals in one test terminal array.
具体而言,所述激励测量模块包括多个采样器件和多个采样开关,各所述采样器件的两端均与所述微处理器连接,所述采样开关设置于所述采样器件、信号地、直流电源的激励输出端VS和公共线之间。Specifically, the excitation measurement module includes a plurality of sampling devices and a plurality of sampling switches, both ends of each of the sampling devices are connected to the microprocessor, and the sampling switches are arranged on the sampling devices, the signal ground , Between the excitation output terminal VS of the DC power supply and the common line.
具体而言,所述基于EtherCAT总线的线束测试装置还包括扫描枪和标签打印机,所述扫描枪和标签打印机均与所述工控机连接,并用于输入或输出待测线束的标签信息和测试结果。Specifically, the wire harness testing device based on the EtherCAT bus also includes a scanning gun and a label printer, both of which are connected to the industrial computer and are used to input or output label information and test results of the wire harness to be tested .
具体而言,一种基于EtherCAT总线的线束测试方法,所述线束测试方法基于所述的线束测试装置,所述方法包括以下步骤:Specifically, a kind of wire harness test method based on EtherCAT bus, described wire harness test method is based on described wire harness test device, and described method comprises the following steps:
步骤一:所述工控机获取待测线束的拓扑描述、机台上的配置数据以及N各测试节点的节点基本信息;Step 1: the industrial computer obtains the topology description of the wiring harness to be tested, the configuration data on the machine platform, and the node basic information of each test node of N;
步骤二:所述工控机通过EtherCAT总线发送线束测试指令,根据线束测试指令控制每个测试节点启动内部自测试,并获取每个测试节点的测试端子上的连接状态,并映射到待测线束的拓扑结构上;Step 2: The industrial computer sends a wiring harness test instruction through the EtherCAT bus, controls each test node to start an internal self-test according to the wiring harness test instruction, and obtains the connection status on the test terminal of each test node, and maps it to the wiring harness to be tested. topologically;
步骤三:当内部自测试成功后,生成测试端子的分组数据;Step 3: After the internal self-test is successful, generate the group data of the test terminal;
步骤四:执行单个测试节点内的线束测试,并判断单个测试节点内的线束测试是否成功;Step 4: Execute the harness test in a single test node, and judge whether the harness test in a single test node is successful;
步骤五:若单个测试节点内的线束测试成功,则执行多个测试节点间的线束测试,并判断多个测试节点间的线束测试是否成功;Step 5: If the harness test in a single test node is successful, execute the harness test between multiple test nodes, and judge whether the harness test between multiple test nodes is successful;
步骤六:若多个测试节点间的线束测试成功,则执行短路测试;Step 6: If the harness test between multiple test nodes is successful, perform a short circuit test;
步骤七:根据短路测试结果,生成测试报告。Step 7: Generate a test report according to the short-circuit test results.
具体而言,步骤二中:根据线束测试指令控制每个测试节点启动内部自测试,具体步骤包括:Specifically, in step two: control each test node to start internal self-test according to the wiring harness test instruction, and the specific steps include:
步骤2-1:基于进行内部自测试的测试节点的测试端子构建一个自测试回路;Step 2-1: Construct a self-test loop based on the test terminals of the test node for internal self-test;
步骤2-2:基于自测试回路计算当前的测试端子的内部阻值;Step 2-2: Calculate the current internal resistance of the test terminal based on the self-test loop;
步骤2-3:判断所述内部阻值是否小于预设的修正阈值,若判断所述内部阻值小于预设的修正阈值,则测试端子连接功能正常,若判断所述内部阻值大于预设的修正阈值,则测试端子连接功能不正常。Step 2-3: Judging whether the internal resistance is less than the preset correction threshold, if it is judged that the internal resistance is less than the preset correction threshold, the connection function of the test terminal is normal, if it is judged that the internal resistance is greater than the preset The corrected threshold value of the test terminal connection is not functioning properly.
具体而言,步骤四:执行单个测试节点内的线束测试,具体步骤包括:Specifically, Step 4: Execute the harness test within a single test node, and the specific steps include:
步骤4-1:获取进行单个测试节点内的线束测试的测试节点,基于该测试节点的测试端子构建一个测量回路;Step 4-1: Obtain a test node for conducting a harness test within a single test node, and construct a measurement loop based on the test terminals of the test node;
步骤4-2:基于所述测量回路计算待测线L的阻值;Step 4-2: Calculate the resistance value of the line L to be tested based on the measurement circuit;
步骤4-3:若待测线L的阻值小于预先设定的导通阈值,则测试结果为导通;如果待测线L的阻值大于预先设定的断路阈值,测试结果为断路,否则测试结果为高阻。Step 4-3: If the resistance value of the line L to be tested is less than the preset conduction threshold, the test result is conduction; if the resistance value of the line L to be tested is greater than the preset open circuit threshold, the test result is open circuit, Otherwise, the test result is high resistance.
具体而言,步骤三:当内部自测试成功后,生成测试端子的分组数据,之后还包括以下步骤:Specifically, Step 3: When the internal self-test is successful, generate the grouped data of the test terminals, and then include the following steps:
当内部自测试失败,则进行测试节点故障诊断修复。When the internal self-test fails, the fault diagnosis and repair of the test node are carried out.
具体而言,步骤四中:判断单个测试节点内的线束测试是否成功,以及,步骤五中:判断多个测试节点间的线束测试是否成功,之后还包括:Specifically, in step 4: judging whether the wire harness test in a single test node is successful, and in step 5: judging whether the wire harness test among multiple test nodes is successful, and then including:
若判断单个测试节点内的线束测试不成功或判断多个测试节点间的线束测试不成功,则均进行测试端子错误排查和修复。If it is judged that the wire harness test within a single test node is unsuccessful or the wire harness test between multiple test nodes is judged to be unsuccessful, all errors of the test terminals are checked and repaired.
本发明实现技术效果如下:The present invention realizes technical effect as follows:
上述基于EtherCAT总线的线束测试方法及装置,依次通过设置机台,以及M个线束适配器、N个测试节点、直流电源和工控机,所述工控机与N个所述测试节点通过EtherCAT总线连接,所述工控机通过EtherCAT总线发送线束测试指令,通过N个所述测试节点对于M各线束适配器连接的待测线束进行测试,并在测试完成后生成测试报告,通过只需要一条 EtherCAT总线就可以连接待测线束的所有测试节点,使用100Mbps速率的EtherCAT总线传输测试数据,通信速度快,简化了系统的安装部署工作和流程,灵活性高、通信速度快、生产效率高,同时实现故障维修耗时短的效果;The above-mentioned wire harness testing method and device based on the EtherCAT bus are successively provided with a machine platform, and M wire harness adapters, N test nodes, a DC power supply and an industrial computer, and the industrial computer is connected to the N test nodes through the EtherCAT bus, The industrial computer sends a wire harness test command through the EtherCAT bus, and tests the wire harnesses to be tested connected to the M wire harness adapters through the N test nodes, and generates a test report after the test is completed, and can be connected through only one EtherCAT bus All test nodes of the wiring harness to be tested use the 100Mbps EtherCAT bus to transmit test data. The communication speed is fast, which simplifies the installation and deployment work and process of the system. It has high flexibility, fast communication speed, high production efficiency, and realizes time-consuming fault repair short effect;
测试节点的安装部署只需要插拔2个RJ45端子,安装部署方式简单;在待测线束需要进行局部区域的拓扑结构调整的时候,灵活性好;The installation and deployment of the test node only needs to plug and unplug two RJ45 terminals, and the installation and deployment method is simple; when the wiring harness to be tested needs to be adjusted in the topology of a local area, it has good flexibility;
将待测线束分组成若干个连接集合,可以同时对连接集合内的多个连接集合并行执行单个测试节点内的测试方法、多个测试节点间的测试方法和线束端子短路测试方法,生产效率高;The wiring harness to be tested is divided into several connection sets, and the test method in a single test node, the test method between multiple test nodes and the short-circuit test method of the harness terminal can be executed in parallel on multiple connection sets in the connection set at the same time, and the production efficiency is high. ;
通过所述基于EtherCAT总线的线束测试装置,可以拓展测试端子的自测试方法、分组方法、单个测试节点内的测试方法、多个测试节点间的测试方法、线束端子短路测试方法和测试节点故障诊断方法,提高了生产效率;Through the wire harness test device based on the EtherCAT bus, the self-test method, grouping method, test method within a single test node, test method between multiple test nodes, wire harness terminal short circuit test method and test node fault diagnosis can be expanded. method to improve production efficiency;
每一个测试节点(从站)在EtherCAT总线中有唯一的位置信息,且该位置信息从第一个测试节点开始依次递增。在测试节点发生故障时,通过本发明提出的故障诊断方法,可以快速找到发生故障的测试节点,减少了故障维修的时间。Each test node (slave station) has unique position information in the EtherCAT bus, and the position information increases sequentially from the first test node. When a fault occurs at a test node, the fault diagnosis method proposed by the invention can quickly find the faulty test node, reducing the time for fault maintenance.
附图说明Description of drawings
构成本申请的一部分的附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings constituting a part of this application are used to provide further understanding of the present invention, and the schematic embodiments and descriptions of the present invention are used to explain the present invention, and do not constitute an improper limitation of the present invention. In the attached picture:
图1为一个实施例中基于EtherCAT总线的线束测试装置的结构框图;Fig. 1 is the structural block diagram of the wire harness testing device based on EtherCAT bus in an embodiment;
图2为一个实施例中基于EtherCAT总线的线束测试装置中测试节点的结构框图;Fig. 2 is the structural block diagram of test node in the wiring harness testing device based on EtherCAT bus line in an embodiment;
图3为一个实施例中基于EtherCAT总线的线束测试装置中测试端子阵列的结构框图;Fig. 3 is the structural block diagram of test terminal array in the wiring harness testing device based on EtherCAT bus line in an embodiment;
图4为一个实施例中基于EtherCAT总线的线束测试装置中激励测量模块的结构框图;Fig. 4 is the structural block diagram of excitation measurement module in the wiring harness testing device based on EtherCAT bus line in an embodiment;
图5为一个实施例中进行测试端子分组过程的测试节点之间的连接状态框图;Fig. 5 is a block diagram of the connection state between the test nodes performing the test terminal grouping process in one embodiment;
图6为一个实施例中进行测试节点的自测试时的结构图;Fig. 6 is the structural diagram when carrying out the self-test of test node in an embodiment;
图7为一个实施例中进行测试节点的故障诊断时示例结构框图;Fig. 7 is a structural block diagram of an example when performing fault diagnosis of a test node in an embodiment;
图8为一个实施例中进行单个测试节点内的测试的示例结构框图;Fig. 8 is an example structural block diagram of testing in a single test node in one embodiment;
图9为一个实施例中进行多个测试节点间的测试的示例结构框图;Fig. 9 is an example structural block diagram of testing between multiple test nodes in one embodiment;
图10为一个实施例中进行线束端子短路测试的示例结构框图。Fig. 10 is a structural block diagram of an example of performing a short circuit test on a wire harness terminal in an embodiment.
具体实施方式Detailed ways
下面对本发明的具体实施方式进行详细地说明。以下示例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进。这些都属于本发明的 保护范围。Specific embodiments of the present invention will be described in detail below. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention. These all belong to protection domain of the present invention.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.
为了使本领域的技术人员更好的理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,在本领域普通技术人员没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明的保护范围。In order for those skilled in the art to better understand the solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the present invention. Obviously, the described embodiment is only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall belong to the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“步骤一”、“步骤二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。It should be noted that the terms "first", "second", "step 1", "step 2" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects and do not necessarily Used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion.
在一个实施例中,如图1所示,提供了一种基于EtherCAT总线的线束测试装置,包括机台,所述基于EtherCAT总线的线束测试装置还包括:In one embodiment, as shown in Figure 1, a kind of wire harness testing device based on EtherCAT bus is provided, including machine platform, described wire harness testing device based on EtherCAT bus also includes:
M个线束适配器,均安装于所述机台上,M个所述线束适配器用于与待测线束连接;其中,待测线束由若干导线和连接器组成,本发明即为需要对待测线束中的导线的连接性、元件的参数进行测试。线束适配器是连接待测线束的接线端子与测试节点的测试端子的连接器件。M wire harness adapters are all installed on the machine platform, and the M wire harness adapters are used to connect with the wire harness to be tested; wherein, the wire harness to be tested is composed of several wires and connectors. The connectivity of the wires and the parameters of the components are tested. The wire harness adapter is a connecting device that connects the wiring terminals of the wire harness to be tested with the test terminals of the test node.
N个测试节点,均安装于所述机台下,N个所述测试节点依次连接并用于与M个所述线束适配器连接;其中,基于EtherCAT控制器设计测试节点。测试节点通过2个RJ45接口连接到EtherCAT总线中,安装部署简单,灵活性好。测试节点中的测试端子通过线束适配器连接到待测线束的接线端子,每个测试节点上可以连接多个线束适配器,多个测试节点也可以连接到单个线束适配器。N test nodes are all installed under the machine platform, and the N test nodes are connected in sequence and used to connect with the M harness adapters; wherein, the test nodes are designed based on the EtherCAT controller. The test node is connected to the EtherCAT bus through two RJ45 interfaces, which is easy to install and deploy, and has good flexibility. The test terminals in the test node are connected to the wiring terminals of the wire harness to be tested through the wire harness adapter, and multiple wire harness adapters can be connected to each test node, and multiple test nodes can also be connected to a single wire harness adapter.
直流电源,安装于所述机台,所述直流电源用于为N个所述测试节点提供可调直流电源电压;其中,可调直流电源电压的直流电源电压和电流幅值可根据待测线束的需要设定。A DC power supply is installed on the machine, and the DC power supply is used to provide adjustable DC power supply voltages for the N test nodes; wherein, the DC power supply voltage and current amplitude of the adjustable DC power supply voltage can be adjusted according to the wiring harness to be tested needs to be set.
工控机,安装于所述机台上,所述工控机与N个所述测试节点通过EtherCAT总线连接,所述工控机通过EtherCAT总线发送线束测试指令,通过N个所述测试节点对于M各线束适配器连接的待测线束进行测试,并在测试完成后生成测试报告。其中,所有测试节点通过EtherCAT总线连接到工控机。每个测试节点通过EtherCAT总线接收来自测试程序的测试指令,通过测试节点内的开关在单个测试节点或多个测试节点之间构建测试回路,设置测量激励,采集测试回路中的测试响应信号并返回给测试程序。The industrial computer is installed on the machine platform, the industrial computer is connected to the N test nodes through the EtherCAT bus, the industrial computer sends the wiring harness test command through the EtherCAT bus, and the M wiring harnesses are passed through the N test nodes. Test the wiring harness to be tested connected by the adapter, and generate a test report after the test is completed. Among them, all test nodes are connected to the industrial computer through the EtherCAT bus. Each test node receives test instructions from the test program through the EtherCAT bus, builds a test loop between a single test node or multiple test nodes through the switch in the test node, sets the measurement stimulus, collects the test response signal in the test loop and returns to the test program.
具体地,所述工控机具有数据存储器和2个以太网接口。其中一个以太网接口通过EtherCAT总线连接N个测试节点,另一个以太网接口用于连接外部网络如MES系统。Specifically, the industrial computer has a data memory and two Ethernet interfaces. One of the Ethernet interfaces connects N test nodes through the EtherCAT bus, and the other Ethernet interface is used to connect to external networks such as MES systems.
EtherCAT是由德国BECKHOFF公司提出的一种工业以太网现场总线,具有数据传输同步、实时性高、系统结构拓扑灵活、数据带宽高达100Mbps等特点。EtherCAT is an industrial Ethernet field bus proposed by German BECKHOFF company, which has the characteristics of synchronous data transmission, high real-time performance, flexible system structure topology, and data bandwidth up to 100Mbps.
EtherCAT数据帧基于标准100M以太网数据帧开发,采用专用的实时协议实现高速、高同步、高实时的特点。EtherCAT将所有从站的通信数据编码在EtherCAT数据帧中。每个从站在EtherCAT数据帧经过其节点时读取相应的主站输出数据,同时将主站输入数据插入到EtherCAT数据帧的相应位置,从而实现主站与所有从站之间的并行数据传输。The EtherCAT data frame is developed based on the standard 100M Ethernet data frame, and uses a dedicated real-time protocol to achieve high-speed, high-synchronization, and high-real-time characteristics. EtherCAT encodes the communication data of all slave stations in EtherCAT data frames. Each slave station reads the corresponding output data of the master station when the EtherCAT data frame passes through its node, and at the same time inserts the input data of the master station into the corresponding position of the EtherCAT data frame, thereby realizing parallel data transmission between the master station and all slave stations .
本实施例中,使用普通工控机作为主站,使用专门设计的测试节点作为从站。EtherCAT总线具有灵活的拓扑结构,主站和从站之间连接方式简单。In this embodiment, an ordinary industrial computer is used as the master station, and a specially designed test node is used as the slave station. The EtherCAT bus has a flexible topology, and the connection between the master station and the slave station is simple.
在一个实施例中,如图2所示,N个所述测试节点均包括测试端子阵列、激励测量模块、微处理器和EtherCAT控制器,所述测试端子阵列的数量为多个,各所述测试端子阵列用于与M个所述线束适配器的接线端子连接,所述激励测量模块与所述测试端子阵列和所述直流电源连接,所述微处理器通过SPI数据接口或I2C数据接口与所述测试端子阵列连接,所述微处理器还与所述激励测量模块连接,所述EtherCAT控制器通过SPI数据接口或I2C数据接口与所述微处理器连接,所述EtherCAT控制器的一端连接一RJ45_1接口,所述EtherCAT控制器的另一端连接一RJ45_2接口,所述RJ45_1接口与当前所在的所述测试节点左侧的测试节点的RJ45_2接口连接,所述RJ45_2接口与当前所在的所述测试节点右侧的测试节点的RJ45_1接口连接。具体地,所有测试节点连接到公共的地线,保证各测试节点内部电路使用同一个参考地。且所有测试节点共享一条公共线,用于辅助线束测试方法,构建测试回路。测试节点通过2芯电源线接入直流电源,由内部的电源模块转换成所需的各个电压电源。In one embodiment, as shown in Figure 2, the N test nodes all include a test terminal array, an excitation measurement module, a microprocessor and an EtherCAT controller, and the number of the test terminal arrays is multiple, each of the The test terminal array is used to be connected to the wiring terminals of the M wire harness adapters, the excitation measurement module is connected to the test terminal array and the DC power supply, and the microprocessor is connected to the The test terminal array is connected, the microprocessor is also connected with the excitation measurement module, the EtherCAT controller is connected with the microprocessor through the SPI data interface or the I2C data interface, and one end of the EtherCAT controller is connected to a RJ45_1 interface, the other end of the EtherCAT controller is connected to an RJ45_2 interface, the RJ45_1 interface is connected to the RJ45_2 interface of the test node on the left side of the currently located test node, and the RJ45_2 interface is connected to the currently located test node Connect the RJ45_1 interface of the test node on the right. Specifically, all test nodes are connected to a common ground wire, ensuring that the internal circuits of each test node use the same reference ground. And all test nodes share a common line, which is used to assist the harness test method and build a test loop. The test node is connected to a DC power supply through a 2-core power cable, and the internal power supply module converts it into a power supply of various voltages required.
其中,所述微处理器(MCU)作为主要控制部件,MCU集成的数模转换器(DAC)用于给激励测量模块提供可编程的电压,该可编程电压经过隔离放大后作为测量回路中的激励。MCU集成的多通道模数转换器(ADC)用于采集测量回路中的电压、电流等参数,经过计算后得到测量回路中被测对象的阻值。测试节点支持测量线束或电阻、二极管等功能元件的参数。Wherein, the microprocessor (MCU) is used as the main control unit, and the digital-to-analog converter (DAC) integrated in the MCU is used to provide a programmable voltage to the excitation measurement module, and the programmable voltage is isolated and amplified as a voltage in the measurement circuit. excitation. The multi-channel analog-to-digital converter (ADC) integrated in the MCU is used to collect parameters such as voltage and current in the measurement loop, and obtain the resistance value of the measured object in the measurement loop after calculation. The test node supports the measurement of parameters of wire harnesses or functional components such as resistors and diodes.
此外,测试节点可以扩展测试端子阵列,提升单个测试节点的测试端子数目,支持测试复杂的线束连接器。测试节点还可以通过数据接口(如SPI、I2C等)控制颜色传感器、气密传感器等多种传感器执行特殊功能测试。In addition, the test node can expand the test terminal array, increase the number of test terminals of a single test node, and support the testing of complex wire harness connectors. The test node can also control color sensors, airtight sensors and other sensors to perform special function tests through data interfaces (such as SPI, I2C, etc.).
进一步地,所述EtherCAT控制器用于实现EtherCAT总线的通信功能。EtherCAT控制器可以是AX58100、ET1100、LAN9252等独立的芯片,也可以是集成在MCU芯片如AX58200中的EtherCAT控制器。Further, the EtherCAT controller is used to realize the communication function of the EtherCAT bus. The EtherCAT controller can be an independent chip such as AX58100, ET1100, LAN9252, or an EtherCAT controller integrated in an MCU chip such as AX58200.
更进一步地,测试数据的传输过程为:首先,EtherCAT控制器通过RJ45_1接口接收来自上一个测试节点的EtherCAT数据帧,从中获取测试指令,解析后通过数据传输接口SPI传输给MCU进行处理,同时将MCU通过数据传输接口SPI传输给EtherCAT控制器的测试结果数据写入该EtherCAT数据帧,然后通过RJ45_2接口传输给下一个测试节点。测试节点之间根据拓扑结构依次传输该EtherCAT数据帧,直到最后一个测试节点。Furthermore, the transmission process of the test data is as follows: first, the EtherCAT controller receives the EtherCAT data frame from the previous test node through the RJ45_1 interface, obtains the test instruction from it, and transmits it to the MCU through the data transmission interface SPI for processing after parsing. The test result data transmitted by the MCU to the EtherCAT controller through the data transmission interface SPI is written into the EtherCAT data frame, and then transmitted to the next test node through the RJ45_2 interface. The EtherCAT data frames are transmitted sequentially between the test nodes according to the topology until the last test node.
当最后一个测试节点检测到没有下一个测试节点后,将该EtherCAT数据帧通过其RJ45_1接口传输给上一个测试节点的RJ45_2接口。测试节点之间根据拓扑结构依次从其RJ45_1接口输入,从其RJ45_2接口输出该EtherCAT数据帧,直到最终达到主站工控机的测试软件进行处理。After the last test node detects that there is no next test node, the EtherCAT data frame is transmitted to the RJ45_2 interface of the last test node through its RJ45_1 interface. According to the topological structure, the test nodes are input from their RJ45_1 interface in turn, and the EtherCAT data frame is output from its RJ45_2 interface until it finally reaches the test software of the master station industrial computer for processing.
在一个实施例中,如图3所示,所述测试端子阵列为一组测试端子的有序集合,一个所述测试端子阵列中的测试端子为多个。一个阵列中的测试端子的数量可以根据需要灵活配置。本实施例中示出一个支持32个测试端子的测试端子阵列,如图3所示,MCU通过数据接口(如同步串行接口)将测试端子的开关控制数据写入串行移位寄存器的相应位置,在输出使能有效的时候,测试端子的开关控制数据Sx控制各个测试端子的开关SHx、SLx执行动作。In one embodiment, as shown in FIG. 3 , the test terminal array is an ordered collection of a group of test terminals, and there are multiple test terminals in one test terminal array. The number of test terminals in an array can be flexibly configured as required. A test terminal array supporting 32 test terminals is shown in this embodiment, as shown in Figure 3, the MCU writes the switch control data of the test terminals into the corresponding When the output enable is valid, the switch control data Sx of the test terminal controls the switches SHx and SLx of each test terminal to perform actions.
一个测试端子的开关SHx、SLx组合有4个状态,分别是“断开”、“连接到高端”,“连接到低端”,”同时连接到高端和低端”。The combination of switches SHx and SLx of a test terminal has 4 states, which are "disconnected", "connected to high-end", "connected to low-end", and "connected to high-end and low-end at the same time".
具体地,“断开”表示该测试端子不连接到测量回路。“连接到高端”表示该测试端子连接测试节点的激励,是测量回路中电位处于高电位的端子。“连接到低端”表示该测试端子连接测试节点的信号回流端子,是测量回路中电位处于低电位的端子。”“同时连接到高端和低端”表示该测试端子连接测试节点内部的测试回路,用于对测试端子进行自测试,计算测试端子的内部阻值,从而判断测试端子的功能正确性。Specifically, "open" means that the test terminal is not connected to the measurement circuit. "Connected to the high end" means that the test terminal is connected to the excitation of the test node, which is the terminal with the high potential in the measurement circuit. "Connected to the low end" means that the test terminal is connected to the signal return terminal of the test node, which is the terminal with the low potential in the measurement circuit. "Simultaneously connected to high-end and low-end" means that the test terminal is connected to the internal test circuit of the test node, which is used to self-test the test terminal, calculate the internal resistance of the test terminal, and judge the correctness of the function of the test terminal.
进一步地,测试端子的开关可以使用MOS晶体管、MOS继电器、机械继电器实现。Further, the switch of the test terminal can be implemented by using MOS transistors, MOS relays, and mechanical relays.
在一个实施例中,如图4所示,所述激励测量模块包括多个采样器件和多个采样开关,各所述采样器件的两端均与所述微处理器连接,所述采样开关设置于所述采样器件、所述直流电源的激励输出端VS和公共线之间。本实施例中,所述采样器件为电阻,以采样器件的数量为2个为例,采样开关的数量以2个为例,如图4所示,所述激励测量模块包括4个 ADC电压采样通道,可以同时采集两个限流电阻R1和R2两端的4个电压值,分别为电压VH2、电压VH1、电压VL2和电压VL1。其中,激励VS是可编程的直流电源输出,MCU通过设置DAC的输出值,可编程输出测量回路中的激励电压。开关S1用于切换内部激励或公共线。开关S2用于切换信号地或公共线。公共线用于级联测试节点,可以在两个及以上的测试节点之间构建测量回路。In one embodiment, as shown in Figure 4, the excitation measurement module includes a plurality of sampling devices and a plurality of sampling switches, both ends of each of the sampling devices are connected to the microprocessor, and the sampling switches are set to Between the sampling device, the excitation output terminal VS of the DC power supply and the common line. In this embodiment, the sampling device is a resistor. Taking the number of sampling devices as 2 as an example, the number of sampling switches is 2 as an example. As shown in Figure 4, the excitation measurement module includes 4 ADC voltage sampling channel, which can simultaneously collect 4 voltage values across two current-limiting resistors R1 and R2, namely voltage VH2, voltage VH1, voltage VL2 and voltage VL1. Among them, the excitation VS is a programmable DC power output, and the MCU can program the excitation voltage in the measurement circuit by setting the output value of the DAC. Switch S1 is used to switch the internal excitation or common line. The switch S2 is used to switch the signal ground or the common line. The common line is used for cascading test nodes, and a measurement loop can be constructed between two or more test nodes.
在一个实施例中,所述基于EtherCAT总线的线束测试装置还包括扫描枪和标签打印机,所述扫描枪和标签打印机均与所述工控机连接,并用于输入或输出待测线束的标签信息和测试结果。In one embodiment, the wire harness testing device based on the EtherCAT bus also includes a scanning gun and a label printer, both of which are connected to the industrial computer and are used to input or output the label information and label information of the wire harness to be tested. Test Results.
在一个实施例中,一种基于EtherCAT总线的线束测试方法,所述线束测试方法基于所述线束测试装置,所述方法包括以下步骤:In one embodiment, a kind of wire harness test method based on EtherCAT bus, described wire harness test method is based on described wire harness test device, and described method comprises the following steps:
步骤一:所述工控机获取待测线束的拓扑描述、机台上的配置数据以及N各测试节点的节点基本信息;Step 1: the industrial computer obtains the topology description of the wiring harness to be tested, the configuration data on the machine platform, and the node basic information of each test node of N;
具体而言,待测线束通过多个线束连接器连接到多个测试节点,本发明在进行线束测试前,根据待测线束的拓扑结构,对线束端子进行分组。Specifically, the wire harness to be tested is connected to multiple test nodes through a plurality of wire harness connectors, and the present invention groups the wire harness terminals according to the topological structure of the wire harness to be tested before performing the wire harness test.
如图5所示,说明测试端子分组方法:As shown in Figure 5, the test terminal grouping method is explained:
其中,待测线束由连接L1、L2、L3、L4、L5、L6、L7组成,则可以记作H={L1、L2、L3、L4、L5、L6、L7}。进一步地说,每个连接有两个测试端子组成,如L2=(IOA1,IOB1)。首先,初始化两个空的连接集合H1和H2,其中H1存储单个节点内的连接,H2存储节点间的连接。那么,对H中的每一个连接L(IOx,IOy),如果IOx和IOy在单个测试节点中,将L(IOx,IOy)存储到连接集合H1中;如果T1和T2属于不同的测试节点,将L(IOx,IOy)存储到H2中。进而,图5的分组结果H1={L1、L4、L5、L8、L11},H2={L2、L3、L6、L7、L9、L10}。Wherein, the wiring harness to be tested is composed of connections L1, L2, L3, L4, L5, L6, and L7, which can be recorded as H={L1, L2, L3, L4, L5, L6, L7}. Further, each connection is composed of two test terminals, such as L2=(IOA1,IOB1). First, initialize two empty connection sets H1 and H2, where H1 stores connections within a single node, and H2 stores connections between nodes. Then, for each connection L(IOx, IOy) in H, if IOx and IOy are in a single test node, store L(IOx, IOy) in the connection set H1; if T1 and T2 belong to different test nodes, Store L(IOx,IOy) into H2. Furthermore, the grouping results in FIG. 5 are H1={L1, L4, L5, L8, L11}, and H2={L2, L3, L6, L7, L9, L10}.
由于测试节点之间是并行工作的,因此该分组方法可以提高测试速度。Since the test nodes work in parallel, this grouping method can improve the test speed.
步骤二:所述工控机通过EtherCAT总线发送线束测试指令,根据线束测试指令控制每个测试节点启动内部自测试,并获取每个测试节点的测试端子上的连接状态,并映射到待测线束的拓扑结构上;Step 2: The industrial computer sends a wiring harness test instruction through the EtherCAT bus, controls each test node to start an internal self-test according to the wiring harness test instruction, and obtains the connection status on the test terminal of each test node, and maps it to the wiring harness to be tested. topologically;
步骤三:当内部自测试成功后,生成测试端子的分组数据;Step 3: After the internal self-test is successful, generate the group data of the test terminal;
步骤四:执行单个测试节点内的线束测试,并判断单个测试节点内的线束测试是否成功;Step 4: Execute the harness test in a single test node, and judge whether the harness test in a single test node is successful;
步骤五:若单个测试节点内的线束测试成功,则执行多个测试节点间的线束测试,并判断多个测试节点间的线束测试是否成功;Step 5: If the harness test in a single test node is successful, execute the harness test between multiple test nodes, and judge whether the harness test between multiple test nodes is successful;
步骤六:若多个测试节点间的线束测试成功,则执行短路测试;Step 6: If the harness test between multiple test nodes is successful, perform a short circuit test;
步骤七:根据短路测试结果,生成测试报告。Step 7: Generate a test report according to the short-circuit test results.
在一个实施例中,如图6所示,步骤二中:根据线束测试指令控制每个测试节点启动内部自测试,具体步骤包括:In one embodiment, as shown in Figure 6, in step 2: control each test node to start the internal self-test according to the wiring harness test instruction, and the specific steps include:
步骤2-1:基于进行内部自测试的测试节点的测试端子构建一个自测试回路;Step 2-1: Construct a self-test loop based on the test terminals of the test node for internal self-test;
步骤2-2:基于自测试回路计算当前的测试端子的内部阻值;Step 2-2: Calculate the current internal resistance of the test terminal based on the self-test loop;
步骤2-3:判断所述内部阻值是否小于预设的修正阈值,若判断所述内部阻值小于预设的修正阈值,则测试端子连接功能正常,若判断所述内部阻值大于预设的修正阈值,则测试端子连接功能不正常。Step 2-3: Judging whether the internal resistance is less than the preset correction threshold, if it is judged that the internal resistance is less than the preset correction threshold, the connection function of the test terminal is normal, if it is judged that the internal resistance is greater than the preset The corrected threshold value of the test terminal connection is not functioning properly.
具体而言,本步骤中,如图6所示,执行线束测试前,需要对测试节点的所有测试端子执行诊断测试,判断测试端子的功能是否正常,为此测试端子IOx通过开关SH、S1连接到激励VS,同时通过开关SL、S2连接到信号地,构建了一个自测试回路,该自测试回路即为步骤2-1中所述。Specifically, in this step, as shown in Figure 6, before performing the wiring harness test, it is necessary to perform a diagnostic test on all test terminals of the test node to determine whether the function of the test terminals is normal. To stimulate VS, and connect to signal ground through switches SL and S2 at the same time, a self-test loop is constructed, which is described in step 2-1.
接着,在测试回路的两个限流电阻两端采集到四个电压VH1、VH2、VL2、VL1,计算测试端子IOx的内部阻值:RL=(VH2-VL2)/((VH1-VH2)/R1),如果RL小于设定的修正阈值,说明该测试端子连接功能正常,将RL/2作为该测试端子的内部修正值存储在测试软件中。如果RL大于设定的修正阈值,说明该测试端子连接功能不正常,自测试不通过,需要进一步对测试端子的硬件电路进行维修诊断。测试节点的自测试方法是对每一个测试端子执行上述的测试过程。只有测试节点中的所有测试端子的自测试通过以后,才能使用该测试端子对待测线束进行测试。Then, collect four voltages VH1, VH2, VL2, VL1 at both ends of the two current-limiting resistors of the test loop, and calculate the internal resistance of the test terminal IOx: RL=(VH2-VL2)/((VH1-VH2)/ R1), if RL is less than the set correction threshold, it means that the connection function of the test terminal is normal, and RL/2 is stored in the test software as the internal correction value of the test terminal. If RL is greater than the set correction threshold, it means that the connection function of the test terminal is not normal, the self-test fails, and the hardware circuit of the test terminal needs to be further repaired and diagnosed. The self-test method of the test node is to execute the above-mentioned test process for each test terminal. Only after the self-test of all test terminals in the test node passes, the test terminal can be used to test the wire harness to be tested.
在一个实施例中,如图7所示,步骤三:当内部自测试成功后,生成测试端子的分组数据,之后还包括以下步骤:In one embodiment, as shown in Figure 7, step 3: after the internal self-test is successful, generate the packet data of the test terminal, and then include the following steps:
当内部自测试失败,则进行测试节点故障诊断修复。When the internal self-test fails, the fault diagnosis and repair of the test node are carried out.
进一步地,如图7所示,进行测试节点故障诊断修复的步骤如下:Further, as shown in Figure 7, the steps for performing fault diagnosis and repair of the test node are as follows:
首先,本实施例中,具有N个测试节点。工控机内通过将测试程序发送基于EtherCAT数据帧,扫描EtherCAT总线上的从站,也即测试节点。由于测试节点x+1发生故障,该EtherCAT数据帧在传输到测试节点x后发生回环,返回至测试装置的主站,也即工控机。First, in this embodiment, there are N test nodes. In the industrial computer, the test program is sent based on the EtherCAT data frame to scan the slave station on the EtherCAT bus, that is, the test node. Since the test node x+1 fails, the EtherCAT data frame loops back after being transmitted to the test node x, and returns to the master station of the test device, that is, the industrial computer.
进一步地,工控机判断该EtherCAT数据帧经过的测试节点数目。如果只扫描到x个测试节点,且x<n,说明第x+1个测试节点发生了故障。然后,工控机设置第x个测试节点的LED为“ON”状态,指示故障的前一个测试节点。维修人员通过第x个测试节点的“从 连接”电缆,找到第x+1个节点进行故障排查。Further, the industrial computer judges the number of test nodes passed by the EtherCAT data frame. If only x test nodes are scanned, and x<n, it means that the x+1th test node has failed. Then, the industrial computer sets the LED of the xth test node to "ON" state, indicating the faulty previous test node. Maintenance personnel use the "slave connection" cable of the xth test node to find the x+1th node for troubleshooting.
在一个实施例中,如图8所示,步骤四:执行单个测试节点内的线束测试,具体步骤包括:In one embodiment, as shown in FIG. 8, step 4: execute the wire harness test in a single test node, and the specific steps include:
步骤4-1:获取进行单个测试节点内的线束测试的测试节点,基于该测试节点的测试端子构建一个测量回路;Step 4-1: Obtain a test node for conducting a harness test within a single test node, and construct a measurement loop based on the test terminals of the test node;
步骤4-2:基于所述测量回路计算待测线L的阻值;Step 4-2: Calculate the resistance value of the line L to be tested based on the measurement circuit;
步骤4-3:若待测线L的阻值小于预先设定的导通阈值,则测试结果为导通;如果待测线L的阻值大于预先设定的断路阈值,测试结果为断路,否则测试结果为高阻。Step 4-3: If the resistance value of the line L to be tested is less than the preset conduction threshold, the test result is conduction; if the resistance value of the line L to be tested is greater than the preset open circuit threshold, the test result is open circuit, Otherwise, the test result is high resistance.
具体地,如图8所示,测试端子IOx通过开关SHx、S1连接到激励VS,测试端子IOy通过开关SLy、S2连接到信号地,构建了一个测量回路。该测量回路即为步骤4-1中的测量回路。接着,在测量回路的两个限流电阻两端采集到四个电压,分别为VH1、VH1、VL1和VL2,根据以下公式计算待测线L的阻值:Specifically, as shown in FIG. 8 , the test terminal IOx is connected to the excitation VS through the switches SHx and S1, and the test terminal IOy is connected to the signal ground through the switches SLy and S2, thereby constructing a measurement loop. This measurement loop is the measurement loop in step 4-1. Next, collect four voltages at both ends of the two current-limiting resistors of the measurement circuit, namely VH1, VH1, VL1 and VL2, and calculate the resistance value of the line L to be tested according to the following formula:
RL=(VH2-VL2)/((VH1-VH2)/R1);RL=(VH2-VL2)/((VH1-VH2)/R1);
其中,如果RL小于设定的导通阈值,测试结果为导通;如果RL大于设定的断路阈值,测试结果为断路;否则测试结果为高阻。Wherein, if RL is smaller than the set conduction threshold, the test result is conduction; if RL is greater than the set open circuit threshold, the test result is open circuit; otherwise, the test result is high resistance.
进一步地,如果被测对象是电阻,RL即为电阻值。如果被测对象是二极管,则反向进行第二次测试,根据两次测试的阻值判断二极管的方向,根据两次测试的电压差VH2-VL2判断二极管的阈值电压。Further, if the measured object is a resistance, RL is the resistance value. If the object under test is a diode, perform the second test in reverse, judge the direction of the diode according to the resistance values of the two tests, and judge the threshold voltage of the diode according to the voltage difference VH2-VL2 of the two tests.
在一个实施例中,如图3所示,被测线束经过测试端子分组后,如果H1不是空的集合,测试程序执行单个节点内的测试,测试方法如下:In one embodiment, as shown in Figure 3, after the tested wiring harness is grouped by test terminals, if H1 is not an empty set, the test program executes the test in a single node, and the test method is as follows:
(1)初始化一个空的指令集合REQ;(1) Initialize an empty command set REQ;
(2)对H1中的每一个连接L(IO1,IO2),如果IO1、IO2所在测试节点都不在REQ已有的连接所属的测试节点中,将L(IO1,IO2)从H1移到REQ中,其中IO1连接高端电位,IO2连接低端电位;(2) For each connection L(IO1,IO2) in H1, if the test node where IO1 and IO2 are located is not in the test node to which the existing connection of REQ belongs, move L(IO1,IO2) from H1 to REQ , where IO1 is connected to the high-end potential, and IO2 is connected to the low-end potential;
(3)根据REQ生成一个测试指令,发送到EtherCAT总线;(3) Generate a test command according to REQ and send it to the EtherCAT bus;
(4)REQ中存储的所有测试端子所在的测试节点根据该REQ测试指令执行测试,返回测试结果;(4) The test nodes where all the test terminals stored in the REQ are located perform tests according to the REQ test instructions, and return the test results;
(5)测试程序计算并存储该REQ存储的所有连接的测试结果。如果H1为空集合,说明所有节点内的连接测试完毕。如果H1为非空集合,继续Step1,直到H1为空集合。(5) The test program calculates and stores the test results of all connections stored in the REQ. If H1 is an empty set, it means that the connections in all nodes have been tested. If H1 is a non-empty set, continue to Step1 until H1 is an empty set.
根据图5测试端子分组,H1={L1、L4、L5、L8、L11},单个节点内的测试需要执行 两次指令,REQ1={L1,L4,L8,L11},REQ2={L5}。可以看出,本发明可以并行执行多个测试节点内的测试,提高生产效率。According to the test terminal grouping in Figure 5, H1={L1, L4, L5, L8, L11}, the test in a single node needs to execute two instructions, REQ1={L1, L4, L8, L11}, REQ2={L5}. It can be seen that the present invention can execute tests in multiple test nodes in parallel to improve production efficiency.
在一个实施例中,如图9所示,步骤五中:若单个测试节点内的线束测试成功,则执行多个测试节点间的线束测试,具体过程如下:In one embodiment, as shown in FIG. 9, in step five: if the harness test in a single test node is successful, then perform the harness test between multiple test nodes, the specific process is as follows:
如图9所示,测试节点A的IOx通过开关SHx、S1连接到节点A的激励VS。测试节点B的IOy通过开关SLy、S2连接到信号地,构建了一个测量回路。As shown in FIG. 9, IOx of test node A is connected to excitation VS of node A through switches SHx, S1. The IOy of the test node B is connected to the signal ground through the switches SLy and S2, and a measurement loop is constructed.
在节点A的限流电阻R1两端采集到两个电压VH1、VH2。在节点B的限流电阻R2两端采集到两个电压VL2、VL1。Two voltages VH1 and VH2 are collected at both ends of the current limiting resistor R1 at node A. Two voltages VL2 and VL1 are collected at both ends of the current limiting resistor R2 of node B.
根据以下公式计算待测线L的阻值:Calculate the resistance value of the line L to be tested according to the following formula:
RL=(VH2-VL2)/((VH1-VH2)/R1);RL=(VH2-VL2)/((VH1-VH2)/R1);
如果RL小于设定的导通阈值,测试结果为导通;如果RL大于设定的断路阈值,测试结果为断路;否则测试结果为高阻。如果被测对象是电阻,RL即为电阻值。If RL is less than the set conduction threshold, the test result is conduction; if RL is greater than the set cut-off threshold, the test result is open circuit; otherwise, the test result is high resistance. If the measured object is a resistor, RL is the resistance value.
进一步地,同理,如果被测对象是二极管,反向进行第二次测试,根据两次测试的阻值判断二极管的方向,根据两次测试的电压差VH2-VL2判断二极管的阈值电压。Further, similarly, if the measured object is a diode, the second test is performed in the reverse direction, the direction of the diode is judged according to the resistance values of the two tests, and the threshold voltage of the diode is judged according to the voltage difference VH2-VL2 of the two tests.
被测线束经过测试端子分组后,如果H2不是空的集合,测试程序执行多个节点间的测试,测试方法如下:After the tested wire harness is grouped by the test terminals, if H2 is not an empty set, the test program executes the test between multiple nodes. The test method is as follows:
步骤1:初始化一个空的指令集合REQ;Step 1: Initialize an empty command set REQ;
步骤:对H2中的每一个连接L(IO1,IO2),如果IO1、IO2所在测试节点都不在REQ已有的连接所属的测试节点中,将L(IO1,IO2)从H2移到REQ中,其中IO1连接高端电位,IO2连接低端电位;Steps: For each connection L(IO1,IO2) in H2, if the test nodes where IO1 and IO2 are located are not in the test nodes where the existing connections of REQ belong, move L(IO1,IO2) from H2 to REQ, Among them, IO1 is connected to the high-end potential, and IO2 is connected to the low-end potential;
步骤3:根据REQ生成一个测试指令,发送到EtherCAT总线;Step 3: Generate a test command according to REQ and send it to the EtherCAT bus;
步骤4:REQ中存储的所有测试端子所在的测试节点根据该REQ测试指令执行测试,返回测试结果;Step 4: The test nodes where all the test terminals stored in the REQ are located execute the test according to the REQ test command and return the test result;
步骤5:工控机中的测试程序计算并存储该REQ存储的所有连接的测试结果。如果H2为空集合,说明所有节点内的连接测试完毕。如果H2为非空集合,继续Step1,直到H2为空集合。Step 5: The test program in the industrial computer calculates and stores the test results of all connections stored in the REQ. If H2 is an empty set, it means that the connection tests in all nodes are completed. If H2 is a non-empty set, continue to Step1 until H2 is an empty set.
根据图5测试端子分组,H2={L2、L3、L6、L7、L9、L10},多个测试节点间的测试需要执行三次指令,REQ1={L2,L10},REQ2={L3,L9},REQ2={L7}。可以看出,本发明可以并行执行多个测试节点内的测试,提高生产效率。According to the test terminal grouping in Figure 5, H2={L2, L3, L6, L7, L9, L10}, the test between multiple test nodes needs to execute three instructions, REQ1={L2, L10}, REQ2={L3, L9} , REQ2={L7}. It can be seen that the present invention can execute tests in multiple test nodes in parallel to improve production efficiency.
在一个实施例中,如图10所示,步骤六中,执行短路测试用于确保各个连接之间、 连接和空闲的测试端子之间没有电气连接,具体步骤如下:首先将待测线束的所有连接分组成网络。In one embodiment, as shown in Figure 10, in step 6, carry out short-circuit test and be used for ensuring that there is no electrical connection between each connection, connection and idle test terminal, specific steps are as follows: first connect all wiring harnesses to be tested Connections are grouped into networks.
接着,初始化空的网络集合N,N中的每个元素net表示测试端子的集合。Next, initialize an empty network set N, and each element net in N represents a set of test terminals.
接着,对每一个连接,判断该连接的两个测试端子是否已经在N集合中。如果两个测试端子都不存在于已有的N集合中,新建一个net,并把这两个测试端子存入net集合。Next, for each connection, it is judged whether the two test terminals of the connection are already in the N set. If the two test terminals do not exist in the existing N collection, create a new net and store the two test terminals in the net collection.
其中,如果其中一个测试端子在已有的N集合的net中,将另一个测试端子存储到该net集合。如果两个测试端子分别属于不同的两个net1和net2,将net1和net1合并成一个net。Wherein, if one of the test terminals is in the net of the existing N set, store the other test terminal in the net set. If two test terminals belong to two different net1 and net2 respectively, merge net1 and net1 into one net.
进一步地,从N的每个net元素中取出一个测试端子,构成一个互斥的测试端子集合Prim。Further, a test terminal is taken from each net element of N to form a mutually exclusive test terminal set Prim.
进而,初始化一个空的指令集合REQ;初始化一个空的测试端子集合BAD,用于记录短路的测试端子;依次从Prim中选择一个测试端子设置为高端电位,剩余测试端子设置为低端电位,并生成一条测试指令REQ发送到EtherCAT总线;REQ中存储的所有测试端子所在的测试节点根据该REQ测试指令执行测试,返回测试结果;测试程序计算并存储该REQ的所有测试端子的测试结果。如果设置高端电位的测试端子与设置低端电位的测试端子之间的阻值小于设定的阈值,说明这些测试端子所在的net之间发生了短路,将这些测试端子所在的net作为一个cluster存入BAD集合中。Furthermore, initialize an empty instruction set REQ; initialize an empty test terminal set BAD, which is used to record short-circuited test terminals; select a test terminal from Prim to set it as a high-end potential, and set the remaining test terminals as a low-end potential, and Generate a test instruction REQ and send it to the EtherCAT bus; the test node where all the test terminals stored in the REQ are located executes the test according to the REQ test instruction and returns the test result; the test program calculates and stores the test results of all the test terminals of the REQ. If the resistance value between the test terminal for setting the high-end potential and the test terminal for setting the low-end potential is less than the set threshold, it means that there is a short circuit between the nets where these test terminals are located, and the net where these test terminals are located is used as a cluster storage into the BAD collection.
最后,如果BAD集合非空,BAD中的每个cluster表示一个短路错误,该信息用于错误诊断和排查。Finally, if the BAD set is not empty, each cluster in BAD indicates a short-circuit error, and this information is used for error diagnosis and troubleshooting.
进一步地,以下举例说明,如图10所示,线束中有三个连接L1、L2、L3,及一个空闲的测试端子IOA3。由于L1和L2共享测试端子IOA2,计算得到三个net,即net1(IOA1,IOA2,IOB1)、net2(IOB2,IOB3)、net3(IOA3)。从net1、net2、net3中各取一个测试端子组成Prim(IOA1,IOB2,IOA3)。然后在测试端子IOA1上设置高电位,在测试端子IOB2和IOA3上设置低电位进行测试。由于测试端子IOB1和IOB2之间存在短路,因此Prim的三个测试端子上的测试结果为:IOA1为高电位,IOB2为高电位,IOA3为低电位。测试结果说明IOA1和IOB2发生了短路。测试端子所在的net1、net2的所有测试端子组成出错的cluster(IOA1,IOA2,IOB1,IOB2,IOB3)。Further, the following examples illustrate, as shown in FIG. 10, there are three connections L1, L2, L3 in the wire harness, and one free test terminal IOA3. Since L1 and L2 share the test terminal IOA2, three nets are calculated, namely net1 (IOA1, IOA2, IOB1), net2 (IOB2, IOB3), and net3 (IOA3). Take a test terminal from net1, net2, and net3 to form Prim (IOA1, IOB2, IOA3). Then set a high potential on the test terminal IOA1, and set a low potential on the test terminals IOB2 and IOA3 for testing. Because there is a short circuit between the test terminals IOB1 and IOB2, the test results on the three test terminals of the Prim are: IOA1 is high potential, IOB2 is high potential, and IOA3 is low potential. The test results show that IOA1 and IOB2 are short-circuited. All test terminals of net1 and net2 where the test terminals are located form an error cluster (IOA1, IOA2, IOB1, IOB2, IOB3).
在一个实施例中,步骤四中:判断单个测试节点内的线束测试是否成功,以及,步骤五中:判断多个测试节点间的线束测试是否成功,之后还包括:In one embodiment, in step 4: judging whether the wire harness test in a single test node is successful, and in step 5: judging whether the wire harness test among multiple test nodes is successful, and then also including:
若判断单个测试节点内的线束测试不成功或判断多个测试节点间的线束测试不成功,则均进 行测试端子错误排查和修复。If it is judged that the wire harness test within a single test node is unsuccessful or the wire harness test between multiple test nodes is judged to be unsuccessful, the error checking and repair of the test terminals will be carried out.
以上公开的本发明优选实施例只是用于帮助阐述本发明。优选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本说明书的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本发明的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本发明。本发明仅受权利要求书及其全部范围和等效物的限制,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The preferred embodiments of the invention disclosed above are only to help illustrate the invention. The preferred embodiments are not exhaustive in all detail, nor are the inventions limited to specific embodiments described. Obviously, many modifications and variations can be made based on the contents of this specification. This description selects and specifically describes these embodiments in order to better explain the principle and practical application of the present invention, so that those skilled in the art can well understand and utilize the present invention. The present invention is only limited by the claims and their full scope and equivalents. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention. Inside.
本领域技术人员可以理解,除了以纯计算机可读程序代码方式实现本发明提供的系统、装置及其各个模块以外,完全可以通过将方法步骤进行逻辑编程来使得本发明提供的系统、装置及其各个模块以逻辑门、开关、专用集成电路、可编程逻辑控制器以及嵌入式微控制器等的形式来实现相同程序。所以,本发明提供的系统、装置及其各个模块可以被认为是一种硬件部件,而对其内包括的用于实现各种程序的模块也可以视为硬件部件内的结构;也可以将用于实现各种功能的模块视为既可以是实现方法的软件程序又可以是硬件部件内的结构。Those skilled in the art can understand that, in addition to realizing the system, device and each module provided by the present invention in a purely computer-readable program code mode, the system, device and each module provided by the present invention can be completely implemented by logically programming the method steps. Modules implement the same program in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded microcontrollers, among others. Therefore, the system, device and each module provided by the present invention can be regarded as a hardware component, and the modules included in it for realizing various programs can also be regarded as the structure in the hardware component; A module for realizing various functions can be regarded as either a software program realizing a method or a structure within a hardware component.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括若干指令用以使得单片机、芯片或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括:U盘、移动硬盘、只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)、闪存、磁碟、或者光盘等。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include several instructions for enabling a single-chip microcomputer, a chip or a processor (processor) to execute all or part of the steps of the method described in the various embodiments of the present application. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Non-volatile memory can include: U disk, mobile hard disk, read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic disc, or disc, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
此外,本发明实施例的各种不同的实施方式之间也可以进行任意组合,只要其不违背本发明实施例的思想,其同样应当视为本发明实施例所公开的内容。In addition, various implementations of the embodiments of the present invention can also be combined arbitrarily, as long as they do not violate the idea of the embodiments of the present invention, they should also be regarded as the content disclosed in the embodiments of the present invention.

Claims (10)

  1. 一种基于EtherCAT总线的线束测试装置,包括机台,其特征在于,还包括:A wire harness testing device based on EtherCAT bus, comprising a machine, is characterized in that, also includes:
    M个线束适配器,均安装于所述机台上,M个所述线束适配器用于与待测线束连接;M wire harness adapters are installed on the machine platform, and the M wire harness adapters are used to connect with the wire harness to be tested;
    N个测试节点,均安装于所述机台下,N个所述测试节点依次连接并用于与M个所述线束适配器连接;直流电源,安装于所述机台,所述直流电源用于为N个所述测试节点提供可调直流电源电压;工控机,安装于所述机台上,所述工控机与N个所述测试节点通过EtherCAT总线连接,所述工控机通过EtherCAT总线发送线束测试指令,通过N个所述测试节点对于M各线束适配器连接的待测线束进行测试,并在测试完成后生成测试报告。N test nodes are all installed under the machine platform, and the N test nodes are connected in sequence and used to connect with the M wiring harness adapters; a DC power supply is installed on the machine platform, and the DC power supply is used for The N test nodes provide adjustable DC power supply voltage; the industrial computer is installed on the machine platform, and the industrial computer is connected to the N test nodes through the EtherCAT bus, and the industrial computer sends the wiring harness test through the EtherCAT bus An instruction to test the wire harnesses to be tested connected to the M wire harness adapters through the N test nodes, and generate a test report after the test is completed.
  2. 根据权利要求1所述的基于EtherCAT总线的线束测试装置,其特征在于,N个所述测试节点均包括测试端子阵列、激励测量模块、微处理器和EtherCAT控制器,所述测试端子阵列的数量为多个,各所述测试端子阵列用于与M个所述线束适配器的接线端子连接,所述激励测量模块与所述测试端子阵列和所述直流电源连接,所述微处理器通过SPI数据接口或I 2C数据接口之一与所述测试端子阵列连接,所述微处理器还与所述激励测量模块连接,所述EtherCAT控制器通过SPI数据接口或I 2C数据接口之一与所述微处理器连接,所述EtherCAT控制器的一端连接一RJ45_1接口,所述EtherCAT控制器的另一端连接一RJ45_2接口,所述RJ45_1接口与当前所在的所述测试节点左侧的测试节点的RJ45_2接口连接,所述RJ45_2接口与当前所在的所述测试节点右侧的测试节点的RJ45_1接口连接。 The wire harness testing device based on EtherCAT bus according to claim 1, wherein, N said test nodes all comprise test terminal arrays, excitation measurement modules, microprocessors and EtherCAT controllers, the number of said test terminal arrays There are multiple, each of the test terminal arrays is used to connect with the wiring terminals of the M wire harness adapters, the excitation measurement module is connected to the test terminal array and the DC power supply, and the microprocessor passes the SPI data Interface or one of the I 2 C data interface is connected with the test terminal array, the microprocessor is also connected with the excitation measurement module, and the EtherCAT controller is connected with the test terminal array through one of the SPI data interface or the I 2 C data interface. The microprocessor is connected, one end of the EtherCAT controller is connected to an RJ45_1 interface, and the other end of the EtherCAT controller is connected to an RJ45_2 interface, and the RJ45_1 interface is connected to the RJ45_2 of the test node on the left side of the test node where it is currently located. Interface connection, the RJ45_2 interface is connected to the RJ45_1 interface of the test node on the right side of the current test node.
  3. 根据权利要求2所述的基于EtherCAT总线的线束测试装置,其特征在于,所述测试端子阵列为一组测试端子的有序集合,一个所述测试端子阵列中的测试端子为多个。The wire harness testing device based on the EtherCAT bus according to claim 2, wherein the test terminal array is an ordered collection of a group of test terminals, and there are multiple test terminals in one test terminal array.
  4. 根据权利要求2所述的基于EtherCAT总线的线束测试装置,其特征在于,所述激励测量模块包括多个采样器件和多个采样开关,各所述采样器件的两端均与所述微处理器连接,所述采样开关设置于所述采样器件、信号地、直流电源的激励输出端VS和公共线之间。The wire harness testing device based on EtherCAT bus according to claim 2, wherein the excitation measurement module includes a plurality of sampling devices and a plurality of sampling switches, and the two ends of each sampling device are connected to the microprocessor The sampling switch is arranged between the sampling device, the signal ground, the excitation output terminal VS of the DC power supply and the common line.
  5. 根据权利要求1-4任一项所述的基于EtherCAT总线的线束测试装置,其特征在于,所述基于EtherCAT总线的线束测试装置还包括扫描枪和标签打印机,所述扫描枪和标签打印机均与所述工控机连接。The wire harness testing device based on the EtherCAT bus according to any one of claims 1-4, wherein the wire harness testing device based on the EtherCAT bus also includes a scanning gun and a label printer, and the scanning gun and the label printer are all compatible with The industrial computer is connected.
  6. 一种基于EtherCAT总线的线束测试方法,其特征在于,所述线束测试方法基于权利要求1-5任一项所述的线束测试装置,所述方法包括以下步骤:A wire harness testing method based on EtherCAT bus, characterized in that, said wire harness testing method is based on the wire harness testing device according to any one of claims 1-5, said method comprising the following steps:
    步骤一:所述工控机获取待测线束的拓扑描述、机台上的配置数据以及N各测试节点的节点基本信息;Step 1: the industrial computer obtains the topology description of the wiring harness to be tested, the configuration data on the machine platform, and the node basic information of each test node of N;
    步骤二:所述工控机通过EtherCAT总线发送线束测试指令,根据线束测试指令控制每个测试节点启动内部自测试,并获取每个测试节点的测试端子上的连接状态,并映射到待测线束 的拓扑结构上;Step 2: The industrial computer sends a wiring harness test instruction through the EtherCAT bus, controls each test node to start an internal self-test according to the wiring harness test instruction, and obtains the connection status on the test terminal of each test node, and maps it to the wiring harness to be tested. topologically;
    步骤三:当内部自测试成功后,生成测试端子的分组数据;Step 3: After the internal self-test is successful, generate the group data of the test terminal;
    步骤四:执行单个测试节点内的线束测试,并判断单个测试节点内的线束测试是否成功;Step 4: Execute the harness test in a single test node, and judge whether the harness test in a single test node is successful;
    步骤五:若单个测试节点内的线束测试成功,则执行多个测试节点间的线束测试,并判断多个测试节点间的线束测试是否成功;Step 5: If the harness test in a single test node is successful, execute the harness test between multiple test nodes, and judge whether the harness test between multiple test nodes is successful;
    步骤六:若多个测试节点间的线束测试成功,则执行短路测试;Step 6: If the harness test between multiple test nodes is successful, perform a short circuit test;
    步骤七:根据短路测试结果,生成测试报告。Step 7: Generate a test report according to the short-circuit test results.
  7. 根据权利要求6所述的基于EtherCAT总线的线束测试方法,其特征在于,步骤二中:根据线束测试指令控制每个测试节点启动内部自测试,具体步骤包括:The wire harness testing method based on the EtherCAT bus according to claim 6, wherein in step 2: control each test node to start internal self-test according to the wire harness test instruction, and the specific steps include:
    步骤2-1:基于进行内部自测试的测试节点的测试端子构建一个自测试回路;Step 2-1: Construct a self-test loop based on the test terminals of the test node for internal self-test;
    步骤2-2:基于自测试回路计算当前的测试端子的内部阻值;Step 2-2: Calculate the current internal resistance of the test terminal based on the self-test loop;
    步骤2-3:判断所述内部阻值是否小于预设的修正阈值,若判断所述内部阻值小于预设的修正阈值,则测试端子连接功能正常,若判断所述内部阻值大于预设的修正阈值,则测试端子连接功能不正常。Step 2-3: Judging whether the internal resistance is less than the preset correction threshold, if it is judged that the internal resistance is less than the preset correction threshold, the connection function of the test terminal is normal, if it is judged that the internal resistance is greater than the preset The corrected threshold value of the test terminal connection is not functioning properly.
  8. 根据权利要求6所述的基于EtherCAT总线的线束测试方法,其特征在于,步骤四:执行单个测试节点内的线束测试,具体步骤包括:The wire harness testing method based on EtherCAT bus according to claim 6, wherein, step 4: execute the wire harness test in a single test node, and the specific steps include:
    步骤4-1:获取进行单个测试节点内的线束测试的测试节点,基于该测试节点的测试端子构建一个测量回路;Step 4-1: Obtain a test node for conducting a harness test within a single test node, and construct a measurement loop based on the test terminals of the test node;
    步骤4-2:基于所述测量回路计算待测线L的阻值;Step 4-2: Calculate the resistance value of the line L to be tested based on the measurement circuit;
    步骤4-3:若待测线L的阻值小于预先设定的导通阈值,则测试结果为导通;如果待测线L的阻值大于预先设定的断路阈值,测试结果为断路,否则测试结果为高阻。Step 4-3: If the resistance value of the line L to be tested is less than the preset conduction threshold, the test result is conduction; if the resistance value of the line L to be tested is greater than the preset open circuit threshold, the test result is open circuit, Otherwise, the test result is high resistance.
  9. 根据权利要求6所述的基于EtherCAT总线的线束测试方法,其特征在于,步骤三:当内部自测试成功后,生成测试端子的分组数据,之后还包括以下步骤:当内部自测试失败,则进行测试节点故障诊断修复。The wiring harness testing method based on EtherCAT bus according to claim 6, it is characterized in that, step 3: after internal self-test success, generate the grouping data of test terminal, also comprise the following steps afterwards: when internal self-test failure, then carry out Test node troubleshooting fixes.
  10. 根据权利要求6所述的基于EtherCAT总线的线束测试方法,其特征在于,步骤四中:判断单个测试节点内的线束测试是否成功,以及,步骤五中:判断多个测试节点间的线束测试是否成功,之后还包括:若判断单个测试节点内的线束测试不成功或判断多个测试节点间的线束测试不成功,则均进行测试端子错误排查和修复。The wire harness testing method based on EtherCAT bus according to claim 6, wherein, in step 4: judge whether the wire harness test in a single test node is successful, and, in step 5: judge whether the wire harness test between a plurality of test nodes After success, it also includes: if it is judged that the harness test in a single test node is unsuccessful or the harness test between multiple test nodes is unsuccessful, then troubleshooting and repairing the test terminal errors are all performed.
PCT/CN2022/087300 2021-10-20 2022-04-18 Ethercat bus-based wiring harness test method and apparatus WO2023065620A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111220233.9 2021-10-20
CN202111220233.9A CN113933754A (en) 2021-10-20 2021-10-20 Wire harness testing method and device based on EtherCAT bus

Publications (1)

Publication Number Publication Date
WO2023065620A1 true WO2023065620A1 (en) 2023-04-27

Family

ID=79280663

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087300 WO2023065620A1 (en) 2021-10-20 2022-04-18 Ethercat bus-based wiring harness test method and apparatus

Country Status (2)

Country Link
CN (1) CN113933754A (en)
WO (1) WO2023065620A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116873220A (en) * 2023-08-08 2023-10-13 南京航空航天大学 Multi-agent technology-based aircraft telex bench test system and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113933754A (en) * 2021-10-20 2022-01-14 上海赞太科技有限公司 Wire harness testing method and device based on EtherCAT bus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060061369A1 (en) * 2004-09-20 2006-03-23 Marks Kevin T Information handling system integrated cable tester
CN203133584U (en) * 2013-02-27 2013-08-14 航天科工深圳(集团)有限公司 CAN communication interface, cable monitor and cable monitoring system
CN108318780A (en) * 2017-12-26 2018-07-24 北京航天测控技术有限公司 A kind of testing lines system that distribution channel is expansible
CN210743149U (en) * 2019-10-31 2020-06-12 浙江海利普电子科技有限公司 On-line smoke detection system based on EtherCAT bus
CN111537918A (en) * 2020-06-09 2020-08-14 上海赞太科技有限公司 Distributed wire harness testing device and method thereof
CN211293214U (en) * 2019-11-18 2020-08-18 中车青岛四方机车车辆股份有限公司 Automatic test system for whole train cable of motor train unit
CN113514726A (en) * 2021-09-15 2021-10-19 北京安达维尔航空设备有限公司 Complete machine cable detection system and method
CN113933754A (en) * 2021-10-20 2022-01-14 上海赞太科技有限公司 Wire harness testing method and device based on EtherCAT bus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060061369A1 (en) * 2004-09-20 2006-03-23 Marks Kevin T Information handling system integrated cable tester
CN203133584U (en) * 2013-02-27 2013-08-14 航天科工深圳(集团)有限公司 CAN communication interface, cable monitor and cable monitoring system
CN108318780A (en) * 2017-12-26 2018-07-24 北京航天测控技术有限公司 A kind of testing lines system that distribution channel is expansible
CN210743149U (en) * 2019-10-31 2020-06-12 浙江海利普电子科技有限公司 On-line smoke detection system based on EtherCAT bus
CN211293214U (en) * 2019-11-18 2020-08-18 中车青岛四方机车车辆股份有限公司 Automatic test system for whole train cable of motor train unit
CN111537918A (en) * 2020-06-09 2020-08-14 上海赞太科技有限公司 Distributed wire harness testing device and method thereof
CN113514726A (en) * 2021-09-15 2021-10-19 北京安达维尔航空设备有限公司 Complete machine cable detection system and method
CN113933754A (en) * 2021-10-20 2022-01-14 上海赞太科技有限公司 Wire harness testing method and device based on EtherCAT bus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116873220A (en) * 2023-08-08 2023-10-13 南京航空航天大学 Multi-agent technology-based aircraft telex bench test system and method
CN116873220B (en) * 2023-08-08 2024-03-08 南京航空航天大学 Multi-agent technology-based aircraft telex bench test system and method

Also Published As

Publication number Publication date
CN113933754A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
WO2023065620A1 (en) Ethercat bus-based wiring harness test method and apparatus
CN110268277B (en) Functionality tester for printed circuit boards, and related systems and methods
JP5037409B2 (en) WIRING FAILURE DETECTING SYSTEM USED IN PROCESS CONTROL SYSTEM, AND COMPUTER READABLE STORAGE MEDIUM RECORDING PROGRAM FOR DETECTING WIRING FAILURE
CN104468256B (en) Method and apparatus for the failure in isolation controller LAN
CN104468175B (en) Method and apparatus for the failure in isolation controller lan
US20150346260A1 (en) Method and apparatus for short fault isolation in a controller area network
CN111220401B (en) General motor train unit single-train debugging simulation device and method
CN106444712A (en) CAN/LIN network interference automation test system
WO2022184069A1 (en) Automobile bus fault analysis method, diagnosis device, and bus fault analysis system
CN105551222A (en) Embedded bridge health monitoring system
US11297401B2 (en) Method for testing a plurality of notification appliances connected to a bus system and notification appliance for conducting the test
CN105099506A (en) Electric energy meter RS485 communication failure detecting and self-healing device and method
CN109831349B (en) SpaceWire bus free topology bit error rate test system and method
CN108334060B (en) A kind of bus failure injection device
CN109358610A (en) The detection method of vehicle diagnostic equipment
CN100378465C (en) LSI inspection method and apparatus, and LSI tester
CN110446213B (en) Test system and test method for LoRa wireless single lamp controller
KR101249788B1 (en) Communications Network Structure for Display Module Aging System
CN113884974A (en) Weak current interface fault diagnosis device for electric energy meter
JP2024507487A (en) Communication link operating characteristics test system and test method
CN107071076A (en) Device address collocation method in communication system, device and system
CN211296735U (en) Controller internal delay testing device
WO2013040941A1 (en) Rectifier identification method and device
CN115617007A (en) Ethernet protocol vehicle-mounted entertainment system test bench construction method and test bench
CN216117961U (en) Wire harness testing device based on EtherCAT bus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22882245

Country of ref document: EP

Kind code of ref document: A1