The text of a manual · part 23 of 47
Bulletin 2803 VIM Vision Input Module User Manual: 10 - Using Windows, pages 197 to 204
Pages 197 to 204 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 197
Chapter
Train-thru-the-lens Mask Widow
IO
Using Windows 10-21
Example - Creating a train-thru-the-lens mask window
(continued)
(continued)
Your Action Make a tem:plate to match the desired window size, shape, and position.
Place the template in the camera field of view so that the threshold image indicates correct size and position.
Comment Design a template such that, when placed in the camera field of view, the area(s) to be inspected appear white in the selected threshold image, and the areas to be ignored appear black. In our case, the template might look like this:
With the template in the threshold image, adjust the distance between the camera and the template, and adjust the horizontal and vertical orientation of the template, so that the white areas of the template match the required inspection area of the window:
Template shown in threshold image matching required window size, shape, and position.
Pick the Windo’w Shape icon to select the train-thru-thelens mask option.
When you select the train-thru-the-lens mask icon, the VIM2 module takes a “snapshot” of the template; the white area shown in the threshold image is now the window.
Note: If the window does not come out right the first time, simply make any adjustments necessary, then cycle through the Window Shape icons and reselect the train-thru-the-lens mask icon.
Page 198
Chapter 7o-22
Train- thru-the-lens Mask Window (continued)
Selecting the Window Co/or
10
Using Windows
The train-thru-the-lens mask window cannot be resized or moved using the Window Moue or Window Size menu icons. The only way to alter the train-thru-the-lens mask window is to redo the set-up procedure previously described, after making the necessary changes to the template or to the positioning of the template.
The windows can perform one function; they count pixels of a specified color - either black or white. To specify the color, after selecting and placing the window, pick the Color icon on the second part of the Window menu:
\
Color /con- Pick this icon to select the pixel color-either black or white-for the window function.
Select the window color based on the color of the feature of interest you are inspecting - if you are inspecting a black feature on a white background, select black; if you are inspecting a white feature on a black background, select white. Your Action Pick ;the Color icon to select the window color.
White -With white selected, thb window counts the number of white pixels it co’uers.
Comments
The icon toggles between two options - white (white box with a black “#“) or black (black box with a white “#“).
’
Black - With black selected, the window counts the number of black pixels it covers.
Page 199
Chapter
Setting the Acceptance Range
10
Using Windows 1O-23
Once you have placed a window and selected the shape and next set the acceptance range of the window.
color,
Note: For an overview of the acceptance range concepts and setup, see page 9-25, which discusses setting the acceptance range for line gages. This information is also generally applicable in setting the acceptance range for windows.
Comments
Your Action Pi& the Accleptance Range icon on the Window menu.
When you pick the Acceptance Range (“HI/LO”) icon on the Window menu, the Acceptance Range menu appears:
Acceptance Range /con f I f
Lower timit
!
Upper limit
Current measured value
Observe the window result.
Select the limit (upper OF lower) you want to change.
On the right side of the Acceptance Range menu are three numbers, separated by “< = ” signs. The middle number is the current measured result of the window. For example, if you select the color black, then pick the Acceptance Range icon, the number of black pixels covered by the window is displayed. The lower limit is the left number of the three numbers displayed on the right. side of the menu, the upper limit is the number on the right (Note: Default values are displayed for the limits initially). To select either limit, pick that limit with the light pen. The selected limit is underlined.
Selected limit is underlined
Page 200
Chapter
Using Windows 10
7O-24
Setting the Acceptance Range (continued) Acceptance Range Menu
Increase Limit Icon rr t Decrease Limit /con increment Select Icon
Your Action Pick the Increment.Select icon to select the desired increment.
Increase or decrease limit.
Comments Picking the Increment Select icon causes the icon to cycle through the increment choices: 1, 10,100, and 1000.
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 window (this depends on the size ofthe window). 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 Picking the OK icon at this point returns the Windoul menu. to display the Window menu.
Page 201
Chapter
Setting the Acceptance Range (continued)
IO
Using Windows 7o-25
Example: Setting Acceptance Range Let’s suppose that the target pattern represents a part. Suppose you want to inspect the size of the dark circle on the part (shown as a lone black circle in threshold image 1, as illustrated below).
Window 1 displayed on threshold image 1 (example image)
Comments
Your Action Set up wina!ow 1 using the Window menu icons.
To measure the size of the black circle, set up window 1 (using the Window menu icons) as follows: l
Select window 1 (and thus, threshold image 1).
l
Select circular as the shape.
l
Place the window to overlap the black circle.
l
Set Color icon to black.
Circular window 1 displayed on threshold image 1 (example image)
Page 202
Chapter 1O-26
Setting the Acceptance Range
10
Using Windows
Example:
Setting Acceptance
Range fcontinuedJ
(continued)
Your Action Access the Acce:ptance Range menu.
Comments With window 1 in place and configured as described on the previous page, pick the Acceptance Range icon.
Acceptance Range Icon
Observe the measured result and determine the limits.
Current measured result
Suppose the measured result is 5700 -that is, the area of the black circle, as measured by the window, is 5700 pixels.
Circular window 1 displayed on threshold image 1 \ (example image)
f
5700 3:Ideal pixel count
Suppose the value, 5700, is for the ideal part, and you can accept a part within f 5%, or 5700 (pixels), IL285. You then set the upper limit to 5985, and the lower limit to 5415. Select and set the upper limit to 5985.
Pick the upper limit. Then pick the Increase Limit or Decrease Limit icons as necessary to change the limit.
Select and set the lower limit to 5415.
Pick the lower limit. Then pick the Increase Limit or Decrease Limit icons as necessary to change the limit.
Page 203
Chapter
Setting the Acceptance Range (con tin ued)
10
Using Windows lo-27
Using the Learn Mode and other Run Mode Functions The VIM2 module features a variation of its Run mode called the learn mode. In learn mode, the VIM2 accumulates statistics for each enabled inspection tool, 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
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 particular window, first access the Acceptance Range menu on the Window menu: Comments
Your Action Pick the Acceptance Range icon to access the Acceptance Range menu.
Picking the Acceptance Range icon on the Window menu displays the Acceptance Range menu.
Acceptance Range Icon f I
Current measured result I
Pick the current measured result.
On the right side of the Acceptance Range menu are three numbers, separated by “-c =” signs. The middle number is the current measured result of the window. When you pick this number, the statistics are displayed (see diagram on the next page) and the window disappears from the screen.
Pick the current measured result again. to remove the statistics display.
Picking the current measured result again redisplays the window and removes the statistics display.
Page 204
Chapter
7O-28
10
Using Windows
Accessing Statistics (continued)
I#JL I qQ
01
Lowest result collected
&/
0
Highest result collected
,A
0
+
0
Total of triggers processed
Number of failures for window
Average of all results collected
0
Note: The results of failed inspections for the window are not included in the lourest, 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 to extreme limits initially, for the purpose of collecting statistics for all inspections.