Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 15 of 47

Bulletin 2803 VIM Vision Input Module User Manual: 8 - Image Acquisition and Brightness Compensation, pages 127 to 134

Pages 127 to 134 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 127

Chapter

Setting the Acceptance Range

8

Image Acquisition and Brightness Compensation 8-9

Once you have placed the brightness probe, the next step is to set the acceptance range of the brightness probe. What is the acceptance range? When you set up you the brightness probe, you must set the range of acceptable measurement values. That is, you set an upper limit and a lower limit for the brightness probe results. When you set the acceptance range limits, you determine the amount of lighting variation allowed during inspections. How does the acceptance range work? When the VIM2 performs an inspection, the brightness probe returns results based on the lighting brightness detected; if the brightness probe results do not come within the upper and lower limits (or acceptance range), an acquisition error is generated; the inspection fails, and the Acq EFFOF LED goes On. 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. What is the acceptance range used for? In each application, there is a point of lighting change beyond which the brightness compensation of the VIM2 is no longer effective; the threshold images remain distorted despite the brightness compensation. The acceptance range can be used to limit the allowable lighting variation, so that if this limit is surpassed, an acquisition error is generated. Thus you can use the acceptance range, and the acquisition error signal, to help distinguish whether failed inspections are the result of bad parts, or the result of bad lighting. You can use the acceptance range limit to prevent inspections from passing when the lighting is inadequate. You can also use the acquisition error signal as an alarm indicating the lighting for the inspection is no longer adequate, and the light source must be adjusted or replaced. How do you determine the acceptance range limits? You can set the acceptance range limits to detect when lighting has failed entirely. Do this by observing brightness probe result with lighting at optimal level, then observing brightness probe result with lighting removed. Set the acceptance range limit so that the reading for the removed lighting is out of range. Or, you can experiment with different lighting levels during trial inspections with known good parts, to see how much lighting variance is necessary to begin to cause failures. You can then observe the brightness probe reading at the point where failures begin to occur due to lighting variance, and set acceptance range limits accordingly.

Page 128

Chapter 8-70

Setting the Acceptance Range

8

Image Acquisition and Brightness Compensation

To set the acceptance range for the brightness the Acceptance Range menu.

probe, access

(continued)

Comment

Your Action Pick the Acce:ptance Range icon on the Image menu.

Image Menu

I v

’

Acceptance

Range /con

Acceptance Range Menu v

Increase Limit Icon

. Decrease Limit Icon

Observe thleprobe result.

Pick the limit (upper you w’ant to change.

OF lower)

increment Select Icon

On the right side of the Acceptance Range menu are three numbers, separated by ” < =” signs. The middle number is the current measured result of the brightness probe. The lower limit 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

”

Pick the Increment Select icon, if necessary, to change the increment.

The Increment Select icon sets the amount by which the selected limit will change when you pick the Increase Limit or Decrease Limit icon. When picked, the Increment Select icon toggles between 1 and 10.

Pick the Increase Limit icon or the Decrease Limit icon, as necessary, to increase OF decrease the selected limit.

To increase the selected limit by the amount shown on the Increment Select icon, pick the Increase Limit icon. To decrease the selected limit, pick the Decrease Limit icon. To change the limit value rapidly, pick and hold the light pen tip against the icon.

Page 129

Chapter

Setting the Acceptance Range (continued)

Your Action Pick the OK icon to set the nominal brightness level and go to the Image menu.

8 lmage Acquisition and Brightness Compensation 8-11

Note: The VIM2 module does not allow you to set the upper limit to a value lower than the lower limit, or to set the lower limit to a value higher than the upper limit. Comment When you pick the OK icon on the Acceptance Range menu, the VIM2 samples the brightness level, and sets the nominal brightness level based on the sample. This setting is the value used for comparison during run mode, when lighting brightness compensation is in effect.

Acceptance Range Menu image Menu

Using the Learn Mode and other Run Mode Functions The VIM2 module features a variation of its run mode called the learn mode. In learn mode, the VIM2 accumulates statistics for each enabled inspection tool, and the brightness pro be, based on a number of trial inspections. Use of the learn mode can be helpful in determining the optimal acceptance range for inspection tools and probe. The VIM2 module also features a number of run mode arm options, which can be helpful in refining your configuration. See Chapter 13 for more information regarding use of the learn mode and other run mode options.

Accessing Statistics

When you run the VIM2 in learn mode, you accumulate statistics for all enabled visions tools and probes. To observe the collected statistics for the brightness probe, first access the Acceptance Range menu on the Image menu, as described on the next page.

Page 130

Chapter 8-12

8

Image Acquisition and Brightness Compensation

Accessing 5 ta tis tics (continued)

Your Action

Comment

Pi& the Acceptance Range icon on the Image menu.

Acceptance Range Icon

2f I

Current measured result

Acceptance Range Menu

Pick the current measured result.

On the right side of the Acceptance Range menu are three numbers, separated by “< =” signs. The middle number is the current measured result of the brightness probe. When you pick this number, the brightness probe disappears, and the statistics are displayed (see diagram below). Total of triggers processed

#JL

0

Number of probe failures qiiJ

0

Lowest result collected

4f

0

Highest result collected ft

0

+

0

Average of all results collected

Note: The results of failed inspections for the probe are not included in the lowest, highest, and average values. These statistics are based on passing inspections only. Therefore, for preliminary trial runs, you may want to set the acceptance range to extreme limits initially, for the purpose of collecting statistics for all inspections. Pick the current measured result again to remove the statistics display.

Picking the current measured result again redisplays the brightness probe and removes the statistics display.

Page 131

Chapter

Strobe f nab/e

8

Image Acquisition and Brightness Compensation 8-13

The VIM2 module can operate using a strobe light as the light source. If you are going to use strobe lighting, either during setup mode or during run mode, you must first enable the VIM2 module’s strobe capability using the Strobe icon. Note: If you are using the strobe lighting during setup, see Chapter 5 for more information regarding the strobe light signal output on the VIM2 swingarm. With Strobe enabEed during setup mode, the monitor image appears frozen. Each time an image acquisition is required, such as after moving the brightness probe, the strobe output on the VIM2 module’s swingarm is energized just before the image is acquired. With Strobe enab2ed during run mode, the strobe output is energized just before the image is acquired, and the monitor image appears frozen after each inspection. To enable operation using the strobe lighting, pick the Strobe icon.

Your Action

Pi& the Strobe icon on the Image menu to enable strobe operation.

Comment

When picked, the Strobe icon toggles between enabled and disabled (disabled is indicated by the diagonal slash across the icon). With the Strobe enabled, the monitor image appears “frozen,” but images are acquired by the VIM2 module as needed. When image acquisition takes place, the VIM2 module activates the strobe trigger signal on the swingarm (see Chapter 5 for information on strobe trigger connections).

Image Menu

Strobe Icon 1 Strobe

Pick the Strobe icon icon on the Image menu to disable strobe operation.

Strobe Disabled

With the Strobe disabled, “live” video display.

the VIM2 module resumes normal

Page 132

Chapter 8-14

Threshold hages

8

Image Acquisition and Brightness Compensation

The VIM2 module produces four threshold images for use with line gages and windows. You can use one, or up to all four threshold images in your configuration. Each line gage or window is assigned a threshold image to inspect; each tool inspects only the threshold image to which it is assigned. What is a threshold image?

Recall from Chapter 3 that a threshold image is a highcontrast image consisting of pixels of only two colors -black and white. The VIM2 module allows you to set up a different threshold level for each of the four different threshold images it produces with each inspection. What is a threshold level?

The threshold level determines which pixels will be black, and which will be white, in the threshold image. Recall from Chapter 3 that the image from the video camera contains an array of pixels, each of whose brightness levels, or “graylevels,” can vary along a range of values from O-255. The value “0” indicates black, and “255” indicates white. The values from l-254 represent the range of grays in between; the lower the number, the darker the gray. In creating a threshold image from this gray-level image, the VIM2 module converts each pixel to one of two colors - black or white. To accomplish this, the VIM2 uses a “threshold level,” which you must supply. This threshold level is the dividing line that determines which pixels are converted to black, and which are converted to white. All pixels having gray-level values below or equal to the threshold (the darker pixels) are converted to black, and those above (the brighter pixels) are converted to white. The result is a high-contrast “threshold” image with only black and white pixels. Changing the threshold level setting can alter the image substantially. When the threshold is increased, the image becomes darker as more pixels fall below the threshold, and and are converted to black. When the threshold is decreased, the image becomes lighter, as more pixels are above the threshold, and are converted to white. Why are different threshold levels used?

Varying the threshold can have the effect of enhancing certain image features, and/or detracting from the appearance of certain image features. The ability to vary the threshold allows you to enhance the features of interest on the workpiece you are inspecting. The VIM2 module has four available threshold images. You must set up at least one threshold image. You can set up each of the four threshold images, each with a different threshold level, with each highlighting different features.

Page 133

Chapter

Threshold Images (continued)

8 image Acquisition and Brightness Compensation 8-15

Or you can set up the threshold images with some highlighting the same features. You do not necessarily have to set up and use all four of the threshold images; set up only as many of the threshold images as you need to use to highlight the different features of interest on the workpiece. How are threshold images referenced? Each time you configure a line gage, you assign a threshold image for that line gage; the line gage inspects only the threshold image assigned. When you configure any window, l-4, each window that you configure is automatically assigned the threshold image of the same number (see Chapters 9 and 10 for line gage and window information). When do you set up a threshold image? Set up a threshold image: l After you have set up the workstage, and have a workpiece in 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 After you have positioned the brightness probe. l After you have selected the appropriate strobe setting. l Before attempting to configure a line gage and/or window assigned to the threshold image.

Accessingthe Threshold Menu

Your Action Pick the Threshold icon on the Setup menu to access the Threshold menu.

To set up a threshold image, first access the Threshold menu. Note: The “Quick Start Procedure” in Chapter 6 includes a specific example of setting up threshold images 1 and 2. The two example threshold images are used in example procedures throughout this manual. Comments The Threshold icon is the icon second from the right on the Setup menu. Picking the Threshold icon displays the ThreshoEd menu.

Image Menu Threshold Icon f I Threshold Menu

JI

Thres,hold Level r

Page 134

Chapter 8-16

Selecting the Threshold image

8

Image Acquisition and Brightness Compensation

Select the threshold image you want to set up by using the

Image Select icon.

image Select /con

Your Action Pick the Imalge Select icon to change the image number.

Comment5

Picking the Image Select icon (the first icon on the left) changes the image number. As you change the image number by picking the Image Select icon, the corresponding threshold image is displayed on the monitor. Picking the Image Select icon repeatedly cycles through the four threshold images. Pick the icon until you have selected the threshold image you wish to set up.

Note: When selecting the threshold image, remember - if you intend to use one ‘or more windows in your inspection each window, l-4, is automatically assigned to inspect the threshold image of the same number. That is, window 1 always inspects threshold image 1,window 2 inspects threshold image 2, etc. (see Chapter 10 for more information on windows). For line gages, you can select any one of the four threshold images for each line gage you configure.

Select Anchor or Fioa t Status

After selecting the threshold image number, set the Anchor/ Float status of the threshold image using the Anchor /Float icon. Anchor or Float status refers to the VIM2 module’s brightness compensation capability (see “Brightness Compensation” earlier in this chapter).

Threshold Menu

Itd

Anchor

3

,+q,Igks

Anchor / Float Icon . whenprcked)