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

Page 24

Advertising
background image

Chapter 4

Defining Formulas

4–9

Example Formula Entry

To enter this formula:

AVG (GAGE1,GAGE2)

*

0.250

Select an undefined formula (see “Selecting a Formula” in this chapter),
and pick the

Set formula

box to access the formula entry keyboard.

Pick the

AVG

key on the formula entry keyboard (located on the

secondary key set). The formula keyboard display shows:

= AVG( ?

Formula:

Cursor

The “?” indicates the formula is incomplete to this point; the cursor
indicates the point at which the next component will be entered.

Pick

G

(on the initial key set), to begin to enter the

GAGE1

operand:

= AVG( GAGE0 ?

Formula:

Pick

1

, to complete the entry of the

GAGE1

operand:

= AVG( GAGE1 ?

Formula:

Pick “

,

” (comma) , then

G

, then

2

:

= AVG( GAGE1, GAGE2 ?

Formula:

Pick “

)

” (close parenthesis) on the secondary key set. The formula is

now correct in syntax at this point; the “?” disappears:

= AVG( GAGE1, GAGE2 )

Formula:

Pick “

*

” ,

then “.” (decimal point), then 2, then 5

:

= AVG( GAGE1, GAGE2 )

*

0.25

Formula:

Pick the

Ret

key to save the formula; a result is displayed:

= AVG( GAGE1, GAGE2 ) * 0.250

Formula:

result: 602.000

Advertising