9.2 Setting the Computing Equation

Explanation

Computing Equation

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 in Computations

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 in Equations

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 No. 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 Computation Channels

Specified by the channel No.

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

Communication 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 RD100B/RD1800B Communication Interface User’s Guide.

9-4

Page 161
Image 161
Omega RD100B manual Computing Equation, Order of Precedence in Computations, Type Operator