A line testing apparatus, method, system and computer device
By using circuit testing equipment, it is possible to quickly determine whether the wiring between the I/O modules and connectors in the control panel is normal, which solves the problem of extended debugging time caused by incorrect wiring of the control panel and realizes efficient circuit self-testing and equipment debugging.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2026-03-24
AI Technical Summary
In the field of automation, the wiring between the I/O modules and connectors in the control panel is prone to misconnection, which causes a lot of time to be spent on powering on the equipment for debugging and affects the debugging progress.
A line testing device is provided, including an operation panel, a controller, a switching module, an input module, an output module, a relay, and test connectors. It performs line testing by establishing a signal channel, and interacts with a host computer using test programs stored in the controller and a wireless/network cable communication module to automatically generate test programs and quickly determine whether the line is normal.
It reduces the time spent dealing with wiring misconnections during equipment power-on debugging, improves work efficiency, simplifies the wiring testing process, ensures that the wiring completes self-testing before the equipment is assembled, and reduces debugging time.
Smart Images

Figure CN115685008B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of circuit testing, and more particularly to a circuit testing device, method, system, and computer device. Background Technology
[0002] In the field of automation, I / O (input / output) connection lines between devices and connectors are frequently used. These I / O lines connect to I / O modules or I / O devices at one end and connectors at the other, allowing communication with other devices. Electrical control panels, also known as distribution panels or distribution cabinets, are commonly used for wiring connections in automated machines and equipment. Typically, an electrical control panel has several I / O modules and corresponding connectors. After the wiring between the I / O modules and connectors is completed, the control panel is directly installed on the machine. Power-on testing is then performed after other equipment is assembled and connected to the machine.
[0003] Incorrect wiring between I / O modules and connectors can cause additional interference to the use and debugging of related equipment. For example, there are many wires between I / O modules and connectors in the control panel, and incorrect wiring is common. This often results in a significant amount of time being spent troubleshooting wiring errors during equipment power-on debugging, affecting the debugging progress. Summary of the Invention
[0004] Based on this, and to address the aforementioned technical problems, a circuit testing device, method, system, and computer device are provided. The technical solution of this disclosure is as follows:
[0005] According to one aspect of the present disclosure, a circuit testing device is provided, characterized in that it includes an operation panel, a controller, a switching module, an input module, an output module, a relay, and a test connector;
[0006] The operation panel is connected to the controller, and the operation panel is used to receive test commands and display test results.
[0007] The controller is connected to the switching module, the input module, and the output module; the controller stores a test program; the switching module is used to control the relay to select either the input module or the output module as one end to establish a signal channel;
[0008] The relay is connected to the switching module, the input module, and the output module respectively; the relay is also connected to the test connector.
[0009] In one embodiment, the test device is further provided with a network port for communicating with the outside world via a network cable.
[0010] In one embodiment, the test device further includes a wireless communication module for communicating with a host computer.
[0011] According to another aspect of the present disclosure, a method for testing the circuitry of an electronic control panel is provided, applied to the aforementioned testing equipment, the testing method comprising:
[0012] Connect the test connector of the test equipment to the connector of the control panel under test;
[0013] Connect the input module and output module of the test equipment to the remote transmission module of the control panel under test;
[0014] In response to a received test instruction, a stored test program is run to execute a test process; the test process includes the following steps:
[0015] Based on the connector pins of the control panel under test, a signal channel is established between the test equipment and the control panel under test;
[0016] Based on the type of the signal channel, the test point in the controller is set to the selected state; the test point is the target point where the controller sends test signals.
[0017] Read the signal status of the result point, and determine whether the line is normal based on the signal status of the result point.
[0018] In one embodiment, the method further includes running the stored test program to execute the test process before:
[0019] Obtain the pin values of the connectors of the control panel under test;
[0020] Enter the pin values into a spreadsheet containing a preset formula;
[0021] The spreadsheet containing the preset formula automatically generates a test program based on the pin values;
[0022] The test program is imported into the controller of the test equipment; the test program is used to execute the test process.
[0023] In one embodiment, the testing process includes:
[0024] When the connector pin of the control panel under test is an input pin, the output module of the test equipment is selected as one end to establish the signal channel;
[0025] Set the output module of the test device in the controller to the selected state;
[0026] Read the signal status of the remote transmission module of the control panel under test. If the signal status is present, the line is determined to be normal.
[0027] In one embodiment, the testing process includes:
[0028] When the connector pin of the control panel under test is an output pin, the input module of the test equipment is selected as one end to establish the signal channel;
[0029] Set the remote transmission module of the electrical control panel under test in the controller to the selected state;
[0030] Read the signal status of the input module of the test equipment. If the signal status is present, the line is determined to be normal.
[0031] According to another aspect of the present disclosure, an electronic control panel circuit testing system is provided, applied to the above-mentioned testing equipment, the testing system comprising:
[0032] The connection module is used to connect the test connector of the test equipment to the connector of the control panel under test; it is also used to connect the input module and output module of the test equipment to the remote transmission module of the control panel under test.
[0033] The signal channel module is used to establish a signal channel between the test equipment and the electronic control panel under test based on the connector pins of the electronic control panel under test.
[0034] Select the module and, based on the type of the signal channel, set the test point in the controller to the selected state;
[0035] The judgment module is used to read the signal status of the result point and determine whether the line is normal based on the signal status of the result point.
[0036] According to another aspect of the present disclosure, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.
[0037] According to another aspect of the present disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-described method.
[0038] In the technical solution provided by this disclosure, the test equipment is equipped with input modules and output modules corresponding to the circuit under test, and establishes a signal channel with the circuit under test through connector connection. This allows for testing of the circuit under test when executing a specific test program. The test equipment of this disclosure allows for free selection of the circuit and connectors to be tested, has a simple structure, powerful testing functions, and a faster testing process, greatly reducing the time required for power-on debugging and improving work efficiency.
[0039] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0041] Figure 1 This is a schematic diagram of an electronic control panel.
[0042] Figure 2 This is a schematic diagram of the structure of an electrical control panel circuit testing device in one embodiment;
[0043] Figure 3 This is a schematic diagram of the structure of an electrical control panel circuit testing device in another embodiment;
[0044] Figure 4 This is a schematic diagram of the structure of an electrical control panel circuit testing device in another embodiment;
[0045] Figure 5 This is a flowchart illustrating a circuit testing method for an electronic control panel in one embodiment;
[0046] Figure 6 This is a flowchart illustrating the process of generating a test program in one embodiment;
[0047] Figure 7 This is a schematic diagram of signal transmission during the test process in one embodiment;
[0048] Figure 8 This is a flowchart illustrating the testing process in one embodiment;
[0049] Figure 9 This is a schematic diagram of signal transmission during the testing process in another embodiment;
[0050] Figure 10This is a flowchart illustrating the testing process in another embodiment;
[0051] Figure 11 This is a schematic diagram of the structure of an electronic control panel circuit testing system in one embodiment;
[0052] Figure 12 This is a schematic diagram of the structure of a computer device in one embodiment.
[0053] Figure label:
[0054] 110 - Operation panel; 120 - Controller; 130 - Switching module; 140 - Input module; 150 - Output module; 160 - Relay; 170 - Test connector; 180 - Network port; 190 - Wireless communication module. Detailed Implementation
[0055] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0056] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims. The terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, product, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, product, or apparatus. Without further limitation, the presence of other identical or equivalent elements in a process, method, product, or apparatus that includes said elements is not excluded. For example, the use of terms such as "first," "second," etc., is to denote names and does not indicate any specific order.
[0057] The terms “vertical,” “horizontal,” “left,” “right,” “up,” “down,” “front,” “back,” “circumferential,” “direction of travel,” and similar expressions used herein are based on the orientation or positional relationship shown in the accompanying drawings and are used only for the convenience of describing the invention and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention.
[0058] Unless otherwise defined, the technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the specification of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The terms “and / or,” “and / or,” and “at least one of” as used herein include any and all combinations of one or more of the associated listed items. It should be noted that the connections, links, etc., described in this disclosure can be direct connections via interfaces or pins between devices, connections via leads, or wireless connections (communication connections).
[0059] In the field of automation, various machines and equipment have numerous interfaces and circuits. I / O modules are frequently used between different devices to transmit data or instructions. Some of these devices have their own I / O modules, while others connect to other specific I / O modules. I / O modules connect to connectors via I / O lines, allowing connection to other devices with similar connectors. This method is simple and practical when using a small number of I / O modules. However, as the number of I / O modules increases, so does the number of I / O lines, leading to problems such as easy misconnection and wear and tear on exposed wires. To solve this problem, control panels or distribution panels are often used to uniformly arrange I / O modules and connectors. While this solves the problem of exposed wires to some extent, it still inevitably leads to misconnection of I / O lines.
[0060] Since the electronic control panel is more typical in the use of I / O modules and corresponding I / O lines, this disclosure will use the electronic control panel as an example to illustrate the problems existing in the above-mentioned I / O lines and provide technical solutions.
[0061] like Figure 1 As shown, the electronic control panel can have multiple remote I / O modules and corresponding connectors. Figure 1 The solid black dots in the diagram represent several omitted remote I / O modules and connectors. Remote I / O (input / output) modules, also known as remote transmission modules, are industrial-grade remote acquisition and control modules. Connectors, also called plugs or sockets, are devices that connect two active devices to transmit current or signals. In some industries, connectors are also classified as male and female; these connect when in contact to transmit signals or current. The line between the remote I / O module and the connector is typically called the I / O line, a crucial signal transmission channel and the line tested by the test equipment in this embodiment.
[0062] Electrical control panels (ECAs) are used for connecting wiring devices in automation fields. For example, they can be mounted on a machine and connected to other assembled equipment for power-on debugging. However, in current methods, a significant amount of time is often spent troubleshooting wiring errors during power-on debugging, which can greatly impact the debugging progress. If problems are found in the I / O wiring within the ECA during power-on debugging, further troubleshooting will increase debugging time. To reduce the time spent troubleshooting wiring issues, after the wiring within the ECA is connected but before other equipment is assembled, a rapid self-test can be performed on all wiring between the remote I / O modules and connectors within the ECA to ensure zero errors. This reduces the overall time spent on debugging and troubleshooting the wiring.
[0063] like Figure 2 As shown, a line testing device is provided, which can be used in the above application scenarios. The testing device includes an operation panel 110, a controller 120, a switching module 130, an input module 140, an output module 150, a relay 160, and a test connector 170.
[0064] The operation panel 110 can be an HMI (Human Machine Interface) device with human-machine interaction capabilities. An HMI is an input / output device that establishes communication and exchanges information between a person and a computer; these devices include keyboards, monitors, printers, mice, etc. The controller 120 can be a PLC (Programmable Logic Controller). In some other embodiments, the controller 120 can also be a computer or microprocessor with processing capabilities, such as a microcontroller.
[0065] The operation panel 110 is connected to the controller 120, and the operation panel 110 is used to receive test commands and display test results.
[0066] Specifically, the operation panel 110 can be a touch screen with human-computer interaction capabilities and can be connected to the controller 120 via a network cable. The operation panel 110 can receive user test commands through various methods such as clicking and input, and can also display test results.
[0067] The controller 120 is connected to the switching module 130, the input module 140, and the output module 150; the controller 120 stores a test program; the switching module 130 is used to control the relay 160 to select the input module 140 or the output module 150 as one end to establish a signal channel.
[0068] The controller 120 is connected in series with the switching module 130, the input module 140, and the output module 150. There is no fixed order of connection between the switching module 130, the input module 140, and the output module 150.
[0069] Specifically, three remote I / O modules can be selected, with two designated as input module 140 and output module 150 respectively, and the remaining remote I / O module used as switching module 130. Furthermore, the controller 120 can be connected to each remote I / O module via network cables. For example, the controller 120 can be connected in series with each remote I / O module based on the EtherCAT (Ether Control Automation Technology) protocol. It should be understood that the connection order of the remote I / O modules can be changed under this protocol.
[0070] The controller 120 can also store test programs, which, when executed, are used to control the test equipment to test the circuitry of the control panel. The switching module 130 can control the relay 160 to select one of the input module 140 and the output module 150 to establish a signal channel with the outside world based on the received signal instructions.
[0071] The relay 160 is connected to the switching module 130, the input module 140, and the output module 150 respectively; the relay 160 is also connected to the test connector 170.
[0072] A relay is an electrical control device that causes a predetermined step change in the controlled quantity in an electrical output circuit when the change in the input quantity (excitation quantity) reaches a specified requirement. Test connector 170 can be connected to other connectors to establish a signal transmission channel. In some embodiments, standard connectors can be used for test connector 170 to broaden the applicability of the test equipment. In other embodiments, there can be multiple test connectors 170.
[0073] In the above embodiments, the test equipment is equipped with input and output modules corresponding to the circuit under test (TBT), and establishes a signal channel with the TT through connector connections. This allows for testing of the TT while executing specific test programs. The test equipment allows for free selection of the circuits and connectors to be tested, has a simple structure, powerful testing functions, and a faster testing process, significantly reducing power-on debugging time and improving work efficiency.
[0074] It should be understood that the remote I / O modules, which serve as switching module 130, input module 140, and output module 150 in this embodiment of the present disclosure, can be connected to other remote I / O modules or other electronic devices with corresponding interfaces.
[0075] In one embodiment, such as Figure 3 As shown, the test equipment is also equipped with a network port 180, which is used to communicate with the outside world via a network cable.
[0076] Specifically, the testing equipment is also equipped with an external network port 180, which can connect to a host computer and receive instructions and data from the host computer. The host computer can be an electronic device with data processing capabilities, such as a computer. The network port 180 can also be connected to a remote I / O module on the side of the control panel under test via a network cable. For example, the testing equipment can be connected to the remote I / O module of the control panel under test based on the EtherCAT protocol.
[0077] In the above embodiments, communication with external devices can be achieved through a network port. This allows the testing device to receive instructions from the host computer and user-defined test programs via a network cable. Furthermore, the testing device can communicate with the remote I / O module of the control panel under test to collect signal status at specific points.
[0078] In one embodiment, such as Figure 4 As shown, the test equipment also includes a wireless communication module 190, which is used to communicate with a host computer.
[0079] Specifically, the testing equipment can also communicate wirelessly with the host computer via the wireless communication module 190 to receive data and instructions.
[0080] In one embodiment, the test device further includes a custom display module, which is used to set the display interface.
[0081] Specifically, the display interface can be set according to the connector board of the control panel under test. For example, the test buttons, test results, and other information corresponding to the connectors on the connector board can be set in the display interface. The test buttons are used to issue test commands to the testing equipment to start testing the connectors. The test results include information such as indicator lights, graphics, and letters to indicate whether the circuit is normal.
[0082] In one embodiment, the testing device further includes a recording module, which is used to record test execution information and send the test execution information to a host computer.
[0083] The test execution information includes the test date and time, test machine model, test failure rate, test success rate, and information on the personnel connecting the control panel.
[0084] Figure 5 This is one embodiment of a circuit testing method for an electronic control panel, which can be applied to the aforementioned testing equipment. The testing method includes:
[0085] Step S210: Connect the test connector 170 of the test equipment to the connector of the control panel under test.
[0086] The connectors of the control panel are usually standard connectors, and the test connector 170 of the test equipment also adopts a standard format.
[0087] Step S220: Connect the input module 140 and output module 150 of the test equipment to the remote transmission module of the control panel under test.
[0088] The remote transmission module of the control panel under test is a remote I / O module connected to the control panel connector. Input module 140 and output module 150 are remote I / O modules inside the test equipment.
[0089] Specifically, the remote I / O modules of the test equipment can be connected to the remote I / O modules of the control panel under test using a network cable based on the EtherCAT protocol. In some embodiments, the switching module 130, input module 140, and output module 150 inside the test equipment are three remote I / O modules connected by a network cable. One of the remote I / O modules inside the test equipment can be connected to the remote I / O module of the control panel under test. Since the controller 120 is also connected to the remote I / O modules inside the test equipment via a network cable, the controller 120 can send signals to any one of the remote I / O modules in the line, and can also collect or detect the signals of any one of the remote I / O modules.
[0090] Step S230: In response to the received test instruction, run the stored test program to execute the test process; the test process includes the following steps:
[0091] Specifically, after connecting the test equipment to the control panel under test via steps S210 and S220, the controller 120 of the test equipment can be instructed to execute the stored test program by issuing a test command, thus initiating the test process. The test command can be generated by the user through clicking or inputting on the operation panel 110, which then transmits the test command to the controller 120. Alternatively, the test command can be sent directly from the host computer to the controller 120, instructing it to run a specified program.
[0092] Step S2302: Establish a signal channel between the test equipment and the electronic control panel under test according to the connector pins of the control panel under test.
[0093] One side of the control panel typically has multiple remote I / O modules, each connected to a corresponding connector. Furthermore, each remote I / O module has multiple I / O interfaces, and the corresponding connector also has multiple pins. An I / O line connects each pin to its corresponding I / O interface for signal transmission. For example, some control panels use 12-pin connectors, each containing 12 pins, corresponding to 12 I / O lines. If the I / O interface is an input interface, the connected pins are input pins, and the I / O line between them is the input line; if the I / O interface is an output interface, the connected pins are output pins, and the I / O line between them is the output line.
[0094] Specifically, the controller 120 sends control commands to the switching module 130 according to the pin types in the test program. The switching module 130 further controls the relay 160 to select either the input module 140 or the output module 150 as the channel end of the test equipment according to the control commands. For example, when the connector pin type on the control panel side is an input pin, the switching module 130 will control the relay 160 to select the output module 150 to establish a signal channel with the input pin on the control panel side through the test connector 170 on the test equipment side.
[0095] Step S2304: Based on the type of the signal channel, set the test point in the controller 120 to a selected state. The test point is the target point where the controller 120 sends test signals.
[0096] The controller 120 can send test signals according to the test program, and the test signals enter the I / O line under test through the test point.
[0097] Specifically, depending on the type of signal channel established in step S2302, the corresponding point in the controller 120 is selected. For example, when the controller 120 is a PLC, the test point is set to ON in the PLC.
[0098] Step S2306: Read the signal status of the result point and determine whether the line is normal based on the signal status of the result point.
[0099] The result point can be the point where the test signal passes through the I / O line under test. For example, when the test point is a remote I / O module on the control panel side, and the test signal enters the line under test from this remote I / O module, the input module 140 on the test equipment side can be selected as the result point.
[0100] Specifically, the controller 120 can read whether there is a signal at the result point. If there is a signal at the result point, it is determined that the I / O line under test is normal.
[0101] In the above embodiments, after connecting the test equipment to the control panel under test, the controller of the test equipment can send test signals to any test point or collect data on the presence of a signal at any point. This allows for the sending of test signals to the input end of the I / O line under test based on its input / output type, and the collection of signals from the output end of the line under test. The results of the collected signals determine whether the line is functioning correctly. This testing method is not only simple to operate, time-efficient, and highly effective, but also allows for the selection of custom lines for testing. It enables the testing of the control panel's lines before the connection between the control panel and the target device is completed, significantly reducing the time required for powering on and debugging the control panel and target device, and improving work efficiency.
[0102] In one embodiment, such as Figure 6 As shown, before running the stored test program to execute the test process, the following steps are also included:
[0103] Step S110: Obtain the pin values of the connector of the control panel under test.
[0104] The connector on one side of the control panel is connected to a corresponding remote I / O module, and the pins on the connector correspond to an I / O port on the remote I / O module. The pin value can be the number of the I / O port corresponding to that pin.
[0105] Specifically, the I / O number corresponding to the pin of the connector under test can be obtained before the test begins.
[0106] Step S120: Fill the pin value into a spreadsheet containing a preset formula.
[0107] The spreadsheet containing the preset formula can be an Excel spreadsheet containing pre-written formulas.
[0108] Specifically, a test program for implementing the test method of this application can be pre-written. This test program can take the pin values of the connector of the control panel under test as unknown input variables, and automatically identify the pin type to execute the corresponding test process after obtaining the unknown input variables. Furthermore, a formula can be generated using the formula function of an Excel spreadsheet. This generated formula is used to automatically generate the above test program based on the input pin values.
[0109] Step S130: The spreadsheet containing the preset formula automatically generates a test program based on the pin value.
[0110] Step S140: The test program is imported into the controller 120 of the test equipment; the test program is used to execute the test process.
[0111] It should be understood that steps S120 and S130 can be completed in a system or device with an Excel operating environment. Furthermore, the test program generated in step S130 can be imported into the controller 120 of the test device via a network cable connection or wireless communication. The controller 120 has a storage function to store the test program and can run the test program to perform testing upon receiving corresponding instructions.
[0112] In the above embodiments, the obtained pin values of the connector under test can be entered into a spreadsheet, and the test program used in the testing process can be generated through the spreadsheet. In this way, users can enter a large number of pin values into the spreadsheet to obtain the required test programs in batches, reducing the difficulty of operation, alleviating the operational burden, reducing program design time, and greatly accelerating the circuit testing process.
[0113] Figure 7 This is a schematic diagram of signal transmission during the test process in one embodiment. For example... Figure 7 As shown, the control panel connector is the input pin. In this case, output module 150 within the test equipment is selected as the test point (if controller 120 is a PLC, then output module 150 is turned ON in the PLC). After controller 120 generates a test signal, it is sent to output module 150. The test signal exits from output module 150, passes through test connector 170, enters the control panel connector, and then reaches the remote I / O module of the control panel after passing through the I / O line under test. This remote I / O module is used as the result point. Controller 120 checks if there is a signal here. If there is a signal, the I / O line under test is determined to be normal.
[0114] In one embodiment, such as Figure 8 As shown, the testing process includes:
[0115] Step S302: When the connector pin of the control panel under test is an input pin, select the output module 150 of the test equipment as one end to establish the signal channel.
[0116] Specifically, when the pin of the connector under test is an input pin, the corresponding I / O line under test is an input line. The output module 150 of the test equipment is selected to establish a signal channel and provide an input signal for it.
[0117] Step S304: Set the output module 150 of the test device in the controller 120 to the selected state.
[0118] Specifically, the controller 120 provides test signals for the testing process and can select the output module 150. The test signal is sent from the controller 120 to the output module 150, and then enters the I / O line under test via the connector. It should be understood that at this time, the connector on the control panel is the port through which the test signal enters the line under test, and the remote I / O module on the control panel is the port through which the test signal leaves the line under test.
[0119] Step S306: Read the signal status of the remote transmission module of the control panel under test. If the signal status is present, the line is determined to be normal.
[0120] Specifically, the controller 120 reads whether there is a signal on the remote I / O module on one side of the control panel. If there is a signal, the circuit under test is determined to be normal.
[0121] Figure 9 This is a schematic diagram of signal transmission during the test process in another embodiment. (See diagram below.) Figure 9 As shown, the connector on the control panel is the output pin. In this case, the remote I / O module of the control panel is selected as the test point (if the controller 120 is a PLC, then the remote I / O module is set to ON in the PLC). After the controller 120 generates a test signal, it sends it to the remote I / O module. The test signal enters the I / O line under test from the remote I / O module, leaves the line through the connector, and is transmitted to the input module 140 in the test equipment. Using the input module 140 in the test equipment as the result point, the controller 120 checks whether there is a signal there. If there is a signal, the I / O line under test is determined to be normal.
[0122] In one embodiment, such as Figure 10 As shown, the testing process includes:
[0123] Step S402: When the connector pin of the control panel under test is an output pin, select the input module 140 of the test equipment as one end to establish the signal channel.
[0124] Specifically, when the pin of the connector under test is an output pin, the corresponding I / O line under test is an output line. The input module 140 of the test equipment is selected to establish a signal channel so that it can receive the signal input from the control panel.
[0125] Step S404: Set the remote transmission module of the electrical control panel under test in the controller 120 to the selected state.
[0126] Among them, the line under test is the output line, and at this time it is necessary to provide an input signal to the remote I / O module on the side of the control panel so that it can complete the signal transmission.
[0127] Specifically, the remote I / O module on the control panel side can be selected on the controller 120. The test signal is sent from the controller 120 to the remote I / O module on the control panel side, then transmitted through the line under test to the test connector 170 of the test equipment, and finally reaches the input module 140. It should be understood that at this time, the remote I / O module on the control panel side is the port where the test signal enters the line under test, and the control panel connector is the port where the test signal leaves the line under test.
[0128] Step S406: Read the signal status of the input module 140 of the test device. If the signal status is present, the line is determined to be normal.
[0129] Specifically, the controller 120 reads whether there is a signal in the input module 140. If there is a signal, the circuit under test is determined to be normal.
[0130] According to another aspect of the embodiments of this disclosure, such as Figure 11 As shown, an electronic control panel circuit testing system is also provided, which can be applied to the above-mentioned testing equipment. The testing system includes:
[0131] The connection module 502 is used to connect the test connector 170 of the test equipment to the connector of the control panel under test; it is also used to connect the input module 140 and the output module 150 of the test equipment to the remote transmission module of the control panel under test.
[0132] The signal channel module 504 is used to establish a signal channel between the test equipment and the electronic control panel under test based on the connector pins of the electronic control panel under test.
[0133] Select module 506, and set the test point in controller 120 to the selected state according to the type of the signal channel;
[0134] The judgment module 508 is used to read the signal status of the result point and determine whether the line is normal based on the signal status of the result point.
[0135] For specific limitations of the above-mentioned testing system, please refer to the limitations of the above-mentioned testing method. Based on the above-mentioned testing method, the testing system can be supplemented with a first module, a second module, etc., to implement the corresponding method steps.
[0136] It should be understood that the test equipment and test methods provided in the embodiments of this disclosure can be applied to other I / O lines that connect I / O modules and connectors.
[0137] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 12As shown. The computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it performs the aforementioned test methods. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0138] Those skilled in the art will understand that Figure 12 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0139] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0140] According to another aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.
[0141] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one relational database and non-relational database. Non-relational databases can include blockchain-based distributed databases, etc., and are not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited thereto.
[0142] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0143] The embodiments described above are merely illustrative of several implementations of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art, upon considering the specification and practicing the invention disclosed herein, will readily conceive of other embodiments of this disclosure. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0144] It should be understood that this disclosure is not limited to the precise structures already described and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.
Claims
1. A circuit testing device, characterized in that, Includes operation panel, controller, switching module, input module, output module, relays, and test connectors; The operation panel is connected to the controller, and the operation panel is used to receive test commands and display test results. The controller is connected to the switching module, the input module, and the output module; the controller stores a test program; the switching module is used to control the relay to select either the input module or the output module as one end to establish a signal channel; The relay is connected to the switching module, the input module, and the output module respectively; the relay is also connected to the test connector; The test connector is a standard connector used to establish a physical connection with the connector of the control panel under test in order to test the circuit of the control panel under test. The switching module is a remote I / O module, used to control the on / off state of the relay according to the control instructions of the controller, so as to select the input module or the output module to establish an electrical connection with the test connector, and adapt to the input or output type of the connector pin of the control panel under test; the control instructions are sent by the controller to the switching module according to the pin type in the test program; Both the input module and the output module are remote I / O modules, and the controller, switching module, input module and output module are connected in series via the industrial Ethernet protocol.
2. The testing equipment according to claim 1, characterized in that, The testing equipment is also equipped with a network port, which is used to communicate with the outside world via a network cable.
3. The testing equipment according to claim 1, characterized in that, The testing equipment also includes a wireless communication module, which is used to communicate with a host computer.
4. A method for testing the circuitry of an electronic control panel, characterized in that, The test method, applied to the test equipment as described in any one of claims 1-3, comprises: Connect the test connector of the test equipment to the connector of the control panel under test; Connect the input module and output module of the test equipment to the remote transmission module of the control panel under test; In response to a received test instruction, a stored test program is run to execute a test process; the test process includes the following steps: Based on the connector pin type of the control panel under test, the switching module is controlled to switch the relay, thereby establishing a signal channel between the test equipment and the control panel under test. Based on the type of the signal channel, the test point in the controller is set to the selected state; the test point is the target point where the controller sends test signals. Read the signal status of the result point, and determine whether the line is normal based on the signal status of the result point.
5. The test method according to claim 4, characterized in that, Before running the stored test program to execute the test process, the following is also included: Obtain the pin values of the connectors of the control panel under test; Enter the pin values into a spreadsheet containing a preset formula; The spreadsheet containing the preset formula automatically generates a test program based on the pin values; The test program is imported into the controller of the test equipment; the test program is used to execute the test process.
6. The test method according to claim 4, characterized in that, The testing process includes: When the connector pin of the control panel under test is an input pin, the output module of the test equipment is selected as one end to establish the signal channel; Set the output module of the test device in the controller to the selected state; Read the signal status of the remote transmission module of the control panel under test. If the signal status is present, the line is determined to be normal.
7. The test method according to claim 4, characterized in that, The testing process includes: When the connector pin of the control panel under test is an output pin, the input module of the test equipment is selected as one end to establish the signal channel; Set the remote transmission module of the electrical control panel under test in the controller to the selected state; Read the signal status of the input module of the test equipment. If the signal status is present, the line is determined to be normal.
8. A circuit testing system for an electronic control panel, characterized in that, The test system is applied to the test equipment as described in any one of claims 1-3, and comprises: The connection module is used to connect the test connector of the test equipment to the connector of the control panel under test; it is also used to connect the input module and output module of the test equipment to the remote transmission module of the control panel under test. The signal channel module is used to control the switching module to switch the relay according to the connector pin type of the control panel under test, thereby establishing a signal channel between the test equipment and the control panel under test. Select the module and, based on the type of the signal channel, set the test point in the controller to the selected state; The judgment module is used to read the signal status of the result point and determine whether the line is normal based on the signal status of the result point.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 4 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 4 to 7.
Citation Information
Patent Citations
Test fixture, test device and test method for transmission cable sequence
CN114441992A