Index – Yokogawa PC-Based MX100 User Manual

Page 51

Advertising
background image

2-37

IM MX180-01E

Integrat

on Mon

tor

3

2

1

4

5

App

Index

Arthmetc Functons

Below are the arithmetic functions that are available. They are not case-sensitive.

Functon

Descrpton

Example

sin(<value>)

Returns the sine of the <value>

sin(ch("TagNo.00001"))

cos(<value>)

Returns the cosine of the <value>

cos(ch("TagNo.00001"))

tan(<value>)

Returns the tangent of the <value>

tan(ch("TagNo.00001"))

asin(<value>)

Inverse sine

asin(ch("TagNo.00001"))

acos(<value>)

Inverse cosine

acos(ch("TagNo.00001"))

sinh(<value>)

Hyperbolic sine

sinh(ch("TagNo.00001"))

cosh(<value>)

Hyperbolic cosine

cosh(ch("TagNo.00001"))

tanh(<value>)

Hyperbolic tangent

tanh(ch("TagNo.00001"))

pow(<value 1>, <value 2>)

<value 1> to the power of <value 2>

pow(ch(1),ch(2))

sqrt(<value>)

Square root

sqrt(ch(1))

logE(<value>)

Natural logarithm

logE(ch(1))

log10(<value>)

Common logarithm

log10(ch(1))

expE(<value>)

e to the power of <value>

expE(ch(1))

exp10(<value>)

10 to the power of <value>

exp10(ch(1))

abs(<value>)

Absolute value

abs(ch(1))

max(<value>,......,<value>) Maximum value among multiple

max(ch(1),ch(2),ch(3))

specified values

min(<value>,...,<value>)

Minimum value among multiple

min(ch(1),ch(2),ch(3))

specified values

pp(<value>,...,<value>)

(Maximum – minimum) among multiple

pp(ch(1),ch(2),ch(3))

specified values

sum(<value>,...,<value>)

Sum of multiple specified values

sum(ch(1),ch(2),ch(3))

ave(<value>,...,<value>)

Average of multiple specified values

ave(ch(1),ch(2),ch(3))

poly(<x>,<a0>,<a1>,...,<an>) Polynomial with variable parameters

poly(ch(1),ch(2),ch(3))

Calculates a0xn+a1xn–1+...+anx0

ceil(<value>)

Returns the minimum integer greater

ceil(ch(1))

than <value>

floor(<value>)

Returns the maximum integer less

floor(ch(1))

than <value>

limit(<x>,<a>,)

If x is outside the range defined by a and b, limit(ch(1),10,20)

round the value to a or b.

rnd()

Returns a random number between 0 and 1 ch(1)*rnd()

IsNaN(<value>)

Returns 1 if \value is NaN or 0 if it is not.

IsNaN(ch(1))

2.5 Settng Computatons (Settng the Computaton Channels)

Advertising