Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 24 of 47

Bulletin 2803 VIM Vision Input Module User Manual: 11 - Using the X / Y Float Gages, pages 205 to 212

Pages 205 to 212 of 404, from Bulletin 2803 VIM Vision Input Module User Manual

The original document is the PDF (26 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 2803-VIM2

Page 205

Chapter

Chapter Objectives

II

Using the X1 Y Float Gages

The objective of this chapter is to explain the concepts of shift compensation and shift registration, and show how to set up X/Y float gages in order to use the VIM2 module’s shift compensation and shift registration capabilities. Note: Before reading this chapter, be sure you have read and understand at least Chapters 6,9, and 10.

Some Questions and Answers

This section introduces the topic of X/Y flout gages by posing some questions about float gages, and answering them. What is a float gage? A float gage is a special case of line gage (see Chapter 9 for more about line gages). Like other line gages, float gages detect position of edges or centers of “blobs” (see Chapter 3 for “blob” definition), or widths of blobs. The flout gages (gages “X” and “Y”), however, have a special purpose - they are specifically used for setting up the VIM2 module’s X/Y shift compensation capability. What is “X/Y shift compensation?” X/Y shift compensation is a function of the VIM2 module which adjusts the line gage and window positions to compensate for horizontal (X) and/or vertical (Y) shifts in workpiece position from inspection to inspection. Without this shift compensation, if the workpiece is not in precisely the same position from inspection to inspection, the measurement of line gages and windows is affected; this can cause mistaken reject or accept decisions. How does X/Y shift compensation work? During setup, line gages and/or windows are placed in specific positions based on the nominal (setup) workpiece position in the threshold image(s). During setup, float gages can be placed as well, also based on the nominal workpiece position. Then if, during an inspection, the workpiece position varies from the setup position, the float gages measure the amount and direction of variance. X/Y shift compensation is then applied - line gages an&or windows are shifted in exactly the same amount and direction as the workpiece. In some cases of line gage upper functions (i.e., any functions which locate a blob edge or blob center), the acceptance range limits are adjusted also. The result is that the line gage and window uccep t / reject decisions are not affected by the shift in workpiece position. In the cases of windows (which count pixels), and line gage functions which measure width, or count pixels, blobs, or edges, the measurement results are relatively unaffected as well.

Page 206

Using the X 1 Y float Gages

Chapter II

71-2

Some Questt;.s;g: (con timed)

Which vision tools are affected by shift compensation? Any line gage or window you configure can be set to use shift compensation; you enable or disable shift compensation for each line gage or window using the Anchor/Float icon (see Chapters 9 and 10 for line gage and window information). You must, of course, also set up at least one float gage in order to use shift compensation. What kinds of float gages are there? There are 2 float gages - “X” and “Y .” Use float gage X for horizontaZ shift compensation; use Y for vertical shift compensation. You can use either or both float gages in your configuration, depending on your application requirements. When do you need to use float gages? Use float gages whenever the position of the workpiece may vary from inspection to inspection. When do you set up a float gage? As with any line gage, set up a float gage after you have: l Set up the workstage, and have a workpiece in the nominal or ideal position (see Chapter 4), so that the workpiece features to be inspected are shown clearly in the field of view (and on the monitor). l Set the threshold image(s) to enhance the particular feature(s) you are going to inspect (see Chapter 8).

Shift Compensation

This section discusses the concept of shift compensation, beginning with horizontal shift compensation (this section assumes the VIM2 module and target pattern are set up as described in Chapter 6). To illustrate the horizontal shift compensation, suppose that the black rectangle in threshold image 2 is a workpiece. Suppose that you place window 2 so it covers the white square (see Chapter 10 for window information).

Window 2 placed to cover the white square @on threshold image 2 (example image)

Page 207

Using the X f Y Float

Chapter

Gages

II

11-3

Then you set up window 2 to count white pixels, in order to measure the size of the white square.

Shift Compensation (continued)

Now suppose that during your inspection process, the workpiece position varies horizontally from inspection to inspection - sometimes the workpiece is positioned a little right of the initial setup position, or a little left of it. Let’s look at one case where, during an inspection, the workpiece is detected left of the setup position, as shown below:

Actual workpiece during an inspection of the setup position

Setup is left position position m Inspected position

Amount shift

Amount of to left shift of to left

A

L

Without shift compensation (see diagram below), window 2 inspects the same area over which it was placed during setup, no matter what the actual position of the workpiece is.

-

Without shift compensation, window stays in setup position

Window

2 counts both these white pixels

2 in areas

As shown above, the workpiece position during an inspection is not the same as the setup position. During the inspection, window 2 covers only part of the white square, and covers a white area outside the black rectangle; this results in an inaccurate measurement of the white square. Now suppose that you do use shift compensation. To do this, you set up horizontal float gage X, using it to measure the horizontal position shift.

Page 208

Using the Xl Y Float Gages

Chapter II

17-4

Shift Compensation (continued)

When using horizontal float gage X to measure horizontal position shift, if the workpiece position shifts relative to the setup position, the window is shifted also - in the same amount and direction as the workpiece: Window 2 , setup position With horizontal shift compensation,window 2 is shifted left to cover the white square on threshold image 2

~ Shift compensated position

The above example illustrates a case requiring horizontal shift compensation. Vertical shift compensation can also be applied, using float gage Y, for vertical position shifts:

With vertical shift compensation, window 2 is shifted upward to cover the white square on threshold image 2

-

Shift compensated window position

-

Window2 setup position and vertical compensation can both be applied to compensate for a combination of horizorztal and vertical shift:

Horizontal

.:,:,... ::::::? : :.~ji:jj::;,::ij:~.~i.j:.~.;j:

I With both horizontaland vertical shift compensation,window 2 is shifted both left and upward to cover the white square on threshold image 2

Workpiece position inspected

Workpiece position setup

Page 209

Chapter

HOw to Use the F/oat

Gages

11

Using the Xl Y Float Gages 7 7-5

Once you have determined that your application requires horizontaZ and/or vertical shift compensation, you will need to configure the appropriate float gage(s): Configure float gage X (which is always horizontal) to measure the horizontal position shift, along the gage’s length, of a feature in the assigned threshold image.

l

Float gage X displayed on threshold image 2 (example image)

..:...

.:.:

: ::.

.::.

‘,

./.:

.,.:... ‘.‘.....1

:. ., $1. ....... : .. :

.:.:.

:

.:. ‘.

: : .. :

.+i i,

.j.: .p$.:‘.

I

;I’: j : .:: .:.,.:. :

I

:... : .j: .I ._ :.::::.:. -r :‘L, ~~~~

Float gage X placed over left edge of black rectangle

’ to gage amount of shift

., :.

:

I :I II

.I i : :..: j.:: .:./.: ..:;.:..:::: :.: .... . :. .:.j : j j 3.:.:. ..:: : :,. : j.: ::,;,:i:i:;:‘::,i: i j,: : : .. :. : : : .. ..:1::...:::,:.;..:..:.:. .: : :: j,:::‘:: :..,.;:,’ : .,.:j .:: :..5:::. . .:: ,.:.::. ::.:.::7 jjj;.:j: ,:.:,.... :.:.:.. ,.,....,. .,.,...:::;:.:j: : .: .. .. ....../ .,:.:..:.. . ... : ..: ,:.I :.i, iii,.: .‘:,,;: ..:.::. .,::..

l

Configure float gage Y (which is always vertical) to measure the uerticd position shift, along the gage’s length, of a feature in the assigned threshold image.

l

Use both float gages X and Y, if necessary, to measure both the horizontal shift and the vertical shift.

Float gage Y displayed threshold image 2 (example image)

Float gage Y placed over top edgle of black rectangle to gage amount of shift

Page 210

Using the X I Y Float Gages

Chapter 11

71-6

How a Float Gage Works

Suppose that the black rectangle in threshold image 2 (shown below) represents a workpiece. Suppose that during setup you have placed a horizontal line gage over the white square. You have configured the line gage with shift compensation enabled. And you have placed float gage X over the left edge of black rectangle in the threshold image, as shown.

Float gage X, and one othcer line (gage, displayed on threshold image 2 (example image)

F .::< I,?;;,$ ,:., jj :,:b:j.:.:,>;;! _,.: :,::,: . ‘j ,: ,::j:

.;.

ji;

~:.“.:i:::i,:::i.:~::,,-:: : .. :. ::;:‘:“.

:.: : j: .:.

i .,

‘.: i;;:

.:.:ii. :,,

::,~,:,j:j.~~:..:~:.: :

...

:,.I

;.,i::i., .j,:

.. . .:

::

.:

‘.

Float gage X placed over left edige of black rectangle to gage amount of shift

While setting up float gage X in order to locate the edge of the black rectangle, you have: l

Selected the first Gage Function icon, the upper function of which locates the left edge of the largest blob.

l

Set the Color to black, to locate the left edge of the largest black blob.

During setup of float gage X, you pick the Acceptance Range (“Hi/Lo”) icon to read the current measurement of the upper function; this turns out to be “32,” which is the pixel location of the left edge of the black rectangle. When you exit the Acceptance Range menu, the “nominal” result for the float gage X upper function is set to 32.

Pixel location = 32

Page 211

Using the X I Y Float Gages

Chapter II

How a Float Gage Works (continued)

11-7

Suppose that later, with the VIM2 performing a particular inspection, the workpiece position is shifted - the location of the left edge is “42.” That means that the workpiece has shifted 10 pixels to the right. Left edge of largest black blob, Pixel location = 42

Any line gages or windows which you have configured with shift compensation enabZed, will be shifted 10 pixels to the right also, for this particular inspection. The line gages and/or windows then proceed to measure as usual.

/

The line gage is shifted to the right (IO pixels)

Float gage X detects amount of shift (10 pixels)

Acceptance Range Shift: For some line gage functions, the acceptance range is udjmted according to the amount and direction of shift detected. This is true for any line gage function which detects the locution of a blob edge or center (i.e., the upper function for the first seven line gage function icons shown on page 9-16; see pages 9-15 to 9-24 for more line gage function information). For example, let’s say the line gage shown above is used to detect the center of the white square, with the acceptance range lower limit set to 160, and the upper limit to 180. With a detected shift to the right of 10 pixels, the lower limit is changed, for this one inspection, from 160 to 170, and the upper limit from 180 to 190.

Page 212

Chapter 11-8

How to Set Up the Float Gages

II

Using the Xl Y Float Gages

In order to set up float gages effectively: Select a threshold image for each float gage which has at least one straight edge to locate (for float gage X, this would be a uertical edge, for float gage Y, horizontal).

l

Place vertical float gage Y across horizontal edge

Threshold image 2 (example image) Horizontal edge Place hol+ontal float gage X across vertical edge

Vertical edge

Position the float gage, and select the gage function, to locate the feature of your choice. The chosen feature must be in a position fur enough away from the screen’s boundaries to allow the gage to overlap over each side of the feature; in this way the gage can accomodate the workpiece shifting in two directions.

l

Float gage X displayed on threshold image 2 (example image)

Maximum leftand right shiftallowed

“‘3’. .:...: j ; and compensated for by float gage X.

j;

/

Float gage X placed over left edge of black rectangle

Note: In setting the fZoat gage function, only the first seven of the function icons (see listing on page 9-16) are available for the float gage. Also, the shift compensation is based on the float gage’s upper function only. l

Set the acceptance range for the float gage to limit the amount of workpiece shift so that no line gage or window is shifted partially or entirely off of the screen (this would cause the inspection to fail).