Rockwell Automation 5370-CVIM2 Module User Manual

Page 368

Advertising
background image

Chapter 7

Inspection Tools

7–130

1891879binary result of the logic operation (“output”) is then converted back
to decimal form.

In a simple example, two values are “bit–xored,” as follows:

87bxor119

In this example, the decimal value 87

10

is bit–xored with the decimal value

119

10

. The effect is to convert all bit positions to 0 that have matching 1 bits

or 0 bits (that is, 1 and 1 become 0; 0 and 0 remain 0), as follows:

87

10

= 1010111

2

119

10

= 1110111

2

0100000

2

= 32

10

XOR

Statistics Functions

When you pick the

key, the

Stats Functions

panel appears, as shown

by the example in Figure 7.100.

Figure 7.100 Example: Selecting the Statistical Functions Panel

ЗЗЗЗ

ЗЗЗЗ

ЗЗЗЗ

The

Stats Functions

panel lists all of the statistics functions that a math tool

can perform.

After selecting a stats function, you must enter one or more values, as
required for the selected function, that are separated by commas and
followed by a closing parenthesis. At that point, the entry could operate as a
“formula” by itself; however, it would normally be used as one component of
a longer formula.

Here is a brief description of each of the “stats” functions:

*avg –– The “

avg

” (average) function calculates the average of a list of

values.

Advertising