Rockwell Automation 5370-CVIM2 Module User Manual

Page 320

Advertising
background image

Chapter 7

Inspection Tools

7–82

Either of the AOI’s can be resized and/or positioned first –– the order is not
important.

In general, the size and position of each AOI is determined as follows:

Each AOI will assume the size (height and width) of whichever AOI was
resized last. Thus, AOI#1 will take the size of AOI#2, if AOI#2 was
resized last; and vice versa.

The position of the upper–left corner of one AOI will not be changed by
the resizing/repositioning of the other AOI.

NOTE: The reference line tool (

Tool 1

) in Figure 7.65 is configured to

supply shift and rotation compensation to the two image tools (

Tool 2

and

Tool 3

). When the workpiece rotates during inspection operations, the output

from

Tool 1

causes

Tool 2

and

Tool 3

to rotate. The effect on

Tool 3

is to

rotate its

S1

image source (

C1

, camera #1), but not its

S2

image source (

P1

,

from

Tool 2

). In this example, however, since

Tool 2

is rotated from

Tool 1

,

Tool 3

’s

S2

image source will also be rotated.

S1 – S1’

The

S1 – S1’

image arithmetic operation subtracts one AOI within the

S1

image from another AOI within the same

S1

image.

S1

and

S1’

both represent the image source that is supplied to the current

image tool and designated in the “

S1

” column. The image source can be

either a camera (

C1

,

C2

, and so on) or an image buffer (

P1

,

P2

, or

P3

)

containing an image processed by another image tool or a rotation finder
tool. (Any source that may appear in the “

S2

” column will have no effect on

the

S1 – S1’

subtraction operation.)

When the

S1 – S1’

subtraction operation is selected, the

and

buttons are both active. The

button relates to image

source

S1

, while the

button relates to image source

S1’

.

Initially, the AOI #1 window is superimposed over the AOI #2 window in the
upper–left part of the screen. The AOI #1 window should always be
positioned first, using the

button to select its pick and place

function.

After the AOI #1 window is positioned, and the pick and place function
exited, the AOI #2 window can be positioned over the appropriate part of the
image, using the

button to select the corresponding pick and place

function. Note that the AOI#2 window always adopts the size of the AOI#1
window –– its size cannot be altered independently.

The image in the AOI #2 window (

S1’

) is subtracted from the image in the

AOI #1 window (

S1

), and the result always appears in the AOI #1 window

when neither window is being “picked and placed” and when the result of

Advertising