The text of a manual · part 17 of 47
Bulletin 2803 VIM Vision Input Module User Manual: 9 - Using Line Gages, pages 141 to 149
Pages 141 to 149 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 141
Chapter
Chap tier Objectives
Some Questions and Answers about Gages
9
Using line Gages
The objective of this chapter is to show how to use the Line Gage menu icons to set up a line gage as part of a VIM2 module configuration for an inspection application. This chapter begins with questions and answers about gages.
This section introduces the topic of line gages by posing some questions about line gages, and answering them. What is a line gage? A line gage is an inspection tool which checks features in a selected binarized (threshold) image by analyzing linear groups of pixels -either black or white (see Chapter 3). What does a line gage detect? Line gages can be set to operate in any of a number of ways. A line gage can detect position of edges of “blobs” (see Chapter 3 for ‘blob” description), detect position of center of blobs, detect widths of blobs, count number of pixels crossed (black or white), or count number of edges crossed. How many line gages are there? There are 24 line gages in all - line gages X, Y, and numbers l-22. This chapter discusses only line gages I-22. Line gages X and Y are special cases -they are used for workpiece position shift compensation (discussed in Chapter 11). How do you set up a line gage? Using the Line Gage menu icons, you first select the line gage number (l-221, ‘and enable the gage. You then configure the selected line gage, which is shown on the monitor: you select which one of four threshold images to inspect; you select attributes such as vertical or horizontal orientation, line gage function, pixel color, etc.; you place the line gage over the feature(s) of interest on the threshold image; and you then set an acceptance range for the line gage inspection results - during inspection this range provides the basis for an accept or reject decision. How can you place a line gage? Using the Line Gage menu icons you can: l Select horizontal or vertical orientation (line gages can have only one of two orientations, vertical or horizontal). l Lengthen or shorten the line gage (a line gage can cross the entire monitor screen if need be, or be as short as a single pixel). l Move the line gage up or down, and/or side to side, until positioned as required over the feature(s) of interest.
Page 142
Chapter 9-2
Some Questions and Answers arbout Gages (continued)
9
Using Line Gages
What does a line gage inspect? A line gage inspects only the pixels it crosses in the selected threshold image, so positioning is very important. A line gage analyzes the pixels it crosses to detect blobs, edges, or pixels (see Chapter 3 far an overview of line gage operation). When do you set up a line gage? Set up a line gage after you have: l Set up the workstage, and have a workpiece in the nominal or ideal position (see Chapter 41, so that the workpiece features to be inspected are shown clearly in the field of view (and on the monitor). l Set the threshold image(s) to enhance the particular feature(s) you are going to inspect (see Chapter 8).
Accessing the Line Gage Menu
To begin to set up a line gage, first access the Line Gage menu as described below.
Your Action Pick the Setup icon on the Main menu to access the Setup menu. Setup Menu
Pick the Line Gage icon.
Comments If the Main menu is displayed, access the Setup menu by picking the Setup icon (the “open padlock”). If the Setup menu is already displayed (as shown below), skip this step. H
Line Gage Icon
Picking the Line Gage icon on the Setup menu displays the Line Gage menu:
Line Gage Menu
Enable ! Disable /con
Pick the second
(enableldisable)icon.
Pick the ETC icon.
When you pick this icon, the diagonal slash disappears.
Picking the enable /disable icon enables the line gage, and allows you to pick other icons on the Line Gage menu. Picking the ETC icon leads to more Line Gage icons:
Page 143
Chapter
The Line Gage Icons lzl X
I-1 m El III
9
Using Line Gages 9-3
Here are brief descriptions of each of the Line Gage icons, beginning with the first set:
Gage Select - Pick this icon to select the gage from a choice of X, Y, or numbers l-22. X, Y, then numbers l-22, then X, Y, etc., are displayed in sequence as you repeatedly pick the icon, or hold the light pen tip down against the icon. The selected line gage is displayed on the monitor. Gage Enable - Pick this icon to enable or disable the selected gage. This icon, when picked, toggles between enabled or disabled (disabled is indicated by diagonal slash across the icon). You must enable a selected gage in order to use the remaining Line Gage icons to configure a gage. Also, a gage must be enabled in order to be part of your inspection configuration. Gage Orientation -Pick this icon to select line gage orientation -either horizontal or vertical. For gages l-22, this icon, when picked, toggles between vertical and horizontal.
Anchor /Float -This icon appears as shown at left when either the X or Y gage is selected.
For gages l-22, this icon enables or disables position shift compensation, and when picked toggles between enabled (indicated by wavy lines) or disabled (indicated by anchor).
Kl 1
Image -Pick this icon to select the threshold image which the gage will inspect (there are 4 threshold image choices). As you repeatedly pick this icon, numbers l4 are displayed in sequence, indicating the selected threshold image. The selected threshold image is displayed on the monitor. Threshold
The other two icons displayed on the menu are the familiar ETC icon and OK icon. Recall that picking the OK icon returns you to the previous menu (the Setup menu in this case). Picking the ETC icon displays additional Line Gage menu icons (see next page).
Page 144
Chapter 9-4
The fine Gage /cons (continued)
9
Using Line Gages
If you pick the ETC icon on the Line Gage menu, a second set of Line Gage icons appears. These additional Line Gage icons are described below:
Gage Move - Pick this icon to access the Gage Moue menu for the selected line gage. Use the Gage Moue menu to strategically position the line gage on the image shown on the monitor screen.
El
Gage Size - Pick this icon to access the Gage Size menu for the selected line gage. Use the Gage Size menu to lengthen or shorten the line gage.
nil 1
Gage Function-Pick this icon to assign the functions for the selected line gage. This icon, when picked, displays in sequence the different icons symbolizing the available line gage functions. Each icon represents two functions; a line gage always performs two inspection functions simultaneously.
f w-w
* I
# •l I El
Color - Pick this icon to select the color - either black or white - of the blobs or pixels to be detected by the line gage inspection. This icon, when picked, toggles between black (indicated by the black box with white “#“) and white (white box with black “#“).
bl
Acceptance Range - Pick this icon to access the Acceptarzce Range menu for the selected line gage. Use the Acceptance Range menu to set the upper and lower limits for the inspection results, and to read the current line gage result and/or line gage statistics.
I4
Gage Filter - Pick this icon to select the type of pixel filtering for the selected line gage. Picking this icon toggles through the three options - none (“O”), l-, or 2-pixel filtering.
HI
L
-0
If you pick the ETC icon on the second Line Gage menu, the first set of Line Gage icons returns to the screen. Exiting the Lime Gage Menu
Remember, to exit the Line Gage menu, you must return to the first set of line gage icons, which includes the OK icon. Then, pick the OK icon to exit the Line Gage menu and return to the Setup menu.
Page 145
Chapter
Configuring Line Gages
9
Using Line Gages 9-5
This section explores the features and options you will encounter when configuring a line gage, and leads you through example procedures for setting up a line gage. Note: For example purposes, these procedures refer to the target pattern included with this manual. Refer to the “Quick Start” section of Chapter 6 for more information.
Access the Line Gage Menu Your Action Pick the Setup icon on the Main menu to access the Setup menu
Your first step is to access the Line Gage menu. Comments If the Main menu is displayed, pick the Setup (the “open padlock”) icon to access the Setup menu (if the Setup menu is already displayed, skip this step): Line Gage /con
Pick the Line Gage icon to access the Line Gage menu.
When you pick the Line Gage icon, the Line Gage menu appears:
When you select the Line Gage menu, a line gage is displayed on the monitor. The first time you use the Line Gage menu, the line gage is displayed in the default position in the center of the screen, with horizontal orientation (see illustration below). The default threshold image is “1.” line gage displayed on threshold image 1 (example image).
Page 146
Chapter 9-6
Select and Ena b/e Line Gage
9
Using Line Gages
Select the line gage you wish to configure using the Gage Select icon (Note: Two special cases of line gage, the “X” and “Y” float gages, are discussed in Chapter 11; this chapter refers only to line gages l-22).
Gage Enable Icon
When you pick the Gage Select icon, the number increments through all the line gages - X, Y, 1,2 . . .22, X, Y, 1, etc. The selected line gage is displayed on the monitor; when first displayed, the line gage is shown in the “home” position in the center of the monitor, with horizontal orientation. Gage Enable -In order to configure the selected line gage, you must enable the line gage. Pick the Gage Enable icon so the diagonal slash is removed, indicating gage is enabled. Note: A line gage must be enabled in order to be part of your inspection operation. You can disable a line gage after you have configured it - when disabled, a line gage does not function as part of the configuration (Note: A line gage cannot be disabled if it is included in a math tool configuration - see Chapter 12). Your Action Select the line gage number.
Select line gage number 1.
Comments Pick the Gage Select icon (the first icon on the left) to change the gage number. To cycle through the line gages rapidly, hold the light pen tip down against the icon.
Example: Select and Enable Line Gage 1 Pick the Gage Select icon until the number “1” is displayed.
El 1 Enable selelcted line gage.
Pick the Gage EnabZe icon (the second icon) so the diagonal slash is removed, indicating the line gage is enabled.
Page 147
Chapter
Select Gage Orientation
9
Using Line Gages 9-7
Each line gage is oriented in either of two selectable directions - horizontal or uertical; you select the gage orientation by picking the Gage Orientation icon.
. Gage Orientation
Line gages are horizontal when first selected. As you pick the Gage Orientation icon, the icon toggles. The orientation of the line gage on the screen matches that of the icon. Select the orientation based on the application. If you wish to measure vertical dimensions of the workpiece feature(s), for example, choose vertical for the line gage orientation. Comments
Your Action Change the Gage Orientation.
Pick the Gage Orientation icon to toggle the line gage between vertical and horizontal.
Horizontal
Example - Select Horizontal
Select horizontal.
Horizontal
Pick the Gage Orientation displayed on the screen.
line Gage in “Home” Position
Orientation icon so the horizontal line gage is
Vertical Line Gage in “Home” Position
1:!. :: .I
Note: The VIM2 module stores the horizontal and vertical selections as two different gages in terms of line gage placement. For example, if you select vertical, then change the position of the gage, then select horizontal, the gage orientation changes Itohorizontal, and the line gage returns to its “home” position in the center of the screen. If you then select vertical again, the line gage returns to the last position it held as a vertical gage.
Page 148
Chapter 9-8
Select Anchor or Float Status
9
Using Line Gages
Anchor or Float status refers to VIM2 module’s X/Y shift compensation capability. Use the Anchor /Float icon to enable or disable the XNshift compensation feature.
’
Anchor
/ Float icon
X1 Y Shift compensation -The VIM2 module can be configured to adjust for shifts of the workpiece in the image from inspection to inspection, using the “X” and “Y” float gages (the VIM2 module’s X./Y shift compensation is discussed in detail in Chapter 11). When configuring a line gage, you select Float if you expect the workpiece to shift, and you want to enable the line gage to use the shift compensation capability. With Anchor selected, position shift compensation is disabled. Your Action Change the Anchor I Float status.
Comments Pick the Anchor I Float icon to toggle the line gage status between anchor (indicated by the anchor in the icon) and /lout (indicated by the three wavy lines).* As you toggle the icon, the appearance of the line gage does not change. Float *Note: In order to select the float status for a line gage, either or both of the “X” and “Y” float gages must first be enabled (if the Anchor/Float icon does not toggle, this is because both the “X” and “Y” float gages are disabled).
Select Anchor Status
Example - Select Ant hor Pick the Anchor /Float icon so that the Anchor is displayed.
El X Y
*Note: The Anchor/Float icon appears as shown above for line gages l-22 only. When either “X” or “Y” float gages are selected, the icon has a different function, and toggles between these two icons (see Chapter 11 regarding float gage information):
Page 149
Chapter
Select Threshold image
9
Using Line Gages 9-9
Select the threshold image you wish to use with the selected line gage. There are four different threshold images (numbered l-4) available. The number in the threshold image icon indicates the selected threshold image. The selected threshold image is displayed on the screen.
’
Threshold Image /con
In selecting the threshold image, pick the one which best highlights the feature you wish to measure with the selected line gage. That is, the feature you want to measure should stand out in contrast from the area surrounding that feature. Note: Prior to setting up the line gages, first set the threshold images you wish to use for your inspections, at least preliminarily (see Chapter 7). For example purposes, we refer in this chapter to the use of the two threshold images set in the “Quick Start” section of Chapter 6. Comments
Your Action Pick the threshold image icon to change threshold images.
Picking the threshold image icon cycles through images l- 4. The corresponding images are shown on the monitor.
Example - Select Threshold
Select threshold image 2.
Image 2
Pick the icon until the number “2” appears in the icon. With the icon showing “2,” threshold image 2 appears on the screen (see diagram below).
Line Gage Displayed on Threshold Image 2 (example image)