CN205281250U - Cross -platform PLC product frock test system based on QT - Google Patents

Cross -platform PLC product frock test system based on QT Download PDF

Info

Publication number
CN205281250U
CN205281250U CN201521043363.XU CN201521043363U CN205281250U CN 205281250 U CN205281250 U CN 205281250U CN 201521043363 U CN201521043363 U CN 201521043363U CN 205281250 U CN205281250 U CN 205281250U
Authority
CN
China
Prior art keywords
module
test
bus
frock
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201521043363.XU
Other languages
Chinese (zh)
Inventor
赵德政
郭肖旺
牛鹤宁
顾伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
No.6 Research Institute of China Electronics Corporation
Zhongdian Intelligent Technology Co., Ltd.
Original Assignee
No6 Research Institute Of China Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by No6 Research Institute Of China Electronics Corp filed Critical No6 Research Institute Of China Electronics Corp
Priority to CN201521043363.XU priority Critical patent/CN205281250U/en
Application granted granted Critical
Publication of CN205281250U publication Critical patent/CN205281250U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model relates to a PLC detects technical field, especially relates to a cross -platform PLC product frock test system based on QT. The utility model provides a cross -platform PLC product frock test system based on QT, power module including the guide rail interconnection, the CPU module, the DI module, the AO module, the occupy -place module, module and two bus coupling modules, terminal module of bus and DO module, data transmission is realized with the ETH0 interface of host computer based on ether CAT transfer protocols to the EH0 interface of CPU module, the host computer is connected with the automatic test module of AIAO, the automatic test module of AIAO is connected with the AI module, the terminal module of bus is passed through the frock paired line and is connected with the bus coupling module, the A end of DO module is connected through the frock cable and the B end of DI module, a DO module, the DI module, AO module and AI module are equipped with on -the -spot IO terminal interface respectively, the CPU module is reserved ETH1 and is passed through X0 main website mouth and the interconnection of IO system. The utility model discloses the measuring accuracy is high, has realized that automatic testing and test result are accurate.

Description

A kind of cross-platform PLC product frock based on QT tests system
Technical field
This utility model relates to PLC detection technique field, particularly relates to a kind of cross-platform PLC product frock based on QT and tests system.
Background technology
In prior art, the test of PLC product is bad in order to what test whether PLC product exist on hardware or software. Small PLC product, is divided into CPU element and expanding element two class. CPU element feature richness, the function measured is relatively more, it is generally required to measure the On-off signal output of body, analog input and output, communication interface, including RS485, RS232, CAN), the maintenance functional test of SRAM power failure data, RTC clock accuracy test and EPROM readwrite tests and expansion bus power supply; Expanding element generally only measures function and the expansion bus interface of response. It is bad that general frock test product can only be tested on hardware, inadequate for software or measuring accuracy functionally, major part or manual test, and workload is very big, and test result is inaccurate.
Chinese patent CN204086983U discloses the open a kind of PLC product of this utility model dynamic test device in vain, it includes the host computer being sequentially connected with, test fixture main frame and test wire harness, test wire harness is used for connecting tested PLC product and test fixture main frame, test fixture main frame includes exterior strands interface, CPU and the two-way RS485 communication interface being connected with CPU respectively, one road RS232 communication interface, one tunnel CAN communication interface, 24 switch value input interface, 36 point relay output interfaces, 4 tunnels analogy amount input interfaces, 4 tunnels analogy amount output interfaces, exterior strands interface is by above-mentioned two-way RS485 communication interface, one road RS232 communication interface, one tunnel CAN communication interface, 24 switch value input interface, 36 point relay output interfaces, 4 tunnels analogy amount input interfaces, 4 tunnels analogy amount output interfaces are integrated on a connection interface. it is bad that this patent equally exists that patent frock test product can only test on hardware, and low for software or measuring accuracy functionally, workload is very big, the inaccurate problem of test result.
Utility model content
In order to overcome defect of the prior art, the cross-platform PLC product frock based on QT that this utility model provides tests system for software or the height of measuring accuracy functionally, and workload is little, and test result is accurate.
This utility model is achieved by the following technical solution: a kind of cross-platform PLC product frock based on QT tests system, including the power module interconnected in order on guide rail, CPU module, first bus coupler module, oneth DO module, DI module, AO module, dummy module, AI module, first terminal bus module, second bus coupler module, 2nd DO module and the second terminal bus module, the EH0 interface of described CPU module realizes data transmission with the ETH0 interface of host computer based on EtherCAT host-host protocol, described host computer is connected with AI/AO automatic test module, described AI/AO automatic test module is connected with AI module, described first terminal bus module is connected by frock twisted-pair feeder and the second bus coupler module, the A end of a described DO module is connected with the B end of DI module by frock cable, a described DO module, DI module, AO module and AI module are respectively equipped with on-the-spot I/O terminal interface, and the reserved ETH1 of described CPU module is by X0 main website mouth and I/O system interconnection.
Further, described first bus coupler module and the second bus coupler module join 2 RJ45 interfaces and 3 hexadecimal ID toggle switch, and the RJ45 interface of bottom is for connecting the EtherCAT equipment on the same network segment.
Further, the signal condition of the EtherCAT terminal of described dummy module is indicated by light emitting diode, runs LED and indicates the data swap status of bus coupler, and fault LED instruction is transshipped and broken string state.
Compared with prior art, superior effect is in that: it is bad that this utility model can overcome on test hardware, high for software or measuring accuracy functionally, it is achieved test and test result are accurate automatically, reduce workload, improve work efficiency.
Accompanying drawing explanation
Fig. 1 is the structural representation that the cross-platform PLC product frock based on QT described in the utility model tests system;
Fig. 2 is the CPU module test connection figure in this utility model;
Fig. 3 is the Coupler Module test connection figure in this utility model;
Fig. 4 is the terminal bus module testing connection figure in this utility model;
Fig. 5 is the dummy module test connection figure in this utility model;
Fig. 6 is the DI module testing connection figure in this utility model;
Fig. 7 is the DO module testing connection figure in this utility model;
Fig. 8 is the AI module testing connection figure in this utility model;
Fig. 9 is the AO module testing connection figure in this utility model;
Figure 10 is the AI/AO automatic test module structure chart in this utility model;
Figure 11 is the workflow diagram of the host computer in this utility model;
Figure 12 is the workflow diagram of the host computer test AI module in this utility model;
Figure 13 is the workflow diagram of the host computer test AO module in this utility model.
In figure, the direction of arrow represents signal transmission direction.
Detailed description of the invention
Below in conjunction with accompanying drawing, this utility model detailed description of the invention is described in further detail.
Embodiment 1
As shown in Figure 1, illustrating this utility model provides a kind of cross-platform PLC product frock based on QT to test system, including the power module interconnected in order on guide rail, CPU module, first bus coupler module, oneth DO module, DI module, AO module, dummy module, AI module, first terminal bus module, second bus coupler module, 2nd DO module and the second terminal bus module, the EH0 interface of described CPU module realizes data transmission with the ETH0 interface of host computer based on EtherCAT host-host protocol, described host computer is connected with AI/AO automatic test module, described AI/AO automatic test module is connected with AI module, described first terminal bus module is connected by frock twisted-pair feeder and the second bus coupler module, the A end of a described DO module is connected with the B end of DI module by frock cable, a described DO module, DI module, AO module and AI module are respectively equipped with on-the-spot I/O terminal interface, the reserved ETH1 of described CPU module is by X0 main website mouth and I/O system interconnection, described first bus coupler module and the second bus coupler module join 2 RJ45 interfaces and 3 hexadecimal ID toggle switch, the RJ45 interface of bottom is for connecting other EtherCAT equipment on the same network segment, the signal condition of the EtherCAT terminal of described dummy module is indicated by light emitting diode, run LED and indicate the data swap status of bus coupler, fault LED instruction overload and broken string state. the cross-platform PLC product frock based on QT provided in the present embodiment tests system, is the automatization test system that PLC carries out accuracy test functionally, and the cross-platform frock based on QT tests software, preferably, NX1000CPU module, NE1000EtherCAT module bus bonder, NE2000EtherCAT module bus terminus module, NE9000EtherCAT dummy module, NE1008EtherCAT digital quantity input module, NE2008EtherCAT digital output module, NE3004EtherCAT Analog input mModule, NE4004EtherCAT analog output module, high-precision A I/AO automatic test module, preferably, power module connects CPU module, provides power supply for frock, and its characteristic is input voltage: 88-264V/AC, output: 240W, output voltage: 24V, work efficiency: 94%, described CPU module connects bus coupler module, and connected mode guide rail interconnects, CPU module connects host computer, realizes data with host computer and transmits by ETH0, and host-host protocol is based on EtherCAT, and the reserved ETH1 that increases is that follow-up function upgrading is standby, EtherCAT master function, and the I/O system interconnection existing as the cause for gossip of EtherCAT main website by X0, reserved UART mouth and compatible RS232 port, it is achieved debugging function, supporting RTC function, battery is onboard, configuration timing accuracy test pin, for timing accuracy detection, EtherCAT module bus Coupler Module is used for connecting 100BASE-TXEtherCAT and EtherCAT terminal module, and the message through EtherCAT100BASE-TX is converted to E-bus signal, 2 RJ45 interfaces joined by bonder, and bottom RJ45 interface can be used for other EtherCAT equipment connecting on the same network segment, bonder is without parametrization, and should be considered EtherCAT slave station, need not process data, band ID toggle switch, supports that thermally coupled technology is RJ45, there are 3 hexadecimal ID toggle switch, an ID is distributed to bonder website,Reorganization equipment is placed in any position in EtherCAT network; E-bus signal is converted to 100BASE-TX ethernet signal by terminus module, to extend EtherCAT network; Powered by E-bus; It is performed without parametrization or configuration task; The dummy module of described EtherCAT realizes the communication connection between any two modules of bus coupler module, I/O module and terminal bus module by E-bus bus; Described digital input module gathers binary control signal from processing layer, and these signals are transferred to the automation cell on upper strata with the form of electric isolution; Digital quantity input module, 24VDC; Each EtherCAT terminal module contains 8 passages; Described digital output module passes to the binary control signal that automation cell is transmitted by the form of electric isolution on the executor processing layer; Digital output terminal module 5VDC, CMOS export; Load current outfan has overload and short-circuit protection function; Each EtherCAT terminal module contains 8 passages; Analog input end is used for in-site measurement sensor power, and when electric isolution, analog measurement signal is sent to automation equipment; Being powered by on-the-spot terminal, supply voltage is 24V; The signal condition of EtherCAT terminal module is indicated by light emitting diode: runs LED and indicates the data swap status of bus coupler, and fault LED instruction is transshipped and broken string state; Analog output generates signal between 4 to 20mA; The output channel of EtherCAT terminal has common ground current potential, and output stage is powered by 24V power supply; The signal condition of EtherCAT terminal module is indicated by light emitting diode; Supporting distributed clock, the data that input data are connected with distributed clock terminal by other carry out synchronous monitoring; AI module, to the current signal of 20MA, when being used for detecting AI module, is inputted by high-precision A I/AO automatic test module input and output 4; The output of AO is received during for detecting AO module; This module is made up of a CPU module, high-precision A/D, D/A modular converter, a serial ports processing module. Host computer is divided into two interfaces: log-in interface and test interface, log-in interface is filled in relevant information during single test, such as reviewer, the date of inspection etc., need the option tab whether appearance test is passed through simultaneously, only could enter next inspection item after outward appearance is upchecked; After reviewer connects modules, at test interface, select test item, download test file, start test. Test result is shown in offer message area, interface, and test result can derive as document form and preserve; Connected mode is that socket connects, and adopts a kind of communications protocol to realize upper and lower communication, completes to log in testing service, issues test file, starts test, stops test, exits testing service, read test data, receives operations such as postbacking data; Test for disparate modules, load different configurable test file nbp (NCSEbinaryprojectfile, PLC executable file) file, nbp file is the binary system test program of test corresponding module, this document is issued on test equipment by this software, the process that issues requires to realize according to communications protocol, adopts question-response form, it is ensured that issue complete being received by Target Board of data; After starting test, sending test command to equipment, equipment starts test program, and returns result, and test flow chart is as shown in figure 11.
Embodiment 2
If Fig. 2 is to shown in 13, this utility model provides the cross-platform PLC product frock based on QT and tests the method for testing of system, and described method of testing includes CPU module detecting step:
Step 1, by frock cable one end connect CPU module DB9 interface, the other end is connected on host computer, after test system connects, serial ports in CPU module is detected, from host computer, open the .exe program of PLC test fixture system, carry out selecting CPU module test item, CPU module is tested, described test item includes serial ports test, and the test of described serial ports includes 4 test events for tetra-lane testings of user RS232, DSU, OS_DEBUG, Comx;
Step 2, described four lane testings the method for inspection include:
1) DSU: use frock test system linking objective plate, it is judged that whether DSU is working properly;
2) OS_DEBUG: fill mouth under user program under RS running environment, uses frock test system to attempt opening serial ports, and judges whether working properly;
3) RS232: use frock test system to open serial ports, issues Modbus order and waits slave computer response; The RS232 Modbus order issued is responded, it may be judged whether working properly by ST script Modbus module;
4) COMX: by network configuration, write ST script, it is achieved DI DO AI AO operation, it is judged that result output to fixed address, compiling formed download file, by frock test system judge that whether the value of structure register correct;
Step 3, operation host computer send slave station configuration information packet by CPU module to be measured, each slave station reading corresponding data will be configured to merit Information sign after completing configuration and returns main website by bus, main website reads the configuration complement mark of each slave station, and is checked the information of each slave station by main website;
FLASH user storage area in CPU module is detected by step 4, operation host computer, detects region: 0x00000000��0x1FFFFFFF:
RS: external libraries functional device is provided, it is achieved FLASH detects;
ST: calling function block, by test result to output fixed address;
Described frock detection system, issues startup test command, reads test result;
Step 5, operation host computer read CPU module current time information, then lower electricity, re-powers after waiting for a period of time, and again performs " RTC reads the time " order, checking that whether the time of record is free of discontinuities continuously, the record time is free of discontinuities shows that RTC circuit function operation is normal.
RS: external libraries functional device is provided, it is achieved RTC arranges, reads detection;
ST: calling function block, by test result to output fixed address;
Described frock detection system: issue startup test command, RTC time is set, read RTC time result.
As it is shown on figure 3, described method of testing includes bus coupler module check step:
Step 1, test system is connected, from host computer, open PLC test fixture system .exe program, select bus coupler module testing item, bus coupler module is tested;
Step 2, operation host computer send slave station configuration information packet by CPU module, bus coupler module to be measured and other slave station will be configured to merit Information sign after reading respective corresponding data and completing configuration and return main website by bus, main website can read the configuration complement mark of bus coupler module to be measured and other slave station, is checked the information of each slave station by main website;
Step 3, test E-bus bus functionality, control EtherCAT state machine and sequentially enter init state, pre-operation state, safe working condition and running status, whether the E_RUN lamp state on bus coupler module front panel to be measured of observing is go out, slow flash, single dodge and bright state, it is judged that whether this function is correct.
As shown in Figure 4, described method of testing includes terminal bus module check step:
Step 1, test system will be connected, from host computer, open PLC test fixture system .exe program, and select terminal bus module testing item, terminal bus module is tested;
Step 2, operation host computer send slave station configuration information packet by described CPU module, after terminal bus module to be measured and other slave station read respective corresponding data and complete configuration, will be configured to merit Information sign and return main website by bus, main website reads the configuration complement mark of terminus module to be measured and other slave station, is checked the information of each slave station by main website;
When step 3, test E-bus bus functionality, control EtherCAT state machine and sequentially enter init state, pre-operation state, safe working condition and running status, observe the E_RUN lamp state on terminal bus module front panel to be measured whether for going out, slow flash, single dodge and bright state is to judge that whether this function correct.
Described method of testing in this utility model includes dummy module testing sequence:
Step 1, test system is connected, from host computer, open PLC test fixture system .exe program, select dummy module test item, dummy module is tested;
Step 2, test E-bus bus functionality, control EtherCAT state machine and sequentially enter init state, pre-operation state, safe working condition and running status, observe the E_RUN lamp state on dummy module front panel to be measured whether for going out, slow flash, single dodge, bright state to be to judge that whether this function correct.
As it is shown in figure 5, the described method of testing in this utility model includes the testing sequence of DI/DO module:
Step 1, test system is connected, from host computer, open PLC test fixture system .exe program, select " DI/DO module testing " item, DI/DO module is tested;
When step 2, test E-bus bus functionality, control EtherCAT state machine and sequentially enter init state, pre-operation state, safe working condition and running status, by observe on DI module front panel to be measured E_RUN lamp state whether for going out, slow flash, single dodge, bright state judges that whether this function correct;
Step 3, by PC control frock test system DI/DO module output specify signal DO1��D08 be sequentially output, be acquired by DI/DO module to be measured, through terminus module and coupling module, data returned CPU module by E-bus and judge; Display state in conjunction with front panel lamp, it is judged that whether DI/DO input function is normal, the corresponding LED of each road DI/DO input turns on/off;
As shown in Figure 8, the described method of testing in this utility model includes the described AI module testing method of inspection:
Step 1, according to test, equipment is connected, from PC, open PLC test fixture .exe program, select AI module testing item, AI module testing is tested;
When step 2, test E-bus bus functionality, control EtherCAT state machine and sequentially enter init state, pre-operation state, safe working condition and running status, simultaneously by observe E_RUN lamp state on AI module front panel to be measured whether for going out, slow flash, single dodge, bright state judges that whether this function correct;
Step 3, use high-precision A I/AO automatic detection module, 4 paths are inputted respectively the different value of 4mA, 8mA, 12mA, 20mA, AI module to be measured is acquired, and through terminus module and coupling module, data is returned CPU module by E-bus and judges, Acquisition Error is in �� 0.3%;
The computing formula calculating error in step 4, described step 3 is: U �� 2.5V/ (110 �� �� 216) �� 100%��0.3%, in formula, U is AD collection result value of calculation, and 2.5V is reference voltage level, and 110 �� are sampling resistor value.
As shown in Figures 9 and 10, the described method of testing in this utility model includes AO module check method:
Step 1, the frock system of testing is connected, from host computer, open PLC test fixture .exe program, select AO module testing item, AO module is tested;
Step 2, test E-bus bus functionality, control EtherCAT state machine and sequentially enter init state, pre-operation state, safe working condition and running status, observe on AO module front panel to be measured E_RUN lamp state whether for going out, slow flash, single dodge or bright state, it is judged that whether this function correct;
Step 3,4 paths by PC control AO module to be measured externally export 4mA, 8mA, 12mA, 20mA analog signals;
The current value of every road signal output measured by step 4, use high-precision A I/AO automatic detection device, returns to host computer by serial ports, it may be judged whether meet the requirements, and error is in �� 0.1%.
This utility model is not limited to above-mentioned embodiment, and when without departing substantially from flesh and blood of the present utility model, any deformation that it may occur to persons skilled in the art that, improvement, replacement each fall within protection domain of the present utility model.

Claims (3)

1. the cross-platform PLC product frock based on QT tests system, it is characterised in that described frock test system includes the power module interconnected in order on guide rail, CPU module, first bus coupler module, oneth DO module, DI module, AO module, dummy module, AI module, first terminal bus module, second bus coupler module, 2nd DO module and the second terminal bus module, the EH0 interface of described CPU module realizes data transmission with the ETH0 interface of host computer based on EtherCAT host-host protocol, described host computer is connected with AI/AO automatic test module, described AI/AO automatic test module is connected with AI module, described first terminal bus module is connected by frock twisted-pair feeder and the second bus coupler module, the A end of a described DO module is connected with the B end of DI module by frock cable, a described DO module, DI module, AO module and AI module are respectively equipped with on-the-spot I/O terminal interface, and the reserved ETH1 of described CPU module is by X0 main website mouth and I/O system interconnection.
2. test system based on the cross-platform PLC product frock of QT according to claim 1, it is characterized in that, described first bus coupler module and the second bus coupler module join 2 RJ45 interfaces and 3 hexadecimal ID toggle switch, and the RJ45 interface of bottom is for connecting the EtherCAT equipment on the same network segment.
3. test system based on the cross-platform PLC product frock of QT according to claim 1, it is characterized in that, the signal condition of the EtherCAT terminal of described dummy module is indicated by light emitting diode, running LED and indicate the data swap status of bus coupler, fault LED instruction is transshipped and broken string state.
CN201521043363.XU 2015-12-15 2015-12-15 Cross -platform PLC product frock test system based on QT Active CN205281250U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201521043363.XU CN205281250U (en) 2015-12-15 2015-12-15 Cross -platform PLC product frock test system based on QT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201521043363.XU CN205281250U (en) 2015-12-15 2015-12-15 Cross -platform PLC product frock test system based on QT

Publications (1)

Publication Number Publication Date
CN205281250U true CN205281250U (en) 2016-06-01

Family

ID=56065808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201521043363.XU Active CN205281250U (en) 2015-12-15 2015-12-15 Cross -platform PLC product frock test system based on QT

Country Status (1)

Country Link
CN (1) CN205281250U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589734A (en) * 2017-08-24 2018-01-16 固安华电天仁控制设备有限公司 A kind of wind electricity change paddle controller IO fastener method of testings

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589734A (en) * 2017-08-24 2018-01-16 固安华电天仁控制设备有限公司 A kind of wind electricity change paddle controller IO fastener method of testings

Similar Documents

Publication Publication Date Title
CN105404284B (en) A kind of cross-platform PLC products tooling test system and its test method based on QT
CN106094804A (en) A kind of cross-platform PLC plate level frock based on QT test system and method for testing thereof
CN106649166B (en) A kind of universal used group of data processing system based on unified interface
CN104198911B (en) A kind of chip pin method of testing of DTU and circuit
CN102662835B (en) A kind of program debugging method for embedded system and embedded system
CN101718841B (en) Automatic checking system and method of relaying protection device
CN205983198U (en) Cross -platform PLC board level frock test system based on QT
CN103699112B (en) Based on avionics Autonomous test Authentication devices and the verification method thereof of I/O signal fault simulation
CN104407279A (en) Code type data, apparatus and test method for automatically testing chip MDIO bus protocol
CN102353927A (en) Filed tester for acquisition system for electricity consumption information and test method thereof
CN103376340A (en) Adapter plate, a multi-platform serial test system and method
CN109470974A (en) A kind of testing lines system and method based on wireless technology
CN205281250U (en) Cross -platform PLC product frock test system based on QT
CN204065685U (en) A kind of light digital relay protection tester time response verifying attachment
CN202773083U (en) An automatic test system for movable terminals
CN102508090B (en) On-off automatic detection device for loops of collector ring
CN104898009A (en) Detection device for connected sensing device and detection method
CN204347211U (en) A kind of many relay functions proving installation
CN108196527B (en) Test verification system of FPGA and DSP tightly coupled architecture capable of being reconfigured
CN106896710A (en) Scene configurable time synchronization test system and implementation method
CN109388529B (en) Relay protection CPU (Central processing Unit) mainboard performance detection method and system
CN2884656Y (en) Simulator for testing power loading management terminal communication
CN2911703Y (en) Fault positioner for communication cable
CN101801019A (en) Analysis and test device for nodes in wireless sensor network
CN115061449A (en) Test tool, test system and test method

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190715

Address after: 102209 Room 622, Building A, China Electronic Information Security Industry Base, Southern Science City, Changping District, Beijing

Co-patentee after: No.6 Research Institute of China Electronics Corporation

Patentee after: Zhongdian Intelligent Technology Co., Ltd.

Address before: No. 25 Tsinghua East Road, Haidian District, Beijing 100085

Patentee before: No.6 Research Institute of China Electronics Corporation