Testing device and system for programmable logic controller extension module

By designing test devices for test execution units, programmable logic controller simulation boards and lighting detection units, the problem of low testing efficiency of PLC expansion modules is solved, automated data acquisition and storage is realized, and testing efficiency is significantly improved.

CN222337501UInactive Publication Date: 2025-01-10BEIJING LANPUFENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421336083.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2025-01-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The testing method of existing PLC expansion modules requires setting up a real PLC. The installation process is complicated and labor-consuming, resulting in low testing efficiency and inability to test in large batches in a short period of time.

Method used

A test device including a test execution unit, a programmable logic controller simulation board and a lighting detection unit is designed. Through the simulation board, the expansion module is controlled to collect operation data and lighting information, and stored in the test execution unit to simplify the The test process was completed.

Benefits of technology

It significantly improves the testing efficiency of the programmable logic controller extension module, eliminates the process of manual test recording, and can store and analyze operating data and lighting information in large quantities in a short time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222337501U_ABST
    Figure CN222337501U_ABST
Patent Text Reader

Abstract

The utility model discloses a testing device and system for a programmable logic controller expansion module. The testing device comprises a test execution unit, a programmable logic controller analog board and a light detection unit. The test execution unit can receive an input / output signal and an operation voltage signal of the programmable logic controller extension module; the programmable logic controller analog board receives a test execution signal from the test execution unit, controls the programmable logic controller extension module to operate so as to receive operation data of the programmable logic controller extension module, and sends the operation data to the test execution unit; the light detection unit is used for collecting light information of the programmable logic controller extension module and sending the light information to the test execution unit; the test execution unit is used for collecting and storing light information, operation voltage signals, operation data and input and output signals. According to the technical scheme disclosed by the utility model, the test efficiency of the programmable logic controller extension module can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of hardware testing, in particular to a testing device and a system for an expansion module of a programmable logic controller. Background Art

[0002] With the rapid development of industrial control technology, programmable logic controllers (PLC) are increasingly being used in industrial production. At the same time, PLC expansion modules can enrich the functions of PLC and are widely used in industrial production environments. PLC expansion modules need to be tested before use to verify their expansion functions so that they can operate normally in industrial production environments.

[0003] At present, the test method for the expansion module of the PLC is mostly to install the PLC expansion module to be tested at the PLC, so that the PLC can control the operation of the PLC expansion module, and then manually observe the operation of the PLC expansion module, and manually collect various operation data of the PLC expansion module, and store the various operation data in a storage device, so as to test the PLC expansion module based on the operation status and operation data. However, the above-mentioned test method requires the setting of a real PLC, and the installation of the PLC expansion module to the PLC requires a complicated installation process; at the same time, when testing, personnel are also required to manually record the test, resulting in a large amount of manpower consumption, and it is impossible to test the PLC expansion module in large quantities in a short time, which leads to low test efficiency of the programmable logic controller expansion module. Utility Model Content

[0004] In view of this, the utility model provides a testing device and system for a programmable logic controller expansion module, the main purpose of which is to solve the technical problem of low testing efficiency of the programmable logic controller expansion module.

[0005] To achieve the above object, the utility model first provides a test device for a programmable logic controller expansion module, which is used to test the programmable logic controller expansion module. The test device for the programmable logic controller expansion module includes a test execution unit, a programmable logic controller simulation board and a light detection unit;

[0006] The programmable logic controller simulation board is connected to the test execution unit to receive a test execution signal from the test execution unit. The programmable logic controller simulation board is also used to connect to the programmable logic controller extension module to control the programmable logic controller extension module to be in a running state when receiving the test execution signal, and receive the running data of the programmable logic controller extension module in the running state, and send the running data to the test execution unit;

[0007] The test execution unit is also connected to the programmable logic controller expansion module, and is used to receive input and output signals and operating voltage signals of the programmable logic controller expansion module in an operating state;

[0008] The light detection unit is used to collect light information of the programmable logic controller expansion module and send the light information to the test execution unit;

[0009] The test execution unit is also used to collect and store the lighting information, the operating voltage signal, the operating data and the input and output signals.

[0010] In one embodiment of the utility model, the test execution unit has an input / output signal detection port and a voltage detection port; the input / output signal detection port is used to connect with the input / output signal port of the programmable logic controller expansion module to receive the input / output signal of the programmable logic controller expansion module; the voltage detection port is used to connect with the voltage signal output port of the programmable logic controller expansion module to receive the operating voltage signal of the programmable logic controller expansion module.

[0011] In one embodiment of the present invention, the light detection port of the test execution unit is connected to the output port of the light detection unit through an integrated circuit bus to receive the light information.

[0012] In one embodiment of the utility model, the test execution unit includes an integrated circuit bus communication circuit, a voltage detection circuit, an input / output signal receiving circuit, an RS485 bus communication circuit and a programmable array logic chip; the integrated circuit bus communication circuit is connected to the programmable array logic chip, the integrated circuit bus communication circuit has the light detection port, and the programmable array logic chip receives the light information from the light detection unit via the integrated circuit bus communication circuit; the voltage detection circuit is connected to the programmable array logic chip, the voltage detection circuit has the voltage detection port, and the programmable array logic chip receives the operating voltage signal from the programmable logic controller expansion module via the voltage detection circuit; the input / output signal receiving circuit is connected to the programmable array logic chip, and the input / output signal receiving circuit has the The input / output signal detection port, the programmable array logic chip receives the input / output signal from the programmable logic controller expansion module via the input / output signal receiving circuit; the RS485 bus communication circuit is connected to the programmable array logic chip, the RS485 bus communication circuit has a data interaction port, the data interaction port of the RS485 bus communication circuit is connected to the data transmission port of the programmable logic controller simulation board, the programmable array logic chip sends the test execution signal to the programmable logic controller simulation board via the RS485 bus communication circuit, and receives the operation data from the programmable logic controller simulation board; the programmable array logic chip is also used to test the programmable logic controller expansion module based on the lighting information, the operation voltage signal, the operation data and the input / output signal.

[0013] In one embodiment of the utility model, the test execution unit also includes a first voltage conversion circuit; the first voltage conversion circuit is used to connect to a first external power supply to obtain a power supply, and perform voltage level conversion on the power supply to obtain a power supply voltage after the voltage level conversion; the first voltage conversion circuit is also connected to the integrated circuit bus communication circuit, the voltage detection circuit, the input and output signal receiving circuit, the RS485 bus communication circuit and the programmable array logic chip to respectively power the integrated circuit bus communication circuit, the voltage detection circuit, the input and output signal receiving circuit, the RS485 bus communication circuit and the programmable array logic chip based on the power supply voltage.

[0014] In one embodiment of the utility model, the programmable logic controller simulation board has a power supply end, and the power supply end of the programmable logic controller simulation board is used to be connected to the power receiving end of the programmable logic controller expansion module; a micro switch is provided at the connector of the power supply end, and the micro switch is connected to the programmable logic controller simulation board, and is used to send a power-on signal to the programmable logic controller simulation board when the connector of the power supply end is connected to the power receiving end, so that the programmable logic controller simulation board supplies power to the programmable logic controller expansion module through the power supply end.

[0015] In one embodiment of the utility model, the programmable logic controller simulation board also includes a second voltage conversion circuit; the second voltage conversion circuit is connected to a second external power supply to obtain an external power supply and convert the voltage level of the external power supply to obtain an operating voltage; the second voltage conversion circuit is connected to the power receiving end of the programmable logic controller expansion module through the power supply end; the second voltage conversion circuit is also connected to the micro switch to output the operating voltage to the power receiving end of the programmable logic controller expansion module when receiving the power-on signal to power the programmable logic controller expansion module.

[0016] In addition, to achieve the above-mentioned purpose, the utility model also proposes a test system for a programmable logic controller expansion module, the system comprising the test device for the programmable logic controller expansion module as described above;

[0017] The test system of the programmable logic controller expansion module also includes a control terminal, and the control terminal is connected to the test execution unit through an RS-485 serial bus to perform data exchange.

[0018] In one embodiment of the present utility model, the system further comprises an audible and visual alarm unit, which is connected to the control terminal and is used to be controlled by the control terminal to issue audible and visual alarm information.

[0019] In one embodiment of the present invention, the control terminal has a human-computer interaction interface, and the human-computer interaction interface is a serial port touch screen.

[0020] The utility model provides a test device and system for a programmable logic controller expansion module. The programmable logic controller expansion module to be tested can be connected to a test execution unit and a programmable logic controller simulation board respectively, and the programmable logic controller expansion module is placed in a specific area, so that the light detection unit can collect the light information of the indicator light of the programmable logic controller expansion module. Further, the test execution unit can send a test execution signal indicating the start of the test to the programmable logic controller simulation board, so that the programmable logic controller simulation board controls the programmable logic controller expansion module to start running. Further, the test execution unit and the programmable logic controller simulation board can collect the operation data of the programmable logic controller expansion module based on the connection relationship with the programmable logic controller expansion module, and the light detection unit collects the light information of the programmable logic controller expansion module, and uniformly sends the above data and information to the test execution unit based on the connection between the components, so that the test execution unit stores the above data and information. The technical solution of the present application can store the operation data and light information of the programmable logic controller expansion module in large quantities for subsequent unified analysis and processing, eliminating the process of manually performing test records one by one, and significantly improving the test efficiency of the programmable logic controller expansion module.

[0021] The above description is only an overview of the technical solution of the utility model. In order to more clearly understand the technical means of the utility model, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the utility model more obvious and easy to understand, the specific implementation methods of the utility model are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation on the present invention. In the drawings:

[0023] Figure 1 A schematic diagram of the structure of a test device for a programmable logic controller expansion module provided by an embodiment of the utility model is shown;

[0024] Figure 2 A schematic diagram of the structure of a test execution unit provided by an embodiment of the utility model is shown;

[0025] Figure 3 A structural schematic diagram of a test system for a programmable logic controller expansion module provided by an embodiment of the utility model is shown. DETAILED DESCRIPTION

[0026] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0027] In order to further explain the technical means and effects adopted by the utility model to achieve the predetermined utility model purpose, the specific implementation methods, structures, features and effects of the utility model application are described in detail below in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures, or characteristics in one or more embodiments may be combined in any suitable form.

[0028] Combine the following Figures 1 to 3 A test device and system for a programmable logic controller expansion module according to some embodiments of the present invention are described.

[0029] like Figure 1 As shown, a test device for a programmable logic controller expansion module proposed in an embodiment of the utility model is used to test a programmable logic controller (PLC) expansion module. The device includes a test execution unit, a programmable logic controller simulation board, and a light detection unit, wherein a field programmable gate array (FPGA) chip is set in the test execution unit, and relevant programs such as a PLC expansion module test program, a data acquisition program, and other programs in the prior art can be pre-set inside the unit; further, a single-chip microcomputer chip, such as an STM32F407ZET6 chip, is set at the programmable logic controller simulation board to simulate the central processing unit (CPU) of the PLC through the program in the prior art, so that the programmable logic controller simulation board can control the PLC expansion module to be in a running state; further, the light detection unit can be integrated with multiple light detection modules, and each light detection module can be provided with one or more color light-to-digital conversion chips to collect the light information of the indicator light of the PLC expansion module.

[0030] Furthermore, the light detection unit can collect light information of a preset area. Before the test starts, the PLC extension module can be placed in the preset area so that the light detection unit can collect light information of the indicator light of the PLC extension module. Furthermore, the test execution unit and the programmable logic controller simulation board can be arranged in the box, and connected to the PLC extension module and the light detection unit through the extended communication cable for data transmission.

[0031] Furthermore, the programmable logic controller simulation board is connected to the test execution unit through three control lines to receive a test execution signal from the test execution unit. The programmable logic controller simulation board is also used to connect to the programmable logic controller extension module to control the programmable logic controller extension module to be in an operating state when the test execution signal is received, and to receive operating data of the programmable logic controller extension module in the operating state, and to send the operating data to the test execution unit, or to transmit the data sent by the test execution unit to the programmable logic controller extension module in the operating state.

[0032] Specifically, before the test is executed, the PLC extension module can be connected to the programmable logic controller simulation board. Further, the test execution unit can be connected to the remote host computer to receive the test command sent by the host computer, and send a test execution signal to the programmable logic controller simulation board, so that the programmable logic controller simulation board controls the PLC extension module to be in operation. Among them, the programmable logic controller simulation board can establish a 485 communication connection with the PLC extension module through the RS485 data bus to control the operation of the PLC extension module and collect the operation data of the PLC extension module.

[0033] Furthermore, the test execution unit is also used to connect with the programmable logic controller expansion module to receive input / output (IO) signals and operating voltage signals of the programmable logic controller expansion module in a running state. Here, before the test is executed, the PLC expansion module can be connected to the test execution unit so that the test execution unit can collect the IO signals and operating voltage signals of the PLC expansion module.

[0034] Furthermore, the light detection unit is used to collect the light information of the programmable logic controller expansion module and send the light information to the test execution unit. Specifically, the light detection unit can be set near the PLC expansion module to be tested, so that the light detection unit can collect the light information of the indicator light of the PLC expansion module. Furthermore, the light detection unit obtains a 5V voltage from the test execution unit through its power conversion circuit, and converts the 5V voltage into a 3.3V voltage to power the 16 light detection modules of the light detection unit. At the same time, the light detection unit realizes IIC communication with the 32 IO points of the test execution unit through the communication terminal, so as to continuously send the detected light information of the PLC to the test execution unit.

[0035] Furthermore, the test execution unit is also used to collect and store the lighting information, the operating voltage signal, the operating data, and the input and output signals. The test execution unit may be provided with a storage medium such as a Flash chip or other components for data storage, and the test execution unit may also be provided with a data output port to send the above information and data to a remote host computer.

[0036] The utility model provides a test device for a programmable logic controller expansion module, which can connect the programmable logic controller expansion module to be tested with a test execution unit and a programmable logic controller simulation board respectively, and place the programmable logic controller expansion module in a specific area, so that the light detection unit can collect the light information of the indicator light of the programmable logic controller expansion module. Further, the test execution unit can send a test execution signal for indicating the start of the test to the programmable logic controller simulation board, so that the programmable logic controller simulation board controls the programmable logic controller expansion module to start running. Further, the test execution unit and the programmable logic controller simulation board can collect the operation data of the programmable logic controller expansion module based on the connection relationship with the programmable logic controller expansion module, and the light detection unit collects the light information of the programmable logic controller expansion module, and uniformly sends the above data and information to the test execution unit based on the connection between the components, so that the test execution unit stores the above data and information. The technical solution of the present application eliminates the process of manually performing test records one by one, and can access a large number of programmable logic controller expansion modules one by one in a short time, and store a large number of operation data and light information of the programmable logic controller expansion modules for subsequent unified analysis and processing, which significantly improves the test efficiency of the programmable logic controller expansion module.

[0037] It should be noted that the selection of the test execution unit, the programmable logic controller simulation board and the light detection unit and the internal circuit connection mode of the test device of the programmable logic controller extension module can be determined according to the actual situation, and this embodiment does not make specific restrictions. In addition, the connection mode of each device can be determined according to the specific selection of the device, and this embodiment does not make specific restrictions. The function of the test device of the programmable logic controller extension module provided in this embodiment is mainly realized through the circuit connection relationship between each module, and does not rely on the program module in a certain module. In addition, each module in the test device of the programmable logic controller extension module can be realized by an analog circuit or a digital circuit, and for the test execution unit, the programmable logic controller simulation board and the light detection unit that can be implanted with the program module, the realization of its module function can be realized by the program module provided by the prior art.

[0038] In one embodiment, the test execution unit has an input / output signal detection port and a voltage detection port; the input / output signal detection port is used to connect with the input / output signal port of the programmable logic controller expansion module to receive the input / output signals of the programmable logic controller expansion module; further, the voltage detection port is used to connect with the voltage signal output port of the programmable logic controller expansion module to receive the operating voltage signal of the programmable logic controller expansion module.

[0039] Specifically, before the test starts, the input and output signal detection port of the test execution unit can be connected to the input and output signal port of the PLC expansion module to be tested, so that the IO signal of the PLC expansion module can be collected when the test starts.

[0040] Further, before the test starts, the voltage detection port of the test execution unit can be connected to the voltage signal output port of the PLC extension module to be tested, so that when the test starts, the operating voltage signal of the PLC extension module can be collected. Here, the voltage detection port of the test execution unit can be connected to the voltage signal output port of the PLC extension module to be tested through a serial peripheral interface (Serial PeripheralInterface, SPI) to collect the operating voltage signal of the PLC extension module. The embodiment provided by the present application can be connected to the PLC extension module based on different ports on the test execution unit, so as to collect the IO signals and operating voltage signals of the PLC extension module respectively. Before the test starts, only a simple connection is needed to realize the data collection of the PLC extension module, and the test efficiency of the programmable logic controller extension module is improved.

[0041] In one embodiment, the light detection port of the test execution unit is connected to the output port of the light detection unit through an integrated circuit bus to receive the light information. Here, the light detection port can be connected to the output port of the light detection unit through an integrated circuit bus (Inter-Integrated Circuit, IIC) to receive the light information. Among them, the IIC bus is a two-wire serial communication bus used for communication between devices, etc., and its maximum transmission rate under standard conditions is 100Kbps, and it has strong anti-interference ability. The embodiment provided by the present application can perform data exchange between the test execution unit and the light detection unit based on the IIC bus, thereby improving the communication quality between the test execution unit and the light detection unit.

[0042] In one embodiment, Figure 2As shown, the test execution unit includes an integrated circuit bus communication circuit, a voltage detection circuit, an input and output signal receiving circuit, an RS485 bus communication circuit and a programmable array logic chip.

[0043] Specifically, the integrated circuit bus communication circuit is connected to the programmable array logic chip, the integrated circuit bus communication circuit has the light detection port, and the programmable array logic chip receives the light information from the light detection unit via the integrated circuit bus communication circuit.

[0044] Furthermore, the voltage detection circuit is connected to the programmable array logic chip, the voltage detection circuit has the voltage detection port, and the programmable array logic chip receives the operating voltage signal from the programmable logic controller expansion module via the voltage detection circuit.

[0045] Furthermore, the input / output signal receiving circuit is connected to the programmable array logic chip, the input / output signal receiving circuit has the input / output signal detection port, and the programmable array logic chip receives the input / output signal from the programmable logic controller expansion module via the input / output signal receiving circuit.

[0046] Further, the RS485 bus communication circuit is connected to the programmable array logic chip, and the RS485 bus communication circuit has a data exchange port, and the data exchange port of the RS485 bus communication circuit is connected to the data transmission port of the programmable logic controller simulation board to establish a communication connection between the programmable array logic chip and the programmable logic controller simulation board. Further, the programmable array logic chip sends a test execution signal to the programmable logic controller simulation board via the RS485 bus communication circuit, and receives the operation data from the programmable logic controller simulation board.

[0047] Furthermore, the programmable array logic chip is also used to test the programmable logic controller expansion module based on the lighting information, the operating voltage signal, the operating data, and the input-output signal. Here, a program for testing the PLC expansion module may be preset in the programmable array logic chip to test the PLC expansion module based on the lighting information, the operating voltage signal, the operating data, and the input-output signal to obtain the test result. Furthermore, the peripheral circuit of the programmable array logic chip may be provided with a decoupling capacitor, a program download circuit, an FPGA function selection circuit, and an FPGA program solidification circuit. The program download circuit is used for program deployment and debugging. The decoupling capacitor is provided in each peripheral circuit to improve the anti-interference ability of the circuit. The FPGA program solidification circuit is used for program solidification. The FPGA function selection circuit is used to select which function the FPGA performs.

[0048] Here, the programmable array logic chip can be Intel's IV EP4CE10F17C8N FPGA chip, which can control signal output through 18 FPGA IO points, 2 IO points control signal input, 4 IO points control 2 485 communications, 5 IO points control the first voltage conversion circuit to perform 24V voltage detection, 1 IO point receives the start detection signal sent by the remote host computer, 5 IO points control the status prompt light, and 1 IO point controls the end signal. The embodiment provided by the present application can set the test program for the programmable programmable array logic chip, and send the lighting information, operating voltage signal, operating data and input and output signals to the programmable array logic chip through peripheral circuits such as the integrated circuit bus communication circuit and the voltage detection circuit, so that the programmable array logic chip can test the PLC expansion module and obtain the test results, thereby improving the test efficiency of the programmable logic controller expansion module.

[0049] In one embodiment, Figure 2 As shown, the test execution unit also includes a first voltage conversion circuit; specifically, the first voltage conversion circuit is used to connect to a first external power supply to obtain a power supply, and perform voltage level conversion on the power supply to obtain a power supply voltage after the voltage level conversion; here, the external first external power supply can provide a 24V power supply, and after the first voltage conversion circuit receives the 24V power supply, it can perform voltage conversion on the 24V voltage to obtain a 3.3V or 5V power supply voltage.

[0050] Furthermore, the first voltage conversion circuit is also connected to the integrated circuit bus communication circuit, the voltage detection circuit, the input-output signal receiving circuit, the RS485 bus communication circuit and the programmable array logic chip, so as to respectively power the integrated circuit bus communication circuit, the voltage detection circuit, the input-output signal receiving circuit, the RS485 bus communication circuit and the programmable array logic chip based on the power supply voltage. Specifically, the first voltage conversion circuit can power the programmable array logic chip based on a 5V power supply voltage, and power the integrated circuit bus communication circuit, the voltage detection circuit, the input-output signal receiving circuit and the RS485 bus communication circuit based on a 3.3V power supply voltage. The embodiment provided by the present application can convert the voltage of the power supply provided by the outside world based on the first voltage conversion circuit, obtain the power supply voltage required by each component in the test execution unit, and power each component of the test execution unit, thereby improving the power supply stability of the test device of the programmable logic controller expansion module.

[0051] In one embodiment, the programmable logic controller simulation board has a power supply terminal, and the power supply terminal of the programmable logic controller simulation board is used to connect to the power receiving terminal of the programmable logic controller expansion module. Specifically, the power supply terminal can be one end of a power supply line led out from the programmable logic controller simulation board, which is used to connect to the power receiving terminal of the programmable logic controller expansion module to supply power to the programmable logic controller expansion module.

[0052] Furthermore, a micro switch is provided at the connector of the power supply end, and the micro switch is connected to the programmable logic controller simulation board, and is used to send a power-on signal to the programmable logic controller simulation board when the power supply end is connected to the power receiving end, so that the programmable logic controller simulation board supplies power to the programmable logic controller expansion module through the power supply end. Here, when the connector of the power supply end is connected to the power receiving end of the programmable logic controller expansion module, the micro switch is triggered to send an electrical signal as a power-on signal to the programmable logic controller simulation board, and after receiving the power-on signal, the programmable logic controller simulation board supplies power to the programmable logic controller expansion module through the power supply end, so that the programmable logic controller expansion module can enter the operating state.

[0053] Furthermore, when the power supply end is unplugged from the power receiving end of the PLC expansion module, the micro switch stops sending a power-on signal to the PLC simulation board, so that the PLC simulation board stops supplying power to the PLC expansion module.

[0054] Further, a plurality of single-chip microcomputer chips may be provided on the programmable logic controller simulation board, and the model of the single-chip microcomputer chip may be an STM32F407ZET6 chip, and each single-chip microcomputer chip may be connected to a programmable array logic chip and a programmable logic controller expansion module. Further, each single-chip microcomputer chip of the programmable logic controller simulation board may be simulated as a CPU that performs different tasks, including a first single-chip microcomputer chip for enabling the programmable logic controller expansion module to perform data output work, a second single-chip microcomputer chip for enabling the programmable logic controller expansion module to perform data receiving work, and a mode selection chip for controlling the first single-chip microcomputer chip or the second single-chip microcomputer chip to be in a working state, etc.

[0055] Further, the test execution signal sent by the test execution unit may include an I-point test command and a Q-point test command. Here, the test execution unit can distinguish whether the detection is the Q-point (input point) or the I-point (output point) of the PLC extension module by turning on or off the voltage input. Further, when the Q-point of the PLC extension module needs to be tested, the test execution unit can send a Q-point test command to the mode selection chip of the programmable logic controller extension module so that the mode selection chip controls the first single-chip microcomputer chip to be in a working state. Further, the first single-chip microcomputer chip searches for the PLC extension module based on 485 communication to control the PLC extension module to perform data output work, and collect the operation data of the PLC extension module, and then send the operation data to the test execution unit.

[0056] Furthermore, when it is necessary to test the I point of the PLC expansion module, the test execution unit can send an I point test command to the mode selection chip of the programmable logic controller expansion module, so that the mode selection chip controls the second single-chip microcomputer chip to be in a working state. The second single-chip microcomputer chip searches for the PLC expansion module based on 485 communication to control the PLC expansion module to perform data receiving work, collect the operation data of the PLC expansion module, and then send the operation data to the test execution unit.

[0057] The embodiment provided by the present application can determine whether the PLC simulation board is connected to the PLC expansion module based on the micro switch. When it is determined that the PLC simulation board is connected to the PLC expansion module, the PLC expansion module can be automatically powered to start the test. Conversely, when it is determined that the PLC simulation board is not connected to the PLC expansion module, the test can be automatically stopped, thereby improving the test efficiency of the PLC expansion module.

[0058] In one embodiment, the programmable logic controller simulation board also includes a second voltage conversion circuit; the second voltage conversion circuit is connected to a second external power supply to obtain an external power supply and perform voltage level conversion on the external power supply to obtain an operating voltage after the voltage level conversion; here, the external second external power supply can provide a 24V power supply voltage, and after the second voltage conversion circuit obtains the 24V power supply voltage, it converts it into 5V and 3.3V operating voltages to power the various components of the programmable logic controller simulation board.

[0059] Furthermore, the second voltage conversion circuit is connected to the power receiving end of the programmable logic controller expansion module through the power supply end; the second voltage conversion circuit is also connected to the micro switch, so as to output the operating voltage to the power receiving end of the programmable logic controller expansion module when receiving the power-on signal, so as to power the programmable logic controller expansion module. The embodiment provided by the present application can convert the voltage of the power provided by the outside world based on the second voltage conversion circuit, obtain the power supply voltage required by each component in the programmable logic controller expansion module, and power each component of the programmable logic controller expansion module and the PLC expansion module to be tested, thereby improving the power supply stability of the test device of the programmable logic controller expansion module.

[0060] On the other hand, an embodiment of the utility model provides a test system for a programmable logic controller expansion module, the system comprising a control terminal and a test device for the programmable logic controller expansion module as described above. Here, the control terminal may be a remote control computer or a mobile terminal, and the relevant staff may send a command indicating the start of the test and a test mode selection command to the test device for the programmable logic controller expansion module based on the control terminal, and obtain the lighting information, operating voltage signal, operating data, and input / output signals obtained from the test execution unit, so as to further analyze the programmable logic controller expansion module.

[0061] Furthermore, the control terminal can also obtain the test results generated by the test execution unit through the test execution unit. Here, the control terminal can be connected to the test execution unit through the RS485 bus to exchange data. The embodiment provided by the present application enables the relevant test personnel to control the test process through the control terminal, receive the test results, remotely modify the test parameters and test procedures of the test execution unit, and improve the testing convenience of the programmable logic controller expansion module.

[0062] In one embodiment of the utility model, the system further comprises an audible and visual alarm unit, which is connected to the control terminal and is used to be controlled by the control terminal to issue audible and visual alarm information. Here, when the test result received by the control terminal indicates that the test of the programmable logic controller expansion module is abnormal, the audible and visual alarm unit can be controlled to issue audible and visual alarm information to prompt relevant staff to check the test situation in time. The embodiment provided by the present application can issue prompt information in time when an abnormality occurs in the test, so that relevant staff can check the test situation in time and perform subsequent processing.

[0063] In one embodiment, the control terminal has a human-computer interaction interface, and the human-computer interaction interface is a serial port touch screen. Here, the relevant staff can issue control instructions to the control terminal, adjust the test program of the test execution unit, and view test parameters and results through the human-computer interaction interface. The embodiment provided by the present application enables the relevant staff to control the test system of the programmable logic controller expansion module based on the human-computer interaction interface, thereby improving the operability of the test system of the programmable logic controller expansion module.

[0064] Here, the actual working process of the test system of the programmable logic controller expansion module is explained: first, the programmable logic controller expansion module to be tested is placed in a preset test area, so that the detector of the light detection unit faces the indicator light of the programmable logic controller expansion module, so that the light detection unit can collect the light information of the indicator light of the programmable logic controller expansion module. Further, the input and output signal detection port of the test execution unit can be connected to the input and output signal port of the programmable logic controller expansion module, the voltage detection port of the test execution unit can be connected to the voltage signal output port of the programmable logic controller expansion module, and the power supply end of the programmable logic controller simulation board can be connected to the power receiving end of the programmable logic controller expansion module, and the control end of the programmable logic controller simulation board can be connected to the controlled end of the programmable logic controller expansion module to complete the deployment of the test environment.

[0065] Then, the test execution unit is controlled by the control terminal to start the test and the test mode is selected, such as I port test or Q port test; further, the test execution unit sends a test execution signal to the programmable logic controller simulation board, so that the programmable logic controller simulation board supplies power to the single-chip microcomputer on the programmable logic controller simulation board for executing the test; further, after the powered-on single-chip microcomputer receives the power-on signal of the micro switch, it supplies power to the programmable logic controller expansion module and controls the operation of the programmable logic controller expansion module.

[0066] Furthermore, the lighting detection unit collects lighting information of the programmable logic controller expansion module and sends the lighting information to the test execution unit; the programmable logic controller simulation board receives operating data of the programmable logic controller expansion module in the operating state, and sends the operating data to the test execution unit; the test execution unit receives input and output signals and operating voltage signals from the programmable logic controller expansion module, and based on an internal preset program, tests the programmable logic controller expansion module based on the lighting information, operating voltage signal, operating data and input and output signals to obtain a test result.

[0067] Finally, the test execution unit sends the test results to the control terminal to complete the actual test process.

[0068] The above-mentioned embodiments only express several implementation methods of the utility model, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the utility model patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the utility model, which all belong to the protection scope of the utility model. Therefore, the protection scope of the utility model patent shall be based on the attached claims.

Claims

1. A test device for a programmable logic controller expansion module, used for testing a programmable logic controller expansion module, characterized in that: The device includes a test execution unit, a programmable logic controller simulation board and a light detection unit; The programmable logic controller simulation board is connected to the test execution unit to receive a test execution signal from the test execution unit. The programmable logic controller simulation board is also used to connect to the programmable logic controller extension module to control the programmable logic controller extension module to be in a running state when receiving the test execution signal, and receive the running data of the programmable logic controller extension module in the running state, and send the running data to the test execution unit; The test execution unit is also connected to the programmable logic controller expansion module, and is used to receive input and output signals and operating voltage signals of the programmable logic controller expansion module in an operating state; The light detection unit is used to collect light information of the programmable logic controller expansion module and send the light information to the test execution unit; The test execution unit is also used to collect and store the lighting information, the operating voltage signal, the operating data and the input and output signals.

2. The device according to claim 1, characterized in that The test execution unit has an input and output signal detection port and a voltage detection port; The input / output signal detection port is used to connect to the input / output signal port of the programmable logic controller expansion module to receive the input / output signal of the programmable logic controller expansion module; The voltage detection port is used to connect to the voltage signal output port of the programmable logic controller expansion module to receive the operating voltage signal of the programmable logic controller expansion module.

3. The device according to claim 2, characterized in that The light detection port of the test execution unit is connected to the output port of the light detection unit through an integrated circuit bus to receive the light information.

4. The device according to claim 3, characterized in that The test execution unit includes an integrated circuit bus communication circuit, a voltage detection circuit, an input and output signal receiving circuit, an RS485 bus communication circuit and a programmable array logic chip; The integrated circuit bus communication circuit is connected to the programmable array logic chip, the integrated circuit bus communication circuit has the light detection port, and the programmable array logic chip receives the light information from the light detection unit via the integrated circuit bus communication circuit; The voltage detection circuit is connected to the programmable array logic chip, the voltage detection circuit has the voltage detection port, and the programmable array logic chip receives the operating voltage signal from the programmable logic controller expansion module via the voltage detection circuit; The input / output signal receiving circuit is connected to the programmable array logic chip, the input / output signal receiving circuit has the input / output signal detection port, and the programmable array logic chip receives the input / output signal from the programmable logic controller expansion module via the input / output signal receiving circuit; The RS485 bus communication circuit is connected to the programmable array logic chip, the RS485 bus communication circuit has a data interaction port, the data interaction port of the RS485 bus communication circuit is connected to the data transmission port of the programmable logic controller simulation board, the programmable array logic chip sends the test execution signal to the programmable logic controller simulation board via the RS485 bus communication circuit, and receives the operation data from the programmable logic controller simulation board; The programmable array logic chip is also used to test the programmable logic controller expansion module based on the lighting information, the operating voltage signal, the operating data and the input and output signals.

5. The device according to claim 4, characterized in that The test execution unit further includes a first voltage conversion circuit; The first voltage conversion circuit is used to connect to a first external power supply to obtain a power supply, and perform voltage level conversion on the power supply to obtain a power supply voltage after voltage level conversion; The first voltage conversion circuit is also connected to the integrated circuit bus communication circuit, the voltage detection circuit, the input-output signal receiving circuit, the RS485 bus communication circuit and the programmable array logic chip to power the integrated circuit bus communication circuit, the voltage detection circuit, the input-output signal receiving circuit, the RS485 bus communication circuit and the programmable array logic chip based on the power supply voltage respectively.

6. The device according to claim 1, characterized in that The programmable logic controller simulation board has a power supply terminal, and the power supply terminal of the programmable logic controller simulation board is used to connect to the power receiving terminal of the programmable logic controller expansion module; A micro switch is provided at the connector of the power supply end, and the micro switch is connected to the programmable logic controller simulation board. When the connector of the power supply end is connected to the power receiving end, the micro switch is used to send a power-on signal to the programmable logic controller simulation board, so that the programmable logic controller simulation board supplies power to the programmable logic controller expansion module through the power supply end.

7. The device according to claim 6, characterized in that The programmable logic controller simulation board also includes a second voltage conversion circuit; The second voltage conversion circuit is connected to a second external power supply to obtain an external power supply and perform voltage level conversion on the external power supply to obtain an operating voltage; The second voltage conversion circuit is connected to the power receiving end of the programmable logic controller expansion module through the power supply end; The second voltage conversion circuit is also connected to the micro switch so as to output the operating voltage to the power receiving end of the programmable logic controller expansion module when receiving the power-on signal to power the programmable logic controller expansion module.

8. A test system for a programmable logic controller expansion module, characterized in that: The system comprises a testing device for a programmable logic controller expansion module according to any one of claims 1 to 7; The test system of the programmable logic controller expansion module also includes a control terminal, and the control terminal is connected to the test execution unit through an RS-485 serial bus to perform data exchange.

9. The system according to claim 8, characterized in that The system further comprises an audible and visual alarm unit, which is connected to the control terminal and is used for being controlled by the control terminal to send out audible and visual alarm information.

10. The system according to claim 8, characterized in that The control terminal has a human-machine interaction interface, and the human-machine interaction interface is a serial port touch screen.