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

Page 23

Advertising
background image

Chapter 4

Defining Formulas

4–8

Results Display: When you pick the

Ret

key, and the formula is saved,

the current result of the formula is listed in the keyboard display area:

The result format is either integer, or fixed decimal point, depending on
the requirements of the operator(s) and/or operand(s) in the formula.

Question mark (?) – incorrect syntax: The question mark (?) in the
display, when present during formula entry, indicates that the formula is
incomplete as entered, and/or that the syntax for one or more of the
formula components is incorrect:

If you pick the

Ret

key while a (?) appears in the display, this warning

message appears at the top of the screen:

To avoid losing your current formula entry, pick any key besides the

Ret

key (other than

Clr

or

Esc

). Otherwise, picking the

Ret

key at this point

will clear the formula entry.

Using parentheses in formulas: Parentheses can be used when entering
formulas, in two different ways –

Prioritizing operations – You can place parentheses around an operator
and its operands in order to prioritize that operation – that is, the
operation in parentheses can be used as an operand by another operator.
“Nesting” of operations within a formula can be employed, where a
parenthetical portion is itself contained within another parenthetical
portion of the formula.

Listing operands – Some operators require that you enter one or more
operands in a parenthetical list following the operator. In these cases,
when you pick the operator, the “open” parenthesis is displayed. After
you list the operand or operands (separated by commas), you then enter
the “close” parenthesis.

Advertising