CN108008213A - A kind of electrical automation tests system and method - Google Patents

A kind of electrical automation tests system and method Download PDF

Info

Publication number
CN108008213A
CN108008213A CN201711081338.4A CN201711081338A CN108008213A CN 108008213 A CN108008213 A CN 108008213A CN 201711081338 A CN201711081338 A CN 201711081338A CN 108008213 A CN108008213 A CN 108008213A
Authority
CN
China
Prior art keywords
test
sample
tested
capture card
control system
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.)
Pending
Application number
CN201711081338.4A
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.)
GUANGZHOU KNOW HOW AUTOMATION TECHNOLOGY Co Ltd
Original Assignee
GUANGZHOU KNOW HOW AUTOMATION TECHNOLOGY Co Ltd
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 GUANGZHOU KNOW HOW AUTOMATION TECHNOLOGY Co Ltd filed Critical GUANGZHOU KNOW HOW AUTOMATION TECHNOLOGY Co Ltd
Priority to CN201711081338.4A priority Critical patent/CN108008213A/en
Publication of CN108008213A publication Critical patent/CN108008213A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/003Environmental or reliability tests

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The invention discloses a kind of electrical automation to test system and method, belongs to automatization testing technique field.It is slow to solve the problems, such as to exist in the prior art automation system for testing operation.The system includes:Control system, it is used for the selection for providing test function, the input of test parameter;Test system, it is electrically connected with control system, including capture card, the slaving transformer electrically connected respectively with capture card, test equipment and relay;Control system is electrically connected with slaving transformer, relay and test equipment respectively by capture card, for the test function according to selection and the test parameter of input, the first voltage and frequency of control slaving transformer output;Control relay determines the test equipment that current sample to be tested and test sample to be tested use;Control test equipment to obtain every test parameter value of sample to be tested, and send to control system.

Description

A kind of electrical automation tests system and method
Technical field
The present invention relates to automatization testing technique field, more particularly relates to a kind of electrical automation test system and side Method.
Background technology
With the high speed development of modern society, more and more electric equipment products application every field, and it is being used in journey In stability, security, the high low performance indicator of efficiency seem particularly significant.Therefore it is tested for the property is that evaluation should The important guarantee of product quality quality.
At present to electric equipment products test using it is more be manual testing, tester by feeding, adjusting, preheating, Measurement, reading, adjust, measure again, reading, the step of adjusting ... etc. some again, whole process will personnel guard and make Record test result.So so that the whole testing time generally requires even a whole day half a day.And due to being manual testing, it is difficult Exempt to make mistakes, cause unnecessary trouble.After test, then artificial data typing, editor are carried out, form final report Accuse.Such test and report editing process are cumbersome, and time and cost of labor all expend huge.
In recent years, with the rapid growth of detection portfolio, by traditional means of testing, cannot meet to test city Field demand.At the same time with the variation and complication of testing requirement, in order to adapt to the growth requirement of test comprehensively, satisfaction was tested The stability and actual effect of journey, and strengthen the requirement of the trackability of test data etc., the excellent of automatic test should be played Gesture, builds automatization test system.
Automatization test system has quick automatic test, low-maintenance cost and executory cost, high accuracy and stabilization The advantages that property.Testing efficiency will be largely lifted after, saves substantial amounts of report edit session, so as to shorten from inspection Measure the required time for providing report.It is capable of the test method of specification relevant item at the same time, reduces because tester manages standard Solve it is inconsistent caused by test error the problem of, lifted test in laboratory standard capability.
The characteristics of automation system for testing is exactly function modoularization, and self-defined degree is high, can be directed to different samples to be tested Product use different testing process.But automatization test system on the market is much both for independent type of sample at present Testing process is developed, although the test to the sample has high consistency, also brings along the software compatibility at the same time The problem of poor, there is no unified logicality and hand down on program is write, in addition function repeat work and before and after causing program Conflict too fat to move, operation is slow.
The content of the invention
The embodiment of the present invention provides a kind of electrical automation test system and method, to solve to exist in the prior art survey It is poor there are the software compatibility to try automated system, the front and rear conflict of program is too fat to move, runs the problem of slow.
The embodiment of the present invention provides a kind of electrical automation test system, including:
Control system, it is used for the selection for providing test function, the input of test parameter;
Test system, it is electrically connected with the control system, and the test system includes capture card, respectively with the collection Block the slaving transformer electrically connected, test equipment and relay;
The switch gate action of execution system, its loading and unloading for being used to perform test sample and relevant device;
The control system by the capture card respectively with the slaving transformer, the relay, the manipulator Electrically connected with the test equipment, for the test function according to selection and the test parameter of input, described in control The first voltage and frequency of slaving transformer output;The relay is controlled to be determined according to the first voltage and the frequency The test equipment that current sample to be tested and the test sample to be tested use;The manipulator is controlled to be taken Material, feeding, discharging, blowing, enabling, shutdown etc. act, and operating status implementation is fed back to the control system;Described in control Test equipment obtains every test parameter value of the sample to be tested when testing the sample to be tested, and by described in items Test parameter value is sent to the control system.
Preferably, the test system further includes power meter;
The power meter is electrically connected with the capture card, exported for obtaining the sample to be tested in test process Two voltages and current data, and the second voltage and the current data are sent to the control system.
Preferably, the test system further includes servomotor, it is arranged on inside the slaving transformer, passes through control The speed of the servomotor, acceleration and range ability, control the first voltage and frequency of the slaving transformer output.
Preferably, the capture card includes input and output point, RS232 control serial ports and axis servomotor control mouth;
The capture card is electrically connected by the input and output point and the relay;Cross the axis servomotor control mouth with it is described Slaving transformer electrically connects;Serial ports is controlled to be electrically connected with the test equipment by the RS232.
Preferably, the control system is additionally operable to:Periodic backup operations software;And/or configuration file is encrypted and is set Put;And/or carry out configuration file self-test.
The embodiment of the present invention also provides a kind of automatic electronic test method, including:
According to definite test function and test parameter, the of slaving transformer output that control is electrically connected with capture card One voltage and frequency;
According to the first voltage and the frequency, the relay electrically connected with the capture card determines current sample to be tested Product, and the test equipment that the test sample to be tested uses;
The manipulator when testing the sample to be tested, to sample carry out position transfer --- feeding, feeding, discharging, Blowing, enabling, shutdown etc. act, and every positional information numerical value is sent to control system;
The test equipment obtains every test parameter of the sample to be tested when testing the sample to be tested Value, and every test parameter value is sent to control system.
Preferably, the test equipment is further included when testing the sample to be tested:
The power meter electrically connected with the capture card, obtains the second electricity that the sample to be tested exports during the test Pressure and current data, and the second voltage and the current data are sent to the control system.
Preferably, the slaving transformer further includes the servomotor being arranged on inside the slaving transformer;
The test function and test parameter that the basis determines, control are exported with the slaving transformer that capture card electrically connects Voltage and frequency, including:
The frequency of the pulse signal produced by the capture card, directional information and the pulse signal, determines described watch Take the rotation fixed angles of motor, direction of rotation and rotary speed;
By the rotation fixed angles of the servomotor, direction of rotation and rotary speed, determine that the servomotor adds The first voltage and frequency of speed, range ability and slaving transformer output.
Preferably, the test equipment obtains every survey of the sample to be tested when testing the sample to be tested Parameter value is tried, and every test parameter value is sent to control system, including:
The test equipment receives HardSendAll () function that the control system is sent, and obtains the sample to be tested Every test parameter value of product, and every test parameter value is sent to the control system.
Preferably, the test equipment obtains every survey of the sample to be tested when testing the sample to be tested Parameter value is tried, and every test parameter value is sent to control system, is further included:
The order that restPoses that the test equipment is sent according to the control system, carries out original state recovery; And/or
The order that restPoses that the capture card is sent according to the control system, the capture card is included defeated Enter output point, RS232 control serial ports, axis servomotor control mouth and internal register carry out original state recovery.
In the embodiment of the present invention, there is provided a kind of electrical automation tests system and method, which includes:Control system System, it is used for the selection for providing test function, the input of test parameter;Test system, it is electrically connected with the control system, bag Capture card is included, the slaving transformer electrically connected respectively with the capture card, test equipment and relay;Execution system, itself and institute State control system to electrically connect, receive and perform the control system and said the word, for perform feeding, the blanking of test sample with And the switch gate action of relevant device;The control system by the capture card respectively with the slaving transformer, it is described after Electric appliance and the test equipment electrically connect, for the test function according to selection and the test parameter of input, control The first voltage and frequency of the slaving transformer output;The relay is controlled according to the first voltage and the frequency, Determine the test equipment that current sample to be tested and the test sample to be tested use;The manipulator is controlled to carry out Feeding, feeding, blanking, discharging, enabling, shutdown etc. act, and implement feedback position information to the control system;Described in control Test equipment obtains every test parameter value of the sample to be tested when testing the sample to be tested, and by described in items Test parameter value is sent to the control system.In said system, the items that control system is preset according to test system are surveyed Parameter is tried, exported first voltage and frequency are controlled by slaving transformer, is controlled by relay to that sample to be tested Product are powered, and every test parameter value of sample to be tested is determined according to test equipment, and the every test parameter that will be got Value is sent to control system.It is only that the system is progressively separated into several in test sample test process is treated, by testing process Vertical process, i.e., only need to call automatically and test parameter phase by control system configuration testing parameter, test system That matches somebody with somebody watches transformer, relay, manipulator and test equipment, so as to complete test process.Surveyed in the prior art so as to solve It is poor there are the software compatibility to try automated system, the front and rear conflict of program is too fat to move, runs the problem of slow.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of electrical automation test system structure schematic diagram provided in an embodiment of the present invention;
Fig. 2 is ICP/IP protocol schematic diagram provided in an embodiment of the present invention;
Fig. 3 is robot movement schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of electrical automation test method flow diagram of the embodiment of the present invention;
Fig. 5 is automatic testing process schematic diagram provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment, belongs to the scope of protection of the invention.
, it is necessary to first introduce following term before the embodiment of the present invention is introduced:
1), (English is servomotor:Servo motor) refer to that what in servo-drive system control machinery element operated starts Machine, is a kind of subsidy indirect speed change gear of motor.Servomotor can make control speed, and positional precision is very accurate, can be by electricity Pressure signal is converted into torque and rotating speed with drive control object.Servo motor rotor rotating speed is controlled by input signal, and can be quick Reaction, in automatic control system, as executive component, and with spies such as electromechanical time constant small, the linearity is high, pickup voltages Property, can received electric signal be converted into angular displacement on motor reel or angular speed exports.It is divided into direct current and AC servo Two major class of motor, it is mainly characterized by, and when signal voltage is zero without rotation phenomenon, rotating speed is with the increase of torque and at the uniform velocity Decline.
2), relay (English name:Relay be) a kind of electric control device, wanted when the change of input quantity reaches regulation When asking, make controlled volume that a kind of electric appliance of predetermined Spline smoothing occur in electric output circuit.It has control system and by Interactive relationship between control system.It is usually applied in automation control circuit, it is actually to go to control with low current One kind " automatic switch " of high current running.Therefore the effect such as automatic adjustment, safeguard protection, conversion circuit is played in circuit.
3), (English is TCP/IP:Transport Control Protocol/Internet Protocol, Chinese are: Transmission control protocol/Internet protocol) it is the most basic agreements of Internet, the basis of Internet Internet, It is made of the IP agreement of network layer and the Transmission Control Protocol of transport layer.TCP/IP defines how electronic equipment is connected into internet, and The standard how data are transmitted between them.Agreement employs 4 layers of hierarchical structure, and each layer all calls its next layer of institute The agreement of offer completes the demand of oneself.
3), (English is manipulator:Mechanical Arm) it is Multiinputoutput, nonlinearity, a close coupling Complication system, can imitate some holding functions of human hand, and by the automatic behaviour of fixed routine crawl, carrying object or operation instrument Make device.Its structure type is simple, and specificity has people concurrently on construction and performance by force and machine is respective a little, there is very strong work Industry accuracy and the adaptability to various environment;The manipulator used uses the control mode of movement locus, first right before use Manipulator is programmed, and realizes the calibration of each position, ensures the action consistency of height with this.
Fig. 1 it is exemplary show a kind of electrical automation test system structure figure provided in an embodiment of the present invention, this is System may at least apply in automatic test field.
System is tested below with reference to a kind of electrical automation shown in Fig. 1, to one kind provided in an embodiment of the present invention certainly Dynamicization test system describes in detail.
As shown in Figure 1, a kind of automatic electronic system provided in an embodiment of the present invention mainly includes test system 1, control System 2, execution system 3.
Specifically, as shown in Figure 1, control system 2 includes the industrial personal computer 21 with automated control software 210 for core. In practical application, automated control software 210 is opened using the method for traditional software development life cycle using top-down Hair order, the structured software design method of Stepwise Refinement refinement.Specifically, 210 use of automated control software is towards right As, run on high-level programming language C# on .NET Framework.
In embodiments of the present invention, the interface of the automated control software 210 included in control system 2 can provide test Function selects, the input of test parameter and test custom feature, the boundary that user can be provided by automated control software 210 Face, the test function selection and the input of test parameter currently tested.In practical applications, automated control software 210 The test function of end input mainly includes following items:Test-types, model selection, parameter setting, flow setting, operation shape State, graphical display, file loading etc..
Specifically, as shown in Figure 1, test system 1 includes control card 11, power meter 12 and test equipment 13, wherein, control Fabrication 11, which has, includes slaving transformer 110, relay 111 and capture card 112.Execution system 3 includes manipulator 31;
Wherein, capture card 112 is equipped with 16 tunnel input and output (I/O) points, 8 road RS232 controls serial ports, 1 road USB communication ports, 1 Road axis servomotor control mouth.Wherein, capture card 112 is electrically connected by input and output point and relay 111, by axis servomotor control mouth with watching Take transformer 110 to electrically connect, electrically connected by RS232 and test equipment 13, power meter 12 and execution system 3.
Further, capture card 112 is communicated by RJ45 interfaces with control system 2, and Fig. 2 carries for the embodiment of the present invention The ICP/IP protocol schematic diagram of confession.As shown in Fig. 2, the communication protocol between industrial personal computer 21 in capture card 112 and control system 2 Using ICP/IP protocol.In practical applications, TCP is the transmission control protocol of host-to-host layer, there is provided reliable connection clothes Business, a connection is established using confirmation is held three times.Transmission Control Protocol can provide interface to upper layer network, make upper layer network data Transmission is established on the network of " indifference ".Setting up a TCP connection needs by " three-way handshake ":Wherein, for the first time Shake hands:Industrial personal computer 21 sends FIN bags capture card 112, waits capture card 112 to confirm;Second handshake:Capture card 112 receives FIN Bag, it is necessary to confirm the FIN of industrial personal computer 21, while oneself also send an ACK bag;Third time is shaken hands:Industrial personal computer 21 receives collection The FIN+ACK bags that card 112 is sent, send to capture card 112 and confirm bag ACK, this bag is sent, industrial personal computer 21 and capture card 112 enter established states, complete three-way handshake.
In embodiments of the present invention, communicated, connected by three-way handshake between capture card 112 and industrial personal computer 21 During establishment, many parameters will be initialised, and compare so as to ensure that initiation parameter can sequentially be transmitted and had Good connection.For example 1. host sends a session request for carrying synchronous mark position;2. receiving terminal beam back synchronous mark position, The byte order number of the serial number of data segment, next data segment;3. loopback carries serial number, the data of confirmation number to host again Section.
Communication mode between above-mentioned capture card 112 and industrial personal computer 21, transmission data are carried out with being segmented, by each The field of TCP transmission specifies serial number to obtain reliability.Confirm that receiving terminal has received using transponder system. When transmitting terminal does not receive confirmation or receives the data packet of damage, data can be sent by segmentation again.
It should be noted that in this clearly demarcated embodiment, capture card 112 is the customized type data based on ARM+FPGA patterns Capture card 112, using FPGA as the interface between ARM and AD, FPGA data acquisitions are controlled using ARM.Pass through Verilog language realizes that (English is that First Input First Output Chinese is to asynchronous FIFO inside FPGA:It is advanced First go out), the data collected are first saved in FPGA internal data buffers area FIFO, when reaching half full value of FIFO or one External interrupt is produced at the end of collection period, data are taken away by ARM in interrupt service subroutine.This design alleviates ARM Burden, while also improve data acquisition real-time.
In practical applications, the operating of slaving transformer 110 needs special driving power, and the output of driving power is adopted Pulse signal and the direction signal control of truck 112.In embodiments of the present invention, it is arranged on servo inside slaving transformer 110 Motor, the servomotor are electrically connected with capture card 112, the rotation fixed angles of servomotor, direction of rotation and rotary speed, can To control the first voltage and frequency that slaving transformer 110 exports.Specifically, each pulse signal of capture card 112 can make to watch Take motor and rotate a fixed feet, be known as step angle;The quantity of pulse determines rotating total angle;The frequency of pulse determines Optional speed;Direction signal determines rotating direction.Capture card 112 is inputted according to 210 interface of automated control software Test function and test parameter, can produce pulse signal, and the pulse signal is sent to servomotor, wherein, capture card Directional information and the frequency of the pulse signal that the pulse signal of 112 parameters includes can determine that the rotation fixed angles of servomotor, Direction of rotation and rotary speed.Further, the rotation fixed angles of servomotor, direction of rotation and rotary speed can determine and watch Take the acceleration and range ability of motor, by determine servomotor acceleration and range ability can determine and servo The first voltage and frequency values that the slaving transformer 110 that motor electrically connects exports.
In embodiments of the present invention, industrial personal computer 21 is communicated by TCP/IP and capture card 112, passes through the original of capture card 112 Begin to produce pulse, direction signal, control the driving power of servomotor, reached with this to motor distance, speed, direction controlling Purpose.The first voltage specified is exported to slaving transformer 110, it is necessary to carry out computing by slaving transformer 110K values.Its In, the acquisition of K values needs the voltage of the acquisition slaving transformer 110 of automated control software 210, and proportion of utilization ralation method is rolled over The distance that servomotor needs to run is calculated, specific formula is:
Wherein, U1For target voltage, U0For initial voltage, Δ d is the distance of servomotor operation.
In practical applications, more accurate voltage is exported in order to obtain slaving transformer 110, it is necessary to by repeatedly correcting To meet requirement.K values will specify slaving transformer 110 to export given voltage in the later stage and play a great role, the bigger tune of K values The efficiency of section is lower, and the fineness of K values more minor adjustment is higher.
In practical applications, relay 111 belongs to the extension end of 112 input and output point of capture card, is mainly used for responsible pair The conductor for the line intervened by test needs or disconnection.In embodiments of the present invention, relay 111 and the electricity of capture card 112 Connection, after capture card 112 determines the first voltage and frequency frequency of the output of slaving transformer 110, can control 111, relay Which according to the first voltage and frequency, determine to power to sample to be tested.
It should be noted that in embodiments of the present invention, there is the quantity for the sample to be tested that circuit couples with relay 111 Have multiple, and during actual test, 111 meetings of relay are powered to a sample to be tested.Specifically, capture card 112 Y0.2 control relay 111 correspond to 50Hz circuits;The Y0.3 control relays 111 of capture card 112 correspond to 60Hz circuits;Collection The Y0.4 control relays 111 of card 112 correspond to D/C power circuit.In practical applications, since Y0.2, Y0.3 and Y0.4 threes are Exclusive events, i.e., test used in power supply only allow all the way power supply presence so that capture card 112 can by selecting Y0.2, Y0.3 and Y0.4, so as to control relay 111 from multiple samples to be tested, determines current corresponding sample to be tested.When treating When power supply corresponds to multiple power supplies used in test sample, light then relay 111 can be caused to puncture, master switch tripping power-off, weight Then device explosion circuit event on fire.
Further, after relay 111 determines sample to be tested, what capture card 112 can be determined according to relay 111 Sample to be tested, from the multiple test equipments 13 for thering is circuit to couple with capture card 112 select one with it is selected to be measured The corresponding test equipment 13 of test agent, and power to the test equipment 13.
Capture card 112 is electrically connected by RS232 interface and executing agency 3, and executing agency 3 is received from 2 turns of control system The position command of hair, 31 analysis instruction of manipulator simultaneously perform, and gripping test sample carries out displacement.It is different according to instruction, run rail Mark, initial position are also different.After manipulator 31 receives the switch gate instruction that control system 2 is sent out, simulation human hand operation is right Designated equipment such as is opened the door, is closed the door at the complex action, while constantly updates operating status in 31 operational process of manipulator, and Information is fed back into control system 2 by capture card;In practical applications, the use of RS232 serial ports will generally pass through four steps It is rapid to complete:Open serial ports, configuration serial ports, read and write serial port, closing serial ports.In embodiments of the present invention, in system serial ports baud Rate is 9600, data bit 8, stop position 1, check bit without, flow control without.
It should be noted that in this clearly demarcated embodiment, executing agency 3 is to be based on manipulator 31 and multi-axis motion controller Pattern composition, the servomotor in each joint in motion controller driving manipulator 31, according to distance, angle, the difference of speed, Complete various compound actions.In the present embodiment, controller uses beeline interpolation algorithm, realizes point-to-point running orbit control. Beeline interpolation algorithm is as follows:
(1) the length L of line
(2)TsInterior stroke d=v*Ts(in spacing interpolation, d is a permanent small value);
(3) interpolation total step number N=L/d+1;
(4) the axial increment Delta x=(x of each movemente-x0)/N, Δ y=(ye-y0)/N;
(5) after the coordinate for calculating each interpolated point, real-time joint angle is tried to achieve by kinematic inverse operation.
xi+1≡xi+ Δ x, yi+1≡yi+ Δ y (i=0,1,2,3 ... n)
Capture card 112 is electrically connected by RS2332 interfaces and test equipment 13, realizes data acquisition purpose.Wherein, gather Card 112 mainly obtains the parameters such as the temperature of sample to be tested, electric current, voltage, power by test equipment 13, passes through above-mentioned acquisition The parameters such as the temperature arrived, electric current, voltage, power judge the performance of sample to be tested.
In embodiments of the present invention, in order to accomplish to measure in real time, automated control software 210 needs constantly control system 2 Ground notifies capture card 112 to carry out Communication Control to test equipment 13, execution system 3.Wherein, automated control software 210 passes through Capture card 112 be sent to test equipment 13 order mainly 210 end of automated control software selection test function and Test parameter of input etc. is ordered;The order of execution system 3 is sent to mainly in automated control software by capture card 112 The predeterminated position instruction selected in 210 flows;
Further, the major way that automated control software 210 is controlled test equipment 13 by capture card 112 For:Capture card 112 passes to test equipment 13 by specified order, and test equipment 13 receives order, performs mentioned order simultaneously The various test parameter values of the sample to be tested got according to mentioned order are fed back to control system 2;Similarly, automated control Software 210 is same to the control mode of execution system 3, the difference is that the information refreshing frequency of execution system 3 is higher, real-time It is stronger.
It should be noted that in embodiments of the present invention, automated control software 210 is by capture card 112 to performing system The order that system 3 is sent is pre-set commands, and execution system 3 only receives correct effective instruction, can just parse and perform;Collection When the order that card 112 is sent to test equipment 13 is HardSendAll () function, when test equipment 13 receives the order, it can obtain Every test parameter value of sample to be tested is taken, and every test parameter value of sample to be tested is sent to control system 2.
In embodiments of the present invention, after control system 2 receives every test parameter value of the feedback of test equipment 13, meeting Test parameter value is processed and displayed.For example it is arranged on the temperature oscillogram at 2 end of control system and can directly displays and tested The variation tendency of sample to be tested product temperature degrees of data in journey;Input-output wave shape figure then represents sample input/output terminal electricity to be tested Stream, voltage, the variation tendency of power.In practical applications, when automated control software 210 is for analysis temperature data, meeting The character string with order is sent to capture card 112, analysis, scheduling of resource inside capture card 112 by ARM, pass through serial ports Corresponding order is issued and is referred on the corresponding test equipment 13 of sample to be tested, test equipment 13 performs the order, and acquisition is treated The temperature data of test sample, and the temperature data got is fed back into automated control software 210.
It should be noted that in practical applications, call GetDataStatus () function, you can obtain sample to be tested Temperature data.
Further, automated control software 210 can not only carry out algorithm computing according to temperature data, additionally it is possible to allow User checks the temperature changing trend in specified time interval, or even provides the function of checking given time temperature value.
In embodiments of the present invention, automated control software 210 is by SCPI communication modes, realize with execution system 3, Data high-speed between test equipment 13 exchanges.Specifically, the mode of question-response is taken in SCPI communications, to the data of transmission into Row verification, greatly reduces the error rate of data.210 end of automated control software is eventually given birth to by the test parameter value got Into various reports.It should be noted that the generation of report needs first to add head text in the CPP files of calling Excel power functions Part Excel.If using other typelibs of office, need to add corresponding header file, specific filename is by load classes The filename in type storehouse determines that under normal circumstances, filename is identical with typelib filename.
It should be noted that in embodiments of the present invention, the power meter 12 electrically connected with capture card 112, is mainly used for obtaining Take the second voltage and current data that sample to be tested exports during the test, and by the second voltage got and electric current number According to transmission to control system 2.
In embodiments of the present invention, which completes the execution of flow except software and hardware can highly coordinate, moreover it is possible to The setting that enough software and hardwares restPose, it is ensured that the uniformity tested every time.Specifically, the recovery on hardware is initial State, original state recovery is carried out mainly in test equipment 13.When execution system 3, test equipment 13 receive capture card 112 and send out Send " * RST " order after, execution system 3, test equipment 13 can recover initial state.Recovery initial state on software, mainly Refer to the order that restPoses for sending capture card 112 according to control system 2, I/O signals that scape capture card 112 includes, Usb signal, rs 232 serial interface signal and internal related register return to original state.
Further, software is operated in normal operation, except needing to perform itself code, it is also necessary to core configuration text The support of part.Wherein, configuration file includes the core contents such as address, program-controlled order, flow setting.In order to ensure that software is matched somebody with somebody Put file and do not changed by mistake and deleted by mistake, the governing plan taken is as follows:1), periodic backup operations software, indifference is also when realizing impaired It is former;2), configuration file is encrypted, other people malicious modifications are prevented by cryptographic means;3), software carries out self-check, software It is whether normal that self-check configuration file must be carried out before each run, there must be obvious warning prompt when abnormal.
Fig. 3 is robot movement schematic diagram provided in an embodiment of the present invention, as shown in figure 3, this method is mainly including following Step:
Step 301, execution system 3 receives control system 2 and issues position command, first carries out discriminatory analysis, only connects Correct effective position command is received, can just carry out the parsing and execution of next step;
Step 302, it is parsed and is performed by manipulator, by computing beeline interpolation algorithm, gradually by manipulator from initial State P0 is moved to specified initial position P1;
Step 303, manipulator is located at P2 above target location, under the cooperation of electric component, by manipulator fixture The switching of state is gripped/unclasped, can smoothly grip required test sample;
Step 304, after gripping test sample, manipulator carries out vertical direction stretching according to line of motion interpolation algorithm To position P3, so that test sample starts away from initial position P1;
Step 305, in order to protect test sample safe, manipulator performs translation motion to position P4, moves test sample Move to target location;
Step 306, test sample reaches P5 near target location, and manipulator starts to carry out lower sinking with slow speed Put, in order to avoid damage sample;
Step 307, position P6 is arrived to a certain degree when the test sample of manipulator gripping declines, pass through cylinder, relay etc. The cooperation of electric component, control fixture, which is allowed to be in, unclasps state;
Step 308, manipulator fixture is in the state that unclasps, and fixture, which is taken advantage of a situation, reaches target location P7;
Step 309, after movement, manipulator voluntarily restPoses, to be continuing with;
Based on same inventive concept, an embodiment of the present invention provides a kind of electrical automation test method, due to method solution Certainly the principle of technical problem is similar to a kind of electrical automation test system, therefore the implementation of this method may refer to the reality of system Apply, overlaps will not be repeated.
Fig. 4 is a kind of electrical automation test method flow diagram provided in an embodiment of the present invention, as shown in figure 3, should Method mainly includes the following steps that:
Step 401, the execution system electrically connected according to definite test function and test parameter, control with capture card, Manipulator is parsed and performed, and the test sample displacement at feeding is positioned at test station, and real-time feedback information;
Step 402, the information of completion is fed back according to execution system, controls the slaving transformer electrically connected with capture card defeated The first voltage and frequency gone out;
Step 403, according to the first voltage and the frequency, the relay electrically connected with the capture card determines currently Sample to be tested, and the test equipment that the test sample to be tested uses;
Step 404, the test equipment obtains every survey of the sample to be tested when testing the sample to be tested Parameter value is tried, and every test parameter value is sent to control system;
Step 405, after test system has performed, the execution system electrically connected with capture card is controlled, manipulator parsing performs Effective order, test sample is placed at blanking from test job, real-time feedback information;
Step 406, after completing test action, the slaving transformer electrically connected with capture card, relay, execution system are controlled Manipulator, it is restPosed, to continue next test;
Preferably, the test equipment is further included when testing the sample to be tested:
The power meter electrically connected with the capture card, obtains the second electricity that the sample to be tested exports during the test Pressure and current data, and the second voltage and the current data are sent to the control system.
Preferably, the slaving transformer further includes the servomotor being arranged on inside the slaving transformer;
The test function and test parameter that the basis determines, control are exported with the slaving transformer that capture card electrically connects Voltage and frequency, including:
The frequency of the pulse signal produced by the capture card, directional information and the pulse signal, determines described watch Take the rotation fixed angles of motor, direction of rotation and rotary speed;
By the rotation fixed angles of the servomotor, direction of rotation and rotary speed, determine that the servomotor adds The first voltage and frequency of speed, range ability and slaving transformer output.
Preferably, the test equipment obtains every survey of the sample to be tested when testing the sample to be tested Parameter value is tried, and every test parameter value is sent to control system, including:
The test equipment receives HardSendAll () function that the control system is sent, and obtains the sample to be tested Every test parameter value of product, and every test parameter value is sent to the control system.
Preferably, the execution system, the test equipment obtain described to be tested when testing the sample to be tested Every test parameter value of sample, and every test parameter value is sent to control system, further include:
The order that restPoses that the execution system, the test equipment are sent according to the control system, carries out Original state is recovered;And/or
The order that restPoses that the capture card is sent according to the control system, the capture card is included defeated Enter output point, RS232 control serial ports, axis servomotor control mouth and internal register carry out original state recovery.
Fig. 5 is automatic testing process provided in an embodiment of the present invention, as shown in figure 4, the automatic testing process is main Comprise the following steps:
Step 501, start test, it is necessary to explanation, before testing begins, it is necessary to carry out sample connection to be tested and Relevant parameter, information are set.
Step 502, the testing scheme that test system loads are set.
Step 503, test system will judge the validity of the parameter in testing scheme, information etc., if not just Really, then step 508 is performed;If correct, step 504 is performed.
Step 504, start to test.
Step 505, standard testing flow is performed.
Step 506, after test, generate report according to the relevant parameter and relevant information of setting and preserve.
Step 507, test terminates.
Step 508, notify user, change and set according to user.
In conclusion in the embodiment of the present invention, there is provided a kind of electrical automation tests system and method, the system bag Include:Control system, it is used for the selection for providing test function, the input of test parameter;Test system, itself and the control system Electrically connect, including capture card, the slaving transformer electrically connected respectively with the capture card, test equipment and relay;The control System processed is electrically connected with the slaving transformer, the relay and the test equipment respectively by the capture card, is used for According to the test function of selection and the test parameter of input, control slaving transformer output first voltage and Frequency;The relay is controlled to be determined according to the first voltage and the frequency described in current sample to be tested and test The test equipment that sample to be tested uses;Control the test equipment obtained when testing the sample to be tested described in treat Every test parameter value of test sample, and every test parameter value is sent to the control system.In said system, Every test parameter that control system is preset according to test system, exported first voltage is controlled by slaving transformer And frequency, controlled to that sample to be tested and powered by relay, and the items of sample to be tested are determined according to test equipment Test parameter value, and the every test parameter value got is sent to control system.The system is treating test sample test During, testing process is progressively separated into several self-contained process, i.e., only needs, by control system configuration testing parameter, to survey Test system can call automatically watches transformer, relay and test equipment with what test parameter matched, so as to complete to test Process.So as to solve in the prior art, automation system for testing is poor there are the software compatibility, and the front and rear conflict of program is too fat to move, operation The problem of slow.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (12)

1. a kind of electrical automation tests system, it is characterised in that including:
Control system, it is used for the selection for providing test function, the input of test parameter;
Test system, it is electrically connected with the control system, and the test system includes capture card, electric with the capture card respectively The slaving transformer of connection, test equipment and relay;
The switch gate action of execution system, its loading and unloading for being used to perform test sample and relevant device;
The control system is electric with the slaving transformer, the relay and the test equipment respectively by the capture card Connection, for the test function according to selection and the test parameter of input, controls the slaving transformer output First voltage and frequency;The relay is controlled according to the first voltage and the frequency, determine current sample to be tested with And the test equipment that the test sample to be tested uses;Control the manipulator carry out feeding, feeding, discharging, blowing, The actions such as enabling, shutdown, and operating status implementation is fed back into the control system;The test equipment is controlled described in test Every test parameter value of the sample to be tested is obtained during sample to be tested, and every test parameter value is sent to institute State control system.
2. the system as claimed in claim 1, it is characterised in that the test system further includes power meter;
The power meter is electrically connected with the capture card, the second electricity exported for obtaining the sample to be tested in test process Pressure and current data, and the second voltage and the current data are sent to the control system.
3. the system as claimed in claim 1, it is characterised in that the test system further includes servomotor, it is arranged on institute State inside slaving transformer, by controlling the speed of the servomotor, acceleration and range ability, control the servo to become The first voltage and frequency of depressor output.
4. the system as claimed in claim 1, it is characterised in that the capture card includes input and output point, RS232 control serial ports With axis servomotor control mouth;
The capture card is electrically connected by the input and output point and the relay;Watched by the axis servomotor control mouth with described Transformer is taken to electrically connect;Serial ports is controlled to be electrically connected with the test equipment by the RS232.
5. the system as claimed in claim 1, it is characterised in that the test system also bag manipulator;
The manipulator is electrically connected with the capture card, for receiving position command and parsing execution, while feeds back manipulator shape State and positional information, are analyzed for control system processing.
6. the system as claimed in claim 1, it is characterised in that the control system is additionally operable to:Periodic backup operations software; And/or configuration file is encrypted setting;And/or carry out configuration file self-test.
A kind of 7. electrical automation test method, it is characterised in that including:
According to definite test function and test parameter, the first electricity of the slaving transformer output that control is electrically connected with capture card Pressure and frequency;
According to the first voltage and the frequency, the relay electrically connected with the capture card determines current sample to be tested, And the test equipment that the test sample to be tested uses;
The first voltage and the rate-adaptive pacemaker are completed, and control instruction, solution are received with the manipulator that the capture card electrically connects Analyse and perform and complete feeding, feeding, blanking, discharging, and carry out real time information with the test system and exchange;
The test equipment obtains every test parameter value of the sample to be tested when testing the sample to be tested, and Every test parameter value is sent to control system.
8. the method for claim 7, it is characterised in that the test equipment is when testing the sample to be tested, also Including:
The power meter electrically connected with the capture card, obtain second voltage that the sample to be tested exports during the test and Current data, and the second voltage and the current data are sent to the control system.
9. the method for claim 7, it is characterised in that the slaving transformer, which further includes, is arranged on the servo transformation Servomotor inside device;
The test function and test parameter that the basis determines, the electricity for the slaving transformer output that control is electrically connected with capture card Pressure and frequency, including:
The frequency of the pulse signal produced by the capture card, directional information and the pulse signal, determines the servo electricity The rotation fixed angles of machine, direction of rotation and rotary speed;
By the rotation fixed angles of the servomotor, direction of rotation and rotary speed, determine the servomotor acceleration, Range ability and the first voltage and frequency of slaving transformer output.
10. the method for claim 7, it is characterised in that the manipulator has prepared in the first voltage and frequency Cheng Hou, crawl test sample is carried out by automatic, completes feeding and automatic charging action, while control described in manipulator state sending value System processed.After the completion of test, manipulator completes blanking and discharging action according to position command.
11. the method for claim 7, it is characterised in that the test equipment is obtained when testing the sample to be tested Every test parameter value of the sample to be tested is taken, and every test parameter value is sent to control system, including:
The test equipment receives HardSendAll () function that the control system is sent, and obtains the sample to be tested Every test parameter value, and every test parameter value is sent to the control system.
12. the method for claim 7, it is characterised in that the test equipment is obtained when testing the sample to be tested Every test parameter value of the sample to be tested is taken, and every test parameter value is sent to control system, also Including:
The order that restPoses that the test equipment is sent according to the control system, carries out original state recovery;And/or
The order that restPoses that the capture card is sent according to the control system, the input that the capture card is included are defeated Go out a little, RS232 control serial ports, axis servomotor control mouth and internal register carry out original state recovery.
CN201711081338.4A 2017-11-03 2017-11-03 A kind of electrical automation tests system and method Pending CN108008213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711081338.4A CN108008213A (en) 2017-11-03 2017-11-03 A kind of electrical automation tests system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711081338.4A CN108008213A (en) 2017-11-03 2017-11-03 A kind of electrical automation tests system and method

Publications (1)

Publication Number Publication Date
CN108008213A true CN108008213A (en) 2018-05-08

Family

ID=62051342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711081338.4A Pending CN108008213A (en) 2017-11-03 2017-11-03 A kind of electrical automation tests system and method

Country Status (1)

Country Link
CN (1) CN108008213A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158300A (en) * 2019-11-20 2020-05-15 福建星云电子股份有限公司 Data acquisition and reduction method
CN112748718A (en) * 2020-12-15 2021-05-04 北京无线电测量研究所 Servo control system debugging table and debugging method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5117189A (en) * 1990-02-21 1992-05-26 Eaton Corporation Automatic testing apparatus for electrical switches
CN201237623Y (en) * 2008-07-30 2009-05-13 珠海市运泰利自动化设备有限公司 Automatic testing equipment of electronic component
CN102636704A (en) * 2012-03-05 2012-08-15 深圳市英威腾电气股份有限公司 Testing method, device and system for electronic product
CN103487683A (en) * 2013-09-13 2014-01-01 深圳市九洲电器有限公司 Product testing circuit and product testing device
CN104849576A (en) * 2014-02-13 2015-08-19 广东小天才科技有限公司 Automatic test system and test method
CN206400028U (en) * 2017-01-16 2017-08-11 广州朗豪自动化科技有限公司 A kind of controller of automatic test electrical parameter
CN206402110U (en) * 2017-01-16 2017-08-11 广州朗豪自动化科技有限公司 A kind of Full automatic servo transformer
CN107561391A (en) * 2017-09-28 2018-01-09 深圳贝仕达克技术股份有限公司 The test system and method for a kind of electronic product

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5117189A (en) * 1990-02-21 1992-05-26 Eaton Corporation Automatic testing apparatus for electrical switches
CN201237623Y (en) * 2008-07-30 2009-05-13 珠海市运泰利自动化设备有限公司 Automatic testing equipment of electronic component
CN102636704A (en) * 2012-03-05 2012-08-15 深圳市英威腾电气股份有限公司 Testing method, device and system for electronic product
CN103487683A (en) * 2013-09-13 2014-01-01 深圳市九洲电器有限公司 Product testing circuit and product testing device
CN104849576A (en) * 2014-02-13 2015-08-19 广东小天才科技有限公司 Automatic test system and test method
CN206400028U (en) * 2017-01-16 2017-08-11 广州朗豪自动化科技有限公司 A kind of controller of automatic test electrical parameter
CN206402110U (en) * 2017-01-16 2017-08-11 广州朗豪自动化科技有限公司 A kind of Full automatic servo transformer
CN107561391A (en) * 2017-09-28 2018-01-09 深圳贝仕达克技术股份有限公司 The test system and method for a kind of electronic product

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158300A (en) * 2019-11-20 2020-05-15 福建星云电子股份有限公司 Data acquisition and reduction method
CN112748718A (en) * 2020-12-15 2021-05-04 北京无线电测量研究所 Servo control system debugging table and debugging method
CN112748718B (en) * 2020-12-15 2022-08-05 北京无线电测量研究所 Servo control system debugging table and debugging method

Similar Documents

Publication Publication Date Title
CN107885097B (en) Nuclear power station simulator control system DCS transformation closed loop verification system and method
CN109324601B (en) Test platform of robot controller or control system based on hardware-in-the-loop
CN104898633B (en) A kind of non-security grade DCS configurable test method and system of nuclear power plant
CN104598373B (en) A kind of embedded software test method of multi-technical fusion
CN105321585B (en) For debugging the semi-matter simulating system and method for nuclear power unit control system
CN104407519B (en) Semi-physical simulation system of AC-DC-AC metallurgy rolling mill transmission system
CN109026558A (en) The simulation test platform and method of wind power generating set
CN109239481A (en) Portable electric steering engine automated test device and method
CN108008213A (en) A kind of electrical automation tests system and method
CN106094750A (en) The simulative debugging method of dcs
CN112581850A (en) Virtual debugging system of multifunctional production line and equipment
CN115026820A (en) Control system and control method for man-machine cooperation assembly robot
CN111381514A (en) Robot testing system and method based on semi-physical simulation technology
CN107798945A (en) A kind of teaching method based on graphical digital programmable relay protection experimental
CN201041705Y (en) Blast furnace slot distribution and feeding simulation device
CN106253780B (en) Brshless DC motor on-line debugging system
CN106527342A (en) Multi-PLC function control card running based on PC and use method thereof
CN100415124C (en) Self control designed teaching experiment platform for tobacco industry
CN207232283U (en) A kind of Auto-Test System of aircraft flap/slat electronic unit component
CN109001986A (en) A kind of networking flexible mechanical arm control emulation platform and its working method
CN103761895A (en) Current transformer simulation examination system and working method
CN114228083A (en) Industrial control system and injection molding machine
CN103761913A (en) Current transformer simulation training system and working method
CN207557362U (en) A kind of full production cycle automatic test device of distribution terminal
CN111650927A (en) Rapid demonstration and verification device and method for xPC-based turntable control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180508

RJ01 Rejection of invention patent application after publication