Rockwell Automation 5370-CVIM2 Module User Manual

Page 364

Advertising
background image

Chapter 7

Inspection Tools

7–126

or –– The “

or

” logic operator is inserted between two or more expressions

(such as inspection results values) in a formula. If the value of any one
expression (“input”) is logic “1” (or non–zero), the result of the logic
operation (“output”) will be a logic “1.” If all inputs are zero, however, the
output of the formula will be a logic “0.”

In a simple example, the results from three tools are “ored” together in a
formula as follows:

{Tool1.Fail High}or{Tool2.Fail Low}or{Tool3.Warn Low}

These tool results will each yield a logic “1” when the “fail” or “warn” range
limit for the corresponding tool is exceeded. The formula will yield a logic
“1” when any one of the three tools yields a logic “1.”

In another example, such as the following . . .

{Tool1}or{Tool2}

. . .

Tool 1

could be an object–counting window tool returning a count of 0,

and

Tool 2

could be a gage tool returning an X–axis value of 156.000 pixels.

Since at least one of these inputs is non–zero, the formula in this case will
output a logic “1” result.

xor –– The “

xor

” (exclusive “

or

”) logic operator is inserted between two

expressions (such as inspection results values) in a formula. If the values of
the expressions (“inputs”) on both sides of the “

xor

” operator are non–zero,

the result (“output”) of the logic operation will be a logic “0.” If only one
input is non–zero, the output will be a logic “1.” If both inputs are zero, the
output will be a logic “0.”

In this example, if

Tool 2

is an object–counting window tool returning a

count of 8 and

Tool 3

is a gage tool returning a linear measurement of

312.000 pixels, this “

xor

” formula will output a logic “0” result, since both

of the inputs are non–zero.

In a simple example, the results from two tools are “xored” together in a
formula as follows:

{Tool1.Fail High}xor{Tool2.Fail High}

These tool results will each yield a logic “1” when the “fail high” range limit
for either tool is exceeded. The formula will yield a logic “1” when one of
the two tools yields a logic “1.” If both tools yield logic “1” or “0,” the
formula will yield a logic “0.”

Advertising