The text of a manual · part 19 of 47
Bulletin 2803 VIM Vision Input Module User Manual: 9 - Using Line Gages, pages 159 to 167
Pages 159 to 167 of 404, from Bulletin 2803 VIM 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 2803-VIM2
Page 159
Chapter
9
Using line Gages 9-19
Setting the Line Gage Function (continued)
Select the second icon (‘shown below). f m-m
Pick the Gage Function icon to display the second icon.
Upper Function -Locates and gives pixel location of the right (bottom) edge of the largest blob (black or white, as selected by Color icon) crossed by the line gage.
w-w ii m-B IIII +b /’
Lower
Function
- (same as lower function of first icon).
Example: Upper Function -Assuming the Color icon is set to white, the horizontal line gage shown below gives the pixel location of the right edge of the largest white blob, which corresponds in this case to the location of the right edge of the white square (Note: the example pixel location = 210; pick the Acceptance Range icon to see the actual measured value). Right edge of largest white blob, Pixel location = 210
Largest white blob
\
\ Monitor Image shows a \ horizontal line gage on threshold image 2 I
Page 160
Chapter 9-20
Using Line Gages
9
Setting the Line G:age Function (continued)
Select the third icon (shown below).
2, /’
Pick the Gage Function icon to display the t,hird icon.
Upper Function - Gives location of the center pixel of the largest blob (black or white, as selected by Color icon) crossed by the line gage. Lower Function w-w
- (same as lower function of first icon).
#
Example: UpperFunctionAssuming the Coloricon isset to white, the horizontal line gage shown below gives the location of the center pixel of the largest white blob, which corresponds to the horizontal center of the white square (Note : the example pixel location = 175; pick the Acceptance Range icon to seethe actual measured value). Center of largest white blob, Pixel location = 175
\
Monitor
LargestwhiTb
Image horizontal line gage on threshold image 2 y
1
,
Page 161
Chapter
9
Using Line Gages 9-2 7
Setting the line Gage Function (con timed)
Select the fourth icon (shown below). f -/’
-*
Pick the Gage Function icon to display the fourth icon. Upper Function - Gives pixel location of the left (top) edge of the leftmost (top) blob (black or white, as selected by Color icon) crossed by the line gage. Lower Function - Gives the pixel count of the width of the leftmost (top) blob (black or white, as selected by color icon) crossed by the line gage. This is similar to the lower function of the first icon (see first icon example); the only difference is this function gives the width of the leftmost (top) blob instead of the largest blob. Example: Upper Function -Assuming the Color icon is set to black, the horizontal line gage gives the location of the left edge of the leftmost black blob, which corresponds to the left edge of the black rectangle (Note : the example pixel location = 30; pick the Acceptance Range icon to see the actual measured value). Left edge of leftmost black blob,
Leftmost black
Monitor Imageshows a ‘\ horizontal line gage on threshold image 2
Page 162
Chapter 9-22
9
Using line Gages
Setting the Line Gage function (continued)
Select the fifth icon (shown below). A, f
A
-#
Pick the Gage Function icon to display the fifth icon. Upper Function - Gives pixel location of the center of the leftmost (top) blob (black or white, as selected by Color icon). This is similar to the third icon upper function (see third icon example); the only difference is this function locates the center of the leftmost (‘top) blob instead of the center of the largest blob. Lower Function - (same as lower function of fourth icon).
Select the sixth icon (shown below).
Pick the Gage Function icon to display the sixth icon.
-3’ r7 4-b
Upper Function - Gives pixel location of the right (bottom) edge of the rightmost (‘bottom) blob (black or white, as selected by Color icon) crossed by the line gage.
-#
Lower Function - Gives the pixel count of the width of the rightmost (bottom) blob (black or white, as selected by color icon). This is similar to the first icon lower function (see first icon example); the only difference is this function gives the width of the rightmost (bottom) blob instead of the largest blob. Example: Upper Function of sixth icon -Assuming the Color icon is set to black, a horizontal line gage gives the location of the right edge of the right-most black blob, corresponding tothe right edge of the black rectangle (Note : the example pixel location = 225; pick the Acceptance Range icon to see the actual measured value). Right edge of rightmost black blob, Pixel location = 225 horizontal line gage on threshold image 2
Page 163
Chapter
9
Using Line Gages 9-23
Setting the Line (Gage function (continued)
Select th:e seventh icon (shown below).
-- f
-.g. El\ --* /’
Select the eighth icon (shown below).
Pick the Gage Function icon to display the seventh icon. Upper Function-Gives pixel location of the center of the rightmost (bottom) blob (black or white, as selected by Color icon). This is similar to the third icon upper function (see third icon example); the only difference is this function locates the center of the rightmost (bottom) blob instead of the center of the largest blob. Lower Function - (same as lower function of sixth icon). Pick the Gage Function icon to display the eighth icon. Upper Function - Gives total of all white pixels crossed by the line gage (status of Color icon has no effect on this function). Lower Function - Gives total of all black pixels crossed by the line gage (status of Color icon has no effect on this function). Example of Upperand Lowerfunctions -A horizontal line gage gives the number of black pixels crossed, and the number of white pixels crossed (Note: the example black pixel count = 125, and the example white pixel count = 95; pick the Acceptance Range icon to see the actual measured values). Total of all black pixels = 95
Monitor image shows a \ horizontal line gage on threshold image 2
Page 164
Chapter 9-24
9
Using Line Gages
Setting the Line Gbge Function (continued)
Select ,the ninth icon (shown below).
Pick the Gage Function icon to display the ninth icon.
Upper Function - Gives total of all blobs (black or white, as selected by Color icon) crossed by the line gage.
f#*
#A-
Lower Function - Gives total of all edges crossed by the line gage (status of Color icon has no effect on this function). Example: Upper Function -Assuming the Color icon isset to black, a horizontal line gage givesthe number of black blobs crossed (2 in the diagram). Note: If the Co/or icon were set to white, the number of white blobs crossed would be 3 in the diagram below).
\
Total of all black blobs = 2
/
Monitor Image shows a horizontal line gage on threshold image 2
Example: LowerFunction ,-A horizontal line gage gives the number of edges crossed (4 in the diagram below). Note: The line gage ends are not counted as edges by the line gage-only transitions from white to black or black to white are counted as edges). Total of all edges crossed = 4 horizontal line gage on threshold image 2
Page 165
Chapter
Setting the Acceptance Range
9
Using fine
Gages 9-25
Once you have placed a line gage and set the functions, the next step is to set the acceptance range of the line gage. What is the acceptance range? Before you use a line gage to measure the feature(s) of interest on a workpiece, you must set the range of acceptable measurement values for each function of that line gage. That is, you set an upper limit and a Zouler limit for the line gage results, for both the upper and lower function. When the VIM2 performs an inspection, each line gage returns two results based on its two functions; if both line gage results come within the upper and lower limits (or acceptance range) for those functions, the line gage inspection passes. If either result is not within range, the line gage fails. If a line gage fails, the inspection fails; as a result, the VIM2 module indicates a Reject decision through the swingarm, the Decision LED, and the discrete bit, as well as through the results data blocks. How do you set the acceptance range for a line gage? In order to set the acceptance range for a line gage function, you must know (1) the measured result of the line gage function for a nominal or ideal part, and (2) the amount of variation that is acceptable for that measurement (if any). What you must do is: 1. Stage and light the ideal (or nominal) part with the part in the ideal (or nominal) position for inspection. 2. Set up the line gage (select and enable line gage, select threshold image, place the line gage, and select function). 3. Pick the Acceptance Range icon and observe the result for the ideal part for each of the two line gage functions. 4. Determine the amount of acceptable variation for the measured value for each of the two line gage functions, and set the upper and lower limits for each function. Hint: If you are interested in applying the result of only one of the two functions, set the upper and lower limits for the unused function to extreme values, so that the unused function does not fail during inspection. Do the same any time you need to use a gage function result and you do not want the result to cause the inspection to fail during operation. For example, you may want to use the line gage result in a math tool, and not have the line gage result cause an inspection failure.
Page 166
Chapter 9-26
Setting the Acceptance Range (continued)
Using Line Gages
9
5. Test the inspection configuration by using the VIM2 module as configured, and inspecting typical parts. Refine the line gage function limits as necessary. Can you use the VIM2 module’s Learn mode and statistics to help set the acceptance ranges? Yes, a good way to set an appropriate acceptance range would be to use the VIM2 module’s learn mode. You could, for example, set the acceptance ranges as follows: 1. When configuring the VIM2 module for your inspection, set the acceptance ranges for the line gage functions to extreme limits, since the VIM2 module does not include results of failed inspections in the statistics. 2. Set the VIM2 module to run in learn mode (see Chapter 13 for more information on the learn mode) before exiting to run mode. 3. While the VIM2 module is running in learn mode mode, inspect a sampling of known good parts. 4. Go back to setup mode, and observe and record the statistics for the line gage functions (see “Accessing Statistics” this chapter) for known good parts. Note: The statistics will include minimum result, maximum result, and average result for the inspected sample for each line gage .function. 5. Reset, the statistics to 0 (see Resetting the Statistics, Chapter 13). 6. Inspect a sampling of known bad parts, with the VIM2 module set to Eearn mode. 7. Go back to setup mode, and observe and record the statistics for the line gage functions for known bad parts. 8.
Adjust the acceptance range limits according to the statistical feedback. That is, set, the acceptance ranges so that results for good parts will be within range, and results for bad parts will be out of range.
The next section tells how to use the Acceptance Range menu to set the upper and lower limits, or acceptance range, of the line gage functions.
Page 167
Chapter
Setting the Acceptance Range
9
Using Line Gages 9-27
To set the acceptance range for a line gage function, access the Acceptance Range menu.
(continued)
Your Action
Comment
Pick the Acceptance Range icon on the Lin.e Gage menu.
I
Function select ’ $yr or lower)
Lower limit
’
Acceptance Range Icon
/ I Current measured value
&per limit
Pick the Function Select icon to select the upper or lower function.
Select either the upper or the lower function of the line gage. The icon, when picked, toggles between the upper and lower function of the function icon selected on the Line Gage menu:
Selected Gage function icon on Line Gage menu r)
Observe
[‘t)
the function result.
Select the limit (upper or lower) you want to change.
-*,I function Select icon toggles between upper and lower function
On the right side of the Acceptance Range menu are three numbers, separated by tt< =” signs. The middle number is the current measured result of the selected line gage function. For example, if you selected the upper function, the result of the line gage’s upper function is displayed. The lower Zimit is the left number of the three numbers displayed on the right side of the menu, the upper limit is the number on the right (Note: Default values are displayed for the limits initially). To select either limit, pick that limit with the light pen. The selected limit is underlined.
Selected limit is underlined