The text of a manual · part 13 of 42
Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 6 - Reference Tools: Lines and Windows, pages 127 to 136
Pages 127 to 136 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 127
Chapter
6
Reference Tools: Lines and Windows 6-l 1
Selecting
Selectingl Define Ref.Line Popup Menus and Parameters (continued)
Ref.Line Type Popup
Menu (continued)
The questions you need to answer about workpiece position during an inspection is this: Do you expect the workpieces to be shift from the “original” position? If so, will they shift up or down (Y axis), left or right (X axis), or in both directions? Will they rotate? A general guide for choosing the appropriate reference line type is as follows: l X
Only provides a horizontal reference line. Select the X Only reference line type if a workpiece is likely to shift horizontally, but not vertically. l Y
Only provides a vertical reference line. Select the Y Only reference line type if a workpiece is likely to shift vertically, but not horizontally. Y provides both a horizontal and a vertical reference line. The CVIM system checks the X-axis line first and applies shift compensation to the Y-axis line:
l X Then
Reference Line Type: X Then Y: 1. If the workpiece shifts along the XandY axes.. .
2.. . the X-axis
3.. . the Y-axis reference line is shifted by the amount of the X-axis shift . . .
1
Select the X Then Y reference line type if the workpiece is likely to shift both horizontally and vertically, but is expected to shift more along the X axis.
Page 128
Chapter
6
Reference Tools: Lines and Windows
6-12
Selecting Define Ref.Line Popup Menus and Parameters (continued)
Selecting Ref.Line Type Popup Menu (continued) 0 Y Then X provides both a horizontal and a vertical reference line. The CVIM system checks the Y-axis line first and applies shift compensation to the X-axis line: Reference Line Type: Y Then X: 1. If the workpiece shifts along the Y and X axes.. .
2. . . the Y-axis reference line is evaluated for shift. . . 3. . . the
)(-axis reference line is shifted by the amount of the Y-axis shift. . . 4 . . . then the X-axis reference line is evaluated for shift. . .
Y and X shift is applied to the line gage. Select the Y Then X reference line type if the workpiece is likely to shift both horizontally and vertically, but is expected to shift more along the Y axis. Y provides two horizontal lines and one vertical line. In this case, the CVIM system checks the two X-axis lines first and applies shift compensation to the Y-axis line.
l X-X Then
Reference Line Type: X-X Then Y: 1. If the workpiece i :I :I : 4
“‘--‘<“~ / :\ 2. . . the X-axes are evaluated for both rotation and shift..
.
p-&i&q (orIgInal posItIon)
‘5. _ . and the combined shift and rotation is applied to the line gage.
-
3. . . the Y-axis reference line is shifted by the amount of the X-axis shift. . .
4. . . then the Y-axis is evaluated for shift.. .
Page 129
Chapter
6
Reference Tools: Lines and Windows 6-13
-
Selecting Define Ref.Line Popup Menus and Parameters (continued)
Selecting
Ref.Line Type Popup Menu (continued)
The X-X Then Y reference line type also uses the difference in the amount of shift along the two X axes to calculate the number of degrees that an inspected workpiece has rotated from the position of the “original” workpiece. X provides one horizontal line and two vertical lines. The CVIM system checks the two Y-axis lines first and applies shift compensation to the X-axis line. l Y-Y Then
1Reference Line Type: Y-Y Then X: 1
1. If the workpiece rotates.
_
.d
5.. _and the combined shift and rotation is applied to the line gage.
2. . . the Y-axis reference lines are evaluated for both rotation and shift _ .
evaluated for shift.
..
‘unt ..
The Y-Y Then X reference line type also uses the difference in the amount of shift along the two Y axes to calculate the number of degrees that an inspected workpiece has rotated from the position of the “original” workpiece. Your Action Look at the Type menu box in. the Define Ref.Line popup menu.
Comments The Type menu box indicates the currently selected reference line type. If it is not the type you want, continue with the next steps.
Page 130
Chapter
6
Reference Tools: Lines and Windows
6-14
Selecting
Define Ref.Line
Popup Parameters
Selecting
-
Ref.Line Type Popup Menu (continued)
Menus and (continued)
Comments
Your Action Pick the Type menu box.
When you pick the Type menu box, the Ref.Line Type popup menu should appear, as follows:
Mode:
Binary
0
XthenY
0
YthenX
0
X-X thenY
0
Y-Y thenX t
Ref. Line Type Popup Menu
I
Env.
Camera A
I
Ref. ”@II ’
Ref. Win
Gage
Window
Mist
Exit
Note that the X Only box in the Ref.Line Type popup menu has a shaded square (0). This indicates that X Only is the currently selected reference line type. Pick the appropriate “type” box in the Ref.Line Type popup menu.
When you pick the box, the new selection will be highlighted in the Ref.Line Type popup menu and will appear in the Type menu box. In addition, the new reference line symbol will appear on the screen. Selecting Active Reference Line If you selected X Only or Y Only as the reference line type, skip this function. If, however, you selected one of the other types, continue with the next steps, and select the axis that you want to configure at this time.
Your Action Look at the Active Ref menu box in the Define Features popup menu.
Comments The Active Ref menu box indicates which axis is currently “active” for configuration purposes.
-
Page 131
Chapter
6
Reference Tools: Lines and Windows 6-15
Selecting Define Ref.Line Popup Menus and Parameters (continued) Your Action Pick the Active Ref menu box, if appropriate.
Selecting Active Reference Line (continued)
Comments When you pick the Active Ref box, it will either toggle between X-Axis and Y-Axis or change from X-Axis to Y-Axis to X/Y-Axis, according to the type that you selected. Select the axis that you want to configure at this time.
Selecting Binary or Gray Scale Mode Select the appropriate mode for each reference line. NOTE: The mode that you select will apply to X-axis and Y-axis reference lines. The Binary mode changes pixels in the screen image to two states, white and black. The only pixels changed are those that directly surround the reference line in a box called the “area of interest.” The CVIM system examines only these pixels when processing a reference line The binary mode is most appropriate when the workpiece has a sharp black-and-white contrast with its background, such as when it is backlighted. The Gray Scale mode does not affect the pixels surrounding the reference line - they remain in their ori inal state, in which they can have any one of 64 shades o Bgray. The gray scale mode is most appropriate when the workpiece has less contrast with its background, such as when it is frontlighted. In this case, features on the workpiece may appear in the screen image as varying shades of gray, and the binary mode may not enable you to identify a stable edge location on these features. Use the following steps to select the Binary or Gray Scale mode. Your Action
Comments
Look at the Mode menu box in the Define Ref.Line popup menu.
The Mode menu box indicates the currently selected mode: Binary, or Gray Scale.
Pick the Mode menu box, if appropriate.
When you pick the Mode menu box, the mode will toggle to the other mode. Thus, Binary will change to Gray Scale, or vice versa.
Page 132
Chapter
6
Reference Tools: Lines and Windows
6-76
Selecting Define Ref.Line Popup Menus and
Parameters (continued)
Using Pick & Place Function Pick the Pick & Place menu box, then position the reference line over the workpiece and set the line’s length. The following procedure shows you how to use the light pen to adjust the position and length of a reference line. The procedure refers speclfzcaZZy to an X-axis line, as shown below, but you can also apply it to a Y-axis line.
Your Action Pi& the Pick & Place menu. box in the Define Ref.Line popup menu.
Comments When you pick the Pick & Place menu box, a small square (Cl) will appear in the center, and at each end, of the currently selected reference line, as follows:
These squares are the “handles” that the light pen uses to manipulate the reference line on the screen. Aim the light pen at the center handle.
Aim the light pen at the center handle until the light pen “sees” the handle. You may have to move the light pen around slightly. When the light pen sees the handle, a larger “highlight” square will surround the handle, as follows:
Hold the pen steady in this position - the appearance of the “highlight” square means that the light pen is now properly aimed. Pick the handle.
You can now “drag” the reference line around on the screen. When you move the pen, the line follows.
Page 133
Chapter
Selecting Define Ref.Line Popup Menus and Parameters (continued) Your Action Drag the rekrence line to the position shown.
6
Reference Tools: Lines and Windows
6-17
Using Pick & Place Function (continued)
Comments Note that the right end of the reference line is at the rightmost shift limit. This is the point beyond which one or more inspection tools used in your application cannot accurately inspect a workpiece - for example, the tool may be shifted out of the screen image.
Note: Keep the tip of the pen within about of the screen.
one-half inch
When you have the reference line in position over the workpiece, press the pen against the screen to “lock” the line at that position. Aim the light pen at the j!eftmost handle.
Continue when the highlight square appears.
Page 134
Chapter
6
Reference Took:
Lines and Windows
6-18 -
Selecting Define Ref.Line Popup Menus and Parameters (continued) Your Action
Using Pick 81 Place Function (continued)
Comments
Pick the handle. Drag the left end of the reference line so that it is at the leftmost shift limit.
Leftmost Shift Limit for Workpiece
Reference Edqe of Workpiece
.:
,i i
:.
:: m::-L;-.)
.,
.
;:..::.: j:. ::::i
Lock the left end in the position shown. If necessary, use the vernier arrows to “fine-tune” the position of the line or line end.
You can position the line or line end more precisely by using the vernier arrows. These arrows enable you to move the line or line end in increments of one pixel. You can access the vernier arrows while either picking a line handle or placing a line or line end.
Page 135
Chapter
6
Reference Tools: Lines and Windows 6-19
Selecting
Define
Ref.Line
Using Pick & Place Function (continued)
Popup Menus and Parameters (continued) Comments
Your Action Press and hold the light pen tip againstThe line handle, /line,or line end.
Hold the light pen tip in for about one second. The vernier arrows will then appear in the lower-right corner of the screen:
VERNIER ARROWS
+@fj--l# Move line end left or right (X-axis line)
Move line end up or down (Y-axis line)
Move line up, down, left, or right
Pick an arrow once to moue the line or line end one pixel in the arrow’s direction.
Pick the up, down, right, or left arrow, as appropriate, to move the line or line end one pixel in the direction indicated by the arrow.
Pick and -hold an arrow to move the line or line end continuous1.y.
When you pick and hold an arrow, the line or line end will move slowly for the first five or six pixels. It will then accelerate to a more rapid rate of movement.
Pick the “return” symbol to release the vernier arrows.
When the line or line end is properly positioned, pick the “return” symbol (+J> to release the vernier arrows and return to the pick-and-place mode. The reference line should now be positioned over the workpiece so that during inspection operations it can detect the reference edge of a shifted workpiece lying within its length. In this case, the CVIM system will supply shift compensation to any associated inspection tools. If any workpiece shifts outside the leftmost or rightmost limits of the reference line, the CVIM system will indicate a reference tool fault and will not supply shift compensation to any associated inspection tools. Those tools will not perform their inspections. They will indicate a fault condition.
Page 136
Chapter
6
Reference Tools. fines and Windows
6-20
Selecting Define Ref.Line Popup Menus and Parameters (continued)
Using Define Edges Function:
-
Binary Mode
Pick the Define Edges menu box, then perform the threshold adjustments in order to determine the reference edge that the reference line will be using to locate the workpiece. If you have selected the Gray Scale mode, skip the next steps and go directly to the section called Using Define Edges Function: Gray Scale Mode. Use the following steps for setting the threshold if you selected the Binary mode.
Your Action
Comments
Pick the Define Edges menu box in the Define Ref.Line popup menu.
If you have selected the Binary gaging mode, when you pick the Define Edges menu box, the Filter popup menu and slide bar appear on the monitor screen, as follows:
-
Reference Line
4
-
H I T H R E 5 H 0 L D
Slide Bar’
Filter Popup Menu
, L 5 0
Env.
Camera A
:‘$&~:&~~ Ref. Win ::, .:. : ::
Gage
2 Pixels
I
[7 3 Pixels
I
Window
Mist
Right/ Cursor
,: a:
b -
Exit
Also on the monitor screen, a small “X” may appear along the reference line wherever it “sees” an edge. As shown above, the reference line sees true edges on the circular workpiece. If no X’s appear, or if too many X’s appear, you will need to adjust the threshold cursors and possibly set some value of white or black pixel filtering.