The text of a manual · part 21 of 42
Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 7 - Inspection Tools: Gages, pages 200 to 208
Pages 200 to 208 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 200
Chapter
7
Inspection Tools: Gages
7-10 -
Your first step is to select the Gage popup menu.
Selecting Gage P;z,ut,
Comments
Your Action
When you pick the Gage menu box, the Gage popup menu appears above the Main Configuration menu, as follows:
Pick Gage in the Main Configuration menu.
““‘“:I+
Gage
Popup Menu
Gage 1:
Enabled
Previous
Next
Env.
Camera A
Ref. Line
Ref. Win
Gz&
Window
Mist
Exit
The Gage popup menu shows the six configuration categories described earlier. In addition to the Gage popup menu, if the currently selected gage is enabled, as shown above, it will appear somewhere on the monitor screen.
Selecting and Enabling Gage
Your Action Look at the Gage menu box in the Gage popup menu. Select the gage number.
Select the gage number and enable the gage.
Comments The Gage menu box indicates the currently selected gage number (1 to 32). It also indicates whether that gage isenabled or disabled. To change the gage number, pick the Next (or Previous) menu box repeatedly until the correct number appears. The Next and Previous functions work like this: When you pick the Next box, the next higher gage number appears: 1,2, 3 . .32,1,2,3, and so on. When you pick the Previous box, the next lower gage number appears: 3,2,1,32 . . .3,2,1, and so on.
Look at the Gage menu box again. Pick the Gage menu box.
If the gage status is Disabled, perform the next step. When you pick the Gage menu box, the status will changeto Enabled. (To disable the gage again, pick the box again.)
-
Page 201
Chapter
7
Inspection Tools:
Gages 7-11
Selecting Define Gage Popup Menu and Parameters
Select the Define Gage popup menu, then select the parameters in that menu.
Your Action Pick the Define Gage menu box in the Gage popup menu.
Comments When you pick the Define Gage menu box, the Define Gage popup menu appears above the Gage popup menu, as follows:
Define Gage Popup Menu Define
Edges
0.0
Define Features
0.0
Range/Reference moo
Learn:
Nominal = 0.000 Pixels t
Env.
Camera A
Ref. Line
Gage
Popup Menu
Ref. Win iGage : Window
Mist
Exit
Selecting Gage Shape Pick the Shape menu box to select either a linear or a circular gage, whichever is appropriate for your application. Your choice of gage shape depends on the shape of the workpiece at the point where you want the gage to inspect it. Your Action
Comments
Look at the Shape menu box in the Define Gage popup menu.
The Shape menu box shows whether the currently selected gage is Linear or Circular. If the shape indicated is the one you want, skip the next step.
Pick the Shape menu box, if appropriate, to select Linear or Circular.
If necessary, pick the Shape menu box to toggle to the other gage shape. A gage of the selected shape will appear somewhere on the monitor screen. (To change back to the previous shape, pick the box again.)
Page 202
Chapter
7 inspection
Tools: Gages
7-12
Selecting
Define Gage Menu and
Popup Parameters
(continued)
Selecting
Operation
Popup Menu
Select the Op menu box, then select one of eight operations for a linear gage, or ten operations for a circular gage, as follows: 1. Count the number SW* 2. Count the number gage3. Count the number w w 4. Count the number mF* of Lvhitepixels along the length of the of black pixels along the length of the of white objects along the length of the of black objects along the length of the
5. Count the number of edges along the length of the gage. 6. Measure the linear distance between two specific edges (“features”) on a linear or circular gage. Measurements are stated in inches, centimeters, or pixels, according to how you configured the Units menu in Chapter 4,0 eruting Environment (under Env. in the Main Con Plguration menu). 7. Report the X coordinate Eocution of the active feature. The location is stated in pixels, inches, or centimeters, according to how you configured the Units menu in Chapter 4, Operating Environment (under Env. in the Main Configuration menu). 8. Report the Y coordinate locution of the active feature. The location is stated in pixels, inches, or centimeters, according to how you configured the Units menu in Chapter 4, Operating Environment (under Env. in the Main Configuration menu). 9. Measure the ungZe between the implied center of a circular gage and two specific edges on the gage. 10. Measure the angle between a line drawn through two specific edges on a circular gage and the X axis of the screen image. Your choice of gage operation depends on whichever gage operation is appropriate for your application. NOTE: The first four operations are not available when the gaging mode is set to Gray Scale. The last two operations are not available when the gage shape is set to Linear. Your Action Look at the Op menu box in the Define Gage popup menu.
Comments The Op menu box indicates the currently selected gage operation. If this is the gage operation you want, skip gage operation selection and continue instead with gaging mode selection.
Page 203
Chapter
,-
7
Inspection Tools: Gages
Selecting Operation
Selecting Define Gage Popup Menu and Parameters (continued)
7-73
Popup Menu (continued)
Comments
Your Action
When you pick the Op menu box, the Operation will appear, as follows:
Pick the Op menu box.
Define Gage Popup Menu 1 Shape:
Linear
0
#White
0
#Black Pixels q #White
Gaging Mode : Qp;. Ljifjir +&@ moo :;. .:;tLJ
Pixels
Obj’s
0
#Black Obj’s
0
#Edges
..a
Pick & Place popup menu
: :
-Operation Popup Menu
Define Edqes
Previous
Next
Env.
Camera A
Ref. Line
Ref. Win
!G-a& . . Window
Mist
Exit
Note that the Linear Gaging box in the Operation popup menu has a shaded square (a). This indicates that Linear Gaging is the currently selected gage operation. Pick the appropriate gage operation from the Operation popup menu.
If you pick a different gage operation menu box, a message will appear above the Operation menu, as follows:
WARNING: Selectin a new tool operation will result in the nomina ?, range, and statistical values being set to zero. Reselect to confirm. This message asks you to verify that you really want to change the tool operation. If so, pick the same gage operation menu box again. Pick the same gage operation menu box again.
When you pick the same menu box again, the new selection will be highlighted in the Operation popup menu and will appear in the Op menu box.
Page 204
Chapter
7
Inspection
Tools: Gages
7-14
Selecting Define Gage Popup Menu and
Parameters (continued)
Selecting
Gaging Mode Popup
-
Menus
Select the Gaging Mode menu box, then select the gaging mode (Binary or Gray Scale). NOTE: Selecting Gray Scale enab2es selecting the sub pixel functions; selecting Binary disables selecting the sub pixel functions. The Binary gaging mode changes pixels in the screen image to two states, white and black. The only pixels changed are those that directly surround the gage in a box called the “area of interest.” The CVIM system examines only these pixels when processing a gage The binary gaging mode is most appropriate when the workpiece has a sharp black-and-white contrast with its background, such as when it is backlighted. This mode is also appropriate when maximum precision is not needed for linear measurements. The Gray Scale gaging mode does not affect the pixels surrounding the gage -they remain in their original state, in which they can have any one of 64 shades of gray. The gray scale gaging mode is most appropriate when the workpiece has less contrast with its background, such as when it is frontlighted. This gaging mode is appropriate because features on the workpiece may appear in the screen image as varying shades of gray, and the binary gaging mode may not enable you to identify a stable edge location on these features. The gray scale gaging mode is also appropriate when you need greater precision in linear measurements, especially when used with the Sub Pixel function. As noted earlier, the Sub Pixel function is available on2y with the gray scale gaging mode. It enables a gage to detect an edge when that edge does not lie on a pixel boundary. The sub pixel function interpolates gray scale values along the edge to find a more accurate location for that edge within a pixel. Two advantages of using the sub pixel function are:
1. The gage measurement is more accurate, since the accuracy is no longer limited by the size of a pixel. 2. The gage measurement is more repeatable, since the edge is not likely to “dither” back and forth between two pixels. The disadvantage is a small increase in computation time.
.-
Page 205
Chapter
7
Inspection Tools: Gages 7-15
Selecting Gaging
Selecting Define Gage Popup Menu and Parameters (continued)
Mode
Popup
Menus
(continued)
The Sub Pixel function enables you to widen. a gage from one pixel to three or five pixels. The extra width enables a gage to analyze a small “neighborhood” of pixels on each side and thereby reduce the effects of an uneven or “noisy” edge. The function averages gray scale values along each side of a gage. When the gage encounters an edge, it can then find a more accurate location for that edge. The function is particularly useful when a gage crosses an edge at right angles and the edge is uneven or serrated. The disadvantage is an increase in computation time.
Use the following steps to select the gaging mode and associated functions. Your Action
Comments
Pick the Gaging Mode menu box in the Define Gage popup menu.
When you pick the Gaging Mode menu box, two menus appear alongside the first two popup menus, as follows:
Define
Gage
Popup Menu 1
IShape: Linear
I \
J
IPick & Place
1 Range/Reference Learn:
Nominal = 0.000 Pixels
Env.
Camera A
Gaging Mode Popup Menus
0.0
0
1 Pixel
0
3 Pixels
I
[7 5 Pixels
I
1
Ref. Line
Ref. Win
Window
Mist
Exit
Page 206
Chapter
7
Inspection
Tools: Gages
7-16 -
Selecting Define Gage Popup Menu and Parameters (continued)
Selecting
Gaging Mode Popup Menus (continued)
Comments
Your Action
Note that the Gray Scale and Disabled boxes in the gaging mode popup menus each have a shaded square (0). This indicates the current gaging mode configuration for the currently selected gage. Pi& Binary OF Gray Scale from the Gaging Mode menu.
Your choice of a Binary or Gray Scale gaging mode depends, in part, upon the type and direction of lighting you are using to illuminate your workpiece.
Ifyoupicked Gray Scale, pick 1 Pixel OF Disabled from the Sub Pixel menu.
Your choice of 1 Pixel or Disabled depends upon whether your gage application is performing measurements and requires maximum accuracy. If so, pick 1 Pixel.to enable the Sub Pixel function using a one-pixel-wide gage.
Pick the 3 Pixels OF 5 Pixels if that is appropriate for your application.
If your gage application is performing measurements, and one or both edges that the gage uses is rough or serrated, pick 3 Pixels or 5 Pixels. Try 3 Pixels first. If that doesn’t work well enough, pick 5 Pixels. Using Pick & Place Function Select the Pick & Place menu box, then position the gage over the workpiece and set the gage’s size and orientation. The following procedure has examples that show you how to use the light pen to manipulate a linear gage. A subsequent example shows how to manipulate a circuZar gage. Each example includes these basic steps: l Positioning a gage over the part of the workpiece that you want the gage to inspect. l Setting the gage to the appropriate length, size, and orientation. The example in the next several steps configures a linear gage vertically over a rectanglular workpiece, starting with the horizontal linear gage below. (The same steps apply regardless of the gage’s initial position.)
-
Page 207
Chapter
7
Inspection Tools:
Gages 7- 17
Selecting
Define Gage Popup Menu and Parameters (continued)
Using Pick & Place Function (continued)
Use the following steps to position the linear gage and set its length. Your Action Pick the Pick & Place menu box in the Define Gage popup menu.
Comments When you pick the Pick & Place line, a small square (0) will appear in the center and at each end of the gage:
-
.- .*
These squares are the “handles” manipulate the gage. Aim the light pen at the center handle.
- that the light pen uses to
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 the highlight square means that the light pen is now properly aimed at the handle. Pick the handle. Drag the gage to the center of the workpiece.
You can now “drag” the gage across the screen. When you move the pen, the entire gage will follow.
. .. .. . .._ . . .._ . . .. . ;~~~~~~‘~.‘~~~~~.~~.~~~~~~~~~.~~~j~~~~’~~~’~~~~~‘~~~~“~~.~~”~~..‘~.~..,~; ‘._.’ . .z . . .
.
- of
. ..
Page 208
Chapter
7
Inspection Tools: Gages
7-18 -
Selecting Define Gage Popup Menu and Parameters (continued) Your Action
Using Pick & Place Function (continued)
Comments NOTE: Keep the tip of the pen within about one-half inch of the screen. When you have the gage centered over the workpiece, press the pen against the screen to “lock” the gage at that position.
Aim the light pen at the rightmost handle.
Pick the handle. Drag the right end of the gage above the workpiece.
Lock the gage end in position above the workpiece.
Continue when the highlight square appears.