The text of a manual · part 22 of 47
Bulletin 2803 VIM Vision Input Module User Manual: 10 - Using Windows, pages 187 to 196
Pages 187 to 196 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 187
Chapter
Moving the Window (continued)
IO
Using Windows 70-l 7
Note: Depending on the brightness compensation mode you have selected, placement of the window may be restricted (see Chapter 8 for brightness compensation information). Briefly, if you have selected mode 1 (same frame compensation), you cannot place a window in the top 48 pixel rows (or about the top 20%) of the video image. Example Window Move This demonstration places a rectangular-shaped window 2 at the upper left corner of white square in threshold image 2.
Your Action Place the window across the left side of the white square in the target.
Comments Pick the right arrow icon to move the window until the window crosses the left side of the white square.
Window moved right to left edge of white square on threshold image 2 (example image)
Place the window across the upp,er left corner of the white square in the target.
Pick the up arrow icon as necessary to move the window so the window crosses the top side of the white square.
Window moved up to upper left corner of white square on threshold image 2 (example image)
Page 188
Using Windows
Chapter 10
70-72
Sizing the Window
Use the Window Size menu to adjust the window size to cover the feature of interest in the threshold image. You use the Window Size menu icons to increase or decrease the height and/or the width of a window. The method for changing the window size differs with each window shape. Comments
Your Action Pick the Window Size icon on the Window Move menu.
If the Window Move menu is displayed, access the Window Size menu by picking the Window Size icon:
I
’
Window
Size /con
Window
Size Menu
OK increase Height Icon
I Decrease Height Icon
Increase Width Icon k Window Move Icon \ Decrease Width Icon
Note: Remember you can also access the Window Size from the Window menu by picking the Window Size icon on that menu. Also, notice the Window Move icon, which can be used for access to the Window Move menu. As illustrated above, there are four Window Size menu icons: Increase Height, Decrease Height, Increase Width, and Decrease Width. The actual function of these icons differs, depending on the selected shape of the window (these differences are explained throughout in this section). There are two ways of using the Window Size icons for adjusting the window size: l
Pick the appropriate arrow icon to decrease or enlarge the window size in a given direction, one pixel at a time.
l
Pick and hold the light pen down against the appropriate icon to cause continuous enlarging or decreasing of size.
l
If you pick an arrow icon and it flashes, this indicates that the window is at its limit and cannot be further adjusted in the direction indicated by the selected icon.
Page 189
Chapter
Sizing the Window (continued)
10
Using Windows 10-73
Rectangular Window Sizing When you change the size of a rectanguZar window, the top left corner of the window remains fixed; only the position of the right or bottom side of the window changes. To change the height of a rectangular window, pick the increase height icon to increase height downward, or pick the decrease height icon to decrease height upward:
Increase height mi
I:nl
Ki
Decrease height
Window shortens upward, top side remains fixed.
Window extends downward, top side remains fixed.
To change the window width, pick the increase width icon to increase width to the right, or pick the decrease width icon to decrease width from the right:
Increase Width
Decrease Width
Rectangular
Window
Window extends to the right, left
Window shortens from the right,
Size Limits l
You can increase a rectangular window’s size until it meets the bottom edge (for a height increase) or right edge (for a width increase) of the screen.
l
You can decrease a rectangular pillcelin height and/or width.
window’s size to a single
Page 190
Chapter 70-14
Sizing the Widow (continued)
Your Action Increase the window width by picking al;td holding the Increase Width icon.
IO
Using Windows
Example Size Adjustment of a Rectangular Window Adjust both the width and height of the rectangular window so it covers the entire white square on the target pattern in threshold image 2 (Note: This procedure assumes you have moved the rectangular window 2 to the top left corner of the white square as shown on page 10-11). Comment5 Increase the window width until it covers the top side of the white square on the target pattern in threshold image 2:
Window width increased so it covers entire top side of white square on threshold image 2 (example image)
Increase the window height by picking and holding the Increase Height icon.
Increase the window height until the window covers the entire white square in threshold image 2:
Window height increased so window covers entire white square on threshold image 2 (example image)
Pi& the OK icon.
After placing the window, return to the Window menu by picking the OK icon.
Page 191
Chapter
Sizimg the Window (continued)
First triangular
IO
Using Windows 10-75
Triangular Window Sizing There are four triangular windows shapes. Each triangular shape is a right triangle; the difference is in the orientation of the right ang2e corner of each. The four selectable triangular shapes are shown below in order of selection:
shape _I_)
Right angle corner
When you change the size of a triangular window, the position of the right angle corner of the window remains fixed; the lengths of each of the two sides adjacent to the right angle corner can be increased or decreased. For example, to change the height of a first triangular shape window, pick the increase height icon to increase height away from the right angle corner, or pick the decrease height icon to decrease height toward the right angle corner.
El increase height Window extendsupward
Window
Decrease height shortens downward
Right angle corner remains fixed
To change the width, pick the increase width icon to increase width away from the right angle corner, or pick the decrease width icon to decrease width toward the right angle corner:
Increase Width
Window extends away from right angle corner
Decrease Width
Window shortens toward angle corner
Right angle corner remains fixed right
Page 192
Chapter 70-76
Sizing the Window (continued)
IO
Using Windows
Triangular Window Sizing (continued) The procedures for adjusting the size of the remaining three triangular shapes, you will find, are similar to the above procedure for the first triangular shape, so these procedures are not discussed further here. Triangular Window Size Limits l
You can increase a triangular window’s size until it meets a top or bottom edge (for a height increase) or right or left edge (for a width increase) of the screen.
l
You can decrease a triangular pixel in height and/or width.
window’s size to a single
Circular Window Sizing When you change the size of a circular window, the center of the window remains fixed; the radius and area of the circle increase or decrease. To increase the area of a circular window, pick either the increase height icon or the increase width icon -both work the same way to increase the area of circular windows.
Increase height or Increase Width m
/-.f
\
+’
; \ .-.
Window extends outward, center remains fixed.
/
El
0 To decrease the area of a circular window, pick either the decrease height icon or the decrease zuidth icon -both work the same way to decrease the area of circular windows.
Decrease height or Decrease Width lxl
Window shrinks inward, center remains fixed.
Circular Window Size Limits l
You can increase a circular window’s size until it meets a top or bottom limit or right or left edge of the screen.
l
You can decrease a circular window’s size until it becomes a small square (3 pixels X 3 pixels in size).
Page 193
Chapter
10
Sizimg the Window (continued)
Using Windows 70-17
Donut Window Sizing When sizing a donut window, you change the size of two parts of the window: 1) the outer white circle - the active inspection area of the window, and 2) the inner dark circle, which masks out the part of the outer circle area it covers the window does not inspect this area (the “donut hole”).
Donut Window
Outer circle area -active inspection area of window
Inner circle area-masked not inspected by window area
When you adjust the size of either the inner or the outer circle, the circle center remains fixed; the radius and area of the circles increase or decrease. Outer circle -To adjust the area of the outer circle of the donut window, pick the increase height icon to increase the area, or pick the decrease height icon to decrease the area.
Outer circle extends outward,center remains fixed.
Inner circle -To adjust the area of the inner circle of the donut window, pick the increase width icon to increase the area, or pick the decrease width icon to decrease the area.
Ia Increase Width
Inner circle extenlds outward,center remains fixed.
Decrease Width
Page 194
Chapter 70-18
Sizimg the Window (continued)
70
Using Windows
Example Application of-the Donut Window Suppose you are inspecting bottle caps before they are placed on the bottles. You want to check for the presense of a seal on the underside of the cap, and need to use a circular-shaped window to count pixels. However, on some bottle caps there is a logo placed on the bottle cap underside, but on others no logo is placed there. This inconsistency would cause a variation in pixel count from cap to cap when using a circular-shaped window, and could make setting the acceptance range for the window difficult, or impossible. Bottle cap with seal missing \
Bottle cap
Seal Material
No seal material
However, using a donut window, you could mask out the part of the bottle cap where the label appears, in order to count pixels only where the seal is placed. This would create much more consistency in pixel count from cap to cap -the presense or non-presense of a logo would have no effect on the pixel count - and allow you to set the window acceptance range to a workable range.
Outer circle area -active inspection area of window
Donut window placed over bottle cap I
Bottle cap
Donut window
Masked area not inspected by window
Masked area not inspected by window
Seal material inspected by window
Page 195
Chapter
Sizing the Window
IO
Using Windows 70-19
Donut Window
Size Limits
(continued)
Train- thru- the-lens
Mask l
You can increase the size of the o&er circle until it meets a top or bottom limit or right or left edge of the screen.
l
You can decrease the outer circle’s size until its radius is within 4 pixels in length of the inner circle’s radius - that is, the outer circle always has a radius that is at least 4 pixels longer than that of the inner circle.
l
You can increase the inner circle’s size until its radius is within 4 pixels in length of the outer circle’s radius.
l
You can decrease the inner circle until it becomes a small square (3 pixels X 3 pixels).
The last of the selectable window shapes is the train-thruthe-lens mask window (Note: This selection is available for windows 1 to 3 only). This selection is really not a shape, but an option which allows you to custom design the size and shape of a window. This feature can be especially useful when none of the preset window shapes is satisfactory for a specific feature of a workpiece you want to inspect. For example, suppose your workpiece appears in the threshold image as shown below:
Rectangular part of the threshold image to be inspected (example image).
\ Circular parts of the threshold image to be ignored.
Now suppose you to want to set up a window to inspect only the central, somewhat rectangular feature of the workpiece, and to ignore the two circular features in the image. In this case, a preset zuindow shape would not be the solution, because not one of the preset window shapes could be placed so that it would cover all of the rectangular features, yet not cover any of the circular features. In this case, a train-thruthe-lens mask window would be required.
Page 196
Chapter 1O-20
Train-thru-the-lens
Mask Window
IO
Using Windows
In this case, the window you design using the train-thru-thelens mask window might look like the one shown below:
(con timed) Custom window designed using the train-thru-the-lens mask option.
Only the area covered by the window (shown in white) would be inspected. In this case, only the somewhat rectangular feature, and not the circular features, would be inspected. Example - Creating a train-t/vu-the-/ens mask window This section leads you through a sample procedure for creating a train-thru-the-lens mask window, based on the case of the example workpiece illustrated above. Your Action
Comment
Select the window (and threshold image) number.
After staging and lighting the workpiece, and setting up a threshold image to highlight the feature(s) of interest for the inspection, select the appropriate window (and thus, the threshold image) which highlights the feature(s) of interest.
Determine the shape and size required for the window.
Upon observing the workpiece as it appears in the threshold image, determine the required window size and shape. In our example case, the required window would look like this:
Required window size, shape, and positlion.