The text of a manual · part 15 of 42
Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 6 - Reference Tools: Lines and Windows, pages 147 to 156
Pages 147 to 156 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 147
Chapter
6
Reference Tools: Lines and Windows 6-31
Selecting Define Features Popup Menus and Parameters (continued)
Selecting
5. Mode Popup
Menu (continued)
In Example #5, the active feature will search only for the edge at the tail side of the largest object (the largest white object in example #4) and the midpoint between the two edges of that object.
I
Example #5 Mode: Grav Scale Search Direction : Taillto-Head Search Mode: Max. Object
I
Your Action
Comments
Pick the edge-search mode that is appropriate for your application.
Using Offset Function Use the Offset function to accurately identify and assign to each reference line a specific point (“fixed,” “center,” edge, or midpoint) as the single reference “edge” for that line. Your Action Look at the ‘Offset menu box in the Define Features popup menu.
Comments The Offset menu box shows the current location of the “active feature.“The location is stated as either a number (0.0, 1.0,1.5, and so on) or a name (Fixed or Center).
Page 148
Chapter
6
Reference Tools: Lines and Windows
6-32 -
Selecting Define Features Popup Menus and Parameters (continued) Your Action
Using Offset Function (continued)
Comments An offset name refers to a specific point on the reference line (“Fixed”) or a specific position between the outside edges of the workpiece (“Center”). “Fixed” refers to either the head or the tail of a reference line, according to the designated search direction. For the Head-to-Tail search direction, the fixed point is at the head; for Tail-to-Head, it is at the tail. “Center” refers to the center point between the first edge and the last edge on the reference line. An offset number identifies either a specific edge or specific midpoint between adjacent edges. The number varies according to the designated search mode. Offset numbers for edges are designated 0.0, 1.0, 2.0, and so on. Offset numbers for midpoints are designated 0.5,1.5,2.5, and so on. For the All Edges search mode, the first offset number is always 1.0, and the last is x.0, where (x) is the total number of edges on the reference line. For the other search modes, the first number is always 0.0, an edge, and the second number is always 0.5, a midpoint. The example below shows Active Feature A located at offset 1.0, which is edge #l. Note that the highest offset number in the example is 6.0, which is the last edge.
-
Page 149
Chapter
6
Reference Tools: Lines and Windows 6-33
Selecting Define Features Popup Menus and Paramleters (continued) Your Action Pick the Offset menu box as needed to position the active feature.
USing
Offset function (continued)
Comments When you pick the Offset menu box, the offset position advances according to the designated search direction. In the example above, it starts with Fixed and continues with Center, 1.0,1.5,2.0, andsoon. The positions of letters A or B on the reference line correspond to their currently selected offsets. Thus, in the preceding figure, A corresponds to offset 1.0, which is edge #l. When you pick Offset once more after A (or B) reaches the last edge or midpoint, A (or B) returns to the starting point, which varies according to the designated search mode and search direction. For the All Edges search mode, the starting point is either the head or the tail of the reference line, according to the designated search direction, and the offset resets to “Fixed.” For the other search modes, the starting point is the edge of the “object,” and the offset resets to 0.0.
-
Page 150
Chapter
6
Reference Tools: Lines and Windows
6-34
Using Learn Function
Pick the Learn menu box in the Ref. Line popup menu to command the CVIM system to “learn” the coordinate(s) of the currently selected edge on the X axis and/or Y axis.
Your Action
-
Comments
Pick the Learn menu box.
When you pick the Learn menu box, the reference line “learns” the coordinates of the reference edge on the X and Y axes and displays them in the box. Note that if you selected X Only or Y Only as the reference line type, the inactive line will show n/a, or “not applicable.” The X and Y references are always stated in pixels from the left edge of the screen image for X, and from the top edge of the screen image for Y. Thus, a reading of X.Ref = 114 indicates that the reference edge on the X-axis line is 114 pixels from the left edge of the screen image. A reading of Y .Ref = 25 indicates that the edge on the Y-axis line is 25 pixels from the top edge of the screen image. These pixel values reflect the image resolution parameter that you selected in Chapter 5, Camera and Lighting Parameters.
Look at the new X and Y coordinate values in the Learn menu box.
The new coordinate values indicate the current location of the reference edge along the X and Y axis. -.
Selecting Output/Reference Popup Menu and Parameters
Select the Output/Reference parameters in that menu.
Your Action popup menu, then select the
Comments
Pick the Output/Reference menu box in the Ref.Line popup menu.
When you pick the Output/Reference menu box, the Output/ Reference popup menu appears above the Ref.Line popup menu, as follows:
IDefine Ref.Line I Define Features Learn:
0.0
1
0.0
I
+-.-
X.Ref =O Y.Ref = n/a
I
) Reff;;l:
,En;zed
/
Env.
CameraA
Ref. Line Popup Menu
., .,...... ... &&@-&1 : ‘..: Ref. Win
Gage
Window
Mist
Exit
Page 151
Chapter
6
Reference Tools: Lines and Windows
6-35
Selecting Output Line Selection Popup Menu
Selecting Output/Reference Popup Menu and Parameters
Select the Output Line Selection popup menu, if appropriate, then assign an output line to carry reference line “results” signals to your production equipment.
(continued)
Comments
Your Action
The Output menu box shows the currently selected output line number assigned to this reference line.
Look at the (Output menu box in the Output/Reference popup menu. Pick the (Output menu bon in the Output/Reference popup menu.
When you pick the Output menu box, the Output Line Selection popup menu appears, as follows:
Out ut Line SePection Popup Menu
Output/Reference
I0
5 Z/Results
I
6 2/Results
I
7 Not Used
I
I0 10 Not Used
I
IO 12 Not Used
I lo lo Define Ref.Line a.0 IDefine ~ Features ., ,::::. ~~~ I ):
Learn:
X.Ref = 0 Y.Ref = n/a
Ref.Line 1:
Enabled
Previous
Next
Env.
Camera A
I
ICI 11 Not Used
;silri~:~~~~~~~~~. j:jgj :..: . .:. : :.,::..I .::.:.....:,..
-Ref. Line Popup Menu
.,... ) : ..:..... :&#f Ref. Win -7.:. . ....,. ‘.I;if&:’ . .,
Gage
Window
Mist
Exit
Note that the No Output box in the Output Line Selection menu has a shaded square (0). This indicates that no output line is currently assigned to this reference line. Also note that you can pick only those output lines with a “Results” function shown in light type. All others are shown in black type, which indicates that you cannot pick them. Pick the appropriate output line from the menu.
If appropriate, pick one of the available output lines from the Output Line Selection menu.
Page 152
Chapter
6
Reference Tools: Lines and Windows
6-36
Selecting Output/Reference Popup Menu and Parameters
Selecting Reference Popup Menu Select the Reference popup menu, if appropriate, then assign a reference tool to provide shift compensation to this reference line.
(continued)
You can configure one reference line to receive shift compensation from another reference line (but not a reference window), with the following restrictions: l Reference line # 1 cannot receive shift compensation any reference tool.
from l Reference line #2 can receive shift compensation reference line # 1.
only from l Reference line #3 can receive shift compensation either reference line # 1 or reference line #2.
from
Use the following ste s to select a reference line for the currently selected re Perence line. Your Action
Comments
Look at the Ref menu box in the Output/Reference popup menu.
The Ref menu box shows the currently selected reference line number assigned to this reference line.
Pick the Ref menu box in the Output/Reference popup menu.
When you pick the Ref menu box, the Reference popup menu appears, as follows:
-
Output/Reference 10
1 Define Ref.Line
Previous Env.
0.0
Ref.Line 1
1
1
Next ....,.. .,.. ..,.: .. :, ?#$&).i&$: ,.A.. . ..:.. Ref. Win
Gage
Window
Mist
Exit -
Page 153
Chapter
6
Reference Tools: Lines and Windows 6-37
Selecting Owtput/Reference Popup Menu and Parameters
Selecting Reference Popup Menu (continued)
(continued)
Your Action
Comments Note that the Fixed box in the Reference menu has a shaded square (0). This indicates that a reference tool is not currently assigned to this reference line. Also note that only the available reference tools are in light type. All others are shown in black type, which indicates that you cannot pick them.
Pick the appropriate reference line from the menu.
-
If appropriate, pick one of the available reference lines from the Reference menu.
Page 154
Chapter
6
Reference Tools: lines and Windows
6-38
-
Reference
Windows
This section provides you with the details of using and configuring reference windows. Under the Using Reference Windows heading, you will see simple example applications in which the CVIM system uses reference windows to provide shift compensation and rotation for a linear gage. The system then uses that gage to measure the diameter of a hole in a metal plate. Under the Configuring Reference Windows heading, you will find out how to use the “user interface” - the light pen and the popup menus on the CVIM video monitor - to configure a reference window.
Using Reference Windows
The following pages describe how the CVIM system can use reference windows to detect and measure workpiece shift and/or rotation, and offset inspection tools by the amount of that shift and/or rotation. As is true of reference lines, the advantage of using reference windows is that workpieces need not be rigidly fixtured for the CVIM system to inspect them. NOTE: Before using reference windows, be sure that you have configured the image resolution, light reference threshold, and trigger source, and have adjusted the camera focus and aperture.
_
Each of the six numbered reference windows (three per tool set) consists of three “active features.” And each active feature consists of a search window and a feature window. A search window defines the specific urea of the image in which you want the CVIM system to search for feature that you specify. A search window can be large enough to include almost all of the image area; however, as a practical matter, you are unlikely to need a search window of that size. As a rule, the search window should be only as large as it needs to be to cover the amount of workpiece shift and/or rotation that is acceptable for your application - since the larger the window size, the longer the processing time. A feature window defines the specific part of the image that you want the CVIM system to search for within the search window. The feature window size can be as small as 16-by-16 pixels, and as large as 64-by-64 pixels. By using a single active feature, the CVIM system can compensate for workpiece shift along the horizontal and vertical axes. By using two or three active features, the system can compensate for workpiece shift and for rotation of up to f 15”.
-
Page 155
Chapter
6
Reference Tools: Lines and Wincfows 6-39
Using Reference Windows (continued)
Shift-on/y Example The following example uses a single “active feature” - that is, one search window and one feature window - to provide shift compensation only. Here are the assumptions for the example: l The
“workpiece” is a flat, stamped-out metal plate with a hole in the middle. l The plate is frontlighted.
l The
“feature” that the feature window will search for is a cross-shaped mark on the plate.
l The reference window will provide shift compensation linear gage.
to a l The linear gage will measure the diameter of the hole in the plate.
l The position of each plate in a series of inspections will vary somewhat horizontally and vertically, but will not rotate.
-
The practical objective in this example is for the CVIM system to inspect each plate for a hole of the proper diameter, and to reject all plates with either no hole, or one that is too small or too large. The functions of the reference window in this example are these: l Find the cross-shaped “feature” within the search window.
l Check whether the plate is shifted from the “original” “taught” position.
or l If a plate is shifted, shift the linear gage by the same amount and in the same direction. Figure 6.5 shows how an image of the metal plate might appear on the video monitor. Figure 6.5 also shows how the reference window is configured for this example. Both the search window and the feature window are centered over the feature. The reason is that the feature could be anywhere within the search window during a series of plate inspections. Also, you would have set the feature window to a size just large enough to include the feature. As the CVIM system inspects a series of plates, the feature window will find the feature on each plate as long as the feature appears somewhere within the search window. If a particular plate is shifted, but the feature lies within the search window, the feature window will find the feature. If the feature lies outside the search window, an inspection failure will occur, since the feature window will not be able to find the feature.
Page 156
Chapter
6
Reference Took:
Lines and Windows
6-40
Using Reference Windows
Shift-only Examp/e (continued)
(continued)
Figure 6.5 Single “Active Feature” Positioned Over Feature on Plate
Feature Windyw
“Feature“ on Plate /
-
To summarize the main factors in the shift-only inspection example: l One “active feature” - that is, one search window and one feature window - detects shift along the X and Y axes, and provides shift compensation (but not rotation) to a linear @UPl The “feature” on the plate will always appear somewhere within the search window. l The plate (and “feature”)
will not rotate.
l One linear gage will be used to measure the diameter of the hole in the plate. -