3 axes are video the development of the measuring instrument and development

  • Time:
  • Click:73
  • source:PURELIFE CNC Machining
One, the over all dimension of the dial of choice   appearance that image collects card is 220mm × 82mm, the requirement measures precision not under 0.

13mm. Detect integratedly precision, detect speed and cost demand, the system chooses NI 1394 image to collect card, cooperate camera of color of SONY 1394 CCD (resolution is 1024 × 768) , the × of FOV=118mm of visual field limits of such visual systems 88.

5mm, resemble 1024=0 of ÷ of element precision Pixel Accuracy= 118.

1152mm/pixel, satisfy the dimension precision requirement that the system measures completely. 2, scanning area differentiates the limits of the dependency of feature of the dimension according to appearance dial, target and visual system FOV, differentiate appearance dial for left, medium, right 3 detect area. Add position of rest to share 4 positions. Camera moves on X/Z axis, dial of the appearance that be measured moves on Y axis, the motion of X/Y axis finishs the camera lens alignment to the target, the motion of Z axis finishs the focusing to the target. Detect in every the image that the position collects parts with the LED window among namely the coordinate origin that the center of AUTO LED, OFF LED, Defrost LED is this image. 3, I/O of Cript>cript> of the collection that total construction designs the system to complete picture with all of computer science department, processing, judgement, file and user use an interface, serve as at the same time go up a computer undertake controlling to PLC through stringing together a mouth; Will finish athletic control, I/O control with PLC system. The block diagram of all of computer science department is as follows: Go up the parameter setting of a link: Baud rate: 115200; 7 digit is occupied; Occasionally desired result; 2 stop. The systematic block diagram of PLC is as follows: 4, the image that image collects   NI to provide two kinds of standards collects Vi order, the user can call directly: 1. Odd frame image collects 1394-snap-acquire: Collect 1 frame image only every time namely. In this system full automatic in measuring a process, share 3 area that be measured, every area has pattern of 3 kinds of illume again, so altogether needs to run odd frame image 9 times to collect an order. 2. Successive picture collects 1394-grab-acquire: Collect image in real time continuously namely. In the module of athletic place setting of this system, need camera lens of real time observation and the relative position of the target that be measured and focusing situation, save each seats next, used successive picture to collect mode so. 5, image handles   as above, be in full automatic in measuring a process, collect 9 frame image in all, every image is corresponding an image handles an order, will achieve pair of target traits measure and judge. Move is as follows: 1. Buffer of open up image is in image processing, need makes shift for many times to image, because this wants start,many images buffer stores image data. This systematic the Communist Party of China installs 100 image buffer, namely Image Buffer0~buffer99, among them Buffer0 is a system buffer of real time image; Buffer1~buffer51 stores layer of graph of layer of graph of layer of graph of layer of the chromatic original intent of 9 frame image, Intensity graph, Red graph layer, Green, Blue, Mask, Overlay pursues respectively the layer regard historical picture as data, can mix measure result data to be illuminated relatively; The others is temporarily image buffer, to avoid to produce conflict with historical picture buffer, begin to be used downward from Buffer99. This system used 12 only temporarily Buffer, namely Buffer99~ Buffer88, buffer52~buffer87 was not used. 2. Fixed position origin builds coordinate department to choose the feature that change does not produce on image, use Match Pattern or Detect Object will locate origin builds coordinate department. 3 detect area parts with the LED window among namely the coordinate origin that the center of AUTO LED, OFF LED, Defrost LED is this image. 3. Basis of definition ROI area is measured the figure with different goal, can use different ROI model, include form of circle, annular, sector, rectangular, torsion coming back, aleatoric polygon to wait. All ROI area is reference point with coordinate origin. 4.

Measure the Intensity Plane that carries draw-out color image, Red Plane, Green Plane, Blue Plan (the image that all is 8 deepness) , measure mode of design of carve of R/G/B of heft of Intensity of light intensity heft, color, radium to match coordinate of mark, position to wait respectively to area of each target ROI. Among them the limits of light intensity Intensity/R/G/B is 0~255, in all 256 ash rank. Design mode matchs fractional full marks to be 1000 minutes, notch size shows target and standard model match rate. To 3 groups of character besides do mode to match measure still did OCR character to identify, need to identify an AUTO, ECON, OFF respectively namely. Positional coordinate needs to undertake coordinate fastens commutation. To an image, acquiescent coordinate origin is located in the top left corner of image, metrical direct position data is opposite at this origin, be in with us measure 2.

The origin position that defines in is different, coordinate fastens direction to also differ. Reference lays a plan: The coordinate after commutation still is an unit in order to resemble element, need is multiplied in order to resemble unit of translate into Mm of element precision Pixel Accuracy, such ability examine to the product significant. 5. As a result output interface measures a result to include image and data, put in container of a Table. The first Page of Table is used deposit image. Image is container with 2 dimension group, cent is 9 5, deposit 45 image, include 9 collection image and layer of draw-out 36 heft graph. The 2~11 of Table in all 10 Page are used deposit measure data, express case form output with 10 pieces respectively, respectively the measurement of the image that correspondence collects 9 times the overall situation of data and main feature is compared. There is a Boer quantity to show on every Page accuse, use at indicating the integrated judgement result of current page. Give out only under   of graph 2 Middle Area Function LED Mode Image mid detect image and data, consult graph 2- pursues please   of   of 6 Middle Area Day Mode Measure Data of graph of 5 Middle Area Night Mode Measure Data of graph of 4 Middle Area Night Mode Image of graph of 7 graphs 3 Middle Area Function Mode Measure Da 6. The task is sequential optimize a design to be collected in two image of photograph adjacent between need finishs a few jobs, include picture processing, keep global variable, picture output, measure motion of switch of result output, illuminant, position to wait, the executive time of these tasks is different. Optimize the weaves order can increase an order significantly executive speed of these tasks. Before collecting image, ask all campaign are quiet, illuminant stabilizes glow. Send motion to spark to PLC by the computer signal and illuminant switch touch signalled instruction to finish time measure level with 10ms amount to, and output of image processing, image, measuring the result output, finishing time that keeps global variable measure level with 100ms amount to. Whether does motion finish the mark in can taking PLC through reading will decide, but whether does illuminant stabilize glow, can count the defer time after electrify only. Our experience is the delay time that LED illuminant gives off light to need 500ms at least to stability from electrify. Exercise of 4 illuminant switch, positions needs 9 times in the test of a product. If use the method of delay time, will reduce greatly so detect speed. So we are not handle to this image immediately after image is collected, it is first however the next time image is collected do illuminant switch or motion to spark, be opposite again next image processing that collection image makes opposite take time, be equivalent to was illuminant switch or motion to spark delay time processing, but do not take up additional time pays expenses again. Referenced and the following flow chart: 7.

Of Overlay delivering   Overlay is overlay a on image special graph layer, be being used at showing ROI defines limits, coordinate is definition and the information that partial image handles. 3 image below illuminant illume differ in what same position collects in this system, having identical coordinate is with precision resembling element, need not do same processing every time, the Overlay that needs to get on the first image only is delivered other two image can. The Overlay that uses us to write delivers Vi, the Overlay of OK and draw-out aleatoric Image Buffer delivers designation Image Buffer in. Referenced graph 2, graph 4, graph 6, coordinate department of the position indicates in the center of the origin coordinate position inside the pane of red of top left corner on every image and the literal information of precision resembling element and image even if deliver through this kind of method. 8. The assorted application of ROI and Mask uses ROI to define be interested in area, it is OK to use Mask the area that screen drops disinclination to already perhaps had been measured, can make ROI and Mask photograph union a few measure complexly become simple and efficient. Graph 6 in outside needing those who measure a product, appear to whether have cut, through the combination of ROI and Mask, need two paces to be able to be finished only. Referenced graph 8, graph 9. Work in coordination through all of computer science department and PLC system, each doing his own job, produce respective specialty adequately, make systematic function is able to optimize.   of   of 9 Middle Area Day Mode Mask2 of graph of graph 8 Middle Area Day Mode Mask1 9. Global feature is quite in subprogram of 9 image processing, the part measures data to need to undertake overall situation is compared, already judged the consistency of the glow brightness that decides product whole area, because this needs to handle subprogram lieutenant general in every image,the data of the care writes global variable, be opposite in the main program finally these global variable undertake handling, ask referenced figure 10.   of graph 10 Global Compare Parameters 6, file I/O   includes noncombatant duty setting, read take, measure data storage, data is more, because this uses form file means, classify data the form with 2 dimension group to access. When be being judged to measuring data in image processing program, need to read only take tolerancepublic errand to install relevant Sub-array can. Time character is thrust in the file name that measures data storage (arrive accurately second) , repeat in order to avoid file name. 7, go up a link and the communication that string together a mouth undertakes going up a link communication when, the order is used between the computer and PLC (Command) and answer (Response) undertakes send and be receptioned. A group of data call communication missive one frame, the attributive that sends a frame is called deliver power. Go up a computer hold deliver power, after the command is sent, answer return automatically by PLC. Because the response of PLC needs time, because this is in twice between the command,must insert delay time. The form of frame is as follows: @ | Machine date | Head code | Text | FCS | Terminal FCS calls frame to check alignment, the data that goes to the beginning of one frame before FCS has logistic other or the ASCII code that 8 data become 2 character, basically use at checking data mistake. The computation of FCS uses the program that develops with VB before the author, jussive is deferent the Instrument I/O Assistant in use LabVIEW is direct to string together a mouth to send, very simple. Instrument I/O Assistant offers the order of 3 kinds of types, include Write, query And Parse, read And Parse. 8, open sex and expansibility this system is to be aimed at Pasate and fast the vision of the lukewarm dial controlling apparatus of 2 kinds of model that vacate a car detects of development, but mature in the design of soft hardware the open sex to the system and expansibility, need to change only the positional setting of image processing subprogram and each area, can examine information of the image on any 2 dimension plane namely. Add the sensor of laser range finding that outfit contact measures a head or is not contact on Z axis at the same time, can measure in order to complete the measure of Z axis direction. The journey X of 3 axes, Y, Z is: 150mm of × of 200mm × 200mm.

There is 4 pulses output on the PLC of the choice, chosen optical camera lens can change continuously times, add on Zoom so install a pace to enter electric machinery and main transfer machinery, can change in order to come true enlarge detects diploidly, high to dimension precision and picture quality requirement area can use tall enlarge multiple to measure. At the same time the system still has 4 AD input and 2 DA output, provided necessary hardware resource to expand to more complex, more flexible system. 9, this project software predicts conclusion development time is 3 months, did not finish to two months actually, at present the machine moves very stable, efficient, get the client's recognition. The process designing environment that the image processing function with rich NI Vision and LabVIEW use easily neatly is one of main reasons that we score a success. The author basically uses VB and C++ to make program development before, it is use LabVIEW makes an item this the 2nd. Under photograph comparing, labVIEW graph changes programming language to make programmer need not pay close attention to code and function format overly, put main energy on functional design and structural design however, saved valuable development time thereby. In addition, the self-study of very convenient programmer increases the help function of LabVIEW and many example order. Anyhow, the platform of first selection development that we think LabVIEW measures a domain as the test is be worthy of. CNC Milling