The text of a manual · part 23 of 42
Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 7 - Inspection Tools: Gages, pages 218 to 226
Pages 218 to 226 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 218
Chapter
7
Inspection
Tools: Gages
7-28
Selecting
Define Gage Menu and Parameters (continued)
Using
Pick & Place Function
(continued)
Popup
Your Action
Comments When you pick the “help” icon, the message box will appear in the upper-left corner of the monitor screen: x = 369, Head Location: x=376, Tail Location: y=102 Origin: x = 399, y = 126 y= 75 Radius:49
The numbers indicate the circular gage’s current position and size: the X- and Y-axis coordinates of the gage’s head, tail, and center (“origin”), and the gage’s radius in pixels (as measured along the X axis). These numbers may be useful to you in setting the gage’s radius when you use the midpoint handle. Aim the lightpen at the midpoint handle.
Continue when the highlight square appears.
X
Pick the midpoint handle.
Page 219
Chapter
Selecting Define Gage Popup Menu and Parameters (continued) Your Action
7
Inspection Tools: Gages
Using Pick & Place Function
7-29
(continued)
Comments
Drag the gage’s midpoint downward, as shown.
Note how the gage’s position and size have changed. Note also that the midpoint handle can move only in a direction that is perpendicular to a line drawn through the two gage ends, as shown below. This is true regardless of the orientation of the ends.
Page 220
Chapter
7
Inspection
Tools: Gages
7-30 -
Selecting Define Gage Popup Menu and Parameters (continued)
Using Pick & Place Function (continued)
Comments
Your Action Drag the gage’s midpoint upward as shown.
. . .
. . . . . . . . . . . . .
‘. ‘. ‘. ‘. ‘_ ..
I. .. ... ‘.. ‘._
When you are finished, lock the gage in place.
.. . .
. ..___
,.-,.. ‘...I __... ..i --.. Z’-’
,.’
: _:. . ..’ ‘.
_’
,’
,.’
Page 221
Chapter 7 inspection Tools: Gages
Selecting Define Gage Popup Menu and Parameters (continued) Your Action If necessary, use the vernier arrows to “fine-tune” the position or size of the gage.
7-3 1
Using Pick & Place Function (continued)
Comments You can change the gage’s size or position more precisely by using the vernier arrows. The vernier arrows enable you to make these changes in small increments. You can access the vernier arrows while either picking a gage handle or placing the gage or gage end.
Press and hold the light pen tip against the gage handle, gage, or gage 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
1 Move entire age up, down, . . le 9t, or
1
Move gage end CW or CCW. Increase or decrease gage arc and radius.
right
If you picked the “center” handle, Pick an arrow once to move the entire gage one pixel in the arrow’s direction.
The up, down, right,, or left arrow, will move the entire gage one pixel in the direction indicated by the arrow. or, if you picked a gage-end handle,
Pick an arrow once to move the gage end CW or CCW.
The right arrow will move the gage end clockwise (CW); the left arrow will move the gage end counterclockwise (CCW). or, if you picked the “midpoint”
Pick an arrow once to change the gage radius and arc.
handle,
The right arrow will increase the number of degrees in the arc; the left arrow will decrease the arc. At, the same time, the radius length will change.
Pick and hold an arrow to change the gage size or position continuously.
When you pick and hold an arrow, the gage’s size or position will change slowly for the first five or six increments. It will then change at a more rapid rate.
Pick the “return” symbol to release the vernier arrows.
When the gage or gage end is properly positioned, pick the “return” symbol (4) to release the vernier arrows and return to the pick-and-place mode.
Page 222
Chapter
7
Inspection Tools: Gages
7-32
Selecting Define Gage Popup Menu and Parameters (continued)
Using Define Edges function:
Binary Gaging Mode
Pick the Define Edges menu box, then perform the threshold adjustments in order to determine the edge(s) that the gage will be using to measure the workpiece. If you selected the Gray Scale gaging mode, go to the section called Using Define Edges Function: Gray Scale Gaging Mode. Use the following steps for setting the threshold if you selected the Binary gaging mode.
Your Action
Comments
Pick the Define Edges menu box in the Define Gage 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:
4 Shape:
H I
Linear
Gaging Mode l .e
Op: Linear Gaging
0.0
Pick & Place
0.0
~Defin~Edges
.: : ;: &j
Define Features l oe
Range/Reference l oe
Learn:
Nominal = 0.000 Pixels
Gage 1:
Enabled
Previous
Next
Env.
I 1Camera A
Define Gage Popup Menu
4
T H R E S H 0 L D
Slide Bar’
Filter __, Popup Menu
L
4’ F
+ PopupGage Menu
Ib
3 Pixels I 1 Ref. Line
;.
I
Ref. Win
~$acj~ ::
I I
I
Window
:.. ul r:’
Mist
I
Exit
Also on the monitor screen, a small “X” will appear along the gage wherever it “sees” an edge. As shown above, the gage sees two 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.
-
Page 223
Chapter
7
Inspection Tools:
Gages
7-33
-
Selecting Define Gage Popup Menu and Parameters (continued) Your Action Look at the threshold cursors on each side of the slide bar.
Using Define Edges Function:
Binary Gaging Mode
(continued)
Comments The cursors on each side of the slide bar are the principal means by which you will define “edges” (that is, transitions) that occur along the gage. The gage lies entirely within a box called the “area of interest.” This box contains the binarized image. All parts of the image outside the box remain in gray scale form. The cursors’ positions along the slide bar represent image brightness values from 1 to 63, with 63 at the top and 1 at the bottom. Think of the left cursor this way: Any part of the binary image area having a higher brightness value (that is, lighter) than the value indicated by the cursor’s current setting will appear black in the binary image. For example, if the cursor is set to a brightness value of 45, then all parts of the binary image having brightness values higher than 45 will appear black. Think of the right cursor this way: Any part of the binary image area havin a lower brightness value (that is, darker) than the value in f icated by the cursor’s current setting will appear black in the binary image. For example, if the cursor is set to a brightness value of 27, then all parts of the binary image having brightness values lower than 27 will appear black. Thus, all parts of the binary image having a brightness value between the current settings of the two cursors will appear white. In the examples above, all parts of the binary image having brightness values from 27 to 45 will appear white; all other parts will appear black.
Pick &cursor.
Aim the light pen at the cursor. When you see a red box around the cursor, pick the cursor. This causes the cursor to turn yellow, indicating that you can now “drag” the cursor up or down.
Drag the left cursor to its topmostposition.
This initializes the left cursor to the “63” brightness value.
Pick and drag the right cursor to its bottommost position.
This initializes the right cursor to the “1” brightness value.
Pick the &cursor again and drag it downward.
Drag the left cursor downward until those parts of the binary image that you want to be white start to turn black. Then, drag the cursor up slightly until those same areas just change to white again. As you drag the cursor up and down, an X will appear along the gage wherever an edge (binary transition) is detected.
Page 224
Chapter
7
Inspection Tools: Gages
7-34
Selecting Define Gage Popup Menu and Parameters (continued) Your Action Pick the right cursor again and drag it upward.
Using Define Edges Function:
Binary Gaging Mode
(continued)
Comments Drag the right cursor upward until those parts of the binary image that you want to be black just turn black. As you drag the cursor up and down, an X will appear along the gage wherever an edge (binary transition) is detected.
Alternately pick and drag each cursor until a stable X appears at each required edge.
Your objective is to produce a stable X at each edge that the gage must “see” in your application. Other X’s may also appear along the gage; however, you can configure the system to recognize only the X’s at the required edges. Try various positions of the two cursors to produce the most stable X’s. Trial and observation binary threshold.
Look at the Filter menu.
is the correct procedure for setting the
If white or black “noise” in the image prevents you from gettin stable X’s at the desired edges, try using white or black Baltering. In the Filter menu, the filled-in square (0) shows the currently selected filter level. This determines the number of consecutive black or white “noise” pixels that will be removed (filtered) before the gage looks for the edges. Black or White determines which color of pixel should be considered “noise.” The filter, in effect, masks out the “noise” pixels so that they don’t create false edges. For example, if the filter menu is set to White and 3 Pixels, and the gage encounters three (or fewer) consecutive white pixels in a stream of black pixels, these white pixels are removed (filtered out), and no edge is detected. If, on the other hand, the gage encounters four (or more) consecutive white pixels, an edge is detected (actually, two edges will be detected - a leading edge and a trailing edge - if the gage crosses through the string of white pixels). Your objective is to set the filter to a level that removes enough visual “noise” from the binary image to prevent the gage from detecting false edges.
Pick the White or Black menu box in the Filter popup menu.
This menu box “toggles” between White and Black when you pick it repeatedly. Select White to filter out small white noise, or select Black to filter out small black noise.
Page 225
Chapter
7 hspection
Tools: Gages
Using Define Edges Function:
Selecting Define Gage Popup Menu and Parameters (continued)
7-35
Binary Gaging Mode
(continued)
Comments
Your Action
If your application does not need filtering, pick 0 Pixels. Otherwise, try various values of filtering to get the cleanest binary image and stable X’s at the required edges.
Pick the appropriate filter value from the Filter menu.
As is the case in setting the binary threshold, trial and observation is appropriate here. You may want to try several filter settings to see which one is best for your particular application. Using Define Edges Function:
Gray Scale Gaging Mode
Use the following steps for setting the threshold/scale selected the gray scale gaging mode.
if you
If you have selected the Gray Scale gaging mode, when you pick the Define Edges menu box, the slide bar appears on the monitor screen, as follows:
Pick the Define Edges menu box in the Define Gage popup menu.
Third Edge Linear Gage
4
‘Fourth Edge Shaoe:
:., .::: : : CD
Linear
Left Cursor
/
Slide Bar’
0.0
Range/Reference
I Learn:
Nominal
=
I 5
Right/ Cursor Previous Env.
T H R E S H 0 L D I S C A L
Next Camera A
Ref. Line
Ref. Win
:.:. :. ~@g$: Window b -
Mist
Exit
Page 226
Chapter
7
Inspection Tools: Gages
7-36
Selecting
Define Gage Menu and Parameters (continued) Popup
Your Action
Using Define Edges Function:
Gray Scale Gaging Mode
(con timed)
Comments Also on the monitor screen, an “X” will appear along the gage wherever it “sees” an edge. As shown above, the gage sees four edges on the circular workpiece. If no X’s appear, or if too many X’s appear, you will need to adjust the threshold/scale cursors.
Look at the cursors on each side of the slide bar.
The cursors on each side of the slide bar are the principal means by which you will define the gray scale image in which the “edges” (that is, the transitions) occur along the @%eThe left cursor represents the current setting of the “gradient threshold.” This setting determines the minimum change in brightness value that must occur, within the number ofpixels indicated by the scale factor, before the CVIM system can “detect” an edge. When the left cursor is at its lowest position, it selects a gradient threshold value of 0.00. This indicates that any change in brightness value will cause the system to detect an edge. When the cursor is at its highest position, it selects a gradient threshold value of 63.00. This indicates that the system will detect an edge only when the change in brightness value is 63. The right cursor represents the current setting of the “scale factor.“This setting determines the number of consecutive pixels that the CVIM system examines to determine whether or not an edge (transition) exists. Note that the larger values of scale factor increase processing time. When the right cursor is at its lowest position, it selects the smallest scale factor (2); and when the cursor is at its highest position, it selects the largest scale factor (41).
Pick the leftcursor.
Drag the left cursor to its bottommost position.
Aim the light pen at the cursor. When you see a red box around the cursor, pick the cursor. This causes the cursor to turn yellow, indicating that you can now “drag” the cursor up and down. This initializes the left cursor to the “0.00” gradient threshold.
Pick and drag the right cursor to its bottommost position.
This initializes the right cursor to the “2” scale factor. At this point, many X’s (“edges”) may appear along the gage.
Pick the right cursor again and drag it upward.
Drag the cursor upward until the X’s at the desired edges are in good, stable locations. Many edges may still be present along the gage.