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

The text of a manual · part 30 of 42

Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 8 - Inspection Tools: Windows, pages 285 to 294

Pages 285 to 294 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 285

Chapter

Selecting Define Window Popup Menu and Parameters (continued)

8 inspection

Tools: Windows

8-4 1

Using Gradient Menu (continued) Since the search direction is always from dark to light, the following relationship exists between the search direction and the four components of the gradient image: l The

Up search direction relates to the top-facing component of the gradient image.

(I The Down search direction relates to the bottom-facing component of the gradient image. l The Left search direction relates to the left-facing component of the gradient image.

@The Right search direction relates to the right-facing component of the gradient image. Each component of the gradient image consists of one or more parts, according to the shape of the object. In the following illustration, a multi-sided dark object (with a light hole) identifies the search direction for each side and the several parts of each gradient image component:

; ,’

*Seairch Directions:

-

“Down”

-“UP”

::

“Rig ht’f.--f-’

*The search direction is always from a dark area to a light area.

- t

Window

The illustration shows that each gradient image component around (and inside) the object consists of several parts. Thus, there are four right-facing (“Right”) parts, four top-facing (Wp”) parts, three left-facing (“Left”) parts, and three bottom-facing (“Down”) parts.

Page 286

Chapter

8

Inspection

Tools: Windows

8-42 -

Selecting Define Window Popup Menu and Parameters (continued)

Using Gradient Menu (continued) As an example, if you toggle all four menu boxes to “On ,” all four components of the gradient image will turn on, as shown in A below. If you toggle the “Right” menu box to “On” and all other menu boxes to “Off,” only the four parts of the right-facing component of the gradient image will turn on, as shown in B.

-

Page 287

Chapter

8

Inspection Tools: Windows 8-43

Selecting

Define Window Popup Menu and Parameters (continued)

Using Gradient

Menu (continued)

Your Action

Comments

Look at the Gradient pOpUp menu again.

Each search direction box is either “On” or “Off.”

Toggle the search direction menu boxes as required for ”vour application. Toggle the Width menu box to “1” or “2,” as required for your application.

Toggle each search direction box to either “On” or “Off,” whichever is appropriate for your application. The "1" width is narrower than the “2” width.

This completes the configuration operation.

Configuring Template for the Gradient window

Match Operations

If you selected the Template Match menu box in the Window Operation popup menu, continue with the following steps. Otherwise, skip this section and continue with the section called Selecting Range/Reference Popup Menu and Parameters. The Template Match operation enables the window to compare a specified feature on each inspected workpiece with a stored reference image (the “template”) of that same feature. Note that the Template Match operation can be used only with a rectangular window without a mask. During an inspection operation, the window examines each pixel in the worFzpiece image and compares it with the same pixel in the stored template. If the pixel’s value - ranging from 0 (darkest) to 63 (brightest) - lies within the pixel tolerance limits that you specified, that pixel “passes.” When it has examined all pixels in the workpiece image, the window reports its “results” as a percentage of failed pixels. For example, if the window size were 100 pixels by 60 pixels, and 600 pixels had values lying outside the specified pixel tolerance limits, the window would report a result of 600/6000 x 100% = 10% failed pixels. NOTE: Before continuing, be sure that you have already positioned the window over the template feature on the reference workpiece.

Page 288

Chapter

8

Inspection Tools: Windows

8-44 -.

Selecting Define Window Popup Menu and Parameters (continued)

Configuring Template Match Operations (continued) Use the following steps to store the template and set the pixel tolerance limit. Comments

Your Action Pick the Define Template menu box.

Earlier, when you picked the Template Match menu box, the Window popup menu acquired a “new” menu box - the Define Template menu box. This menu box selects the popup menu, which you will use to store the template and define the pixel tolerance limits. When you pick the Define Template menu box, the Define Template popup menu will appear, as follows:

Define Window

Env.

Pick the Save Template menu box.

Camera A

0.0

Ref. Line

Ref. Win

Gage

~$&&I&&~~, ..:,: :.: :. Mist

Exit

When you pick the Save Template menu box, the template image in the window is stored in CVIM system memory, and the word Delete replaces the word Save in the menu box. (To delete the stored template, pick the menu box again. The stored template will be deleted from memory, and the word Save will replace the word Delete.)

Look at the Tern~~p&DXs~

The Template Disp menu box indicates whether of not the stored template image will appear on the monitor screen. If On appears, the template image will appear in the upper right corner of the screen. If Off appears, the template image will not appear on the screen. Pick the menu box to select the opposite status. Pick again to revert to the previous status.

Look at the Pixel Tol menu box.

The Pixel Tol menu box indicates the currently selected pixel tolerance limit. For exam le, if 5 appears, it means that the gray scale value of eat R pixel in the workpiece image must be within f 5 of the corresponding pixel in the stored image (the template). Thus, if a pixel in the template has a gray scale value of 23, the corresponding pixel in the workpiece image must have a value of 23 & 5 (18 to 28).

-

Page 289

Chapter

8

Inspection Tools: Windows 8-45

-

Configuring

Selecting

IDefine Window Popup Menu and Parameters (continued)

Template

Match Operations (continued)

Comments

Your Action

Note that increasing the pixel tolerance value will decrease the processing time. When you pick the Pixel Tol menu box, the calculator pad will appear on the monitor screen, as follows:

Pick the Pixel Tol menu box.

Define Template r-1

JPOPUP

1 Define Window

0.0

::$&i:k.~Tem:pfa&

:..;'+.j;

Range/Reference

1

I::_

I

(Previous

1

Pick the Enter key.

II

*mm

1Window 1: Enabled

Pick each digit of the new pixel tolerance limits.

I

Nominal = 0 % Error

Learn:

Env.

Men&

1Next I

Camera A

I

I

Ref. Line

Ref. Win

Gage

:@i@jw:

Mist

Exit

As you pick each digit, it will appear in the calculator “display.” Thus, for a value of 12, pick “1,” then pick “2.” When you pick the Enter key, the new value will appear in the Pixel Tol menu box. When you finish entering the pixel tolerance value, proceed to the section called Selecting Range/Reference Popup Menu and Parameters to configure the range limits, output lines, and reference tools, as appropriate for your application. The range limits for a template-matching window are based on the window’s inspection “results,” which reflect the percentage of pixels that failed to match the corresponding pixels in the template.

-

The question of what is an acceptable ercentage of failed pixels depends on the requirements o Pyour specific application. To help you determine these requirements, you can use the Learn function and/or run a series of trial inspections. The Selecting Range/Reference Popup Menu and Parameters section will show you how.

Page 290

Chapter

8

Inspection Tools: Windows

8-46

Using Learn Function

Pick the Learn menu box in the Window popup menu to command the CVIM system to “learn” one of the following values: l The black or white pixel count.

l The number of black or white objects.

l The average luminance level.

l The percent of pixels that failed to match those in a stored template. Comments

Your Action Pick the Learn menu box.

When you pick the Learn menu box, the window “learns” the value according to the operation that you selected for this window. For example, if you selected the #Black Pixels window operation, the window will “learn” the number of black pixels that it sees within the window’s boundary.

Look at the new value in the Learn menu box.

Selecting Range/Reference Popup Menu and Parameters

The new value appears in the Learn menu box.

Select the Range/Reference parameters in that menu.

Your Action Pick the Range/Reference menu box in the Window popup menu.

popup menu, then select the

Comments When you pick the Range/Reference menu box, the Range/ Reference popup menu appears above the Window popup menu, as follows:

Define Window

Env.

Camera A

0.0

Ref. Line

Ref. Win

Gage

. ..::..

&‘&@&$: .,:..:: .:, ::,::, Mist

Exit

-

Page 291

Chapter

8

Inspection Tools: Windows 8-47

-

Selecting

Range/Reference Popup Menu and Parameters (continued)

Assigning Range Limits and Output Lines Range Limits -The term range Zimit, as it applies to a window, refers to the upper and lower tolerance limits for the selected window operation. In general, range limits specify the upper and lower boundaries of acceptable inspection “results” values. Thus, the “result” value could be a pixel count, object count, or other value from the window inspection operation. The CVIM system provides two sets of range limits: Warning range limits, and fault range limits. Warning range limits always lie within fault range limits or be equal to them. The two sets of range limits have this relationship: LF< =LW<

=REFERENCE<

=UW<

=UF

The REFERENCE value could be the “nominal”value from a Learn operation, or a “mean” value from a trial inspection series. For example, if the REFERENCE value were 1500 pixels, l The pixels.

LW value (lower warning limit) could be set to 1480 a The UW value (upper warning limit) could be set to 1520 pixels. l The

LF value (lower fault limit) could be set to 1460 pixels.

a The UF value (upper fault limit) could be set to 1540 pixels. If an inspection result value goes outside either warning limit, the CVIM system will generate a warning signal. If the value goes outside both a warning limit and a fault limit, the CVIM system will generate both a warning signal and a fault signal. In a practical application, the warning range limits can be used to indicate a deteriorating condition, such as a cutting tool starting to wear out, and the fault limits can be used to indicate a “hard” failure, such as a broken cutting tool. Output Lines-The term output lines refers to the 14 discrete output lines assigned to carry various signals to your production equipment. Of these signals, the “results” and master range signals indicate whether or not any of the warning and/or fault range limits have been exceeded. Here are a couple of examples of using the warning and fault range limits and their corresponding output lines: Example 1: If the size of stamped-out hole in a metal plate changes as the die wears, and drifts outside the specified warning limit, the CVIM system will issue a signal to the “results” output line that you specified for the window’s warning signal. The inspection processing will then continue.

Page 292

Chapter

8

Inspection Tools: Windows

8-48

Selecting Range/Reference Popup Menu and Parameters (continued)

Assigning Range Limits and Output fines (continued) The warning signal could be used to inform operations personnel that the die needs to be replaced soon, but not necessarily right away. They could then plan to replace the die at a convenient time, such as a shift change, rather than being forced to shut down during a shift. Example 2: If a stamping die breaks, the size of the stamped-out hole could change abruptly outside 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 “results” output lines, and the inspection processing would then stop. The fault signal could be used to inform operations personnel that the tool needs to be replaced right away. Two procedures are available for determining the appropriate range limits for your application: The shorter procedure is to use the Learn function described earlier. The longer procedure is to run a series of inspections on a representative sample of workpieces in order to accumulate a statistical basis for setting the range limits. The following steps describe the shorter procedure using the Learn function:

Your Action Position a “perfect” workpiece in the monitor screen.

Comments The “perfect” workpiece should be one on which the workpiece dimension or other characteristic that the window is to inspect is in the middle of the tolerance range; that is, +_O. Before you perform the “learn” function, be sure the window is properly positioned over the workpiece in the monitor screen and the threshold (if applicable) is correctly set.

Perform a Learn function, as described earlier. Record the value shown in the menu box.

This value is the count or measurement workpiece.

for the “perfect”

Position a minimum-tolerance workpiece in the screen.

The “minimum-tolerance” workpiece should be one on which the workpiece dimension or other characteristic is at the low end of the tolerance range. This is the dimension or characteristic below which the workpiece is unacceptable.

Perform a second Learn function and record the value.

This value is the count or measurement tolerance” workpiece.

for the “minimum-

-

Page 293

Chapter

8

Inspection Tools: Windows 8-49

Selecting

Range/Reference

Assigning Range limits and Output Lines (continued)

Popup Menu and Parameters (continued) Your Action Position a maximumtolerance workpiece in the screen. Perform a third Learn function and record the value.

Comments The “maximum-tolerance” workpiece should be one on which the workpiece dimension or other characteristic is at the high end of the tolerance range. This is the dimension or characteristic above which the workpiece is unacceptable. This value is the count or measurement tolerance” workpiece.

for the “maximum-

You can use these three values to determine the appropriate fault and warning range limits for this window. The following steps describe the longer procedure using a trial series of inspections: Your Action Prepare to run a series of “trail” inspections.

Comments Refer to Chapter 10, Runtime Operations for more details about the following steps. For these trial inspection series, you should have on hand a sufficiently large quantity of representative workpieces. If you cannot use the actual factory-floor setting to perform these trial inspections, you can manually position each workpiece in front of the camera and use a manual trigger, or use some type of automatic positioning and triggering mechanism that approximates the factory-floor situation.

Pick the Exit menu box in the Main Configuration menu.

When you pick the Exit menu box, the Exit popup menu will appear.

Pick the Runtime Init. menu box in the Exit menu.

When you pick the Runtime popup menu will appear.

Look at the Mode menu box in the Runtime Init.menu.

If “Standard” appears, pick the box once to toggle to “Learn.” This activates the “learn” mode during the trial inspection series and ensures the accumulation of “results” data for this window in the statistics tables.

Pick the Runtime Display menu box in the Exit menu.

When you pick the Runtime Display menu box, the Runtime Display popup menu will appear.

Pick the Stat. Page 1 menu box in the Runtime Display menu.

The Stat. Page 1 menu box causes page one of the statistics tables to appear on the monitor screen when you activate the run mode. Page one displays “results” statistics for all enabled windows.

Init. menu box, the Runtime

Init.

Page 294

Chapter

8 inspection Tools: Windows

8-50

Selecting Range/Reference Popup Menu and Parameters (continued) Your Action Pick the Runtime menu box in the Exit menu.

Assigning Range limits and Output Lines (continued)

Comments When you pick the Runtime menu box, the Runtime popup menu will appear.

Pick the Goto Runmode menu box in the Runtime menu.

When you pick the Goto Runmode menu box, the CVIM system will begin running inspections if you selected Auto/Internal as the trigger source. If not, the system will await trigger inputs from whatever trigger source you selected.

Look the statistics table.

As the inspections continue, the Stat. Page 1 table will display accumulated “results” data only for each enabled window. No data will appear for a window that is not enabled.

When you have enough inspections, look at the four statistics columns in the Stat. Page 1 table.

These columns show the mean, standard deviation, minimum reading, and maximum reading statistics for the inspection series.

Pick the Setup menu box to stop the runmode.

Picking the Setup menu box stops the run mode and returns the CVIM system to the configuration mode.

These statistics are your basis for configuring the range limit values for the currently selected window.

At this time, the final data appearing in the Stat. Page 1 table are recorded in the Inspection Statistics table for the currently selected window. You will see this when you pick the Range/Outputs menu box in the Range/Outputs popup menu.

Pick the Window menu box.

This restores the Window popup menu.

Select the window number.

This restores the window number whose range limits you want to set.

Pick the Range/Reference menu box.

This restores the Range/Reference popup menu.