Summary of the invention
Technical problem solved by the present invention is in order to overcome the drawbacks of the prior art, the present invention proposes a kind of portable behaviour
Vertical controller test system is mainly made of hardware components and software human-computer interaction test interface.
The technical scheme is that a kind of Portable unmanned machine handling controller test macro, including power supply module,
Operational module, multi-channel serial port converter, microcomputer and display module;Several handling controllers to be measured and power supply module connect
It connects, operational module is integrated on control panel, and control panel is connected by aviation plug with several handling controllers to be measured;
Multi-channel serial port converter passes sequentially through DB9 plug and transit cable and connect with several handling controllers to be measured;Microcomputer is logical
It crosses multichannel serial converter to be communicatively coupled with display module, serial ports is sent and received into transmission data and is shown in display mould
On block;Multi-channel serial port converter receives the signal issued from handling controller and is transmitted to microcomputer;Microcomputer will
The serial data of transmission, which is passed through, is forwarded to handling controller with multi-channel serial port converter.
A further technical solution of the present invention is: the display module is a touch display screen, touch display screen is equipped with
Electric power connecting mouth and USB interface, electric power connecting mouth are connect with power supply module, and USB interface is attached with microcomputer.
A further technical solution of the present invention is: the power supply module includes AC Power supply socket, power switch and two-way
DC power supply;AC Power supply socket is powered after connecting external 220V AC power source for multi-channel serial port converter;Two-way direct current simultaneously
The exchange 220v voltage of input is converted direct current+24V and+12V by power supply, wherein+24V voltage is several manipulation and controls to be measured
Device power supply ,+12V are that microcomputer and touch screen are powered.
The further technical solution of the present invention is: the multi-channel serial port converter is uport-1650 serial ports MOXA card, can be incited somebody to action
Former micromainframe serial ports is expanded to 16 tunnels.It is connect by USB port with microcomputer.
The further technical solution of the present invention is: further including test cabinet, for the installation of component and integrated including upper
Lid, case body and handle;Upper cover side and case body side are hinged, and are cavity body inside case body, and side wall is equipped with handle;Case
The through-hole for grafting aviation plug and the power hole for grafting AC Power supply socket are had with it;It is put inside case body
Set two-way direct current power supply, microcomputer and control panel.
The further technical solution of the present invention is: the operational module includes serial ports selecting module, serial ports control module, string
Mouth sending module and serial data receiving module;Serial ports selecting module is used to select the serial port of data transmission and reception;It is described
Serial ports enable module for controlling the on and off of serial ports;The serial data sending module includes single channel serial ports hair
It send and is sent simultaneously with multi-channel serial port;The serial data receiving module receives and multichannel string for controlling single channel serial data
Mouth data receive simultaneously.
The further technical solution of the present invention is: the operational module includes serial ports selecting module, serial ports control module, string
Mouth sending module and serial data receiving module, each functions of modules are realized common by multi-channel serial port converter and microcomputer
Composition, wherein multi-channel serial port converter is that USB turns 16 road MOXA cards, and microcomputer is mini computer, microcomputer tool
There are serial ports, all the way USB port all the way.Multi-channel serial port converter passes through USB cable for microcomputer itself serial ports expansion to 16
Road, by Microcomputer control extend the road 1-16 serial ports " opening ", " closing " and " transmission " of serial data,
" reception ".
The further technical solution of the present invention is: the 220V AC power source inputs to Switching Power Supply and southern exposure power supply, passes through
Corresponding power supply adaptor generates 12V respectively and 24V DC power supply exports, and wherein 12V power supply is that touch screen and micromainframe supply
Electricity, 24V power supply are 8 handling controller power supplies.After micromainframe and touch screen power on, corresponding string is selected on control panel
Slogan, and all serial ports are opened, and then each initialization of (a) serial ports can be completed by serial ports configuration function in software and be arranged, and led to
It crosses serial ports and opens all serial ports that sentence opening micromainframe is extended through multi-channel serial port converter;By operating control panel
On certain key or code-disc all the way, generate operational module switching value and Analog control electric signal, generation per electric signal all the way
It is handled by handling controller and is converted to corresponding hexadecimal code value, by RS232 serial ports transit cable by the 16 of generation
Binary data sends multi-channel serial port converter to, and is exported by multi-channel serial port converter and reach miniature calculating by USB cable
Machine realizes serial data by Send and Receive function in cured CVI operating software in microcomputer respectively
Send and receive function control.Language is finally read and write by serial ports by HDMI cable transmission and in touch screen by microcomputer
Sentence realizes reading and the write-in functions of serial data, and the serial data received is shown in man-machine interface, and then in " string
The variation of respective byte code value is observed in mouth sink block ".
The further technical solution of the present invention is: a kind of test method of Portable unmanned machine handling controller test macro,
The following steps are included:
Step 1: when carrying out single channel and sending information by calling serial port setting and control statement, selected string is opened
Mouthful, it calls serial ports to send function by microcomputer, serial ports inside the serial data write-in handling controller of transmission is read
Resume module chip;
Step 2: when carrying out single channel and receiving information by calling serial port setting and control statement, selected string is opened
Mouthful, by microcomputer call serial ports receiver function, by the data issued from handling controller by serial ports transit cable with
Multi-channel serial port converter sends microcomputer to, and the serial data of reading is shown in selected serial ports sink block;
Step 3: when carrying out multichannel and sending information by calling serial port setting and control statement, all serial ports is opened, are led to
Crossing microcomputer calls serial ports to send function, is then sending serial ports frame input transmission data, is clicking " all sending " control
The serial data of transmission is written serial ports read module inside handling controller by microcomputer and handles chip by part;Step
Four: when carrying out multipath reception information by calling serial port setting and control statement, opening all serial ports, pass through miniature calculating
Machine calls serial ports receiver function, then " all receives " control in click, calls serial ports receiver function by microcomputer,
The data issued from handling controller are sent to microcomputer by serial ports transit cable and multi-channel serial port converter, read
The serial data taken is shown in all serial ports sink blocks.
Invention effect
The technical effects of the invention are that: to solve above original handling controller test fixture defect, improve test system
System integrated level and testing efficiency, a kind of portable handling controller test macro proposed by the present invention can be completed at the same time 8
The room temperature test of handling controller, temperature stress circulation experiment, to improve handling controller debugging efficiency;Succinct people
Machine interactive interface simplifies testing procedure, shortens test period.Portable cabinet Integration Design substantially reduces simultaneously
Test fixture volume facilitates tester to carry out outfield fluidity testing.The present invention is directed to the defect of original test fixture, main
The integrated innovation of hardware is carried out, software then carries out interface configuration using mature Lab windows CVI language.
The present invention can once complete 8 executor room temperature and the high and low temperature test simultaneously, can theoretically can imitate production
Rate is improved to original 8 times, while by component integrated installation on test box, carries out outfield mobility convenient for operator
Test.
Specific embodiment
Referring to Fig. 1-Fig. 5, the present invention provides a kind of Portable unmanned machine handling controller test macros, special in detail
It levies as follows:
The present apparatus is mainly by test cabinet, control panel, Switching Power Supply, multi-serial-port card, micromainframe, touch screen etc., survey
Try cable composition;Human-computer interaction interface is mainly by serial ports selecting module, serial ports control module, serial ports sending module, serial data
Receiving module composition.As shown in Figure 1, test cabinet three-dimensional structure is shown in Fig. 2 institute to handling controller test macro composition schematic diagram
Show, as shown in Figure 3, test interactive interface is as shown in Figure 4 for control panel schematic diagram.
Of the invention is technically characterized in that since former test fixture only only has two-way serial ports, is only capable of completing for one
The serial data of handling controller sends and receives, and handling controller test macro of the present invention can be expanded using multi-serial-port card
16 road serial ports of Zhan Zhi, can complete the RS232 serial communication of 8 handling controllers, and wherein channel 1-8 is serial data reception
Channel, channel 9-16 are serial data sendaisle.8 times are theoretically improved compared to more former test fixture testing efficiency, substantially
Improve mass production efficiency;The unattended of temperature shock stress test process can also be completed simultaneously, may be implemented to test
The preservation and output of data, are greatly saved human cost.It is set by each serial ports parameter of lab windows CVI Integrated Simulation
It sets, the data that can control 8 road serial ports simultaneously send and receive.Software interface can choose single channel transmission and send out simultaneously with multichannel
It send, single channel reception receives simultaneously with multichannel, level of integrated system height, strong operability.Hardware composition part of the present invention is by test box
Module, power supply module, multi-serial communication module, operating unit module, data processing module, human-computer interaction module, test electricity
Cable and external interface module.Operational module enables module, serial data sending module, serial ports number by serial ports selecting module, serial ports
According to receiving module.The test box module is portable clamshell cabinet, is divided into upper cover and case body, the two passes through hinge
It is connected with spring hanging buckle.Bottom of box installation Switching Power Supply and micromainframe are tested, side installation external interface connector is used for
With external equipment power supply and data communication;Supporting plate is distributed with for installing and supporting operation panel along surrounding in cabinet top.Cabinet
The back side is provided with power hole, for installing three hole ship type switch power receptacles.Position is equipped with handle among cabinet front panel, is convenient for
Operator carries out the test of outfield mobility;The power supply module is made of a two-way direct current Switching Power Supply, will pass through electricity
The exchange 220v voltage of source aperture input is converted into direct current 24v and 12v for modules power supply;The Multi-serial port is logical
Letter module turns 16 road serial ports MOXA cards by USB and forms, and is connect by USB port with microcomputer and carries out serial ports with handling controller
Communication;The operating unit module is mainly used for the input of I/O on-off model and analog signal and output controls.It is described
Data processing module be mainly used for serial data processing and test interface software runtime environment support;The man-machine friendship
Mutual module is used for the display and operation of human-computer interaction interface;The test cable and external interface module mainly completes outside
The connection of equipment and test macro.The serial ports selecting module is used to select the serial port of data transmission and reception;Described
Serial ports enables module for controlling the on and off of serial ports;The serial data sending module includes that single channel serial ports is sent
It is sent simultaneously with multi-channel serial port;The serial data receiving module is for controlling the reception of single channel serial data and multi-channel serial port
Data receive simultaneously.
By certain key or code-disc all the way on operation control panel 5, operational module switching value and Analog control are generated
Electric signal, generation are converted to corresponding hexadecimal code value by the processing of handling controller 4 per electric signal all the way, pass through
RS232 serial ports sends the hexadecimal data of generation to multi-channel serial port converter 7, and extremely by the output of multi-channel serial port converter 7
Microcomputer 9 is finally shown in the man-machine interface (attached drawing 4) of touch screen 10 by microcomputer 9 by USB, Jin Er
The variation of respective byte code value is observed in " serial ports sink block ".
Each module connection relationship as shown in figure 5, first by 220V AC power source input to Switching Power Supply with towards positive electricity
Source generates 12V by corresponding power supply adaptor respectively and 24V DC power supply exports, and wherein 12V power supply is 10 He of touch screen
Micromainframe 9 is powered, and 24V power supply is that 8 handling controllers 4 are powered.After micromainframe 9 and touch screen 10 power on, in control surface
Corresponding serial port is selected on plate, and opens all serial ports, and then can be completed in software by Com configure function each
Initialization of (a) serial ports setting, and all strings that micromainframe 9 is extended through multi-channel serial port converter 7 are opened by Open Com sentence
Slogan;By certain on operation control panel 5, key or code-disc, generation operational module switching value and Analog control are electric all the way
Signal, generation are converted to corresponding hexadecimal code value by the processing of handling controller 4 per electric signal all the way, pass through RS232
Serial ports transit cable sends the hexadecimal data of generation to multi-channel serial port converter 7, and defeated by multi-channel serial port converter 7
Microcomputer 9 is reached by USB cable out, in microcomputer 9 in cured CVI operating software by Send with
What Receive function realized serial data respectively sends and receives function control.HDMI electricity is finally passed through by microcomputer 9
Cable transmits and in touch screen 10, and reading and the write-in functions of serial data are realized by Read and Write function, will be received
Serial data be shown on man-machine interface (attached drawing 4), and then observe respective byte code value in " serial ports sink block "
Variation.
Internal system circuit connecting relation is as shown in Fig. 5, and AC Power supply socket 1 connects 220V alternating current, and is connected to electricity
Source switch 2;It is connect by power switch 2 with two-way direct current power supply 3, to control the power supply of whole system;Handling controller 4
It being connect with+24V the power supply of two-way direct current power supply 3, control panel 5 is connected by aviation plug 6 with handling controller 4, thus
Realize that the I/O between control panel 5 and handling controller 4, analog signal are transmitted;Multi-channel serial port converter 7 passes through DB9 plug
8, transit cable 11 is connect with handling controller 4, to realize that rs 232 serial interface signal transmits;The electricity of microcomputer 9 and touch screen 10
Source self brought line is connect with+the 12V of two-way direct current power supply 3, and microcomputer 9 is communicated with touch screen 10 by usb signal line
Connection.Micromainframe 9 has two-way USB interface, wherein connecting all the way with Multi-serial port converter 7, micromainframe 9 passes through HDMI
Cable is connect with touch screen 10.
It is as follows to send information process:
(1) when carrying out single channel transmission information, selected serial ports first is opened in operational module, and carry out initialization of (a) serial ports
Parameter setting then selects the serial ports for the data of being sent in touch screen (10) man-machine interface (attached drawing 4) serial ports selection control
Number, cured CVI software calls Com configure and Open Com function automatically in microcomputer (9), loads respectively
The property parameters of selected serial port simultaneously open the serial ports;Then serial ports frame input transmission data are being sent, clicked " single channel transmission "
Control is write the serial data of transmission by cured CVI software transfer Send in microcomputer (9) and Write function
Enter the internal serial ports read module processing chip of handling controller (4).
(2) when carrying out single channel reception information, selected serial ports is opened in operational module, and carry out initialization of (a) serial ports ginseng
Number setting then selects the serial ports for the data of being received in touch screen (10) man-machine interface (attached drawing 4) serial ports selection control
Number, cured CVI software calls Com configure and Open Com function automatically in microcomputer (9), loads respectively
The property parameters of selected serial port simultaneously open the serial ports;Then corresponding serial ports is clicked before serial ports sink block and receives control, is led to
Cured CVI software transfer Receive function in microcomputer (9) is crossed, the data warp that will be issued from handling controller (4)
It crosses serial ports transit cable and multi-channel serial port converter (7) is sent to microcomputer (9), it is cured in microcomputer (9)
The serial data of reading is read display in touch screen (10) operation interface by HDMI cable by CVI software transfer Read function
In selected serial ports sink block.
(3) all serial ports are opened in operational module when carrying out multichannel and sending information, and carries out initialization of (a) serial ports parameter and sets
It sets, the then selection " opening serial ports " in touch screen (10) man-machine interface (attached drawing 4) selection control, in microcomputer (9)
Cured CVI software calls Com configure and Open Com function automatically, loads the attribute ginseng of all serial ports respectively
It counts and opens all serial ports;Then serial ports frame input transmission data are being sent, is clicking " all sending " control, passes through microcomputer
Handling controller (4) are written in the serial data of transmission by cured CVI software transfer Send and Write function in calculation machine (9)
Internal serial ports read module handles chip.
(4) when carrying out multipath reception information, all serial ports are opened in operational module, and carry out initialization of (a) serial ports parameter and set
It sets, and controls serial ports and receive the data issued through handling controller, then be sent to microcomputer through multi-channel serial port converter.
Specifically: selection " opening serial ports ", microcomputer (9) in touch screen (10) man-machine interface (attached drawing 4) serial ports selection control
In cured CVI software call Com configure and Open Com function automatically, load the attribute of all serial ports respectively
Parameter simultaneously opens all serial ports;Then control " is all received " in click, passes through cured CVI software in microcomputer (9)
Receive function is called, the data that will be issued from handling controller (4) are by serial ports transit cable and multi-channel serial port converter
(7) it sends to microcomputer (9), cured CVI software transfer Read function is by the serial ports of reading in microcomputer (9)
Data are shown in all serial ports sink blocks of touch screen (10) operation interface by the reading of HDMI cable.
Man-machine test interface carries control by CVI and realizes man-machine interface using Lab windows CVI as development platform
In the controls configuration such as " serial ports choice box ", " serial ports button on and off ", " serial ports sends and receives text box ";Pass through Com
Configure function realizes that initialization of (a) serial ports setting, including the parameters such as serial communication baud rate, parity check bit, stop position are determined
Justice;Serial ports control on and off is realized by Open Com and Close Com sentence;Pass through Send and Receive function point
Not Shi Xian serial ports send and receive function control.Reading and the write-in functions of serial data are realized by Read and Write.
Referring to shown in attached drawing 1, carry out wiring connection to test macro: AC Power supply socket 1 connects 220V alternating current, and
It is connected to power switch 2;It is connect by power switch 2 with two-way direct current power supply 3, to control the power supply of whole system;Manipulation control
Device 4 processed is connect with+24V the power supply of two-way direct current power supply 3, and control panel 5 is connected by aviation plug 6 with handling controller 4
It connects, to realize the I/O between control panel 5 and handling controller 4, analog signal transmitting;Multi-channel serial port converter 7 passes through
DB9 plug 8, transit cable 11 are connect with handling controller 4, to realize that rs 232 serial interface signal transmits;Microcomputer 9 and touch
The power supply self brought line of screen 10 is connect with+the 12V of two-way direct current power supply 3, and microcomputer 9 and touch screen 10 pass through usb signal line
It is communicatively coupled.
The test box module is portable clamshell cabinet, is mainly used for component installation and integrated, entire cabinet
It is divided into upper cover and case body, the two is connected by hinge with spring hanging buckle.Tank thickness is 2mm, aluminum alloy material, light weight.Case
Position is equipped with handle among body front panel, carries out the test of outfield mobility convenient for operator.Box house is divided into two layers and sets
Meter, is separated box house by control panel 5, control panel is led to by being supported along the supporting plate that cabinet wall is arranged
It crosses four screws control panel is fixed at four side feet of supporting plate;Bottom of box corresponding position is equipped with wandering nut use
In the two-way direct current power supply 3 and micromainframe 9 of fixed bottom installation;Body side installs aviation plug 6 and is used for handling controller
4 power supply and data communication;Box back surface is provided with power hole, for installing three hole ship type switch power receptacles.
The power supply module is made of a two-way direct current power supply, the power supply for each module.Pass through box back surface
AC Power supply socket 1 connects external communication 220V power supply, and 220 power supplys of exchange are directly that multi-channel serial port converter 7 is powered, two-way
The exchange 220v voltage of input is converted direct current+24V and+12V by DC power supply 3, wherein+24V voltage is external control control
Device 4 is powered, and+12V is that micromainframe 9 and touch screen 10 are powered.
The multi-serial communication module is made of multi-channel serial port converter 7, and multi-channel serial port converter 7 passes through USB interface
It is connected with micromainframe 9, selected multi-channel serial port converter 7 is uport-1650 serial ports MOXA card, can be by former micromainframe serial ports
It is expanded to 16 tunnels.It is connect by USB port with microcomputer 9, multi-channel serial port converter 7 receives the signal issued from manipulation and control 4
And it is transmitted to micromainframe 9;The serial data of transmission is passed through and is forwarded to manipulation and control with multi-channel serial port converter 7 by micromainframe 9
Device 4.Serial interface between Multi-serial port converter 7 and handling controller 4 is connected by DB plug 8, wherein the 2 of DB9 plug 8
Foot is that RXD is responsible for data receiver, and 3 feet are that TXD is responsible for data transmission, and 5 feet are the end signal GND.
The operating unit module is made of control panel 5, and control panel 5 is fixed in cabinet by mounting screw
On the supporting plate of wall, panel is provided with corresponding component installation hole location, is used for 32 road key switches, 2 road code-discs, power switch, touching
The installation of the components such as screen is touched, specific arrangement signal is shown in Figure 3.It is mainly used for I/O on-off model and analog signal
Input is controlled with output.
The data processing module is made of micromainframe 9, and processing and the test interface for being mainly used for serial data are soft
The support of part running environment.Micromainframe 9 has two-way USB interface, wherein connecting all the way with Multi-serial port converter 7, micromainframe
9 are connect by HDMI cable with touch screen 10.Micromainframe 9 is powered by the output+12V of two-way direct current power supply 3, is used
7 system of Windows can support the operation of Lab windows CVI software.
The human-computer interaction module is made of touch screen 10, and touch screen 10 is fixed on manipulation by four installation buckles
It on panel, and is powered by the output+12V of DC power supply 3, using capacitive touch screen, Operational Figure Of Merit is higher.According to CVI
The good software operation interface of configuration, displays it on touch screen panel on software, display and behaviour for human-computer interaction interface
Make;
The test cable is made of with external interface module transit cable 11 and aviation plug 6, main to complete outside
The connection of equipment and test macro.Due to the achievable 8 handling controllers test of single of the present invention, service cable interface
It will be made into the mode of " one point eight " with test cable interface, i.e., be divided into 8 branches from output end and be coupled with 8 manipulation controls
Device 4 processed.
The serial ports selecting module is used to select the serial port of data transmission and reception, and Multi-serial port converter 7 will be miniature
9 serial ports expansion of host is to 16 tunnels, wherein preceding 8 tunnel is for receiving serial ports, serial port 1-8;8 tunnels are for sending serial ports, serial ports afterwards
Number be 9-16.It receives serial port baud rate and is set as 38400, sending serial port baud rate is 9600, and interface display is shown in Figure 4
Serial port options.
The serial ports enables module for controlling the on and off of serial ports, including " opening serial ports ", " fully open ",
" all closing ", can control the on and off of certain road serial ports, can also control the shape on and off of all serial ports simultaneously
State, while the display that serial ports sends data text frame and serial ports receives data text frame can be cleared up by " emptying data " frame
Content enables item referring specifically to serial ports shown in Fig. 4.
The serial data sending module includes that the transmission of single channel serial ports is sent simultaneously with multi-channel serial port, when serial port selects
For certain in 9-16 all the way serial ports when, click interface " transmission " button then only send current serial data to handling controller 4;
Serial ports 9-16 data are sent to handling controller 4 simultaneously if selection " all sending ", send referring specifically to serial ports shown in Fig. 4
?.
The serial data receiving module is received for controlling the reception of single channel serial data with multi-channel serial port data simultaneously,
Serial port 1-8 is serial data reception, will show manipulation by the corresponding reception text box of click " reception of serial ports 1 " serial ports 1
16 binary datas that controller 4 is sent.Serial ports sink block can show 4 row, 16 column double byte data, when handling controller 4 adds
After electricity, when pressing 32 road key switches of control panel or adjusting two rotation code-discs, associated byte can be shown pair in sink block
The code value answered, referring specifically to serial ports receiving item shown in Fig. 4.
When carrying out single channel and sending information by calling serial port setting and control statement, selected serial ports is opened, is passed through
Microcomputer (9) calls serial ports to send function, and the internal serial ports of serial data write-in handling controller (4) of transmission is read
Resume module chip;When carrying out single channel and receiving information by calling serial port setting and control statement, selected string is opened
Mouthful, serial ports receiver function is called by microcomputer (9), the data issued from handling controller (4) are transferred by serial ports
Cable and multi-channel serial port converter (7) are sent to microcomputer (9), and the serial data of reading is shown in selected serial ports and connects
It receives in frame;When carrying out multichannel and sending information by calling serial port setting and control statement, all serial ports are opened, by miniature
Computer (9) calls serial ports to send function, is then sending serial ports frame input transmission data, is clicking " all sending " control, lead to
Microcomputer (9) is crossed by the internal serial ports read module processing chip of serial data write-in handling controller (4) of transmission;When
Pass through when multipath reception information and call serial port setting and control statement, opens all serial ports, pass through microcomputer (9)
Serial ports receiver function is called, then control " is all received " in click, calls serial ports receiver function by microcomputer (9),
The data issued from handling controller (4) are sent to miniature calculating by serial ports transit cable and multi-channel serial port converter (7)
Machine (9), the serial data of reading are shown in all serial ports sink blocks.
System debug: present system debugging is mainly including the 32 road push button signallings test above control panel 5, two-way
Code-disc signal testing, serial ports send and receive test.Wherein 32 road code-disc signals belong to switch order test, two-way code-disc letter
Number belong to analog signal test, per key all the way and code-disc respective figure 4 in a certain byte hexadecimal generation in serial ports sink block
Code is handled by handling controller 4 by certain key or code-disc all the way on operation control panel 5 and is sent to multi-channel serial port and turn
Parallel operation 7, and exported by multi-channel serial port converter 7 to microcomputer 9, touching is finally shown in by USB by microcomputer 9
It touches in the man-machine interface (attached drawing 4) for shielding 10, and then observes the variation of respective byte code value in " serial ports sink block ".It is logical
It is 16 road serial ports that 16 road serial converters 7, which are crossed, by the single channel serial ports expansion of microcomputer, and the road 1-8 is set as receiving by the present invention
Serial ports, 9-16 are set as sending serial ports, control so as to realize that 8 road serial ports send to receive with 8 road serial ports simultaneously.Serial ports is sent
Test is to send to instruct to handling controller 4 by microcomputer 9, since the code value of required transmission is identical, in attached drawing
Only need to be arranged one " serial ports transmission frame " in 4 man machine operation interfaces.Serial ports transmission may be implemented single channel and send with 8 roads simultaneously
It sends, is selected in the road 9-16 in " serial ports selection " frame in figure 4 all the way, and input to be sent out in " serial ports transmission frame "
The hexadecimal code value sent, clicking " single channel transmission " button can be realized the data transmission of the road serial ports;At " serial ports transmission frame "
The middle input hexadecimal code value to be sent, clicking " all sending " button can be realized the data transmission of 8 road serial ports, i.e.,
Microcomputer 9 sends serial ports instruction to 8 handling controllers 4 simultaneously.It is by control panel 5 or micro- that serial ports, which receives test,
The external inputs such as type computer 9 show data in serial ports sink block after the processing of handling controller 4.To realize certain road
Serial ports individual reception is tested and receives two kinds of functions of test simultaneously, certain may be selected all the way in setting in 4 man machine operation interface of attached drawing
Serial data receives and 8 road serial datas receive both of which simultaneously.After serial ports is connected, by selecting 4 human-machine operation circle of attached drawing
" serial ports reception " button all the way of certain in the road Mian Zhong 1-8 can monitor the reception data of certain serial ports all the way;It " is all connect by selection
Receipts " button is while receiving 8 road serial datas.
The method of the present invention implementation process is complicated, relates generally to five key steps: Preparatory work of experiment, parameter setting, serial ports hair
It send test, serial ports to receive test, stress test, wherein first carrying out room temperature test, carries out temperature stress experiment later.
Step 1: Preparatory work of experiment
1. system electrification: as shown in Figure 1 to system electrification, ac power plug 1 is connect
Logical 220v alternating current, presses power switch 2, detected respectively with multimeter two-way direct current power supply 3 output end whether
For+24V and+12V, and the switch of Multi-serial port converter 4 is set to open state.2. connecting equipment: the just common switching electricity of voltage tester
Handling controller 4 and test cabinet are attached by cable 11 by aviation plug 6.Transit cable 11 is the design of " 1 point 8 " formula, can
To connect 8 handling controllers 4 simultaneously, every handling controller 4 itself has 4 aviation plugs 6, is respectively as follows: power port, string
Row data port, two I/O data ports.It is arranged when connection by 4 number order of handling controller, to facilitate subsequent separate unit mould
Formula test.It is configured with test, the input terminal and output end voltage of voltage reduction module 3, network relay 5.
Step 2: parameter setting
After touch screen is shown normally, to computer " management "-" equipment manager "-com port serial communication baud
Rate is configured, and the road 1-8 serial ports is set as the road 38400,9-16 serial port baud rate and is set as 9600.Computer desktop CVI software is opened,
As shown in figure 4, corresponding serial port-opening serial ports-is selected to empty reception frame data.
Step 3: serial ports sends test
Corresponding hexadecimal data is inputted as shown in figure 4, sending in frame in serial ports, when progress separate unit handling controller 4
When test, the serial port (should be in 9-16 all the way) for selecting the handling controller to be connected is clicked " opening serial ports ", that is, is beaten
The transmission serial port currently selected is opened, " single channel transmission " button is clicked, i.e., the data sent in frame is sent to handling controller
4;When needing serial port 9-16 totally 8 road serial ports while when sending, sends and input the data to be sent in frame, click and " all send out
Send " button, then 8 road serial ports are sent simultaneously.
Step 4: serial ports receives test
As shown in figure 4, pressing corresponding key or rotation code-disc on control panel, then according to institute's instruction to be tested
It will receive hexadecimal data relevant to key command or code-disc instruction in serial ports sink block, after handling controller 4 is powered
Serial ports sink block will receive the data of the transmission of handling controller 4 automatically, each, which receives frame data, 4 rows 16 column, when pressing
Corresponding 16 system code value will change when a certain key.16 systems received according to the definition detection of each key command
Whether code is correct.
Step 5: stress test
After the completion of room temperature test, temperature stress circulation experiment is carried out, handling controller 4 is put into high-low temperature chamber, is arranged
The parameters such as " temperature cycle " of experimental box, " working time ", " cycle-index ", wherein " temperature cycle " represents high/low temperature circulation
Total time, " working time " represented within the entire temperature cycles period, the working time that handling controller 4 is powered on.It sets up and follows
After ring parameter, handling controller is powered up, and circulation step three, step 4 test content.