Rockwell Automation 5370-CMPK Color CVIM Module MATH-PAK User Manual

Page 31

Advertising
background image

Chapter 4

Defining Formulas

4–16

Table 4.C (part 3 of 3)
Operand Definitions

Key

Operand

Type

*Operand Symbol

*Sub-code (s)

Type of Data Returned to Formula

RES

Formula

Result

RSLTn.s

(n = 1 to 56)

(s = 0 to 2)

.0
.1
.2

Formula (n) results data value.
Pass/fail condition for warning range (1 = pass, 0 = fail).
Pass/fail condition for fault range (1 = pass, 0 = fail).

STA

Statistics

STATn.s

1,2

(n = 1 to 112)

(s = 0 to 4)

.0
.1
.2
.3
.4

Formula/tool (n) statistics: Number of samples taken.
Formula/tool (n) statistics: Minimum reading value.
Formula/tool (n) statistics: Maximum reading value.
Formula/tool (n) statistics: Mean value.
Formula/tool (n) statistics: Standard deviation value.

*The letter n = tool or formula number (as appropriate). The letter s = operand sub-code.

1

The n values 1-56 can refer to either tools or formulas. If the formula corresponding to the selected n number is enabled, the formula statistics are supplied;

otherwise, the corresponding tool results are supplied. Refer to Table 4.A, page 4–3, for a listing of the formulas and corresponding tools.

2

Statistics are available only if the Color CVIM module is run in “learn” mode.

Entering Constants as Operands

You can, of course, enter constant values, in either integer or fixed point
(decimal) format, to act as operands in a formula, if appropriate. To do this,
use the numeric keys (0–9), and the decimal point (.) key (for fixed point
numbers) which are found on both of the two key sets (see Figure 4.4, page
4–6).

For example, to enter the constant operand 1.25:

Pick 1,

then “.”

(decimal point)

,

then

2

, then

5

:

= 1.25 ?

Formula:

Here are some additional considerations when entering constant values:

Integer range: Integer values entered must be within the range –32767 to
32767. Values outside this range are not accepted into the formula.

Fixed point (decimal) range: Fixed point decimal values entered must be
within the range –32767.999 to 32767.999. Values outside this range are not
accepted into the formula.

Fixed point operands are always listed with 3 decimal places – trailing 0’s
are added if necessary, or, if more than 3 decimal places are entered, the
value is truncated to three decimal places.

Negative values: Negative values are created by placing the Unary minus
(

±

) operator to the immediate left of the positive constant entered.

Advertising