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

The text of a manual · part 17 of 42

Bulletin 5370 CVIM Configurable Vision Input Module User Manual: 6 - Reference Tools: Lines and Windows, pages 167 to 176

Pages 167 to 176 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 167

Chapter

6

Reference Tools: Lines and Windows 6-51

Selecting Ref.Win Popup Menu

Your first step is to select the Ref.Win popup menu.

Your Action Pick Ref.Win in the Main Configuration menu.

Comments When you pick the Ref.Win, the Ref. Win background color changes from brown to black, and the Ref. Window popup menu appears above the Main Options list:

.

Env.

Camera A

Ref. Line

Ref. Window Popup Menu

‘$kf:.Wjh?

Gage

Window

Mist

Exit

The Ref. Win popup menu shows the five configuration categories described earlier. In addition to the popup menu, if the currently selected reference window is enabled, as shown above, the three feature windows will also appear on the screen.

Selecting and Enabling Reference Window Your Action

Select the reference window number and enable the reference window. Comments

Look at the Ref.Win menu box in the Ref.Window popup menu.

The Ref .Win box indicates the currently selected reference window number (1,2, or 3). It also indicates whether that reference window is Enabled or Disabled.

Select the reference window number.

To change the reference window number, pick the Next (or Previous) menu box repeatedly until the correct number appears. The Next and Previous functions work like this: When you pick the Next box, the next higher reference window number and so on. When you pick the appears: 1,2,3,. . . 1,2,3, Previous box, the next lower reference window number appears: 3,2,1, . . .3,2,1, and so on.

Look at the Ref.Win menu box again. Pick the Ref.Win menu box.

If Disa bled appears, perform the next step. To enable the reference window, pick the Ref.Win menu box. The status should now indicate Enabled.

Page 168

Chapter

6

Reference Tools: Lines and Windows

6-52

Selecting

Define

Select the Define Features popup menu, then select the parameters and functions in that menu. Basically, these parameters and functions specify the feature to searched for and the area to be searched, and the degree to which the “found” feature matches the “original” feature.

Features

Popup Menu and Parameters

Comments

Your Action Pick the Define

Features menu box in the Ref. Window popup menu.

When you pick the Define Featuresmenu box, the Define Features popup menu appears above the Ref. Window popup menu. Initially, it appears as follows: Save Feature 0.0

P&P Feature Win. Feature Disp: Off l

Find Feature:

-1

Set Score: 0 Active Feature:

Define Features Popup Menu l oe

1

1OutoutfReference lo*

1

-

Ref. Window Popup Menu

Env.

Camera A

Ref. Line :~&Wib!: ::: Gage

Window

Mist

Exit

Selecting Active Feature Each reference window has available three “active features,” or window pairs, each of which consists of a feature window and a search window. These active features are numbered 1, 2, and 3. Generally, only one feature is needed to provide shift compensation. If rotation compensation is necessary, two or three features are needed. Use the next steps to select any one of the three features. Your Action

Comments menu box in the Define Features popup menu.

The Active Feature menu box indicates the “feature” (that is, 1,2, or 3) that is currently “active” for configuration purposes.

Pick the Active Feature menu box, if appropriate.

When you pick the Active Feature menu box, the “active feature” will advance to the next higher number.

Look at the Active

Feature

Select whichever feature number you want to configure at this time.

-

Page 169

Chapter

6

Reference Tools: Lines and Windows 6-53

Selecting Define Features Popup Menu and Parameters (continued)

Using P&P Feature Win. function Select the P&P Feature Win. menu box, then position the feature window over the physical feature on the workpiece and set the window to the appropriate size. (“P&P” means “pick and place.“)

NOTE: The feature window has a minimum size of 16 pixels by 16 pixels, and a maximum size of 64 by 64 pixels. The following procedure shows you how to use the light pen to adjust the position and dimensions of a feature window. Your Action Pick the P&P Feature Win. menu box in the Define Features popup menu.

Comments When you pick the P&P Feature Win. menu box, a small square (0) will appear in the center of the currently selected feature window and in the center of each side of that window, as follows:

-

These squares are the “handles” that the light pen uses to manipulate the window on the monitor screen. Aim the light pen at the center handle.

Aim the light pen at the center 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 handle, as follows: n

/

Cl

“Highlight” Square

0 041 n

Hold the pen steady in this position - the appearance of the “highlight” square means that the light pen is now properly aimed.

Page 170

Chapter

6

Reference Tools: lines and Windows

6-54 -

Selecting Define Features Functions and Parameters

Using P&P Feature Win. function (continued)

(con timed)

Comments

Your Action Pick the handle.

A small “X” will appear in the center of the window, along with a “spotlight,” which facilitates “dragging” the window.

Q X

“Spotlight”

,

Feature Window

Workpiece Feature

-

You can now “drag” the window across the monitor screen.When you move the pen, the entire window follows.

Page 171

Chapter

6

Reference Tools: Lines and Windows 6-55

Selecting Define Features Functions and Parameters

Using P&P Feature Win. Function (continued)

(continued)

Your Action

Comments

Drag the feature window ouer the ” + ” workpiece feature.

l ,..............,......,.........*......4

Feature Window (New position)

.

.t ..

.

..

I

Workpiece Feature

NOTE: Keep the tip of the pen within about inch of the monitor screen.

one- half

When you have the window in position over the workpiece feature, press the pen against the monitor screen to “lock” the window at that position. Aim the light pen at the rightmost handle.

Continue when the highlight square appears.

-

P 1 q l-l

P I

Page 172

Chapter

6

Reference Tools: Lines and Windows

6-56

Selecting Functions

Define Features and Parameters

Using P&P Feature Win. Function

(continued)

(continued)

Comments

Your Action Pick the handle. Drag the right side of the window as shown.

Note that the left side remains anchored.

Right Side (New position) 1

Right Side (Original position) 1

Workpiece Feature

Lock the window’s right side in position. Aim the light pen at the bottom handle.

Pick the handle.

Continue when the highlight square appears.

Page 173

Chapter

6

Reference Tools: Lines and Windows 6-57

Selecting Define Features Functions and Parameters

Using P&P Feature Win. Function (continued)

(continued)

Your Action Drag the bottom side UJ as shown.

-

Lock the window’s bottom side in position.

If necessary, use the vernier arrows to “fine-tune” the position or size of the window.

Comments Note that the top side remains anchored.

The feature window is now properly positioned over the workpiece feature. You can change the window’s size or position more precisely by using the vernier arrows. The vernier arrows enable you to make these changes in small increments. You can access the vernier arrows while either picking a window handle or placing the window or window side.

Press and hold the light pen tip against the window handle, window, or window side.

Hold the light pen tip in for about one second. The vernier arrows will then appear in the lower-right corner of the monitor screen:

VERNIER ARROWS This:

or this:

Move left or right side left or right

Move window up, down, left or right or this:

t 4 54

Move top or bottom side up or down

Page 174

Chapter

6

Reference

Tools:

Lines and Windows

6-58

Selecting Define Features Functions and Parameters

Using P&P Feature Win. Function (continued)

(continued)

Comments

Your Action Pick an arrow once to moue the window or window side one pixel in the arrow’s direction,

The up, down, right, or left arrow, will move the entire window or window side one pixel in the direction indicated by the arrow.

Pick and hold an arrow to change thzndow size or position continuously.

When you pick and hold an arrow, the window’s size or position will change slowly for the first five or six increments. It will then change at a more rapid rate.

Pick the “return” symbol to release the vernier arrows.

When the window or side is properly positioned, pick the “return” symbol ( +J) to release the vernier arrows and return to the standard pick-and-place mode.

Pick the Save Feature menu box.

This saves the contents (the workpiece feature) of the feature window. When you pick the Save Feature menu box, the search window will appear centered around the feature window, as follows: I+--. Feature

I

I-

Search Wir >dow

... . .. .. . .. .... . . . . . . .. . . :.:::. . .. :’ : ::::y:..:.:::.:j:,..:: :y. ::‘;:zj, . .. . $: ;::j:;

-

: :..: :

Page 175

Chapter

6

Reference Tools: Lines and Windows 6-59

Selecting Define Featu res Functions and Parameters

Using P&P Feature Win. function

(continued)

(continued)

Your Action

Comments In addition, the following changes will occur in the Define Features popup menu: l The term l The

Save Feature will change to Delete Feature.

P&P Feature Win. menu box will change to P&P Search

Win. boxes, Feature Disp, Find Feature, and Set Score are enabled; that is, the type changes from black to light, indicating that you can now pick these boxes.

l The three menu

At this point, the system is enabled for configuring the search window and for setting the feature-matching tolerence level (called “score”).

Using Feature Disp Function The Feature Disp function enables you to display the contents of the feature window on the monitor screen. Your Action

Comments

Look at the Feature Disp menu box.

The Feature Disp menu box indicates the status of the Feature Disp function, which will be either on or off.

Pick the Feature Disp menu box, if appropriate.

If the Feature Disp function is on and you want it off, or vice versa, pick the menu box. If you set the status to on, the feature window and its contents will appear at the right edge of the monitor screen.

Using P&P Search Win. function Pick the P&P Search Win. menu box, then position the search window around the feature window and set the search window to the appropriate size. NOTE: The search window can be adjusted to include almost the entire screen image; however, it is unlikely that your application will require that size. If so, the processing time would be increased. The procedure for adjusting the size and position of a search window are the same as for the feature window.

-

Page 176

Chapter

6

Reference Tools:

Linesand Windows

6-60

Selecting Define Features Functions and Parameters

Using P&P Search Win. Function (continued)

(con timed)

Your Action Look at the search window.

Comments As noted earlier, the search window centered itself around the feature window when you saved the feature window. The search window should be just large enough to permit the feature window to find the feature with the maximum allowable shift and/or rotation appropriate for your application.

If necessary, adjust the size and position of the search window.

Use the same “pick and place” procedure that you used to set the feature window’s position and size.

Understanding

Set Score Function

During an inspection cycle, the feature window searches within the search window for a workpiece feature that matches the stored workpiece feature -the one that you “saved” in the CVIM system memory with the Save Feature function. The feature window conducts its search starting at the topleft corner of the search window and proceeding left-to-right and top-to-bottom. Along the way, it examines each area for a pattern of pixels that matches most closely the pixel pattern (that is, the workpiece feature) in the stored feature window. As the feature window examines each new area, it accumulates a numerical score that indicates how much the pixel pattern in the present area differs from the pixel pattern in the stored feature window. The higher the accumulated score, the greater the difference or “error.” If the accumulated score (“error”) equals or exceeds the value entered in the Set Score menu box, the feature window will stop examining the present area and will move to the next area, where it will begin examining the pixel pattern and accumulating a new score. If the feature window encounters an area in which the total accumulated score is lower than the value in the Set Score menu box, it will then examine the next area to see if that area will yield an even lower score. If so, the feature window will continue further; if not, it will go back to the area with the best-that is, the lowest - score. In either case, since the feature window has located the workpiece feature, it stops the search. If the feature window fails to find any area within the search window in which the accumulated score is lower than the Set Score value, the entire reference window will fail.

-