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

The text of a manual · part 27 of 42

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

Pages 255 to 264 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 255

Chapter

8

Inspection Tools: Windows 8-11

Con fi!guring Wind0 ws

In configuring windows you will select the configuration categories in the Window popup menu, which appears when you pick Window from the Main Configuration menu. These are the main configuration popup menu:

categories in the Window definition: Sets the window position and shape, and selects the window’s inspection function (the window “operation”). l Window l Select range limits, output lines, reference tool: Selects the operating range limits that determine a “pass” or “fail” result; selects the output line for reporting inspection results; selects a reference tool from which the window can receive shift compensation. l Learn window measurements: This function “learns” the current window measurement ualue, which varies according to the type of window operation selected.

window number: This function selects the window number (1 to 24).

l Select l Enable/disable window: This function enables or disables the currently selected window.

Configuring a window involves these basic steps:

l Selecting the window number (1 to 24).

l Enabling the selected window.

l Selecting the window shape: rectangular, polygonal.

elliptical, or l Selecting the window operation: count pixels, count objects, determine the average luminance, or perform a template match. l Positioning image.

l Selecting and sizing the window(s) over the workpiece a mask, if needed.

The following pages show you how to perform all of the steps that configure windows. To save time, you should perform these steps in the order given.

Page 256

Chapter

8

Inspection Tools: Windows

8-72

Your first step is to select the Window popup menu.

Selecting Window Popup Menu Your Action

Comments When you pick the Window menu box, the Window popup menu appears above the Main Configuration menu, as follows:

Pick Window in the Main Configuration menu.

Define Window

1Window

1:

Enabled

Previous

Next

Env.

Camera A

0.0

I

1

: Ref. Line

Ref. Win

Gage

$&$$:

Mist

Exit

The Window popup menu shows the five configuration categories described earlier. In addition to the Window popup menu, if the currently selected window is enabled, as shown above, it will appear somewhere on the monitor screen.

Selecting and Er~,;bl~+/;

Your Action

Select the window number and enable the window.

Comments

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

The Window menu box indicates the currently selected window number (1 to 24). The menu box indicates whether that window is Enabled or Disabled.

Select the window number.

To change the 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 window number appears: and so on. When you pick the Previous 1,2,3,. . . 24,1,2,3, box, the next lower window number appears: 3,2,1,24,. . .3, 2,1, and so on.

Look at the Window menu box again. Pick the Window menu box.

If Disabled, appears, perform the next step. To enable the window, pick the Window menu box. The box should now indicate Enabled.

-

Page 257

Chapter

8

Inspection Tools: Windows 8-73

Select the Define Window popup menu, then select the parameters in that menu.

Selecting Define Window Popup Menu and Parameters

Comments

Your Action

When you pick the Define Window menu box, the Define Window popup menu appears above the Window popup menu, as follows:

Pick the Define Window menu box in the Window popup menu.

Op: #White

Pixels

000

.

Define Window Popup Menu

P&P Mask Win. Threshold/Filter

I Range/Reference

I

0.0

I

1 ..

Env.

Camera A

Ref. Line

Ref. Win

Gage

..:.

,, :,

$$:@b&~

Mist

Exit

Selecting Window Shape Pick the Shape menu box to select a rectangular, eZZipticaZ,or polygonal window, whichever is appropriate for your application. Your choice of window shape depends on the shape of the workpiece or workpiece part that you want the window to inspect. Note that the rectangular window is the most efficient. Your Action Look at the Shape menu box in the Define Gage popup menu. -

Comments The Shape menu box shows whether the currently selected window is Rectangular, Elliptical, or Polygonal.

Page 258

Chapter

8

Inspection Took:

Windows

8-14 -

Selecting Define Window Popup Menu and Parameters (continued)

Selecting Window Shape (continued)

Comments

Your Action Pick the Shape menu box, if appropriate, to select the Window Shape popup menu.

When you pick the menu box, the Window Shape popup menu will appear alongside the Define Window menu.

.

Iq Polygon l .e .

Threshold/Filter g&$

Window Shape Popup Menu

I

Define Window Popup Menu t&j&jo~ .‘f.-,j :jiJ

I l .e1

IRange/Reference

..a

Window

1:

Enabled

Previous

Next

Env.

Camera A

-

I

1 Ref. Line

Ref. Win

Gage

~kin$$#

’ Mist

Exit

Note that the Rectangle box in the Window Shape popup menu has a shaded square (~7). This indicates that the window is currently configured as a rectangle. Pick the appropriate shape from the Window Shape menu box.

When you pick a different window shape menu box, the new selection will be highlighted in the Window Shape popup menu and will appear in the Shape menu box. Also, the new window shape will appear on the monitor screen.

Page 259

Chapter

8

Inspection Tools: Windows 8-15

.-

Selecting

Define Window

Popup Menu and Parameters (continued)

Using P&P Process Win. Function Pick the P&P Process Win. menu box, then position the window over the workpiece and set the window’s dimensions. (“P&P” means “pick and place.“) The following procedure is based on an example that shows you how to manipulate a rectangular (or elliptical) window with the light pen. A subsequent example shows how to manipulate a polygonal window and increase or decrease the number of sides. Each example includes these basic steps: l Positioning l Setting the window over the workpiece.

the window to the appropriate dimensions.

The example in the next several steps configures a rectangular window over a rectanglular workpiece, starting with the small square window below. (You can use the same steps to configure an elliptical window.)

.-

Use the following steps to position the window and set its length. Your Action Pick the P&P Process Win. menu b’ox in the Define Window popup menu.

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

I n

I

These squares are the “handles” that the light pen uses to manipulate the window on the monitor screen. Aim the lightpen 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 u

1 cl q

Page 260

Chapter

8

Inspection

Tools: Windows

8-16 -

Selecting

Define Window Popup Menu and

Using P&P Process Win. Function (continued)

Parameters (continued) Your Action

Comments

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

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

Drag the window to the center of the workpiece. : ..I.. : :. ..r:

. .:. .:. . .. .I. ::. .(.:

-,:: . . . . .. ‘.““I l

.:

: ,....., .._: .

:..:

?-

-. .

..

..

..

Rectangular Wokpiece ..

L

I -

NOTE: Keep the tip of the pen within about one-half inch of the monitor screen. When you have the window in position over the workpiece, press the pen against the monitor screen to “lock” the window at that position. Aim the lightpen at the rightmost handle.

Continue when the highlight square appears.

T-4 q

I r-l u

I

Page 261

Chapter

8

Inspection

Tools: Windows 8-17

Selecting Define Window Popup Menu and Parameters (continued) Your Action

Using P&P Process Win. Function (continued)

Comments

Pick the handle. Drag the right side until it is just outside the workpiece.

Note that the left side remains anchored.

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

Continue when the hightlight square appears.

Pick the handle. Drag the top side until it is just above the workpiece.

Lock the window’s top side in position.

Note that the bottom side remains anchored.

Page 262

Chapter

8

Inspection Tools: Windows

8-78

Selecting

Define Window

Using

P&P Process Win.

Function

(continued)

Popup Menu and Parameters (continued) Comments

Your Action Repeat this process for the ZeJjand bottom sides.

Drag the left side and bottom sides until the window looks like this: Window surrounds workpiece -

At this point, you have adjusted the window’s position and size so that, during an inspection, it will be able to inspect the entire workpiece. To manipulate a polygon window and increase or decrease the number of sides on a polygonal window, continue with the following procedures. If you select apolygon window shape, the Mode popup menu will appear in the lower-right corner of the monitor screen when you pick the P&P Process Win. menu box:

Env.

Camera A

Note that the Move Vertex box in the Mode popup menu has a shaded square (0). This indicates that the that the menu is currently configured for moving the polygon and its vertices.

-

Page 263

Chapter

8

Inspection

Tools: Windows 8-19

Selecting

Define Window Menu and Parameters (continued) Popup

Using P&P Process Win. Function (continued) These are the three configuration menu:

modes in the Mode popup

The Move Vertex menu box enables you to move the polygon and its vertices anywhere on the screen. When you pick the P&P Process Win. menu box, the CVIM system automatically “picks” the Move Vertex menu box. The Add Vertex menu box enables you to add vertices to the current polygon. The effect is to add sides to the polygon. The maximum number of sides is sixteen. The Delete Vertex menu box enables you to subract vertices from the current polygon. The effect is to subtract sides from the polygon. The minimum number of sides is three. The following steps use a simple example - a four-sided polygon in the shape of a diamond-to show the effect of using the Move Vertex functions. Initially, the handles are located at the four vertices and center of the polygon:

Your Action Aim the light pen at the center handle.

-

Pick the handle.

Comments Continue when the highlight square appears.

Page 264

Chapter

8 inspection

Tools: Windows

8-20

Selecting

Define Window Popup Menu and Parameters (continued) Your Action

Using

P&P Process Win. Function

(continued)

Comments

Drag the entire polygon to the left, as shown. . . . : .-.: :‘.

*

:

‘.

., ._

.I.

.. ‘.

: :

‘.

:

‘.

: _’ .

.

.

.

.

.

.

.

.

__..: i.!:. . . . ._

.

.

.

.

.

‘.

. ._._.. i:-:: ,...._ . . . . .

‘:, :

A_: I

_’ .’

‘.

: ‘.

: ‘.

: ‘.

_’ ‘.

.’ _’ ._

: ‘......’ :.

.: .Y

Aim the light pen at the rightmost vertex handle.

Continue when the highlight square appears.

Pick the vertex handle. Drag the rightmost vertex to the right, as shown.

-