The text of a manual · part 8 of 42
Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 5 - Camera and Lighting Parameters, pages 77 to 86
Pages 77 to 86 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 77
Chapter
Selecting Lighting/Resolution Popup Menu and Parameters (continued) Your Action Pick the left cursor. Drag the left cursor to its !opmost position.
5
Camera and LightingParameters
5-71
Setting Light Reference Threshold (continued)
Comments When you pick the left cursor, its color changes to yellow. You can now “drag” the cursor up and down. This initializes the “high reference” to 150.
Pick the right cursor. Drag the right cursor to its bottommost position.
This initializes the “low reference” to 0 (zero). NOTE: The green and blue colors referred to earlier are provided to assist you in visually setting the light reference threshold. They have the following meanings: Green: All green areas of the camera image will turn completely white when you exit the Light Reference adjustment. Blue: All blue areas of the camera image will turn completely black when you exit the Light Reference adjustment. If any part of the screen image is still green and/or blue at this time, perform the following two additional steps. If not, skip these two steps.
Pick the Focus Camera menu box. Adjust the lens aperture to its :optimum setting.
When you pick the Focus Camera menu box, the image on the screen will be “live” again, and the message box will reappear. A smaller f-stop provides a greater depth of field. Use the “help” menu for the next two steps.
Drag the I& cursor slowly downward.
Drag the left cursor slowly downward until the green color begins to “invade” the workpiece image, then reverse the cursor until the green color just barely disappears from the workpiece image. On the help menu, a “high reference” range of 85 to 95 typically provides the best results.
Drag the ri,$ht cursor slowly upward.
Drag the right cursor slowly upward until the blue color begins to “invade” the workpiece image, then reverse the cursor until the blue color just barely disappears from the workpiece image. On the help menu, a “low reference” range of 7 to 12 typically provides the best results. Although the image contrast should now be optimized, you may need to experiment by making slight changes in the aperture setting, the threshold settings (for gages and windows), and the light reference threshold. Your objective is to get the most consistent results from the inspection tools.
Page 78
Chapter
5
Camera and Lighting Parameters
5-72
Selecting Light Probe Popup Menu and Parameters
-
Select the Light Probe popup menu, then select and configure the parameters and functions in that menu. NOTE: You must configure a light probe for each camera if your application requires two cameras. Otherwise, configure only the light probe for the camera port (A or B) that you will be using. The light probe detects the intensity of light at a particular place within the camera’s field of view. The probe measures light intensity on a scale of 0 to 63, where 0 is the darkest light intensity value and 63 the brightest. The light probe is a pre-inspection tool: If the probe finds that the light intensity has changed, but is within prevously specified range limits, the CVIM system will provide brightness compensation for the light variations and continue the inspection. Brightness compensation modifies gray scale values from the camera to best match the original image. Thus, the CVIM system can continue inspections in spite of light variations, so long as those variations remain within the specified range limits. If the light intensity is above or below a specified limit, the CVIM system discontinues the inspection and reports the condition on a specified output line. The basic steps for configuring
- the light probe are these:
l Enable the light probe for use with either a strobe light or continuous light. l Prepare a light intensity reference patch and position it within the screen image. l Position the light probe “box” over the reference patch in the screen image.
l Perform a “learn” function to get the light intensity value that the light probe “sees” at the reference patch.
l Determine the light-intensity probe.
range limits for the light
The following steps show you the details of configuring light probe, the
-
Page 79
Chapter
5
Camera and LightingParameters
5-13
Selecting Light Probe Popup Menu and Parameters (continued)
Your Action Pi& the Light Probe menu box.
Comments When you pick the Light Probe menu box, the Light Probe popup menu appears above the Camera A (or B) popup menu, as follows: Status Disabled l .e
Pick & Place
0.0
Learn:
+
45.140
Range/Outputs
Light Probe Popup Menu
0.0
Focus Camera Camera Type/Mode l oe t--P Object Calibration
0.0
Grid Calibration
0.0
I j:: : !& Ref. Line En”, ~~~~era
Camera Popup Menu
Ref. Win
These are the configuration Light Pro be popup menu:
Gage
Window
Mist
Exit parameters and functions in the l Status: Selects the Probe Status popup menu, from which you can enable or disable the probe and select the image field that the probe is to measure. l Pick & Place:
Enables you to position the light probe on the screen, subject to the setting in the Status menu box. Takes a sample reading of the light probe each time that you pick this menu box.
l Learn:
l Range/Output: Selects the acceptable range limits for the values that the light probe reads, and assigns the results (pass/fail) to the output lines that you specify.
In addition to the Light Probe popup menu, a small red box will appear somewhere on the screen, as follows:
l-l
+----- Light Probe Symbol
Page 80
Chapter
5
Camera and Lighting Parameters
5-14
Selecting
Light Probe Popup
Selecting Probe Status Popup Menu
Menu and Parameters
Select the Probe Status popup menu, then select the light probe status required in your application.
(continued)
Your Action
Comments
Look at the Status menu box in the Light Pro be popup menu.
The Status menu box displays the currently selected probe status for camera A (or B). Refer to the Camera Parameters table in Appendix B for the light probe status you selected for the camera currently appearing in the Camera menu box. If the status you checked in that table is not currently in the Status menu box, use the next steps to select a different status.
Pick the Status menu box in the Light Probe popup menu.
When you pick the Status menu box, the Probe Status popup menu appears alongside the Light Pro be popup menu, as follows:
-Probe Status Popup Menu
Focus Camera Camera Type/Mode
0.0
Lighting/Resolution
0.0 I
Ref. Line
Ref. Win
Gage
Window
Mist
Exit
Note that the Disabled box in the Probe Status popup menu has a shaded square (0). This indicates that the light probe (for camera A) is off. Note also that Range/Outputs, Learn, and Pick & Place are in black type. This means that you cannot pick these boxes at this time.
Page 81
Chapter
5
Camera and Lighting Parameters 5-15
-
Selecting Light Probe Popup Menu and Parameters
Selecting
Probe Status Popup Menu (continued)
(continued)
Your Action
Comments The probe status parameters have the following meanings: l Disabled: This means that the light probe for camera A (in this case) is off (“disabled”).
This means that the light probe must lie somewhere approximately within the top fifth of the monitor screen (it depends on tool locations). The light probe will examine the light intensity within this area and apply any required brightness compensation to the remaining part of the same image field. l Same Field:
You must select Same Field if your application a strobe light.
will be using
Field: This means that the light probe can lie anywhere in the screen image field. The light probe will examine the light intensity within this field, but will apply any required brightness compensation to the nelct image field. Processing time increases when you select Next Field. l Next
You can select Next Field if your application full screen image. Pick the appropriate box in the Probe Statuspopup menu.
will be using the
When you pick the box, the new selection will be highlighted in the Probe Status popup menu and will appear in the Status menu box. Using Pick & Place Function The following steps show you how to use the Pick & Place function for positioning the light probe. The basic steps for positioning the light probe are these:
l Attach a reference “patch” of light gray-colored tape near the workpiece so that it always appears in the same place within the screen image field. This material will be the permanent light-intensity reference patch for the light probe. l Position the light probe symbol over the reference patch in the screen image. Use the following steps to position the light probe. Your Action Position a light-gray light reference patch in the sueen image field.
Comments The exact shade of gray will depend on the specific lighting conditions in you application. You may have to try various shades to find one that results in a light probe reading of about 40-50 when you perform a “learn” operation later on.
Page 82
Chapter
5
Camera and lighting
Parameters
5-76 -
Selecting Light Probe Popup Menu and Parameters
Using Pick & Place Function (continued)
(continued)
Your Action Pick the Pick & Place menu box iri the Light Pro be popup menu.
Comments When you pick the Pick & Place menu box, a small magenta square will appear inside the light probe:
P
+----- Light probe
Ha\ndle
/ Limit line (Applies to Same Field status only) The magenta square is the “handle” that the light pen uses to move the probe around the screen image. Also appearing near the top of the screen is a green limit line. If you have selected Same Field status, you can move the probe anywhere above the green limit line. If you’ve selected Next Field status, you can move the probe anywhere on the screen image. Aim the lightpen at the light probe handle.
Aim the light pen at the light probe 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 light probe box:
“Highlight” square
Hold the pen steady in this position - the appearance of the “highlight” square means that the light pen is now properly aimed at the handle.
4
Page 83
Chapter
5
Camera and Lighting Parameters 5-77
-
Selecting Light Probe Popup Menu and Parameters
Using
Pick & Place
Function
(continued)
(continued)
Your Action Pick the light probe handle. Drag the light probe over the light reference patch.
Comments You can now “drag” the light probe around on the screen. When you move the pen, the probe will follow. Note: Keep the pen tip within about one-half the screen.
inch of
When you have the light probe centered over the light reference patch, press the pen against the screen to “lock” the probe at that position.
If necessary, use the vernier arrows to “fine-tune” the position of the probe.
You can position the probe more precisely by using the using the vernier arrows. These arrows enable you to move the probe in increments of one pixel. You can access the vernier arrows while either picking the probe handle or placing the probe.
Press and -hol#dthe light pen tip against the probe handle.
Hold the light pen tip in for about one second. The vernier arrows will appear in the lower-right corner of the screen:
VERNIER ARROWS
Move probe up, down, left, or right Pick an arrow once to move the probe one pixel in the arrow’s direction.
Pick the up, down, right, or left arrow, as appropriate, to move the probe one pixel in the direction indicated by the arrow.
Pick and .hold an arrow to move the probe continuously.
When you pick and hold an arrow, the probe will move slowly for the first five or six pixels. It will then accelerate tc3 a more rapid rate of movement.
Pick the crreturn” symbol to release the vernier arrows.
When the probe is properly positioned, pick the “return” symbol (+A) to release the vernier arrows and return to the pick-and-place mode.
Page 84
Chapter
5
Camera and lighting
Parameters
5-78
Selecting Light. Probe Popup Menu and Parameters (continued)
Using Learn Function The following step shows you how to use and interpret the Learn function. Comments
Your Action Pick the Learn menu box in the Light Pro be popup menu.
When you pick the Learn menu box, the light probe will calculate (“learn”) the average light intensity value at the light reference patch and will display this value, in the range of 0.000 (darkest) to 63.000 (lightest), in the Learn menu box. The light intensity value reflects the relative brightness of the reference patch. This value should be approximately 4050 for adequate light compensation flexibility. NOTE: You may have to try several patches, each with a different shade of gray, to find one that results in a value close to 40-50.
Assigning Range Limits and Output Lines Range Limits - the term range limit, as it applies to the light probe, refers to a level of light intensity above or below which the CVIM system might not (or cannot) successfully perform an inspection. In general, range limits specify the upper and lower boundaries of acceptable inspection results. For the light probe, this means that any increase or decrease in light intensity beyond one of these limits will result in unreliable light compensation. The CVIM system provides two sets of range limits: warning range limits, and fault range limits. Warning range limits must always lie at or luithin fault range limits. The two sets of range limits have this relationship:
LFc=LW<=NOMINAL<=UW<=UF The NOMINAL value refers to a desired middle-of-therange value.LW and UW are the lower and upper warning limits. LF and UF are the lower and upper fault limits. Here is a general example, using a nominal value of 45, to demonstrate the concept: l The
LW value (lower warning limit) could be set to 40.
l The
UW value (upper warning limit) could be set to 50.
l The
LF value (lower fault limit) could be set to 35.
l The
UF value (upper fault limit) could be set to 55.
Page 85
Chapter
5
Camera and Lighting Parameters 5-19
Selecting Light Probe Popup Menu and Parameters (continued)
Assigning Range Limits and Output Lines (continued) During an inspection, if the light intensity goes outside either warning limit, the CVIM system will generate a warning signal. If the light intensity goes outside both a warning limit and a fault limit, the CVIM system will generate a warning signal and a fault signal. In a practical application, a warning signal can function as an early indication of a deteriorating light level. A fault signal can indicate a “hard” failure, such as a burned-out lamp. In each case, the signal that results when a range limit is exceeded can be used to alert operations personnel to fix the problem. Output Lines -the term output lines refers to the 14 discrete output lines that you can configure to carry various signals to your production equipment. Of these signals, the “results” signals indicate whether or not any of the warning and/or fault range limits have been exceeded. In Chapter 4, Operating Environment, you can assign signal functions to the output lines. In this chapter, you can assign the light probe warning and fault “results” to any output lines that you designated earlier as “results” lines. Here are a couple of examples of using the light probe warning and fault range limits and their corresponding output lines:
Example 1: If the light intensity of a lamp dims to the point that the light probe value falls below the specified warning limit, the CVIM system will issue a signal to the “results” output line that you specified for the light probe warning signal. The inspection processing would then continue. The warning signal could be used to inform operations personnel that the lamp needs to be adjusted or replaced soon, but not necessarily right away. They could then plan the lamp adjustment or replacement at a convenient time, if possible, such as during a shift change.
Example 2: If a lamp burns out, the light intensity will drop abruptly below both the warning limit and the fault limit. In this case, the CVIM system will issue both a warning signal and a fault signal to the specified output lines, and the inspection processing would then stop. The fault signal could be used to inform operations personnel that the lamp needs to be replaced right away.
Page 86
Chapter
5
Camera and Lighting Parameter5
S-20
Selecting Light Probe Popup Menu and Parameters (continued)
Your Action Perform a Learn function, as described earlier.
Assigning Range limits and Output lines (continued) Use the following steps to determine the appropriate range limits for your application and then configure them on your CVIM system. Comments Before you perform the “learn” function, be sure the light probe is properly positioned over the reference patch in the screen image.
NOTE: The reference patch should be positioned so that the light probe is as high as possible in the screen image if you selected the Same Field operation for the light probe. Note the light probe reading in the Learn menu box. Calculate and record the upper warnil% range limit.
The light probe reading should be between 40 and 50. If it is not 40 to 50, try reference patches with different shades of iPY* To calculate the upper warning range limit, multiply the reading by 15%, add that value to the reading, and write the result on a sheet of paper. For example, if the reading is 45, 15% of 45 is 6.75. Adding 6.75 to 45 equals 51.75, the upper warning limit.
Calculate and record the lower warning range limit.
To calculate the lower warning range limit, multiply the reading by 12%, subtract that value from the reading, and write the result on a sheet of paper. For example, if the reading is 45,12% of 45 is 5.4. ymutracting 5.4 from 45 equals 39.6, the lower warning .
Calculate and record the upper fault range limit.
To calculate the upper fault range limit, multiply the reading by 25%, add that value to the reading, and write the result on a sheet of paper. For example, if the reading is 45,25% of 45 is 11.25. Adding 11.25 to 45 equals 56.25, the upper fault limit.
Calculate and record the lower fault range limit.
To calculate the lower fault range limit, multiply the reading by 20%, subtract that value from the reading, and write it on a sheet of paper. For example, if the reading is 45,20% of 45 is 9. Subtracting 9 from 45 equals 36, the lower fault limit.