The text of a manual · part 20 of 47
Bulletin 2803 VIM Vision Input Module User Manual: 9 - Using Line Gages, pages 168 to 176
Pages 168 to 176 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 168
Chapter 9-28
9
Using Line Gages
Setting the Acce,ptance Range (continued) Acceptance Range Menu
DeI+I ff
Increase Limit /con
Dec,rease
Limiit /con
1 I-q-pK 4 lncremen t Select/con
Your Action
Comments
Pick the Increment Select icon to select the increment
Picking the Increment Select icon toggles the icon between 1 and 10.
Increase or decrease limit.
To increase the selected limit by the amount shown on the Increment Select icon, pick the Increase Limit icon. You can increase the limit to the maximum allowed by the line gage (this depends on the function, size of gage, and position of gage). To decrease the selected limit by the amount shown on the Increment Select icon, pick the Decrease Limit icon. You can decrease the limit to a value of 0. Note: The VIM2 does not allow you to set the upper limit to a value lower than the lower limit, or to set the lower limit to a value higher than the upper limit.
When finished, pick the OK icon to display the Line Gage menu.
After you have set both limits as desired, return to the Line Gage menu.
Page 169
Chapter
Setting the Acceptance Range (continued)
9
Using Line Gages 9-29
Example: Setting Acceptance Range Let’s suppose that the target pattern represents a part. Suppose you want to inspect the width of the light colored square on the part (shown as a white square within a black rectangle in threshold image 2, as illustrated below).
Line gage 1 displayed on thlreshold image 2 (example image)
Comments
Your Action Set up linegage 1 using the Line Gage menu icons.
To gage the size of the white square, set up line gage 1 (using the Line Gage menu icons) as follows: l
Select horizontal orientation.
l
Select threshold image 2.
l
Place the line gage to cross and overlap the white square.
l
Set Gage Function icon to the first icon (in order to use the lower function - width oflargest blob).
l
Set Color icon to white. Width of largest white blob
First Icon lower function m-m # Horizontal line gage 1 placed over the white square on threshold image 2
Page 170
Chapter 9-30
Setting the Acceptance Range
9.
Using line Gages
Example:
Setting Acceptance
Range (continued)
(continued)
Your Action Access the Acceptance Range menu.
Comments With line gage 1 in place and configured as described on the previous page, pick the Acceptance Range icon.
I
- Acceptance Range Icon
Lower function selected Acceptance Range Menu
Select the lower function
With the Acceptance Range menu displayed, pick the Function Select icon so the lower function icon is displayed; that way, the current measured result (the middle number of the three numbers) for the lower function is given.
0 bserue the measured result and determine the limits.
Suppose the lower function result is 70 - that is, the width of the square, as measured by the line gage, is 70 pixels across. Ideal pixel count = 70 f
1 IIIcnlllII~IIl,I~III-
\
I
Horizontal line gage 1 placed over the white squareon threshold image 2
Suppose the value of “70” is for the ideal part, and that you can accept any part within f lo%, or 70 pixels * 7 pixels. You then set the upper limit to 77, and the lower limit to 63. Select and set the upper limit to 77.
Pick the upper limit. Then pick the Increase Limit or Decrease Limit icons to change the limit to 77.
Select and set the lower limit to 63.
Pick the lower limit. Then pick the Increase Limit or Decrease Limit icons as necessary to change the limit to 63.
Page 171
Chapter
Se tthg the Acceptance Range (continued)
9
Using Line Gages 9-37
Example: Setting Acceptance Range (continued) Remember that a gage performs two functions. You have set the acceptance range limits for one function (the lower functiolz); you must now set the range for the upper function (which locates the left edge of the largest blob). Suppose that, in this case, you do not need to use the upper function result. Then, you should set the limits of the unused to extreme values, so that the line gage does not fail due to the upper function result.
Function select icon
Acceptance Range Menu
Lower limit 8
Your Action
Upper Iimit
Comments
Select the upper function.
Pick the Function Select icon on the Acceptance Range menu so the upper function is indicated. This allows you to set the upper function limits.
Select and set the lower limit.
Pick the lower limit. With the lower limit selected, pick and hold the Decrease Limit icon until the icon flashes; this indicates the lowest possible setting has been reached.
Select and set the upper limit.
Pick the upper limit. With the upper limit selected, then pick and hold the Increase Limit icon until the icon flashes; this indicates the highest possible setting has been reached.
With the upper function acceptance range set to as wide a range as possible, the line gage upper function will not fail unless the line gage fails to detect even a a single white pixel anywhere on the line gage; in that case, however, the lower gage function would have failed anyway.
Page 172
Chapter 9-32
Setting the Acceptance Range (continued)
9
Using Line Gages
Using the Learn Mode and other Run Mode Functions As mentioned previously in this chapter, the VIM2 module features a variation of its run mode called the learn mode. In learn mode, the VIM2 module accumulates statistics for each enabled inspection tool, and the brightness probe, based on a number of trial inspections. Use of the learn mode can be helpful in determining the optimal acceptance range for inspection tools and probe. The VIM2 module also features a number of run mode arm options, which can be helpful in refining your configuration. See Chapter 13 for more information regarding use of the learn mode and other run mode options.
Accessing Statistics
Your Action
When you run the VIM2 module in learn mode, you accumulate statistics for all enabled visions tools and probes. To observe the collected statistics for a line gage function, first access the Acceptance Range menu on the Line Gage menu, as described below: Comments
Pick the Acceptance Range icon on the Line Gage menu.
Functi0.n select icon with lower function selected
Select the upper/lower function
Pick the current measured result.
I v
’
Acceptance Range icon
Acceptance Range Menu
With the Acceptance Range menu displayed, pick the Function Select icon so the desired function icon (upper or Zozuer)is displayed. On the right side of the Acceptance Range menu are three numbers, separated by “< =” signs. The middle number is the current measured resuEt of the selected line gage function. When you pick this number, the line gage disappears, and the statistics are displayed (see diagram on the next page).
Page 173
Chapter
Accessing Statistics (continued)
9
Using line Gages 9-33
Note: The results of failed inspections for the line gage functions are not included in the lowest, highest, and average values. These statistics are based on passing inspections only. Therefore, for preliminary trial runs, you may want to set the acceptance range limits to extreme limits initially, for the purpose of collecting statistics for all inspections. Total of triggers processed
Number of failures for line gage function Lowest result collected
Highest result collected
Average of ail results collected
Your Action Pick the current measured result again to remove the statistics display.
Comments Picking the current measured result again removes the statistics display and redisplays the line gage.
Page 174
Chapter 9-34
Using the Line Gage Filter
9
Using Line Gages
The VIM2 line gages have a ‘Slter” capability which you can activate using the Gage Filter icon on the Line Gage menu.
Gage Filter /con 1
The line gage filter can help reduce or eliminate the effect of “noise” in the threshold images used by the line gages. Noise may appear in the image as “graininess” near the edges of features in the image (this can happen especially under “lowcontrast” conditions, where there is not a great difference in the background brightness and the brightness of the feature of interest). Line gage filtering can be useful if noise appears in the image, or if the measured results of the line gage seem to be inconsistent, unsteady, or unexpected. What is “noise?” In some applications, there may be difficulty in establishing or maintaining an ideal, “clean” threshold image for use during inspection. That is, “noise” occurs in the image random black pixels appear in white areas in the image, or random white pixels appear in black areas. These random pixels do not correspond to feature characteristics, and create variations which can be interpreted by the VIM2 as blobs, or breaks between blobs, where none should exist. Line Gage detects pixel “noise”
Noise (random pixels of opposite color)
Line Gage shown on noisy threshold image
When noise in the image is crossed by a line gage, the line gage, without filtering, recognizes the noise as additional blobs or edges, which affects size or location measurement results, or affects the pixel counts.
Page 175
Chapter
Using the Line Gage filter (continued)
Using Line Gages
9
9-35
Note: Before using line gage filtering, eliminate noise in the image, as much as possible, by making adjustments in the level of threshold in the threshold image (see Chapter 8), or by making adjustments in the staging and lighting (see Chapter 4). What does the line gage filtering do? The line gage filtering allows the line gage to ignore or “filter” the noise. You can set the filtering to operate in one of two ways - 1 -pixel filtering, or Z-pixel filtering. Note: There is no change in appearance of the line gage or the threshold image when you use line gage filtering. You select the type of filtering by picking the Gage Filter icon. When picked, the icon cycles through three settings Filtering Off, 1 -p ixel filtering, and 2 -pixel filtering:
I-pixel
Filtering off
Filtering
Z-pixel Filtering
1 - pixel filtering: The line gage ignores the occurrence of one white pixel within an otherwise all-black blob (or, one black pixel within an otherwise all-white blob).
Lilne Gage detecting without filtering noise,
Lime Gage filters out “l-pixel” noise
2 - pixel filtering: The line gage ignores the occurrence of one or two consecutive white pixels within a black blob (or, one or two black pixels within an otherwise all white blob). Line Gage detecting without filtering noise,
Line Gage filters out both “l-pixel” and “2-pixel” noise
Page 176
Chapter 9-36
Using the
Line Gage Filter (con timed)
9
Using Line Gages
How do you determine whether to use line gage filtering, and how much filtering to use? It is a good practice to try using both l- and 2-pixel filtering with any line gage, and use the filtering which yields the best results. As a general rule, after trial and observation, use the least amount of filtering which yields good results; filtering can increase VIM2 module processing time per inspection.