Computng equaton, Order of precedence n computatons, Data that can be used n equatons – Yokogawa µR10000 User Manual

Page 187: Explanaton

Advertising
background image

IM 04P01B01-01E

9-4

9.2 Settng the Computng Equaton

Explanaton

Computng Equaton

Follow the rules below when writing computing equations.
• Use up to 120 characters to write equations.
• The precedence of computing terms can be specified using parentheses.
• Specify the channels in the equation using 2-digit channel numbers.
Example: 01, 0A
• Specify the constants (K), communication input data (C), and remote control input

terminal status (D) in the computing equation using 2-digit numbers.

Example: K01, C01, D01
• The data value for its own channel and channels that are greater in number than its

own channel are substituted with the data from the previous scan.

Order of Precedence n Computatons

The order of precedence of computation in equations is as follows:

Type

Operator

(high order of precedence)

Function

ABS(), SQR(), LOG(), EXP(), TLOG.MAX(),

TLOG.MIN(), TLOG.P-P(), TLOG.SUM(), TLOG.AVE()

Power

**

Logical negation

NOT

Multiplication and division

*, /

Addition and subtraction

+, –

Greater than and less than

.GT., .LT., GE., LE.

Equal and not equal

.EQ., .NE.

Logical product

AND

Logical sum and exclusive logical sum

OR, XOR

(low order of precedence)

Data That Can Be Used n Equatons

In TLOG computation, the measured values of measurement channels or computed
values of computation channels can only be used. For all other computations, all of the
data types below can be used.

• Measured Values on Measurement Channels

Specified by the channel number. For channels that have linear scaling enabled, the

scaled values are used in the computation.

Pen model: 01 to 04, dot model: 01 to 06

• Computed Values on Computaton Channels

Specified by the channel number.
Pen model: 0A, 0B, 0C, 0D, 0E, 0F, 0G, 0J
Dot model: 0A, 0B, 0C, 0D, 0E, 0F, 0G, 0J, 0K, 0M, 0N, 0P

• Constants (K01 to K30)

Enter the values as K01 to K30 in the equations.
Range of values (maximum significant digits is 5):
–9.9999E+29 to –1.0000E–30, 0, 1.0000E–30 to 9.9999E+29

• Communcaton Input Data (Pen model: C01 to C08, dot model: C01 to

C12)

Enter the data as C01 to C12 in the equations.
Range of values (maximum significant digits is 5):
–9.9999E+29 to –1.0000E–30, 0, 1.0000E–30 to 9.9999E+29
For the procedure of setting the communication input data, see the µR10000/µR20000

Communication Interface User’s Manual (IM04P01B01-17E).

Advertising