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

The text of a manual · part 18 of 47

Bulletin 2803 VIM Vision Input Module User Manual: 9 - Using Line Gages, pages 150 to 158

Pages 150 to 158 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 150

Chapter

9

9-70

Additional

At this point, go on to the second set of line gage icons to continue. To do this, use the ETC icon.

Line Gage Icons Your Action

Pick the ETC icon to access the second set of Line Gage menu icons.

Using Line Gages

Comments When you pick the ETC icon, the second part of the line gage menu is displayed (Note: Pick EZ’C on the second menu to redisplay the first).

Pick ETC to switch menus Second set of icons

Placing the Line Gage

Placing the Einegage includes both moving the gage, and also adjusting the gage size (length) as necessary. This section discusses using the Gage Moue and Gage Size menus for the purpose of placing a line gage in position for an inspection. Generally speaking, you should place a gage so that the gage crosses the feature to be measured with some overlap on each side of the feature. To do this, you probably will need to both move the line gage (using the Gage Move menu), and adjust the line gage length (using the Gage Size menu).

Line gage moved and lengthened to cross entire black rectangle on threshold image 2 (example image)

Page 151

Chapter

9-77

The first two icons on the second Line Gage menu are the Gage Move icon (used to access the Gage Move menu), and the Gage Size icon (used to access the Gage Size menu).

Placing the fine Gage (continued)

/f

Gage Move km

Using Line Gages

9 k

Gage Size Icon

First let’s look at the Gage Move menu. Comments

Your Action

The Gage Move icon is the first icon on the second Line Gage menu (indicated by the four directional arrows).

Pick the Gage Move icon to access the Gage Move menu.

‘\

V

Gage Move Icon

Gage Move Menu

1+1+1 k k Left

Right y

GageSizelcon

The Gage Move menu includes four directional arrow icons. Notice the Gage Move menu also includes the Gage Size icon for immediate access to the Gage Size menu (the Gage Size Menu has a Gage Move icon as well). The VIM2 line gage menus allow you to conveniently toggle back and forth between the Gage Size and Gage Move menus while placing the line gage. To move the line gage into the desired position, pick the appropriate arrow icon(s), in one of two ways: l

Pick the arrow icon to move the line gage one pixel in the direction indicated by the icon.

l

Pick and hold the light pen down against the arrow icon to cause continuous movement in the indicated direction (ifyoupick a n arrow icon and it flashes, this indicates that the line gage is at a boundary - such as the screen edge -and cannot ‘be moved further in that direction).

Page 152

Chapter

9.

9- 72

Placing the Line Gage (continued)

Using Line Gages

Note: Depending on the brightness compensation mode you have selected, placement of the line gage may be restricted (see Chapter 7 for brightness compensation information). Briefly, if you have selected same frame compensation (mode Y”), you cannot place a line gage in the top 48 pixel rows (or about the top 20%) of the video image. Example Line Gage Move This demonstration places the line gage at the left edge of large black rectangle in threshold image 2. Hint: When placing a line gage, moue the gage first before adjusting the length. And, because the line gage length is adjusted from the right (or bottom) end, first move the gage so the left (top) end of the gage is in the desired position. Then adjust the length (using the Gage Size menu) so the right (bottom) end is in the desired position. Comments

Your Action Place the line gage across the left edge of the black rectangle of the target.

Pick the left arrow icon as necessary to move the line gage so the line gage crosses the left side of the black rectangle.

El Line gage moved left to left ealge of black rectangle on threshold image 2 (example image)

:.:i: ;z.;, .. :::j“.;::i-; : :.:..:..: . ... ... Original position of line gage

II:.:..:..-.:.::

... :;.:.?. .i $ $1

Page 153

Chapter

Placing the Line Gage (continued) Your Action Pick the Gage Size icon on the Gage Move menu.

9

Using Line Gages 9-13

Adjusting Gage Size - Use the Gage Size menu to shorten or lengthen the line gage. Comments If the Gage Moue menu is displayed, access the Gage Size menu by picking the Gage Size icon:

I

’

Gage Size icon Gage Size Menu

Lengthen Icon

Gage Move Icon Shorten Icon

Note: Remember you can also access the Gage Size from the Line Gage menu by picking the Gage Size icon on that menu. Also, notice the Gage Moue icon, which can be used for immediate access to the Gage Move menu. There are two ways of adjusting the line gage length using the Gage Size icons: Pick the appropriate Gage Size icon to lengthen or shorten the line gage one pixel at a time. Pick and hold the light pen down against the appropriate icon to cause continuous lengthening or shortening. If you pick Gage Size icon and it flashes, this indicates that the line gage is at its limit and cannot be further adjusted in the direction indicated by the selected icon. Note: When you change the length of a line gage, the left (top) end of th e 1ine gage remains fixed; only the position of the right (bottom) end of the line gage changes. Gage Size Limits You can lengthen a line gage until it meets either the bottom edge (for a vertical gage) or right edge (for a horizontal gage) of the screen. You can shorten a line gage to a single pixel in length.

Page 154

Chapter 9- 74

Placing the Line Gage (continued)

Horizontal

9

Using Line Gages

For a horizontal gage, pick the lengthen icon to lengthen to the right, or the shorten icon to shorten from the right:

Gage Gage extends to the right, left end remains fixed.

Lengthen

Shorten

Gage shortens from the right, left end remains fixed.

m

ISGI

For a verticaE gage, pick the lengthen icon to lengthen downward, or pick the shorten icon to shorten upward: Vertical Gage

El

Shorten

Gage shot-tens upward, top end remains fixed.

Example Size Adjustment Lengthen the line gage so it crosses the entire width of black rectangle on the target pattern in threshold image 2. Your Action Lengthen the line gage so it crosses the right edge of the bZack rectangle.

Comments Pick and hold the Lengthen icon as necessary to lengthen the line gage until it crosses the right edge of the black rectangle on the target pattern in threshold image 2:

Line gage lengthened to cross entire black rectangle on Threshoild Image 2 (exampIle image)

Make sure the line gage crosses over the white square.

After placing the line gage, check to see if the line gage also crosses over the white square. If not, pick the Gage Moue icon to access the Gage Move menu. Use the Up or Down icons to move the line gage so it crosses the white square. Note: After placing the line gage, return to the Line Gage Menu by picking the OK icon.

Page 155

Chapter

Setting the Line Gage function

9

Using Line Gages 9-15

Each of the line gages can perform several types of inspections. Setting the line gage function involves the use of these two icons:

Gage Function /con - Pick this icon to assign the function for the selected line gage.

\

H

Color Icon - Pick this icon to select the blob or pixel color-either black or white -for the line gage function.

Gage Function To set up the line gage function, (1) pick the Gage Function icon to select the function, then (2) pick the Color icon to set the color (black or white) for the selected function. Recall from Chapter 3 that a line gage can be set up to detect three basic types of image characteristics (see figure below): l

Blob - a group of consecutive pixels of the same color l

Edge -wherever a black and a white blob meet (that is, wherever a black pixel is next to a white pixel) * l

Pixel counts-either black or white pixels. Recall that each threshold image consists of black and white pixels. Horizontal Line Gage

Pixels

White Blob

Black Blob

*Note on edge location: The location given for the left (top) edge of a blob is the location of the first pixel of the blob that is, where the line gage first detects a transition in color, indicating the beginning of a blob (the uertical line gage scans from top to bottom; the horizontal line gage scans from left to right). The location given for the right (bottom) edge of a blob is the location of the last pixel of that blob, before a change in pixel color is detected.

Page 156

Chapter

9

9-16

Setting the Line Gage Function (continued)

Using Line Gages

You select the function by picking the Gage Function icon. The Gage Function icon, when picked repeatedly, cycles through the icons symbolizing the available functions. Each icon represents two functions (referred to as upper and lower functions); each enabled line gage always performs the two selected functions (upper and lower) simultaneously.

Your Action Pi& the Gage Function icon 9 times to cycle through all the available functions

Comment5 Picking the Gage Function icon changes the icon. The nine different icons and their associated functions are described throughout this section (Note: The last two icons below are not available for the X and Y float gages): Functions (Upper and Lower)

f B-m l-l#

B-m I 4z m-m r-l t;

(Upper)Locate left (top)* (Lower)

edge of largest blob Width of largest blob

Wpper) (Lower)

Locate right (bottom)* Width of largest blob

(Upper) (Lower)

Locate center of largest blob Width of largest blob edge of largest blob left (top) edge of leftmost (top)* blob f-- (Upper) Locate Width of leftmost (top)* blob (Lower) l-l4-b

2&l-l

Wpper) (Lower)

Locate center of leftmost (top)* blob Width of leftmost (top)* blob

(Upper) (Lower)

Locate right (bottom)* edge of rightmost (bottom)* Width of rightmost (bottom)* blob

(Upped (Lower)

Locate center of rightmost (bottom) Width of rightmost (bottom)* blob

(Upper) (Lower)

Count white pixels Count black pixels

(Upper) (Lower)

Count blobs Count edges blob blob

*Parentheses indicate function as used with a vertical line gage, as opposed to a horizontal line gage.

Page 157

Chapter

Setting the Line Gage Function (continued)

9

9-17

This section describes the different Gage Function icons and their associated functions, providing examples of most of the line gage functions. The remaining functions are similar to those illustrated by example, with only small differences in operation (these differences are explained). Comment5

Your Action Select the first icon (.shown below).

Using Line Gages

Pick the Gage Function icon as necessary until the first icon is displayed (Note: This icon is the default setting). Upper Function - Gives pixel location of the left edge (or, for vertical gages, the top edge) of the Zargest blob (black or white, as selected by Color icon) crossed by the line gage. The location given for the edge is actually the pixel column number for horizontaZ line gages, or pixel row number for vertical (see example on next page).

+ m-w

/’

-f4-b - .Q m-m

Lower Function - Gives the pixel count of the width of the Zargest blob (black or white, as selected by color icon) crossed by the line gage (see example on next page).

#

Select the appropriate Color.

Pick the Color icon to select the color (black or white).

Note on displaying line gage measurement results: When setting up a line gage, access the Acceptance Range menu to display the measurement results of the line gage functions. To do this, after placing the gage, selecting the line gage function, and selecting color, pick the Acceptance Range (“Hi/Lo”) icon:

I ’ Acceptance Range Icon

Pickthis icon to select upperor Iower function (lower function is shown)

f

Middle number is the current measured result of the selected function.

Note: For the upper function of the first seven gage function icons, if the line gage cannot locate a blob of the selected color (no pixels of the selected color are crossed by the line gage), a result value of 255 is listed, and the line gage fails.

Page 158

Chapter b-18

Setting the Line Gage Function

9

Using Line Gages

Here are examples of the upper and lower functions of the first Gage Function icon:

(continued) Example: UpperFunction of first icon -Assuming the Color icon is set to black, the horizontal line gage shown below gives the location of the left edge of the largest black blob, which corresponds in this case to the left edge of the black rectangle (Note: the example pixel location = 30; pick the Acceptance Range icon to see the actual measured value). Leftmost edge of largest black blob, 1 Pixel location = 30

Smaller black blob J

\\?ar gest black blob

\ horizontal line gage on threshold image 2

Example: Lower Function of first icon -Assuming the Color icon is set to white, the horizontal the gage shown below gives the width (in pixel units) of the largest white blob, which corresponds in this case to the width of the white square (Note: the example pixel count = 70; pick the Acceptance Range icon to see the actual measured value).

3L

CIIII

Width of largest white blob, Pixelcount = 70

-

Smaller white blob

4-b m-w

*

Largest white blob

Monitor Image shows a \ horizontal line gage on threshold image 2