The text of a manual · part 16 of 42
Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 6 - Reference Tools: Lines and Windows, pages 157 to 166
Pages 157 to 166 of 390, from Bulletin 5370 CVIM Configurable 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 5370-CVIM
Page 157
Chapter
6
Reference Tools: Lines and Windows 6-4 1
-
Using Reference Windows (con timed)
Shift-only fxamp/e
(continued)
Figure 6.6 shows how the linear gage might appear when positioned horizontally across the hole; however, the gage co&d be positioned vertically, or at some angle, across the hole. Figure 6.6 Linear Gage Positioned Over Hole in Plate
-
Whatever the gage’s position across the hole, its length need only be sufficient to measure the maximum acceptable diameter. At that length, the gage could of course also detect the minimum acceptable diameter. At the start of each inspection cycle, the feature window begins searching for the “feature” on the plate. It begins its search at the upper-left corner of the search window and proceeds left-to-right, top-to-bottom, toward the lower right corner, until it finds the feature.
Page 158
Chapter
6
Reference Tools: Lines and Windows
6-42 -
Shift-only
Using Reference Windows (continued)
Example (continued)
Figure 6.7 compares the position of the “original” plate (the one used during configuration) to the position of a shifted plate (one that could appear during an inspection). Note that the plate, in this case, is shifted up and to the left.
Figure 6.7 Shifted Plate Compared to Original Plate
Feature Window (New Position)
I-
1 ,Search Window (Same Position)
tion Plate
-
Ga e Position’ on SR ifted Plate iI !:i:$ $-;ii::.: .: I;i .::,;.j :I : :.
.
.
“Oriqinal” Plate,Fosition
/
Shifted Plate Position
: < .:
‘Linear Gage Position on “Original” Plate
-.-.-.I.
JI .-.-.-.-.-.A
Note also that the “feature” on the shifted plate is still within the boundaries of the search window. Thus, the feature window was able to “find” the feature and supply shift compensation to the linear gage, as shown. When the feature window finds the shifted plate’s feature, the CVIM system compares its position with the “original” feature position. The difference between the two feature positions determines the amount of horizontal and vertical shift compensation applied to the linear gage. After the gage is shifted to its new position, it measures the hole diameter.
-
Page 159
Chapter
6
Reference Tools: lines and Windows 6-43
Shift-only
Using Reference Windows (con timed)
Example (continued)
Look again at Figure 6.7. Notice that urithozlt shift compensation the linear gage would be below the shifted hole, missing it completely. The result, in that case, would be an inspection failure.
Rotation and Shift Example Figure 6.8 compares the position of the “original” plate (the one used during configuration) to the position of a rotated and shifted plate (one that could appear during a CVIM inspection). Note that the rotated plate, in this case, is rotated counter-clockwise and is shifted up and to the left. Two “active features” are required to detect plate rotation. One feature on the plate in Figure 6.8 is the cross or “plus” figure ( + ) in the upper-left corner; the other feature is the lower-right corner of the plate itself. Both features are unique on the plate. Figure 6.8 Rotated and Shifted Plate Compared to “Original” Unrotated Plate -
,.+*I
“Original” Plate Position \
I i i i i i I i i i i i.
* c . -, \ Rotated and ‘TShifted Plate .
Page 160
Chapter
6
Reference Tools: Lines and Windows
6-44 -
Using Reference Windows (con timed)
Rotation and Shift Example (continued) Figure 6.9 shows how the two “active features” in this example are configured to detect shift and rotation. l Each feature window is centered over the workpiece feature and is sized to include only the workpiece feature.
l Each search window is centered over the feature window and is sized to include the maximum acceptable plate shift and rotation.
Fiuure 6.9 Two “Active Features” Positioned Over Features on Plate
I
First Feature Window /
First
Frture
Second Search
Second Feature
Page 161
Chapter
-
Using Reference Windows (continued)
6
Reference Tools: Lines and Windows
6-45
Rotation and Shift Example (continued) Figure 6.10 shows how the CVIM system uses the two active features to establish a basic reference angle for rotation compensation. As the figure shows, the reference angle is the angle between the X-axis datum line and a datum line joining the centers of the features on the “original” unrotated plate. NOTE: The two datum lines do not appear on the monitor screen. They are shown in the figure only for illustration.
Fiaure 6.10 Datum Lines and Reference Anqle for Rotation Compensation X Axis Datum Line
-
Datum Line Between “Original” , Features
Page 162
Chapter
6
Reference Tools: Lines and Windows
6-46
Using Reference Windows (continued)
-
Rotation and Shift Example (continued) Figure 6.11 adds a rotated (and shifted) plate to Figure 6.10. This shows the relationship between the various datum lines and reference angles. During an inspection cycle, the CVIM system compares the reference angle with the rotation reference angle (the angle between the X axis and the datum line for the rotated plate). If these two angles differ, the system calculates the rotation compensation angle, which is the difference between the two angles in degrees, then rotates the associated inspection tool(s) according to the rotation compensation angle.
Figure 6.11 Basis for Determining
Rotation Compensation
Shifted First Feature Window -1 /
Shifted/Rotated Plate Position / “Original” Plate Position i
Rotation i Reference Angle \/ i i i
; :
I III I I’
II II /I I
/ /
/
: I I I I
Basic Reference Angle
// /
\
Shifted / ‘econd Feature - .-.-.-.-. Window Datum Line Between .-bh “Original” Features
Datum Line Between Shifted/Rotated Features
Page 163
Chapter
6
Reference Tools: lines and Windows 6-47
Using Reference Windows (continued)
Rotation and Shift Example (continued) In Figure 6.11 the plate has rotated a few degrees counterclockwise; thus, any associated inspection tool would also be rotated counter-clockwise the same number of degrees. Figure 6.12 shows how CVIM uses the two “active features” to establish a midpoint for shift compensation. As the figure shows, the midpoint is the halfway point on a line joining the centers of the two features on the “original” unshifted plate. Note: The datum line does not appear on the video monitor screen. It is shown in the figure only for illustration.
Figure 6.12 Datum Line and Midpoint for Shift Compensation
Page 164
Chapter
6
Reference Tools: lines and Windows
6-48 -
Rotation and Shift Example (continued)
Using Reference Windows (continued)
Figure 6.13 adds a shifted (and rotated) plate to Figure 6.12. This shows the relationship between the two datum lines and their respective midpoints. During an inspection, the CVIM system compares the “original” midpoint position with the shifted midpoint position. If these two positions differ, the system calculates the X- and Y-coordinates of the shifted midpoint, then shifts the associated inspection tool(s) accordingly.
Figure 6.13 Basis for Determininq
Shift Compensation
Midpoint Between Shifted ,Features
Datum Line Between Features / on Shifted Plate k-
1 1 .
Datum Line Between Features on “Oriqinal” Plate
I II
:, : . . . : l: . . . . . . . Ll
\Y -\ i.-.,
Rotated/Shifted Plate Position
-
-.-.-.
\
-
+-?!I
“Original” Plate Position
-
Page 165
Chapter
6
Reference Tools: Lines and Windows 6-49
Selecting Workpiece features
A reference window performs its function in a series of steps, as follows: l It finds a specific physical feature on a workpiece.
l It determines the location (X- and Y-axis coordinates) that feature.
of l It calculates the difference, if any, between that feature’s location and the location of the same feature on the “original” workpiece. l It supplies any resulting shift an&or rotation compensation to all tools associated with the reference window.
Before you configure a reference window, you must select the specific physical feature(s) on the workpiece that you want the reference window to locate during an inspection cycle. Here are some points to consider when you make that selection: feature ambiguity: The workpiece feature should be as unique as possible within the search window in order to reduce the probability of the feature window finding the wrong feature. As shown in the preceding figures, corners on a workpiece are often useable as features. l Minimize
- feature contrast and crispness: The workpiece feature should have as much color contrast as possible between itself and its immediate background. Similarly, the feature should be crisp, not fuzzy, relative to its background.
l Maximize l Maximize feature solidity: The workpiece feature should be as solid and connected as possible, with distinct characteristics. It should not be a disconnected collection of small pieces having an overall indistinct characteristic. l Minimize feature rotation sensitivity: The workpiece feature should be as insensitive as possible to rotation in order to reduce the probability of the feature window not recognizing the rotated feature.
For example, a perfect circle should be fairly insensitive to rotation, whereas a more complex figure, such as upper-case ‘W,” might be more easily missed if it is rotated. feature window size: The CVIM system regards everything inside the feature window as the “feature.” Thus, you should make the feature window only as large as it must be to include the workpiece feature you’ve selected and as little else as possible on or around the workpiece. Minimizing the feature window’s size reduces processing time. l Minimize
The remaining pages of this chapter contain the procedures that you will use to configure a reference window.
Page 166
Chapter
6
Reference Tools: Lines and Windows
6-50
Configuring Reference Windows
To configure the reference windows, you will pick the Ref. Win menu box in the Main Configuration menu, then select the parameters and perform the functions in the Ref. Win popup menu. These are the main function and configuration the Ref. Win popup menu:
categories in window features: Selects and configures the search/feature window pairs (called “features”), sets the position and size of the search and feature windows, and sets the acceptance criteria for recognizing the searched-for feature(s) on the workpiece. l Reference lines and reference tool: Selects the output line for reporting inspection “results,” and selects the reference tool from which to receive shift compensation.
l Output and angles: This function “learns” the Xand Y-axis coordinates of the center of a single feature window or the center point between the centers of multiple feature windows.
l Coordinates
The centerpoint serves as a reference for measuring the angle between the positive X axis on the screen image and one of the feature windows. l Reference window number: This function selects the reference window number (1,2, or 3) to be configured.
window enable/disable: This function enables or disables the currently selected reference window.
l Reference
Configuring a reference window involves these basic steps:
l Selecting the reference window number (1 to 3).
l Enabling the selected reference window.
l Selecting the feature(s) that you want the reference window(s) to find in the camera image. l Positioning and sizing the reference window(s) over the workpiece image. l Selecting the specific parameters for finding the feature(s).
-